/* NetMinistries design system (redesign Phase 1, 2026-12-02). Brand: brand/README.md. Plain CSS, no framework. */
:root {
  --blue: #1D4F91; --blue-d: #163D70; --ink: #13233A; --text: #2E3A4B; --body: #3A4657; --muted: #5A6575;
  --tint: #F4F7FA; --rule: #E1E6EC; --line: #C5CED9; --gold: #E4B51E; --gold-text: #F2C46D; --green: #2F6B2F;
  --accent: var(--blue); --accent-tint: #E6EEF8; --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Figtree, system-ui, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; color: var(--text); background: #FFFFFF; }
img, iframe { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
:focus-visible { outline: 3px solid #7FAEE6; outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.2; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #FFFFFF; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { margin: 0 0 8px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.h2 { margin: 0 0 12px; font-size: clamp(1.625rem, 3.2vw, 2rem); }
.lead { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--body); }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-d); color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: var(--accent-tint); color: var(--ink); }
.btn-ghost { border-color: #FFFFFF; color: #FFFFFF; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #FFFFFF; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #0B1626; color: #FFFFFF; }
.btn[disabled] { opacity: .65; cursor: default; }

.card { background: #FFFFFF; border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.section { padding: 72px 0; }
.section.tint { background: var(--tint); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 24px; }
.split > * { flex: 1 1 340px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF;
  color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Site header and footer (directory, resources, error pages) */
.site-header { border-top: 4px solid var(--blue); border-bottom: 1px solid var(--rule); background: #FFFFFF; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.site-logo { display: inline-flex; }
.site-logo img { display: block; height: 40px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: .9375rem; font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current] { color: var(--blue); }
.site-footer { background: var(--tint); border-top: 1px solid var(--rule); font-size: .9375rem; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; padding-top: 48px; padding-bottom: 36px; }
.site-footer strong { display: block; color: var(--ink); margin-bottom: 6px; }
.site-footer a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--blue); }
.site-footer .base { border-top: 1px solid var(--rule); padding-top: 16px; padding-bottom: 24px; color: var(--muted); font-size: .8125rem; }

/* Organization page */
.org-header { border-top: 4px solid var(--accent); border-bottom: 1px solid var(--rule); background: #FFFFFF; }
.org-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.org-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--ink); }
.org-brand:hover { color: var(--ink); }
.org-mono { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.0625rem; letter-spacing: .02em; }
.org-name { font-weight: 800; font-size: 1.125rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.org-nav { display: flex; align-items: center; gap: 22px; font-size: .9375rem; font-weight: 600; flex: 0 0 auto; }
.org-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.org-nav a:not(.btn):hover { color: var(--accent); }

.hero { position: relative; overflow: hidden; color: #FFFFFF; background: linear-gradient(135deg, #13233A 0%, #1B3F72 60%, #1D4F91 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { margin: 0; color: #FFFFFF; font-size: clamp(2.125rem, 5.2vw, 3.5rem); line-height: 1.08; max-width: 860px; overflow-wrap: anywhere; }
.hero .eyebrow { color: var(--gold-text); }
.hero .tagline { margin: 0; max-width: 640px; font-size: 1.1875rem; line-height: 1.55; color: #E6ECF3; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-mark { position: absolute; right: -70px; bottom: -110px; width: 460px; height: auto; opacity: .10; pointer-events: none; }

.trust { background: var(--tint); border-bottom: 1px solid var(--rule); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px 24px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trust-item svg { flex: 0 0 24px; color: var(--accent); }
.trust-item.verified svg { color: var(--green); }
.trust-item b { display: block; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.trust-item span { display: block; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.trust-item a { color: var(--ink); }

.prose { max-width: 760px; font-size: 1.0625rem; line-height: 1.7; color: var(--body); overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose img { height: auto; border-radius: 12px; }
.prose * { max-width: 100%; }
.prose pre { white-space: pre-wrap; }
.prose iframe, .prose video { height: auto; aspect-ratio: 16 / 9; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose + .prose-block, .prose-block + .prose-block { margin-top: 48px; }

.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 0; }
.rows b { color: var(--ink); }
.card h3 { margin: 0 0 10px; font-size: 1.125rem; }
.address { font-style: normal; }
.map-frame { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius); background: #E3E9F0; }
.map-wrap { display: flex; flex-direction: column; gap: 10px; }

.team { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.avatar { width: 96px; height: 96px; margin-bottom: 8px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.5rem; }
.person b { color: var(--ink); }
.person span { color: var(--muted); font-size: .9375rem; }

.claim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 28px; border-radius: var(--radius);
  background: #FFF8E1; border: 1px solid #F0D58A; }
.claim h2 { margin: 0 0 6px; font-size: 1.375rem; }
.claim p { margin: 0; max-width: 620px; color: #4A3E14; }
.status { margin: 10px 0 0; font-weight: 600; }
.status:empty { display: none; }

.notice { background: #FFF8E1; border-bottom: 1px solid #F0D58A; color: #5C4600; font-size: .9375rem; }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; }
.adminbar { background: var(--ink); color: #FFFFFF; font-size: .9375rem; }
.adminbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.adminbar a { color: #FFFFFF; font-weight: 700; }

.nearby { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--tint); }
.nearby h2 { margin: 0 0 4px; font-size: 1.375rem; }
.nearby p { margin: 0; color: var(--muted); }

.org-footer { background: var(--ink); color: #D5DEE8; }
.org-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; padding-top: 52px; padding-bottom: 36px; }
.org-footer strong { display: block; color: #FFFFFF; font-weight: 800; margin-bottom: 8px; }
.org-footer a { color: #D5DEE8; overflow-wrap: anywhere; }
.org-footer a:hover { color: #FFFFFF; }
.org-footer .base { border-top: 1px solid #2C3F59; }
.org-footer .base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 16px; padding-bottom: 16px; font-size: .8125rem; color: #AEBBCB; }
.org-footer .base a { color: #FFFFFF; font-weight: 700; text-decoration: none; }
.org-footer .base a:hover { text-decoration: underline; }
.free-by svg { vertical-align: -4px; margin-right: 4px; }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Lead form and inbox (Phase 2) */
.lead-band { background: var(--accent); }
.lead-wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.lead-copy { flex: 1 1 320px; min-width: 0; color: #FFFFFF; }
.lead-copy .eyebrow { color: var(--gold-text); }
.lead-copy h2 { margin: 0 0 12px; color: #FFFFFF; font-size: clamp(1.75rem, 3.6vw, 2.25rem); }
.lead-copy p { color: #E6ECF3; font-size: 1.0625rem; }
.lead-form { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 0; box-shadow: 0 12px 32px rgba(10, 25, 45, .25); }
.lead-form h3 { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--ink); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
textarea.input { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin: 0; font-size: .8125rem; color: var(--muted); text-align: center; }
.lead-form .status { margin: 0; color: #8A1F1F; }
.inbox-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.inbox { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.inbox .lead { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.inbox .lead.new { border-left: 4px solid var(--accent); }
.inbox h2 { margin: 0; font-size: 1.1875rem; }
.inbox p { margin: 0; }
.lead-top { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .875rem; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: .75rem; font-weight: 700; }
.lead-msg { white-space: normal; overflow-wrap: anywhere; color: var(--body); }

/* Directory and home (Phase 4) */
.dir-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 24px; }
.dir-filters { position: sticky; top: 16px; }
.dir-form { display: flex; flex-direction: column; gap: 12px; }
.dir-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dir-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 18px 20px; }
.dir-body { flex: 1 1 280px; min-width: 0; }
.dir-body h2 { margin: 4px 0 2px; font-size: 1.125rem; overflow-wrap: anywhere; }
.dir-body h2 a { color: var(--ink); text-decoration: none; }
.dir-body h2 a:hover { color: var(--accent); text-decoration: underline; }
.dir-body p { margin: 0; color: var(--muted); font-size: .9375rem; }
.dir-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag.ok { background: #E7F0E4; color: var(--green); }
.tag.warn { background: #FBF0D6; color: #6B4A00; }
.dir-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.pager .on { background: var(--ink); color: #FFFFFF; }
.home-hero .wrap { padding-bottom: 72px; }
.home-search { display: grid; grid-template-columns: 1fr 140px 1fr; gap: 12px; max-width: 900px; margin-top: 12px; padding: 20px; border: 0; box-shadow: 0 12px 32px rgba(10, 25, 45, .25); }
.home-search-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.checks { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 1.0625rem; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.verse { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--tint); border-left: 4px solid var(--gold); }
.verse p { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.5; color: var(--ink); font-weight: 600; }
.verse cite { color: var(--muted); font-style: normal; font-weight: 700; }
@media (max-width: 900px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-filters { position: static; }
  .home-search { grid-template-columns: 1fr; }
}

/* Bible resources */
.input { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; color: var(--ink); background: #FFFFFF; width: 100%; }
.res .wrap { max-width: 1180px; }
.res-title { margin: 0 0 12px; font-size: clamp(2rem, 4.4vw, 2.75rem); line-height: 1.12; overflow-wrap: anywhere; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 20px; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--line); }
.crumbs a { font-weight: 600; }
.res-search { display: flex; gap: 10px; max-width: 640px; margin: 24px 0 8px; }
.res-search .input { flex: 1 1 auto; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.az a, .az span { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 700; text-decoration: none; }
.az a { border: 1px solid var(--rule); color: var(--ink); background: #FFFFFF; }
.az a:hover { border-color: var(--accent); color: var(--accent); }
.az a.on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.az span.off { color: #B8C1CC; }
.entry-list { columns: 4 200px; column-gap: 28px; margin: 16px 0 0; padding: 0; list-style: none; }
.entry-list li { break-inside: avoid; padding: 3px 0; }
.words { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 4px 28px; }
.words li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.pron { color: var(--muted); font-size: .9375rem; font-weight: 600; letter-spacing: .02em; }
.play { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: #FFFFFF;
  font: inherit; font-weight: 700; font-size: .875rem; cursor: pointer; }
.play:hover { background: var(--blue-d); }
.play.compact { min-height: 32px; width: 32px; padding: 0; justify-content: center; margin-left: auto; }
.play.playing { background: var(--green); }
.say { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 18px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--accent-tint); color: var(--ink); }
.meaning { margin: 0 0 18px; font-size: 1.0625rem; }
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.res-side { display: flex; flex-direction: column; gap: 16px; }
.res-side .az a, .res-side .az span { width: 34px; height: 34px; }
.side-h { margin: 0 0 12px; font-size: 1.0625rem; }
.side-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.church-form { display: flex; flex-wrap: wrap; gap: 8px; }
.church-form .input { flex: 1 1 140px; }
.nearby .church-form { flex: 1 1 360px; max-width: 520px; }
.def p { margin: 0 0 1em; }
.def a.ref { white-space: nowrap; }
.topics { margin: 0; padding-left: 20px; }
.topics li { margin: 0 0 8px; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.phon { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 32px; }
.phon ul { margin: 8px 0 0; padding-left: 20px; columns: 2; }
.ref-cards { margin-top: 16px; }
.ref-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
.ref-card:hover { border-color: var(--accent); color: var(--text); }
.ref-card b { color: var(--ink); font-size: 1.125rem; }
.ref-card .count { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--accent); }
.legacy h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); line-height: 1.12; margin: 0 0 16px; }
.legacy h2 { font-size: 1.5rem; }
.legacy h3 { font-size: 1.1875rem; margin: 1.5em 0 .5em; }
.legacy ol.breadcrumb { display: flex; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.legacy ol.breadcrumb li + li::before { content: "\203A"; margin: 0 8px; color: var(--line); }
.legacy hr { border: 0; border-top: 1px solid var(--rule); margin: 20px 0; }
.legacy audio { display: block; margin: 8px 0; max-width: 320px; }
.legacy font { font-size: inherit; }
.prose.wide { max-width: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .9375rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }
.listResourceLinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 24px; margin: 8px 0 24px; padding: 0; list-style: none; }
.listResourceLinks li { padding: 4px 0; }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; } }

.mobile-bar { display: none; }
@media (max-width: 760px) {
  .section { padding: 52px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero-mark { width: 300px; right: -80px; bottom: -90px; }
  .org-nav a:not(.btn) { display: none; }
  .org-nav .btn { display: none; }
  .mobile-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #FFFFFF; border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(10, 25, 45, .08); }
  .mobile-bar .btn { flex: 1 1 0; }
  body.has-mobile-bar { padding-bottom: 76px; }
  .map-frame { min-height: 280px; }
}
@media print {
  .org-header .org-nav, .mobile-bar, .adminbar, .claim, .hero-mark { display: none !important; }
  .hero { background: none; color: var(--ink); }
  .hero h1, .hero .tagline { color: var(--ink); }
}
