/* maranatha.com: hand-written CSS, design tokens first. No build step.
   Theme: "First Light". A pre-dawn sky (indigo to violet to rose to gold) over warm, bright pages. */
:root {
  --night: #0F0B33;
  --indigo: #231566;
  --violet: #5B2EA6;
  --plum: #8A2F9A;
  --coral: #FF6F59;
  --gold: #FFC24B;
  --amber: #FF9A3D;

  --ink: #150F3C;
  --ink-soft: #514B78;
  --link: #4B2A9A;
  --dawn: var(--gold);
  --dawn-deep: #F5A524;
  --dawn-ink: #5B2EA6;      /* accent for small text on light backgrounds (AA: 8.7:1 on white) */
  --paper: #FFFBF6;
  --sky: #F1ECFF;           /* lavender wash */
  --peach: #FFF1E3;
  --sage: #5E7F6E;
  --sage-deep: #3F6450;     /* success text (AA on white) */
  --rose: #C4574F;
  --rose-deep: #A8443D;     /* error text (AA on white) */
  --line: #E7E0F3;
  --white: #FFFFFF;

  --grad-dawn: linear-gradient(180deg, #0F0B33 0%, #231566 20%, #5B2EA6 46%, #B0387F 66%, #FF6F59 84%, #FFC24B 100%);
  --grad-badge: linear-gradient(135deg, #5B2EA6, #E0457B);
  --grad-word: linear-gradient(90deg, #5B2EA6, #C2308C 60%, #E8623F);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(35, 21, 102, .05), 0 12px 32px rgba(35, 21, 102, .08);
  --shadow-lift: 0 2px 4px rgba(35, 21, 102, .08), 0 22px 44px rgba(91, 46, 166, .18);
  --focus: var(--violet);
  --accent: var(--gold);          /* overridden per church */
  --accent-text: var(--ink);
  --accent-hover: #FFD36E;
  --accent-hover-text: var(--ink);
  --accent-ink: var(--dawn-ink);
  --measure: 68ch;
  --gutter: 20px;
  --section-pad: 56px;
}
@media (min-width: 720px) { :root { --gutter: 28px; --section-pad: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (min-width: 900px) { html { font-size: 17px; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
.icon { flex: none; vertical-align: -0.2em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw + .5rem, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.2vw + .5rem, 2.9rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
.h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .page-hero :focus-visible { outline-color: var(--gold); }
.skip-link { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; z-index: 100; }
.skip-link:focus { top: 12px; color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; font-size: 1.85rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 60ch; }
.lead-center { margin-inline: auto; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dawn-ink); margin-bottom: .8em; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-center { justify-content: center; }
.between { justify-content: space-between; }
.align-center { align-items: center; }

/* utilities (no inline styles anywhere: CSP forbids them) */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.pt-2 { padding-top: 16px; } .pb-0 { padding-bottom: 0; }
.w-full { width: 100%; } .nowrap { white-space: nowrap; } .inline { display: inline; } .flex-1 { flex: 1 1 260px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 28px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .18s, color .18s, transform .18s, box-shadow .18s, border-color .18s; text-align: center; }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 22px rgba(255, 154, 61, .32); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-hover-text); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(255, 154, 61, .42); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-on-dark.btn-secondary, .page-hero .btn-secondary { color: var(--white); border-color: rgba(255, 255, 255, .75); }
.btn-on-dark.btn-secondary:hover, .page-hero .btn-secondary:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-quiet { background: none; min-height: 44px; padding: 8px 4px; border-radius: 4px; text-decoration: underline; text-underline-offset: 4px; color: var(--link); }
.btn-danger { background: var(--rose-deep); color: var(--white); }
.btn-danger:hover { background: #8a342e; color: var(--white); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn:active { transform: translateY(1px); }

/* ---------- Header / nav ---------- */
.site-header { background: rgba(255, 251, 246, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo:hover { color: var(--ink); }
.logo-mark { display: inline-flex; }
.logo-mark svg { width: 45px; height: 50px; }
.logo-word { font: 600 1.7rem/1 var(--font-head); letter-spacing: -0.025em; }
.logo-light, .logo-light:hover { color: var(--white); }
.nav-toggle { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--sky); color: var(--violet); }
.primary-nav .nav-cta a { background: var(--gold); color: var(--ink); font-weight: 600; padding-inline: 18px; }
.primary-nav .nav-cta a:hover { background: var(--accent-hover); color: var(--ink); }
@media (max-width: 1099px) {
  .header-inner { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: none; font: 600 .95rem var(--font-body); color: var(--ink); cursor: pointer; }
  .primary-nav { width: 100%; }
  .js .primary-nav:not(.open) { display: none; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .primary-nav a { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); position: relative; }
.section-sky { background: linear-gradient(180deg, var(--sky), #F8F4FF); }
.section-white { background: var(--white); }
.section-dawn { background: linear-gradient(180deg, #FFF3E6 0%, #FCE6EF 55%, #EFE8FF 100%); }
.horizon { display: block; width: 100%; height: 36px; margin: 0; line-height: 0; color: var(--sky); }
.horizon svg { width: 100%; height: 100%; display: block; }
.horizon-white { color: var(--white); }
.horizon-paper { color: var(--paper); }
.horizon-ink { color: var(--night); }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-inline: auto; }
.statement { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: .6em; }

/* Interior page banner: the same sky, lower and quieter */
.page-hero { position: relative; overflow: hidden; color: var(--white); padding-block: 56px 52px;
  background: radial-gradient(55% 150% at 90% 145%, rgba(255, 170, 80, .65), rgba(255, 111, 89, .28) 45%, transparent 70%), linear-gradient(135deg, #150F3C 0%, #2B1A78 55%, #6A2C9C 100%); }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero .lead { color: #E6E0FF; }
.page-hero .eyebrow, .page-hero .eyebrow a { color: var(--gold); }
.page-hero a:not(.btn) { color: var(--white); }
.page-hero .muted { color: #D4CCF3; }

.hero-media { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lift); background: var(--indigo); display: flex; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { min-height: 260px; }
.section .hero-media { align-self: start; position: sticky; top: 96px; }
.section .hero-media img { height: auto; min-height: 0; }

/* ---------- Cards, grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
a.card, .card-link { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #D6C8F2; color: inherit; }
.card h3, .card .h3 { font-size: 1.3rem; margin-bottom: .35em; }
.card .icon-badge { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 16px; background: var(--grad-badge); color: var(--white); margin-bottom: 18px; box-shadow: 0 8px 18px rgba(138, 47, 154, .28); }
.pillar { overflow: hidden; padding-top: 34px; }
.pillar::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #5B2EA6, #E0457B, #FFC24B); }
.pillar-word { font: 600 2.1rem/1.1 var(--font-head); letter-spacing: -0.025em; margin: 0 0 .35em; color: var(--violet); background: var(--grad-word); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.door { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.door img { width: 100%; height: auto; }
.door-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.door-body .btn { align-self: flex-start; margin-top: auto; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-badge); color: var(--white); font: 600 1.15rem var(--font-head); align-items: center; justify-content: center; margin-bottom: 14px; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: none; }
.journey li { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; flex-direction: column; }
.journey h3 { font-size: 1.35rem; margin-bottom: .35em; }
.journey p { color: #DCD6F6; }
.step-no { font: 500 3.4rem/1 var(--font-head); letter-spacing: -0.04em; margin-bottom: 10px; background: linear-gradient(180deg, #FFE08A, #FF8A5B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold); text-decoration: none; min-height: 44px; }
.step-link:hover { color: #FFE08A; text-decoration: underline; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 18px 22px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-left: 4px solid var(--gold); color: #E6E1FA; margin: 0 0 14px; }
.feature-list strong { color: var(--white); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--sky); color: var(--ink); }
.badge-warn { background: #FBE7C6; color: #6B3F05; }
.badge-ok { background: #DCEBE2; color: #1F4A33; }
.badge-bad { background: #F6DAD7; color: #7A2A24; }
.draft-flag { display: inline-block; background: #FBE7C6; color: #6B3F05; border: 1px dashed var(--dawn-deep); padding: 4px 12px; border-radius: 8px; font-size: .875rem; font-weight: 600; margin-bottom: 1rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list-center { justify-content: center; }
.pill-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: .95rem; box-shadow: var(--shadow); }

/* ---------- Scripture ---------- */
.scripture { margin: 1.4rem 0; padding: 1.1rem 1.4rem; background: var(--white); border-left: 5px solid var(--gold); border-radius: 0 16px 16px 0; box-shadow: var(--shadow); max-width: var(--measure); }
.scripture blockquote { margin: 0; font-family: var(--font-head); font-style: italic; font-size: 1.15rem; line-height: 1.7; }
.scripture figcaption { margin-top: .6rem; font: 600 .875rem var(--font-body); font-style: normal; color: var(--ink-soft); }
.scripture figcaption a { color: var(--link); }
.vn { font: 600 .7rem var(--font-body); font-style: normal; color: var(--dawn-ink); margin-right: .25em; vertical-align: super; line-height: 0; }
.attribution { font-size: .8125rem; color: var(--ink-soft); }
.scripture-ref { font-weight: 500; }
.verse-of-day { font-size: 1.35rem; }
.verse-of-day .scripture { margin-inline: auto; max-width: 44rem; text-align: center; background: transparent; box-shadow: none; border-left: 0; border-radius: 0; padding: 1.6rem 0 0; position: relative; }
.verse-of-day .scripture::before { content: ''; display: block; width: 64px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, #5B2EA6, #E0457B, #FFC24B); margin: 0 auto 1.4rem; }
.verse-of-day .scripture blockquote { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.55; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .field .label, legend { font-weight: 600; font-size: 1rem; }
.field .hint { font-size: .875rem; color: var(--ink-soft); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=color], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 2px solid #A59FC4; border-radius: 14px; background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
input[type=color] { padding: 4px; min-height: 48px; width: 96px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(91, 46, 166, .35); outline-offset: 1px; border-color: var(--violet); }
.field-error input, .field-error select, .field-error textarea { border-color: var(--rose-deep); }
.error-text { color: var(--rose-deep); font-size: .9375rem; font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--violet); }
.check label { font-weight: 400; }
.error-summary { border: 2px solid var(--rose-deep); background: #FDF1EF; border-radius: 14px; padding: 16px 20px; max-width: 640px; margin-bottom: 20px; }
.error-summary h2 { font-size: 1.1rem; margin: 0 0 .4em; color: var(--rose-deep); font-family: var(--font-body); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.alert { border-radius: 14px; padding: 14px 18px; border: 1px solid var(--line); background: var(--white); margin-bottom: 20px; }
.alert-success { border-color: var(--sage); background: #EEF5F0; color: #1F4A33; }
.alert-error { border-color: var(--rose-deep); background: #FDF1EF; color: #7A2A24; }
.alert-crisis { border: 2px solid var(--rose-deep); background: #FDF1EF; color: var(--ink); padding: 22px 24px; }
.alert-crisis h2 { color: var(--rose-deep); font-size: 1.4rem; }
.notice { background: var(--sky); border-radius: 14px; padding: 14px 18px; font-size: .95rem; max-width: 640px; }
.crisis-line { font-size: .9rem; color: var(--ink-soft); }
.crisis-line a { font-weight: 600; color: var(--ink); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.inline-form input[type=email], .inline-form input[type=text] { flex: 1 1 220px; }

/* ---------- Accordions (FAQ) ---------- */
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
details.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; min-height: 48px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--violet); }
details.faq[open] summary::after { content: '\2212'; }
details.faq .faq-body { padding: 0 22px 18px; max-width: var(--measure); }

/* ---------- Footer ---------- */
.site-footer { background: radial-gradient(60% 90% at 85% 0%, rgba(138, 47, 154, .4), transparent 62%), radial-gradient(50% 70% at 0% 100%, rgba(255, 111, 89, .14), transparent 60%), var(--night); color: #E4E0F8; padding-block: 64px 32px; margin-top: 0; }
.site-footer a { color: #E4E0F8; }
.site-footer a:hover { color: var(--gold); }
.site-footer a.btn-primary { color: var(--accent-text); }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 960px) { .footer-top { grid-template-columns: minmax(240px, 1fr) 2.2fr; } }
.footer-brand .logo-word { font-size: 1.9rem; }
.footer-tag { margin: 16px 0 18px; max-width: 30ch; color: #CFC8EE; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.footer-grid h2 { font: 600 .8125rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .9em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li a { display: inline-block; padding: 6px 0; min-height: 32px; text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; color: #BDB5E2; }
.footer-crisis { margin-top: 36px; font-weight: 600; }

/* ---------- Bible reader ---------- */
.bible-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 20px; }
.bible-text { font-family: var(--font-head); font-size: var(--bible-size, 1.2rem); line-height: 1.85; max-width: var(--measure); }
.bible-text .verse { display: inline; }
.bible-text .verse[role="button"] { cursor: pointer; }
.copy-fallback { display: block; width: min(100%, 44rem); margin-block: 12px; }
.copy-fallback[hidden] { display: none; }
.copy-feedback { margin-left: 8px; }
.bible-text .verse:target, .bible-text .verse.hl { background: #FFE9B8; border-radius: 4px; }
.bible-text .vn { font-size: .65em; }
.bible-text p { margin-bottom: 1.1em; }
.book-list { columns: 2 200px; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.book-list li { break-inside: avoid; }
.book-list a { display: block; padding: 8px 0; min-height: 44px; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.chapter-grid a { display: flex; align-items: center; justify-content: center; min-height: 48px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 600; color: var(--ink); transition: background .15s, color .15s; }
.chapter-grid a:hover { background: var(--violet); color: var(--white); border-color: var(--violet); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0; flex-wrap: wrap; }
.search-result { padding: 14px 0; border-bottom: 1px solid var(--line); max-width: var(--measure); }
.search-result mark { background: #FFE9B8; color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- Directory / map ---------- */
.dir-layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .dir-layout { grid-template-columns: 420px 1fr; align-items: start; } .dir-map { position: sticky; top: 92px; } }
#map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sky); z-index: 1; }
.church-card { display: grid; gap: 6px; }
.church-card h2 { margin: 0; }
.times { list-style: none; padding: 0; margin: 0; }
.times li { padding: 2px 0; }

/* ---------- Tables / dashboard ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
table.table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
table.table.table-compact { min-width: 0; } /* a table with only a few short columns should fit a phone without scrolling */
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--sky); font-weight: 600; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.dash { display: grid; gap: 24px; padding-block: 24px 56px; }
@media (min-width: 900px) { .dash { grid-template-columns: 240px 1fr; align-items: start; } }
.dash-nav { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.dash-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
@media (min-width: 900px) { .dash-nav ul { flex-direction: column; flex-wrap: nowrap; } }
.dash-nav a { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 12px; text-decoration: none; font-weight: 500; color: var(--ink); }
.dash-nav a:hover, .dash-nav a[aria-current="page"] { background: var(--sky); color: var(--violet); }
.dash-main h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.checklist .done { color: var(--sage-deep); }
.stat { font: 700 2rem var(--font-head); }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #5B2EA6, #E0457B, #FFC24B); border-radius: 999px; }
.progress-0 > span { width: 0; } .progress-10 > span { width: 10%; } .progress-20 > span { width: 20%; } .progress-30 > span { width: 30%; } .progress-40 > span { width: 40%; } .progress-50 > span { width: 50%; } .progress-60 > span { width: 60%; } .progress-70 > span { width: 70%; } .progress-80 > span { width: 80%; } .progress-90 > span { width: 90%; } .progress-100 > span { width: 100%; }
.queue-item { border-left: 4px solid var(--line); }
.queue-item.crisis { border-left-color: var(--rose-deep); background: #FFF8F7; }
.message-body { white-space: pre-wrap; background: #FAF7FF; border: 1px solid var(--line); border-radius: 14px; padding: 16px; max-width: var(--measure); }

/* ---------- Church sites ---------- */
.church-hero { position: relative; color: var(--white); background: var(--night); overflow: hidden; }
.church-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.church-hero .container { position: relative; padding-block: 64px 72px; }
.church-hero h1 { color: var(--white); max-width: 18ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.church-hero .lead { color: #F0F2FA; }
.church-nav { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.church-nav-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 64px; }
.church-nav .brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.25rem var(--font-head); text-decoration: none; margin-right: auto; min-height: 44px; color: var(--ink); }
.church-nav .brand img { height: 36px; width: auto; }
.church-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.church-nav a.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); }
.church-nav a.nav-link:hover, .church-nav a.nav-link[aria-current="page"] { background: var(--sky); }
.church-nav .nav-cta a.nav-link { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.powered-by { background: var(--paper); padding: 16px 0; text-align: center; font-size: .875rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.font-clean { --font-head: 'Inter', system-ui, sans-serif; }
.font-classic { --font-body: 'Fraunces', Georgia, serif; }
.font-friendly { --font-head: 'Inter', system-ui, sans-serif; --radius: 28px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.event-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px; background: var(--sky); font-weight: 700; line-height: 1.1; flex: none; }
.event-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.event-date strong { font: 700 1.5rem var(--font-head); }
.staff-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .btn, .skip-link { display: none !important; } body { background: #fff; } }
.form-wide { max-width: 900px; }
