/* AltarPage ministry sites. Mobile first (360px). Design tokens: the "Design tokens, v2" block near the end of this file. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/source-serif-4-400.woff2) format("woff2"); }

:root {
  /* --brand is the ministry's colour (theme_json.primary); everything else derives from it. */
  --brand: #5B3DF5; --dawn: #FF7A45; --night: #0B0B12;
  --bg: #FAFAF9; --surface: #FFFFFF; --surface-2: #F4F4F5;
  --ink: #0B0B12; --ink-2: #52525B; --line: #E7E5E4;
  --primary: var(--brand); --primary-ink: #FFFFFF; --gold-ink: color-mix(in srgb, var(--dawn) 45%, #3F1D0B);
  --live: #B42318; --live-ink: #B42318; --focus: #2F80ED; --danger: #B42318; --ok: #15803D;
  --mist: color-mix(in srgb, var(--brand) 7%, #FFFFFF); --mist-2: color-mix(in srgb, var(--brand) 3%, #FFFFFF); --leaf: var(--brand);
  --hill-1: color-mix(in srgb, var(--brand) 55%, #0B0B12); --hill-2: color-mix(in srgb, var(--brand) 30%, #0B0B12);
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-full: 999px;
  /* Flat by default (a hairline does the work); real elevation only for sheets and menus. */
  --shadow: none; --shadow-pop: 0 12px 40px rgb(11 11 18 / .18);
  --serif: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --reading: "Source Serif 4", Georgia, serif;
  --ui: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Night sky in the ministry's colour, rising to a warm horizon. */
  --hero: linear-gradient(180deg, #0B0B12 0%, color-mix(in srgb, var(--brand) 38%, #0B0B12) 38%, color-mix(in srgb, var(--brand) 72%, #0B0B12) 66%, color-mix(in srgb, var(--brand) 45%, var(--dawn)) 88%, var(--dawn) 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B12; --surface: #14141C; --surface-2: #1C1C26;
    --ink: #F4F4F5; --ink-2: #A1A1AA; --line: #2A2A36;
    --primary: color-mix(in srgb, var(--brand) 55%, #FFFFFF); --primary-ink: #0B0B12; --live-ink: #FF8A80; --danger: #F97066; --ok: #4ADE80; --gold-ink: var(--dawn);
    --shadow: none; color-scheme: dark;
    --mist: color-mix(in srgb, var(--brand) 14%, #0B0B12); --mist-2: color-mix(in srgb, var(--brand) 8%, #0B0B12); --leaf: var(--primary);
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B12; --surface: #14141C; --surface-2: #1C1C26;
  --ink: #F4F4F5; --ink-2: #A1A1AA; --line: #2A2A36;
  --primary: color-mix(in srgb, var(--brand) 55%, #FFFFFF); --primary-ink: #0B0B12; --live-ink: #FF8A80; --danger: #F97066; --ok: #4ADE80; --gold-ink: var(--dawn);
  --shadow: none; color-scheme: dark;
  --mist: color-mix(in srgb, var(--brand) 14%, #0B0B12); --mist-2: color-mix(in srgb, var(--brand) 8%, #0B0B12); --leaf: var(--primary);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--ui); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 12px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 8px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.icon { flex: none; vertical-align: -0.2em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.reading { max-width: 720px; }
.section { margin-top: 36px; }
main { display: block; min-height: 60vh; padding-bottom: 64px; }
main:focus { outline: none; }

/* Type */
.display { font: 600 34px/1.1 var(--serif); margin: 0 0 12px; letter-spacing: -.01em; }
.h1 { font: 600 28px/1.2 var(--serif); margin: 0 0 16px; letter-spacing: -.005em; }
.h2 { font: 600 22px/1.25 var(--serif); margin: 0 0 12px; }
.h3 { font: 600 19px/1.3 var(--serif); margin: 0 0 8px; }
.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 20px; }
.eyebrow { font: 600 13px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.scripture-ref { font: 600 13px/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.prose { font: 400 18px/1.7 var(--reading); max-width: 68ch; }
.prose p { margin: 0 0 1em; }
.prose a { word-break: break-word; }
.pre { white-space: pre-wrap; }
@media (min-width: 960px) {
  .display { font-size: 56px; } .h1 { font-size: 40px; } .h2 { font-size: 28px; } .prose { font-size: 19px; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: transform .2s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 18px/1 var(--serif); min-height: 44px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--r-full); background: var(--primary); color: var(--primary-ink); font-weight: 600; text-decoration: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-full); color: var(--ink); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.nav-inline { display: none; }
@media (min-width: 960px) {
  .nav-inline { display: flex; gap: 20px; margin-left: 24px; }
  .nav-inline a { color: var(--ink); text-decoration: none; font-weight: 500; }
  .nav-inline a:hover { color: var(--primary); }
  .menu-open { display: none; }
}

/* Menu sheet (works without JS via :target) */
.menu-sheet { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; }
.menu-sheet:target { display: block !important; }
.menu-inner { max-width: 560px; margin: 0 auto; padding: 0 16px 32px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.menu-links { list-style: none; padding: 0; margin: 24px 0; }
.menu-links a { display: block; padding: 14px 0; font: 600 24px/1.2 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-full); border: 1px solid transparent; font: 600 15px/1.2 var(--ui); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--primary-ink); min-height: 48px; font-size: 16px; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-text { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--primary); font: 600 15px/1.3 var(--ui); text-decoration: none; cursor: pointer; }
.btn-text:hover, .btn-text:focus-visible { text-decoration: underline; }
.btn-text.danger { color: var(--danger); }

/* Cards */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.dew-card { background: linear-gradient(170deg, var(--mist-2), var(--surface) 55%); border-color: color-mix(in srgb, var(--leaf) 22%, var(--line)); padding: 24px 20px; overflow: hidden; }
.dew-card::before { content: ""; position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; border-radius: 0 50% 50% 50%; transform: rotate(45deg);
  background: radial-gradient(circle at 62% 62%, rgb(255 255 255 / .95) 0 12%, transparent 14%), linear-gradient(135deg, color-mix(in srgb, var(--leaf) 10%, transparent), color-mix(in srgb, var(--leaf) 38%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--leaf) 25%, transparent); pointer-events: none; }
.dew-card .h2 { font-size: 26px; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretched { color: inherit; text-decoration: none; }
.card:has(.stretched:hover) { border-color: var(--ink-2); }
.card:has(.stretched:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.stretched:focus-visible { outline: none; }
.clamp-3, .clamp-4 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; } .clamp-4 { -webkit-line-clamp: 4; line-clamp: 4; }
.card-actions { display: flex; align-items: center; gap: 12px; }
.grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--hero); color: #fff; padding: 36px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 14%, rgb(255 255 255 / .8), transparent),
    radial-gradient(1px 1px at 28% 8%, rgb(255 255 255 / .6), transparent),
    radial-gradient(1.5px 1.5px at 74% 12%, rgb(255 255 255 / .7), transparent),
    radial-gradient(1px 1px at 88% 22%, rgb(255 255 255 / .5), transparent),
    radial-gradient(1px 1px at 52% 5%, rgb(255 255 255 / .5), transparent); }
@keyframes glint { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.hero-inner { max-width: 720px; position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: var(--r-full); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); color: #FFE7D6; font: 600 13px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.hero-eyebrow::before { content: ""; width: 7px; height: 9px; background: var(--dawn); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.hero .display { text-shadow: 0 2px 24px rgb(11 11 18 / .55); }

.hero-tagline { font-size: 18px; color: #E4E4E7; margin: 0 0 24px; max-width: 30ch; }
.hero-more { color: #fff; display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; min-height: 44px; font-weight: 600; }

/* Meeting card */
.meeting { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); color: var(--ink); }
.meeting--hero { background: linear-gradient(160deg, rgb(255 255 255 / .12), rgb(255 255 255 / .04)); border-color: rgb(255 255 255 / .2); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 20px 40px rgb(6 12 24 / .35); }
.meeting--hero .meeting-when, .meeting--hero .meeting-title { color: #fff; }
.meeting--hero .meeting-home, .meeting--hero .muted, .meeting--hero .next-label { color: #D4D4D8; }
.meeting--hero .btn-text { color: #fff; }
.meeting--compact { border-radius: var(--r-md); padding: 16px; }
.meeting-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 24px; margin-bottom: 6px; }
.next-label { font: 600 13px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.platform-chip { margin-left: auto; font: 600 12px/1 var(--ui); padding: 5px 9px; border-radius: var(--r-full); background: var(--surface-2); color: var(--ink-2); }
.meeting--hero .platform-chip { background: rgb(255 255 255 / .12); color: #E4E4E7; }
.meeting-title { font: 600 20px/1.25 var(--serif); margin: 0 0 8px; }
.meeting-when { font: 600 24px/1.25 var(--ui); margin: 0 0 4px; letter-spacing: -.01em; }
.meeting--compact .meeting-when { font-size: 19px; }
.meeting-home { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.meeting-desc { margin: 0 0 12px; }
.meeting-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.meeting--compact .meeting-actions { flex-direction: row; align-items: center; }
.meeting.is-live { border-color: color-mix(in srgb, var(--live) 50%, transparent); }
.meeting-list { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 720px) { .meeting-actions { flex-direction: row; align-items: center; } }

.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-full); background: color-mix(in srgb, var(--live) 14%, transparent); color: var(--live-ink); font: 700 12px/1.2 var(--ui); letter-spacing: .1em; }
.meeting--hero .live-badge { background: rgb(214 69 61 / .25); color: #FFD1CD; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgb(214 69 61 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(214 69 61 / .6); } 70% { box-shadow: 0 0 0 8px rgb(214 69 61 / 0); } 100% { box-shadow: 0 0 0 0 rgb(214 69 61 / 0); } }
.tz-note { display: flex; gap: 6px; align-items: flex-start; }

.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming-item { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.upcoming-local { font-weight: 500; font-size: 15px; }
.stack-sm { display: flex; flex-wrap: wrap; gap: 8px; }
.help { margin-top: 32px; background: var(--surface-2); border-radius: var(--r-md); padding: 4px 16px; }
.help summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }

/* Join bar (mobile) */
.join-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.join-bar-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 0; border-radius: var(--r-full); background: var(--live); color: #fff; font: 700 17px/1 var(--ui); text-decoration: none; cursor: pointer; box-shadow: var(--elev-2); }
.join-bar-btn .live-dot { background: #fff; }
@media (min-width: 960px) { .join-bar { left: auto; width: 360px; } }

/* Dew */
.dew-card .h2 { margin-top: 4px; }
.scripture { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--dawn); }
.scripture blockquote { margin: 0; font: italic 400 20px/1.55 var(--serif); }
.scripture blockquote p { margin: 0 0 .5em; }
.scripture figcaption { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.labelled { margin: 24px 0; padding: 20px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.labelled--declaration { background: linear-gradient(135deg, color-mix(in srgb, var(--dawn) 20%, var(--surface)), var(--mist)); border-color: color-mix(in srgb, var(--dawn) 35%, var(--line)); position: relative; }
.labelled--declaration .labelled-body { font: 600 21px/1.45 var(--serif); }
.labelled--prayer { background: var(--mist); border-color: color-mix(in srgb, var(--leaf) 20%, var(--line)); }
.labelled-body { font: 400 19px/1.6 var(--reading); }
.labelled-body p { margin: 0 0 .6em; }
.labelled--declaration .labelled-body { font-weight: 400; }
.share { margin: 32px 0; display: flex; flex-direction: column; gap: 8px; }
.share-more { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.prevnext { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.prevnext a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 48%; text-decoration: none; font-weight: 600; }
.prevnext a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prevnext .next { margin-left: auto; text-align: right; }
.dew-list { list-style: none; margin: 0; padding: 0; }
.dew-item a { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dew-item-date { font-size: 14px; color: var(--ink-2); }
.dew-item-title { font: 600 19px/1.3 var(--serif); }
.dew-item a:hover .dew-item-title { color: var(--primary); }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; min-height: 44px; }

/* Testimonies */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px 8px; padding-inline: 16px; scroll-padding-inline: 16px; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 720px) { .scroller { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; margin-inline: 0; padding-inline: 0; } }
.testimony-card .quote-mark { color: var(--dawn); margin-bottom: 8px; }
.testimony-by { font-weight: 600; color: var(--ink-2); font-size: 15px; margin: 0; }
.testimony-photo { border-radius: var(--r-md); margin: 16px 0; }

/* Banner */
.banner { background: color-mix(in srgb, var(--dawn) 18%, var(--bg)); border-bottom: 1px solid var(--line); }
.banner-inner { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.banner-icon { margin-top: 2px; color: var(--ink); }
.banner-text { flex: 1; min-width: 0; }
.banner-title { margin: 0; font-weight: 600; }
.banner-live { color: var(--live-ink); }
.banner-body { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner-cta { display: inline-block; margin-top: 4px; font-weight: 600; }
.banner-close { margin: -8px -8px 0 0; }

/* Live now */
.live-bar { display: flex; align-items: center; gap: 10px; padding: 10px max(16px, calc((100vw - var(--wrap, 1120px)) / 2)); background: #B42318; color: #fff; text-decoration: none; font-size: 16px; }
.live-bar:hover, .live-bar:focus-visible { background: #912018; color: #fff; }
.live-bar-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bar-cta { font-weight: 700; white-space: nowrap; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-player { margin-bottom: 28px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: #B42318; color: #fff; font-weight: 700; font-size: 14px; }
.mixlr { margin-bottom: 28px; }
.mixlr .h3 { margin: 0 0 10px; }
.mixlr-frame { display: block; width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
@media (max-width: 480px) { .mixlr-frame { height: 380px; } }

/* New life */
.newlife-card { background: linear-gradient(160deg, color-mix(in srgb, var(--dawn) 22%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 20px; text-align: center; }
.newlife-card p { max-width: 36ch; margin: 0 auto 16px; }
.newlife-icon { color: var(--dawn); margin: 0 auto 8px; display: block; }
.newlife-link { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.newlife-link p { margin: 0; color: var(--ink-2); }
.sheet-details { margin: 32px 0; }
.sheet-details > summary { list-style: none; width: 100%; }
.sheet-details > summary::-webkit-details-marker { display: none; }
.sheet-details[open] > summary { display: none; }
.respond-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.steps { padding-left: 20px; } .steps li { margin-bottom: 8px; }

/* About */
.about-teaser { display: flex; gap: 16px; align-items: flex-start; }
.about-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; flex: none; }
.leader { display: grid; gap: 20px; }
.leader-photo { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
@media (min-width: 720px) { .leader { grid-template-columns: 240px 1fr; align-items: start; } }
.socials { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--line); color: inherit; text-decoration: none; }

/* Forms */
.form { display: grid; gap: 20px; margin-top: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
fieldset.field, fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, legend { font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-2); }
.help-text { margin: 0; color: var(--ink-2); font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 400 16px/1.4 var(--ui);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
input[type=file] { font: 400 15px var(--ui); min-height: 44px; }
input[type=color] { width: 64px; height: 48px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.field--check label { font-weight: 500; }
.field--error input, .field--error textarea { border-color: var(--danger); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); margin: 0; font-size: 15px; font-weight: 500; }
.error-summary { border: 2px solid var(--danger); border-radius: var(--r-md); padding: 12px 16px; margin: 16px 0; }
.error-summary ul { margin: 0; padding-left: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

/* Bottom sheet / toast */
.sheet { position: fixed; inset: 0; z-index: 70; background: rgb(11 11 18 / .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet-panel { width: 100%; max-width: 480px; background: var(--surface); color: var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.sheet-title { font: 600 20px/1.3 var(--serif); margin: 0; }
.sheet-text { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) { .sheet { align-items: center; } .sheet-panel { border-radius: var(--r-lg); } }
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; background: var(--night); color: #fff; padding: 12px 18px; border-radius: var(--r-full); font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* Empty state */
.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); }
.empty svg { margin: 0 auto 8px; }
.empty-title { font-weight: 600; color: var(--ink); }

/* Footer */
.site-footer { position: relative; background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--brand) 35%, #0B0B12) 0%, var(--night) 60%); color: #D4D4D8; padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); margin-top: 32px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--dawn) 30%, #FFE7D6 50%, var(--dawn) 70%, transparent); opacity: .8; }
.site-footer a { color: #fff; }
.brand--footer { color: #fff; }
.footer-tagline { margin: 8px 0 0; }
.footer-links { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.copyright { font-size: 14px; color: #A1A1AA; margin: 0; }
.site-footer .socials a { border-color: rgb(255 255 255 / .2); }

/* ── Dew additions ─────────────────────────────────────── */
.eyebrow--dew { display: inline-flex; align-items: center; gap: 6px; color: var(--leaf); }
.drop-glyph { color: var(--leaf); flex: none; }
.section-tight { margin-top: 24px; }
.mist { background: linear-gradient(180deg, var(--mist) 0%, var(--mist-2) 100%); padding: 40px 0; margin-top: 48px; border-top: 1px solid color-mix(in srgb, var(--leaf) 12%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--leaf) 12%, transparent); }
.page-head { background: linear-gradient(180deg, var(--mist) 0%, var(--bg) 100%); padding: 32px 0 8px; }
.page-head .lead { margin-bottom: 16px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }

/* Portrait: an arch, like a window at sunrise, with a dawn glow behind */
.portrait { position: relative; margin: 0; isolation: isolate; }
.portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 999px 999px 24px 24px; border: 4px solid var(--surface); box-shadow: 0 18px 40px rgb(11 11 18 / .18); background: var(--surface-2); }
.portrait-glow { position: absolute; inset: -14px -14px 30% -14px; z-index: -1; border-radius: 999px 999px 40px 40px; background: radial-gradient(circle at 50% 80%, #FFE7D6, var(--dawn) 45%, color-mix(in srgb, var(--dawn) 0%, transparent) 72%); opacity: .7; filter: blur(2px); }
.portrait--lg { width: min(100%, 300px); aspect-ratio: 4 / 5; }
.portrait--md { width: 148px; aspect-ratio: 4 / 5; flex: none; }
.meet-leader { margin-top: 48px; padding: 36px 0; background: linear-gradient(160deg, var(--mist) 0%, var(--bg) 70%); }
.meet-leader-inner { display: flex; gap: 20px; align-items: flex-start; }
.meet-leader-text p { margin: 0 0 4px; }
@media (max-width: 479px) { .meet-leader-inner { flex-direction: column; } .portrait--md { width: 160px; } }
.leader-band { background: linear-gradient(180deg, var(--mist) 0%, var(--bg) 100%); padding: 40px 0; }
.leader { display: grid; gap: 28px; }
@media (min-width: 760px) { .leader { grid-template-columns: 300px 1fr; align-items: start; } }

/* Videos */
.video-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } .video-grid--home { grid-template-columns: 2fr 1fr; grid-auto-rows: auto; } .video-grid--home .video-card--large { grid-row: span 2; } }
.video-card { display: flex; flex-direction: column; gap: 10px; }
.video-thumb, .video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--night); border: 0; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.video-thumb:hover img { transform: scale(1.03); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(11 11 18 / .45)); }
.play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--primary); box-shadow: 0 0 0 6px rgb(255 255 255 / .25), 0 8px 24px rgb(0 0 0 / .3); }
.video-card--large .play { width: 72px; height: 72px; }
.video-title { font: 600 17px/1.35 var(--serif); margin: 0; }
.video-card--large .video-title { font-size: 21px; }
.video-meta p { margin: 4px 0 0; }

/* Contact */
.contact-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.contact-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dawn) 60%, transparent); flex: none; }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--leaf); background: var(--mist); }
.choice input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; }
.vision { padding: 20px; border-radius: var(--r-lg); background: var(--mist); }


/* ── Modern refresh (mobile first) ─────────────────────────── */
:root { --r-md: 18px; --r-lg: 26px; --shadow: 0 1px 2px rgb(11 11 18 / .05), 0 12px 32px -12px rgb(11 11 18 / .14); }
body { font-size: 16px; }
.wrap { padding: 0 20px; }
.section { margin-top: 56px; }
.h2 { letter-spacing: -.015em; }
.display { font-size: clamp(38px, 10vw, 64px); letter-spacing: -.025em; line-height: 1.02; }
.site-header { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.pill { min-height: 40px; padding: 0 16px; box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--primary) 60%, transparent); }

/* Hero: scene layers */
.hero { padding: 28px 0 108px; }
.dawn-art { position: absolute; inset: auto 0 0 0; height: 150px; z-index: -1; pointer-events: none; }
.dawn-glow { position: absolute; left: 50%; bottom: 10px; width: min(900px, 160vw); height: 260px; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 100%, rgb(255 225 160 / .75), rgb(242 180 90 / .25) 55%, transparent 75%); animation: breathe 9s ease-in-out infinite; }
.dawn-sun { position: absolute; left: 50%; bottom: 34px; width: 92px; height: 92px; margin-left: -46px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #FFF6DD 0 35%, #FFDFA0 60%, #F7C46F 100%); box-shadow: 0 0 60px 20px rgb(255 214 140 / .45); }
.dawn-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 86px; display: block; }
.dawn-grass { display: none; position: absolute; left: 0; right: 0; bottom: 18px; height: 70px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='70' viewBox='0 0 220 70'%3E%3Cdefs%3E%3CradialGradient id='d' cx='35%25' cy='30%25' r='70%25'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.45' stop-color='%23E4F7F0' stop-opacity='.8'/%3E%3Cstop offset='1' stop-color='%238FD3BE' stop-opacity='.4'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='none' stroke='%233F8A70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 70q-2.4 -22.0 -6 -40'/%3E%3Cpath d='M34 70q2.0 -29.7 5 -54'/%3E%3Cpath d='M58 70q-1.6 -18.7 -4 -34'/%3E%3Cpath d='M80 70q2.8 -33.0 7 -60'/%3E%3Cpath d='M104 70q-2.0 -23.1 -5 -42'/%3E%3Cpath d='M128 70q1.6 -27.5 4 -50'/%3E%3Cpath d='M150 70q-2.0 -19.8 -5 -36'/%3E%3Cpath d='M170 70q2.4 -31.9 6 -58'/%3E%3Cpath d='M194 70q-1.6 -24.2 -4 -44'/%3E%3Cpath d='M212 70q2.0 -17.6 5 -32'/%3E%3C/g%3E%3Ccircle cx='6' cy='28' r='3.2' fill='url%28%23d%29'/%3E%3Ccircle cx='39' cy='14' r='2.4' fill='url%28%23d%29'/%3E%3Ccircle cx='54' cy='34' r='2.4' fill='url%28%23d%29'/%3E%3Ccircle cx='87' cy='8' r='3.2' fill='url%28%23d%29'/%3E%3Ccircle cx='99' cy='26' r='2.4' fill='url%28%23d%29'/%3E%3Ccircle cx='132' cy='18' r='2.4' fill='url%28%23d%29'/%3E%3Ccircle cx='145' cy='32' r='3.2' fill='url%28%23d%29'/%3E%3Ccircle cx='176' cy='10' r='2.4' fill='url%28%23d%29'/%3E%3Ccircle cx='190' cy='24' r='2.4' fill='url%28%23d%29'/%3E%3Ccircle cx='217' cy='36' r='3.2' fill='url%28%23d%29'/%3E%3C/svg%3E") repeat-x left bottom / 220px 70px; animation: glint 6s ease-in-out infinite; }
@keyframes glint { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
.hero-inner { display: grid; gap: 20px; max-width: 1120px; }
.hero-tagline { margin: 0; font-size: 17px; max-width: 32ch; }
.hero-copy .hero-eyebrow { margin-bottom: 12px; }
.hero-more { margin-top: 10px; font-size: 15px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 170px; }
  .dawn-art { height: 210px; }
  .dawn-sun { width: 130px; height: 130px; margin-left: -65px; bottom: 50px; }
  .dawn-hills { height: 120px; }
  .dawn-grass { bottom: 30px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
  .hero-tagline { font-size: 20px; }
}

/* Meeting card */
.meeting { border-radius: var(--r-lg); padding: 18px; }
.meeting--hero { padding: 18px 18px 16px; }
.meeting-title { font-size: 19px; margin-bottom: 2px; }
.meeting-when { font-size: 22px; }
.meeting-home { font-size: 14px; margin-bottom: 12px; }
.meeting-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.meeting-actions .btn-primary { flex: 1 1 100%; }
@media (min-width: 480px) { .meeting-actions .btn-primary { flex: 0 1 auto; } }
/* Cards and sections */
.card { border-radius: var(--r-md); }
.dew-card .h2 { font-size: 24px; }
.mist { padding: 44px 0; }
.meet-leader { padding: 32px 0; }
@media (max-width: 479px) {
  .meet-leader-inner { flex-direction: row; align-items: flex-start; gap: 16px; }
  .portrait--md { width: 96px; }
  .portrait--md img { border-width: 3px; }
  .portrait--md .portrait-glow { inset: -8px -8px 30% -8px; }
  .meet-leader-text > p:not(.eyebrow) { display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Horizontal rails on phones (videos, testimonies) */
@media (max-width: 639px) {
  .rail, .scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scroll-padding-inline: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .rail::-webkit-scrollbar, .scroller::-webkit-scrollbar { display: none; }
  .rail > *, .scroller > * { scroll-snap-align: start; }
}

/* Videos: modern sans titles, clamped */
.video-title { font: 600 15px/1.35 var(--ui); letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card--large .video-title { font-size: 17px; }
.video-thumb, .video-frame { border-radius: 16px; box-shadow: var(--shadow); }
.play { width: 52px; height: 52px; background: rgb(255 255 255 / .92); color: var(--primary); box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.video-card--large .play { width: 64px; height: 64px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Brand (logo) */
.brand-mark { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand--footer .brand-mark { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-sub { font: 600 10px/1 var(--serif); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); }
.site-footer .brand-sub { color: var(--dawn); }
.hero-emblem { width: 132px; height: 132px; object-fit: contain; margin: -8px 0 6px -10px; filter: drop-shadow(0 10px 28px rgb(255 255 255 / .25)); }
.hero-subtitle { display: flex; align-items: center; gap: 12px; margin: -2px 0 14px; font: 600 15px/1 var(--serif); letter-spacing: .32em; text-transform: uppercase; color: var(--dawn); }
.hero-subtitle::before, .hero-subtitle::after { content: ""; height: 1px; width: 28px; background: linear-gradient(90deg, transparent, var(--dawn)); }
.hero-subtitle::after { transform: scaleX(-1); }
@media (min-width: 960px) {
  .hero-emblem { width: 180px; height: 180px; }
  .hero-subtitle { font-size: 18px; }
}

/* Special programme */
.special-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px 20px 24px; border: 1px solid color-mix(in srgb, var(--dawn) 35%, var(--line));
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--dawn) 22%, transparent), transparent 60%), linear-gradient(165deg, var(--mist), var(--surface) 70%); box-shadow: var(--shadow); }
.special-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--leaf) 16%, transparent), transparent 70%); pointer-events: none; }
.special-title { font-size: 26px; letter-spacing: .01em; }
.special-intro { font: 400 18px/1.6 var(--reading); margin: 0 0 18px; max-width: 60ch; }
.special-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.special-points li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); font: 600 15px/1.2 var(--ui); }
.leaf-glyph { flex: none; color: var(--leaf); }
.special-card--compact { margin: 8px 0 24px; padding: 20px 16px; }
.special-card--compact .special-title { font-size: 22px; }
.special-card--compact .special-intro { font-size: 16px; }
.special-card--compact .special-points { margin-bottom: 0; }
@media (min-width: 720px) {
  .special-card { padding: 40px 40px 36px; }
  .special-points { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; }
  .special-title { font-size: 34px; }
}

/* Dew: CAPS headings, picture or flyer, inline video */
.prose .prose-h { font: 600 20px/1.3 var(--serif); letter-spacing: .02em; margin: 1.6em 0 .6em; color: var(--primary); }
.prose .prose-h:first-child { margin-top: 0; }
.dew-figure { margin: 0 0 24px; }
.dew-figure img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.dew-figure figcaption { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.video-card--inline { margin: 0 0 1em; }
.dew-card--image { display: grid; }
.dew-card-img { width: calc(100% + 40px); max-width: none; margin: -24px -20px 18px; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-md) var(--r-md) 0 0; }
.dew-card--image::before { display: none; }
.menu-signin { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; color: var(--ink-2); font-weight: 600; }

/* "Built with AltarPage" badge (Standard plan). */
.ap-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: var(--r-full); border: 1px solid rgb(255 255 255 / .18); color: #E4E4E7; font-size: 13px; text-decoration: none; }
.ap-badge:hover { border-color: rgb(255 255 255 / .4); }
.brand-initial { display: inline-grid; place-items: center; flex: none; border-radius: 30%; background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--dawn))); color: #fff; font-weight: 800; line-height: 1; }
.give-links { display: grid; gap: 12px; margin: 24px 0; max-width: 420px; }
.give-bank { margin: 8px 0 20px; }
.give-bank .pre { font-size: 17px; line-height: 1.6; margin: 8px 0 14px; }

/* Give: online giving form */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-block { width: 100%; justify-content: center; }
.give-form { display: grid; gap: 4px; margin: 20px 0; }
.give-form fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.give-form legend { font-weight: 600; margin-bottom: 8px; }
.give-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.give-seg label, .give-chips label { position: relative; cursor: pointer; }
.give-seg input, .give-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.give-seg span { display: block; text-align: center; overflow-wrap: anywhere; padding: 10px 6px; border-radius: 999px; font-weight: 600; min-height: 24px; }
.give-seg input:checked + span { background: var(--primary); color: var(--primary-ink); }
.give-seg input:focus-visible + span, .give-chips input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.give-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.give-chips span { display: block; text-align: center; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: var(--r-md, 12px); font-weight: 700; background: var(--surface); }
.give-chips input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); }
.give-other { display: block; font-weight: 500; margin: 4px 0 6px; }
.give-form #f-amount { font-size: 20px; font-weight: 700; }
.give-cover { padding: 12px; border-radius: var(--r-md, 12px); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); margin-bottom: 12px; }
.give-cover .help-text { display: block; margin-top: 4px; font-weight: 600; }
.give-secure { text-align: center; margin: 10px 0 0; }
.give-other-ways { margin-top: 28px; }
.give-big { font-size: 56px; margin: 0; }
.give-facts { display: grid; gap: 12px; margin: 16px 0 20px; }
.give-facts dt { font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.give-facts dd { margin: 2px 0 0; }

/* Word formatting: quotes, lists, dividers */
.prose .prose-quote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--primary); font-style: italic; color: var(--ink); }
.prose .prose-quote p { margin: 0; }
.prose .prose-list { margin: 0 0 1em; padding-left: 1.3em; }
.prose .prose-list li { margin: 0 0 .45em; padding-left: .2em; }
.prose .prose-list li::marker { color: var(--primary); font-weight: 700; }
.prose .prose-hr { border: 0; height: 1px; margin: 2em auto; width: 40%; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.prose strong { font-weight: 700; color: var(--ink); }

/* Home: leader without a photo, and tighter rhythm after the hero */
.hero + .meet-leader, .hero + * + .meet-leader { margin-top: 0; }
.leader-initials { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--dawn))); color: var(--primary-ink); font: 700 28px/1 var(--ui); letter-spacing: .02em; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent); }
@media (max-width: 479px) { .meet-leader--initials .meet-leader-inner { flex-direction: row; align-items: center; } }
.meet-leader--initials .h2 { margin: 2px 0 8px; }

/* ══════════════════════════════════════════════════════════════════════════
   Templates (body.tpl-classic | tpl-bold | tpl-dawn) and the home sections they share.
   Built at 360px first; desktop is the enhancement.
   ══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url(/assets/fonts/fraunces-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url(/assets/fonts/fraunces-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(/assets/fonts/montserrat-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(/assets/fonts/montserrat-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Buttons used on photos and dark bands */
.btn-glass { background: rgb(255 255 255 / .14); color: #fff; border-color: rgb(255 255 255 / .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgb(255 255 255 / .22); }
.btn-light { background: #fff; color: #0B0B12; }
.btn-light:hover { filter: brightness(.95); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-text--light { color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero2 { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--night); }
.hero2--art { background: var(--hero); padding-bottom: 150px; }
.hero2-media { position: absolute; inset: 0; z-index: -2; }
.hero2-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero2--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 8 14 / .35) 0%, rgb(8 8 14 / .25) 30%, rgb(8 8 14 / .78) 72%, rgb(8 8 14 / .92) 100%), linear-gradient(90deg, color-mix(in srgb, var(--brand) 35%, transparent) 0%, transparent 60%); }
.hero2-inner { display: grid; gap: 24px; padding-top: clamp(96px, 30vh, 220px); padding-bottom: 28px; }
.hero2--art .hero2-inner { padding-top: 40px; }
.hero2-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: var(--r-full); background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); color: #FFE7D6; font: 600 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.hero2-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dawn); }
.hero2-title { font: 600 clamp(40px, 11vw, 84px)/1.02 var(--serif); letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; text-shadow: 0 2px 30px rgb(0 0 0 / .35); }
.hero2-subtitle { margin: -4px 0 10px; font: 600 15px/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #FFE7D6; }
.hero2-tagline { margin: 0 0 22px; font-size: 18px; line-height: 1.5; color: #E4E4E7; max-width: 34ch; }
.hero2-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero2-ctas .btn { flex: 1 1 140px; }
.hero2-side .meeting--hero { margin: 0; }

/* A new believer's first steps (a plain numbered list; not the home page's "steps" section). */
.nl-steps { margin: 0 0 24px; padding-left: 1.5em; display: grid; gap: 10px; line-height: 1.5; }
.nl-steps li::marker { color: var(--primary); font-weight: 800; }

/* ── Next steps ─────────────────────────────────────────────────────────── */
.steps { padding: 40px 0 8px; }
.steps-title { margin-bottom: 16px; }
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s var(--ease), border-color .15s; }
.step:hover, .step:focus-visible { border-color: var(--primary); transform: translateY(-1px); }
.step-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--primary); }
.step-text { display: grid; gap: 2px; min-width: 0; }
.step-text strong { font: 600 17px/1.25 var(--serif); }
.step-text span { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.step-arrow { margin-left: auto; color: var(--ink-2); flex: none; }

/* ── Word feature ───────────────────────────────────────────────────────── */
.feature { padding: 44px 0; }
.feature-inner { display: grid; gap: 20px; }
.feature-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); }
.feature-copy .h1 { margin: 6px 0 12px; }
.feature-copy .h1 a { color: inherit; text-decoration: none; }
.feature-copy .h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.feature-text { font: 400 18px/1.65 var(--reading); color: var(--ink); margin: 0 0 18px; }

/* ── Leader band ────────────────────────────────────────────────────────── */
.leader-band { position: relative; color: #fff; background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--brand) 55%, var(--night)) 0%, var(--night) 65%); padding: 48px 0; margin-top: 8px; }
.leader-band-inner { display: grid; gap: 24px; align-items: center; }
.leader-band-media .portrait--lg { width: min(78%, 320px); }
.leader-band-initials { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--dawn))); font: 700 40px/1 var(--ui); box-shadow: 0 16px 40px rgb(0 0 0 / .35); }
.leader-band .eyebrow { color: #FFE7D6; }
.leader-band .h1 { color: #fff; font-size: clamp(30px, 8vw, 52px); line-height: 1.08; }
.leader-band-bio { font: 400 18px/1.6 var(--reading); color: #E4E4E7; margin: 0 0 20px; max-width: 56ch; }

/* ── Give band ──────────────────────────────────────────────────────────── */
.give-band { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--dawn))); color: #fff; padding: 40px 0; margin-top: 40px; }
.give-band-inner { display: grid; gap: 18px; align-items: center; }
.give-band .h1 { color: #fff; margin: 0 0 6px; }
.give-band p { margin: 0; font-size: 18px; color: rgb(255 255 255 / .9); max-width: 48ch; }

/* ── Footer columns ─────────────────────────────────────────────────────── */
.footer-grid { display: grid; gap: 28px; }
.footer-col h2 { font: 600 13px/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: #A1A1AA; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { color: #E4E4E7; text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); }

@media (min-width: 600px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero2-inner { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 56px; padding-top: 180px; padding-bottom: 64px; min-height: min(88vh, 860px); }
  .hero2--art .hero2-inner { min-height: 0; padding-top: 72px; align-items: center; }
  .hero2-ctas .btn { flex: 0 0 auto; }
  .steps { padding-top: 64px; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .step { min-height: 104px; padding: 20px; }
  .feature { padding: 72px 0; }
  .feature-inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .leader-band { padding: 80px 0; }
  .leader-band-inner { grid-template-columns: 340px 1fr; gap: 64px; }
  .leader-band-initials { width: 220px; height: 220px; font-size: 80px; }
  .give-band { padding: 56px 0; }
  .give-band-inner { grid-template-columns: 1fr auto; }
}

/* ── Classic: warm paper, serif headlines, soft photography ─────────────── */
.tpl-classic { --serif: "Fraunces", Georgia, "Times New Roman", serif; --bg: color-mix(in srgb, var(--brand) 3%, #FBF8F3); }
.tpl-classic .h1, .tpl-classic .h2, .tpl-classic .display { font-weight: 600; letter-spacing: -.015em; }
.tpl-classic .feature { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tpl-classic { --bg: #0E0D0B; } }

/* ── Bold: heavy uppercase, dark bands, sharp corners ───────────────────── */
.tpl-bold { --serif: "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif; --r-md: 6px; --r-lg: 8px; }
.tpl-bold .hero2-title, .tpl-bold .h1, .tpl-bold .h2, .tpl-bold .display { font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; }
.tpl-bold .hero2-title { font-size: clamp(42px, 12.5vw, 104px); }
.tpl-bold .hero2--photo::before { background: linear-gradient(180deg, rgb(0 0 0 / .45) 0%, rgb(0 0 0 / .35) 35%, rgb(0 0 0 / .85) 75%, #000 100%); }
.tpl-bold .hero2 { background: #000; }
.tpl-bold .btn { border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.tpl-bold .btn-primary { font-size: 14px; }
.tpl-bold .steps { background: #0B0B0F; color: #fff; padding-bottom: 44px; }
.tpl-bold .steps .h2 { color: #fff; }
.tpl-bold .step { background: #16161C; border-color: #2A2A33; color: #fff; box-shadow: none; }
.tpl-bold .step-text span { color: #A1A1AA; }
.tpl-bold .step-icon { background: color-mix(in srgb, var(--brand) 30%, #16161C); color: #fff; }
.tpl-bold .step-text strong { font: 800 15px/1.25 var(--serif); text-transform: uppercase; letter-spacing: .01em; }
.tpl-bold .leader-band { background: var(--brand); }
.tpl-bold .leader-band-initials { background: #0B0B0F; }
.tpl-bold .give-band { background: #0B0B0F; margin-top: 0; }
.tpl-bold .eyebrow { letter-spacing: .14em; }

/* ── Dawn: the illustrated sunrise ──────────────────────────────────────── */
.tpl-dawn .hero2-title { font-weight: 600; }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.tpl-classic main, .tpl-bold main, .tpl-dawn main { min-height: 0; }
main > :last-child { margin-bottom: 0; }
.newlife-card { margin-bottom: 8px; }
.sample-ribbon { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: center; padding: 8px 16px; background: #0B0B12; color: #E4E4E7; font: 600 13px/1.3 var(--ui); text-align: center; }
.sample-ribbon a { color: #fff; }

/* ── Follow (notifications) ─────────────────────────────────────────── */
.follow-cta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin: 28px 0; padding: 16px 18px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line)); }
.follow-cta-icon { font-size: 26px; line-height: 1; grid-row: span 2; align-self: start; }
.follow-cta-title { margin: 0; font-weight: 700; }
.follow-cta-body { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.follow-cta .btn { grid-column: 1 / -1; justify-self: stretch; margin-top: 8px; }
@media (min-width: 640px) {
  .follow-cta { grid-template-columns: auto 1fr auto; }
  .follow-cta-icon { grid-row: auto; align-self: center; }
  .follow-cta .btn { grid-column: auto; margin-top: 0; justify-self: end; }
}
.follow-card { margin: 20px 0; }
.follow-card h2 { margin-top: 0; }
.follow-topics { border: 0; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
.follow-topics .help-text { display: block; margin: 2px 0 0; font-weight: 400; }
.follow-status { min-height: 1.4em; margin: 8px 0; color: var(--ink-2); }
.follow-status:empty { min-height: 0; margin: 0; }
.follow-card .btn + .btn { margin-top: 10px; }
.follow-off { margin-top: 16px; }
.follow .notice { border-radius: var(--r-md); padding: 12px 16px; margin: 12px 0; }
.follow .notice--ok { background: color-mix(in srgb, var(--ok, #16a34a) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok, #16a34a) 40%, transparent); }

/* ── In person: venues, Plan your visit ─────────────────────────────── */
.platform-chip--place { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.meeting-venue { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 15px; line-height: 1.45; }
.meeting-venue .icon { flex: none; margin-top: 2px; color: var(--primary); }
.meeting-venue-note { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.meeting-actions .btn-secondary { flex: 1 1 auto; }
.visit-link { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; margin-top: 24px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.visit-link span { color: var(--ink-2); font-size: 15px; grid-column: 1; }
.visit-link .icon { grid-row: 1 / span 2; grid-column: 2; }
.visit-link:hover { border-color: var(--ink-2); }
.visit-hero { padding: 40px 0 28px; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 9%, var(--bg)), var(--bg)); }
.visit-hero .lead { max-width: 36ch; }
.visit-block { margin: 0 0 36px; }
.visit-block.card { padding: 22px; }
.visit-times { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.visit-times a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.visit-times a:hover { border-color: var(--ink-2); }
.visit-times strong { font-size: 17px; }
.visit-address { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; margin: 0 0 12px; }
.visit-address .icon { flex: none; margin-top: 3px; color: var(--primary); }
.visit-directions { color: var(--ink-2); }
.footer-address { font-style: normal; margin: 14px 0 0; line-height: 1.6; opacity: .9; }
.footer-address a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) {
  .visit-hero { padding: 64px 0 40px; }
  .visit-times { grid-template-columns: 1fr 1fr; }
}

/* ── Share as a picture ───────────────────────────────────────────── */
.share-picture { margin: 12px 0 0; }
.share-cards .segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; flex-direction: column; gap: 2px; min-height: 56px; justify-content: center; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); font: 700 16px/1.2 var(--ui); cursor: pointer; }
.segmented small { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.segmented input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus, #2F80ED); outline-offset: 2px; }
.share-all { margin-bottom: 16px; }
.card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.card-list li, .card-flyer { display: grid; gap: 10px; justify-items: start; }
.card-list img, .card-flyer img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-set--status .card-list img { max-width: 360px; }
.card-flyer { margin-top: 36px; }
@media (min-width: 720px) { .card-set--post .card-list { grid-template-columns: 1fr 1fr; } }

/* "Edit your site": shown to the site's own team (see site.js) */
.admin-strip { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; background: var(--ink); color: var(--surface); font: 600 15px/1.2 var(--ui); text-decoration: none; }
.admin-strip:hover, .admin-strip:focus-visible { text-decoration: underline; }
/* Ministers serving in a church: "Serving at" (footer, About) and a church's Ministers page. Phone first. */
.footer-serving { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; line-height: 1.4; }
.footer-serving img { width: 28px; height: 28px; border-radius: var(--r-md); object-fit: contain; background: #fff; flex: none; }
.footer-serving a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.serving-card { border-top: 1px solid var(--line); }
.serving-row { display: flex; align-items: center; gap: 14px; }
.serving-row img { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.serving-row .lead { margin: 0; }
.minister-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .minister-list { grid-template-columns: 1fr 1fr; } }
.minister-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.minister-card .h3 { margin: 0 0 2px; }
.minister-card p { margin: 4px 0 0; }
.minister-photo { width: 72px; height: 72px; border-radius: var(--r-full); object-fit: cover; flex: none; background: var(--surface); }
.minister-text { min-width: 0; overflow-wrap: anywhere; }
.minister-head { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.minister-head .minister-photo { width: 96px; height: 96px; }
.minister-head .h1 { margin: 0; }
.minister-words { padding-left: 1.1em; }
.minister-words li { margin: 8px 0; }
.serving-card .prose { margin-top: 12px; }

/* Listen again (AltarPage Rooms recordings) */
.recording-list { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 16px; }
.recording-card { padding: 16px; }
.recording-card audio { width: 100%; margin-top: 10px; }
.recording-card video { width: 100%; margin-top: 10px; border-radius: 12px; background: #000; }

/* ══════════════════════════════════════════════════════════════════════════
   Design tokens, v2. The ministry's colour (--brand) stays the source of truth; these set the rhythm.
   New components below use only these; older rules above keep working and are overridden where redesigned.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Spacing: a 4px base. */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;
  /* Type: UI sizes fixed, headings fluid between 360px and desktop. */
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 18px; --t-xl: 21px;
  --t-h3: 19px; --t-h2: clamp(22px, 5.4vw, 30px); --t-h1: clamp(28px, 7vw, 42px); --t-display: clamp(38px, 10.5vw, 80px);
  /* Layout */
  --wrap: 1120px; --wrap-reading: 720px; --gutter: 20px;
  /* Shape and depth */
  --r-xs: 6px; --elev-1: 0 1px 2px rgb(11 11 18 / .06); --elev-2: 0 1px 2px rgb(11 11 18 / .05), 0 12px 32px -12px rgb(11 11 18 / .16); --elev-3: 0 24px 48px -16px rgb(11 11 18 / .28);
  /* Motion */
  --d-fast: 120ms; --d: 200ms; --d-slow: 320ms; --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* Navigation and device insets */
  --header-h: 56px; --tabbar-h: 58px; --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --tint: color-mix(in srgb, var(--primary) 9%, var(--surface)); --tint-line: color-mix(in srgb, var(--primary) 22%, var(--line));
}
.wrap { padding-inline: var(--gutter); }
@media (max-width: 359px) { :root { --gutter: 16px; } }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { padding-top: var(--safe-t); }
.header-inner { height: var(--header-h); gap: var(--s-2); }
.brand { gap: 10px; min-width: 0; }
.brand-text { min-width: 0; }
.brand-name { display: block; font-size: 17px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .brand-mark, .brand .brand-initial { width: 36px; height: 36px; }
.app-back { margin-left: -10px; }
.menu-open--header { display: none; }
.header-actions .pill { min-height: 38px; padding: 0 16px; font-size: 15px; box-shadow: none; }
@media (max-width: 899px) { .header-actions .pill { display: none; } }
.nav-inline { display: none; }
@media (min-width: 900px) {
  .nav-inline { display: flex; align-items: center; gap: var(--s-1); margin-left: var(--s-6); }
  .nav-inline a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-full); color: var(--ink-2); font: 600 15px/1 var(--ui); text-decoration: none; transition: color var(--d-fast), background var(--d-fast); }
  .nav-inline a:hover { color: var(--ink); background: var(--surface-2); }
  .nav-inline a[aria-current="page"] { color: var(--ink); background: var(--tint); }
  .nav-inline .menu-open { display: inline-flex; }
}

/* Menu: full screen on phones, a side panel on wide screens. */
.menu-sheet { padding-top: var(--safe-t); }
.menu-links a { font-size: 22px; padding: 14px 0; }
@media (min-width: 900px) {
  .menu-sheet { left: auto; width: min(420px, 100%); border-left: 1px solid var(--line); box-shadow: var(--elev-3); }
}

/* Offline notice under the header */
.offline-strip { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--gutter); background: var(--surface-2); color: var(--ink); border-bottom: 1px solid var(--line); font: 600 14px/1.35 var(--ui); }
.offline-note { margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line)); font-weight: 600; }

/* ── Phone tab bar: compact, flat, no floating button ───────────────────── */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; padding: 0 var(--s-1) var(--safe-b); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
.tabbar a { flex: 1 1 0; min-width: 0; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-2); text-decoration: none; font: 600 11px/1.1 var(--ui); -webkit-tap-highlight-color: transparent; }
.tab-icon { position: relative; display: grid; place-items: center; width: 56px; height: 30px; border-radius: var(--r-full); transition: background var(--d) var(--ease-out), color var(--d); }
.tab-label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] .tab-icon { background: var(--tint); color: var(--primary); }
.tabbar a:active .tab-icon { background: var(--surface-2); }
.tab-join .live-dot { display: none; position: absolute; top: 3px; right: 12px; width: 8px; height: 8px; }
.tab-join.is-live { color: var(--live-ink); }
.tab-join.is-live .tab-icon { background: var(--live); color: #fff; }
.tab-join.is-live .live-dot { display: block; background: #fff; }
.tab-join.is-live .tab-label { color: var(--live-ink); font-weight: 700; }
body:has(.tabbar) main { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--s-8)); }
body:has(.tabbar) .site-footer { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--s-8)); }
body:has(.tabbar) .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--s-3)); }
/* Phones: while a meeting is on, a big red Join sits just above the tab bar on every page (the tab alone was too easy
   to miss). It stays put as people scroll, so Join is always under the thumb. */
body:has(.tabbar) .join-bar { bottom: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: 8px; }
.join-bar[hidden] { display: none; }
body:has(.join-bar:not([hidden])) main { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 72px); }
@media (min-width: 900px) {
  .tabbar { display: none; }
  body:has(.tabbar) main { padding-bottom: var(--s-16); }
  body:has(.tabbar) .site-footer { padding-bottom: var(--s-12); }
  body:has(.tabbar) .toast { bottom: var(--s-6); }
  .join-bar { display: block; left: auto; right: var(--s-6); bottom: var(--s-6) !important; width: 340px; padding: 0; background: none; }
  .join-bar[hidden] { display: none; }
}
/* Tablets: keep the bar a comfortable width rather than stretched edge to edge. */
@media (min-width: 600px) and (max-width: 899px) {
  .tabbar { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: max(var(--s-3), var(--safe-b)); padding-bottom: 0; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--elev-2); }
  body:has(.tabbar) main { padding-bottom: calc(var(--tabbar-h) + var(--s-12)); }
  body:has(.tabbar) .join-bar { left: 50%; right: auto; width: 560px; transform: translateX(-50%); padding: 0; background: none; bottom: calc(var(--tabbar-h) + max(var(--s-3), var(--safe-b)) + var(--s-2)); }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero2-inner { gap: var(--s-6); padding-top: clamp(88px, 24svh, 220px); padding-bottom: var(--s-6); }
.hero2--art .hero2-inner { padding-top: var(--s-10); }
.hero2-eyebrow { margin-bottom: var(--s-3); }
.hero2-title { font-size: var(--t-display); margin-bottom: var(--s-2); }
.tpl-bold .hero2-title { font-size: clamp(40px, 12vw, 104px); }
.hero2-tagline { margin-bottom: var(--s-5); font-size: 17px; }
.hero2-ctas { gap: var(--s-2); }
.hero2-ctas .btn { flex: 1 1 auto; min-height: 50px; padding: 0 20px; font-size: 16px; }
.hero2-ctas .btn-primary { flex-basis: 100%; }
@media (min-width: 420px) { .hero2-ctas .btn-primary { flex-basis: auto; } }
.hero2-side .meeting { margin: 0; }
@media (min-width: 900px) {
  .hero2-inner { padding-top: 160px; padding-bottom: var(--s-16); min-height: min(84vh, 820px); }
  .hero2-tagline { font-size: 20px; }
  .hero2-ctas .btn { flex: 0 0 auto; }
}

/* ── Next meeting: a calm summary, not a clock ──────────────────────────── */
.meeting--next { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--elev-3); }
.meeting--next .meeting-status { margin-bottom: var(--s-2); }
.meeting--next .next-label { font-size: var(--t-xs); }
.meeting--next .meeting-title { font-size: var(--t-xl); margin: 0 0 var(--s-1); }
.meeting--next .meeting-title a { color: inherit; text-decoration: none; }
.meeting--next .meeting-title a:hover { text-decoration: underline; }
.meeting--next .meeting-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-2); font-size: 17px; font-weight: 600; margin: 0 0 var(--s-1); }
.meeting--next .meeting-home { margin: 0; font-size: var(--t-sm); font-weight: 400; color: var(--ink-2); }
.meeting--next .meeting-home-time:empty { display: none; }
.meeting-where { display: flex; gap: var(--s-2); align-items: flex-start; margin: 0 0 var(--s-4); color: var(--ink-2); font-size: var(--t-sm); line-height: 1.4; }
.meeting-where .icon { margin-top: 1px; color: var(--primary); }
.meeting--next .meeting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.meeting--next .meeting-actions .btn { flex: 0 1 auto; }
.meeting--next.is-live { border-color: color-mix(in srgb, var(--live) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent), var(--elev-3); }
.cd-line { margin-left: auto; display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-full); background: var(--surface-2); color: var(--ink); font: 600 13px/1 var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.meeting.is-live .cd-line { background: color-mix(in srgb, var(--live) 14%, var(--surface)); color: var(--live-ink); }
.meeting-cd { margin: 0 0 var(--s-3); }
.meeting-cd .cd-line { margin-left: 0; }
.meeting-status .platform-chip + .cd-line, .meeting-status .cd-line + .platform-chip { margin-left: 0; }

/* ── Next steps: fewer, clearer ─────────────────────────────────────────── */
.steps { padding: var(--s-10) 0 0; }
.step { min-height: 72px; box-shadow: var(--elev-1); }

/* ── Link rows (prayer, menu install) ───────────────────────────────────── */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.link-row, .install-row { display: flex; align-items: center; gap: var(--s-4); width: 100%; min-height: 72px; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: border-color var(--d-fast), transform var(--d-fast) var(--ease-out); }
.link-row:hover, .install-row:hover { border-color: var(--tint-line); }
.link-row:active, .install-row:active { transform: scale(.99); }
.link-row-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--primary); }
.link-row-text { display: grid; gap: 2px; min-width: 0; }
.link-row-text strong { font: 600 16px/1.3 var(--ui); }
.link-row-text span { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.4; }
.link-row-arrow { margin-left: auto; flex: none; color: var(--ink-2); }

/* ── Prayer ─────────────────────────────────────────────────────────────── */
.pray { margin-top: var(--s-12); padding: var(--s-12) 0; background: linear-gradient(180deg, var(--mist) 0%, var(--bg) 100%); border-top: 1px solid color-mix(in srgb, var(--leaf) 12%, transparent); }
.pray-inner { display: grid; gap: var(--s-6); }
.pray .h1 { font-size: var(--t-h1); margin: 0 0 var(--s-2); text-wrap: balance; }
.pray-lead { margin: 0; color: var(--ink-2); font-size: var(--t-lg); max-width: 36ch; }
@media (min-width: 900px) { .pray { padding: var(--s-20) 0; } .pray-inner { grid-template-columns: 1fr 1.1fr; gap: var(--s-16); align-items: center; } }
.tpl-bold .pray { background: var(--surface-2); }

/* ── Testimonies: whole stories, no sideways scrolling ──────────────────── */
.testimony-grid { display: grid; gap: var(--s-3); margin: var(--s-4) 0 var(--s-2); }
.testimony-grid .card { padding: var(--s-5); }
.clamp-6 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; margin: 0 0 var(--s-3); }
@media (min-width: 720px) { .testimony-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-4); } }

/* ── Get updates: icon, not emoji ───────────────────────────────────────── */
.follow-cta-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--primary); font-size: 0; }

/* ── Install ────────────────────────────────────────────────────────────── */
.install { margin: var(--s-6) 0 0; }
.install-row { min-height: 64px; }
.install-ios { margin: var(--s-2) 0 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.install-ios .icon { vertical-align: -3px; }
.install-nudge { margin-top: var(--s-10); }
.install-card { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--tint); border: 1px solid var(--tint-line); }
.install-title { margin: 0; font-weight: 700; }
.install-text { margin: 2px 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); }
.install-actions .btn[hidden] { display: none; }

/* ── Installed app (standalone) ─────────────────────────────────────────── */
.is-app .site-header.is-hidden { transform: none; }
.is-app .ap-badge { display: none; }

/* ── Offline page ───────────────────────────────────────────────────────── */
.offline-page [data-saved-pages] { margin-top: var(--s-10); }

@media (prefers-reduced-motion: reduce) { .link-row, .install-row, .tab-icon { transition: none; } }

/* Forms never grow past their container (a long <select> option used to push them off a 320px screen). */
.form { grid-template-columns: minmax(0, 1fr); }
select { max-width: 100%; text-overflow: ellipsis; }

/* A called-off date ("Not meeting on Wed 14 Oct. Next: Wed 21 Oct.") */
.meeting-off { display: flex; gap: var(--s-2); align-items: flex-start; margin: 0 0 var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: color-mix(in srgb, var(--dawn) 16%, var(--surface)); color: var(--ink); font: 600 14px/1.4 var(--ui); }
.meeting-off .icon { margin-top: 2px; flex: none; }

/* Live panel on /join/<slug> (src/routes/public/panel.tsx). Calm like a music player: cover art, title, one play
   control, then a plain list of things to do. One primary action; no boxes inside boxes. */
.lp { display: grid; gap: 20px; margin: 4px 0 28px; }
.lp-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.lp-art { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; flex: none; background: var(--primary); }
.lp-art--i { display: grid; place-items: center; color: var(--primary-ink); font: 700 36px/1 var(--ui); }
.lp-head-text { min-width: 0; flex: 1 1 140px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.lp-status { margin: 0; display: flex; align-items: center; gap: 6px; font: 600 12px/1.4 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lp.is-live .lp-status { color: var(--live-ink); }
.lp-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .lp-pulse, .live-dot { animation: none; } }
.lp-title { margin: 0; font: 700 22px/1.2 var(--ui); letter-spacing: -.01em; overflow-wrap: anywhere; }
.lp-name { margin: 0; font-size: 14px; color: var(--ink-2); }
.lp-listen { display: grid; gap: 8px; }
.lp-play { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 0; background: none; border: 0; color: var(--ink); text-align: start; font: inherit; cursor: pointer; }
.lp-play-btn { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); transition: transform .12s var(--ease); }
.lp-play--primary .lp-play-btn { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.lp-play:hover .lp-play-btn { transform: scale(1.04); }
.lp-play:active .lp-play-btn { transform: scale(.96); }
.lp-play-text { display: grid; }
.lp-play-text strong { font-size: 16px; }
.lp-play-text small { font-size: 13px; color: var(--ink-2); }
.lp-player { border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.lp-frame { display: block; width: 100%; height: 180px; border: 0; }
.lp-frame--video { height: auto; aspect-ratio: 16 / 9; }
.lp-actions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lp-actions li { border-bottom: 1px solid var(--line); }
.lp-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 2px; background: none; border: 0; color: var(--ink); font: 500 16px/1.3 var(--ui); text-align: start; text-decoration: none; cursor: pointer; }
.lp-row-icon { display: grid; place-items: center; width: 24px; color: var(--primary); }
.lp-row-label { flex: 1; }
.lp-row-chev { color: var(--ink-2); opacity: .6; }
.lp-row:hover .lp-row-label { text-decoration: underline; text-underline-offset: 3px; }
.lp-foot { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.lp-note { margin: 4px 0 0; color: var(--ink-2); font: 400 var(--t-sm)/1.4 var(--ui); }
.lp-note:empty { display: none; }
.lp-quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; background: none; border: 0; color: var(--ink-2); font: 500 14px/1.3 var(--ui); text-decoration: none; cursor: pointer; }
.lp-quiet:hover { color: var(--ink); }
.lp-net { margin: 0; color: var(--ink-2); font-size: 14px; }
.lp-follow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.lp-follow p { margin: 0; font-size: 14px; font-weight: 600; }
.lp-sheet { width: min(100% - 16px, 480px); max-height: 90dvh; margin: auto auto 8px; padding: 20px 16px; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); }
.lp-sheet::backdrop { background: rgb(11 11 18 / .5); }
.lp-sheet form { display: grid; gap: 10px; }
.lp-sheet textarea, .lp-sheet input:not([type=checkbox]) { width: 100%; }
.lp-sheet .h3 { margin: 0; font-family: var(--ui); font-size: 18px; }
.lp-more summary { cursor: pointer; color: var(--ink-2); padding: 6px 0; font-size: 14px; }
.lp-more { display: grid; gap: 8px; }
.lp-msg { margin: 0; min-height: 1.4em; font-weight: 600; font-size: 14px; }
.lp-sheet-actions { display: flex; gap: 12px; align-items: center; }
.lp-sheet-actions .btn { flex: 1; }
@media (min-width: 640px) { .lp-sheet { margin: auto; } .lp-art { width: 120px; height: 120px; } .lp-title { font-size: 28px; } }
.lp-audio, [data-replay-audio] { width: 100%; }
.ap-invite { margin: 28px 0 0; text-align: center; font-size: 13px; }
.ap-invite a { color: var(--ink-2); text-decoration: none; opacity: .85; }
.ap-invite a:hover { text-decoration: underline; }
.lp-follow { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.lp-follow p { margin: 0; font-weight: 600; }

/* ── Quiet: the design system's final word (docs/design-system.md) ────────────────────────────────────────────────
   Calm like a good music app: hairlines instead of shadows, one primary action per screen, a small type scale,
   controls no bigger than they need to be, no decoration that doesn't help. Everything above defers to this. */
:root { --r-sm: 8px; --r-md: 14px; --r-lg: 18px; --shadow: none; }
.section { margin-top: 36px; }
.pill { box-shadow: none; }
.card, .meeting, .special-card, .video-thumb, .video-frame, .step, .respond-panel, .newlife-card { box-shadow: none; }
.play { box-shadow: none; }
.meeting-when { font-size: 20px; }
.special-card { background: var(--surface); border-color: var(--line); padding: 20px; }
.special-card::after { display: none; }
.special-title { font-size: 22px; }
.special-intro { font-size: 16px; }
.labelled { padding: 16px; }
.h1 { font-size: 26px; }
.display { font-size: clamp(32px, 9vw, 52px); }
.toast { box-shadow: var(--shadow-pop); }
/* Quiet: the home page. One filled action in the hero; the other is a quiet link. Next steps are rows, not tiles. */
.hero2-ctas .btn { min-height: 48px; }
.hero2-ctas .btn-glass { background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; min-height: 40px; font-weight: 600; }
.hero2-ctas .btn-glass:hover { background: rgb(255 255 255 / .08); }
.steps-grid { gap: 0; border-top: 1px solid var(--line); }
.step, .tpl-bold .step { min-height: 64px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.step:hover, .step:focus-visible { transform: none; border-color: var(--line); }
.step-icon, .tpl-bold .step-icon { width: 24px; height: 24px; border-radius: 0; background: none; color: var(--primary); }
.step-text strong { font: 600 16px/1.3 var(--ui); }
.tpl-bold .step-text strong { font: 600 16px/1.3 var(--ui); text-transform: none; }
.step-arrow { opacity: .6; }
.link-list { gap: 0; border-top: 1px solid var(--line); }
.link-row, .install-row { min-height: 64px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.link-row:active, .install-row:active { transform: none; opacity: .7; }
.link-row-icon { width: 24px; height: 24px; border-radius: 0; background: none; }
.link-row-arrow { opacity: .6; }
/* Quiet: say a time once; "Get updates" as one quiet row, not a tinted box. */
.meeting-home-time:empty, .meeting-home-time:empty + .meeting-home-sep { display: none; }
.follow-cta, .follow-cta:where(*) { grid-template-columns: auto 1fr auto; gap: 2px 12px; margin: 24px 0; padding: 10px 10px 10px 14px; border: 0; border-radius: 14px; background: var(--surface-2); }
.follow-cta-icon { grid-row: span 2; align-self: center; width: auto; height: auto; background: none; color: var(--primary); }
.follow-cta-title { font: 600 15px/1.3 var(--ui); }
.follow-cta-body { margin: 0; font-size: 13px; }
.follow-cta .btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; justify-self: end; }
/* The ministry's own account number on the Give page (GIVE-5): the one thing to read out or copy. */
.give-acct { margin: 16px 0 8px; padding: 14px 8px 14px 16px; border-radius: 14px; background: var(--surface-2); }
.give-acct-label { margin: 0; font: 600 12px/1.4 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.give-acct-number { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0; font: 700 26px/1.2 var(--ui); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.give-acct-number .icon-btn { color: var(--primary); }
.give-acct-meta { margin: 0; font-size: 14px; color: var(--ink-2); }
.give-or { margin: 20px 0 8px; font-size: 14px; color: var(--ink-2); }
.lp-report { margin: 4px 0 24px; text-align: center; font-size: 12px; }
.lp-report a { color: var(--ink-2); }
/* The broadcast first: a "now playing" card under the hero in every template. */
.np { position: relative; z-index: 2; margin-top: 16px; display: grid; gap: 8px; }
.np-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.np-card:active { transform: scale(.98); }
.np-card--live { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.np-art { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.np-art--i { display: grid; place-items: center; background: var(--primary); color: #fff; font: 800 24px/1 var(--ui); }
.np-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.np-text strong { font: 700 16px/1.3 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-label { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1.4 var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.np-card--live .np-label { color: var(--live, #B42318); }
.np-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live, #D92D20); }
@media (prefers-reduced-motion: no-preference) { .np-dot { animation: np-pulse 1.6s ease-in-out infinite; } }
@keyframes np-pulse { 50% { opacity: .35; } }
.np-sub { font-size: 13px; color: var(--ink-2); }
.np-play { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; }
.np-icon { flex: none; color: var(--primary); }
/* A row under the card, on its own surface so it reads on every hero (dark, photo or light). */
.np-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.np-row svg { color: var(--ink-2); flex: none; }
.np-card--radio { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
/* The meeting is on (site.js, from the schedule): a big red Join leads; the radio and "Next live" step back. */
.np-join[hidden] { display: none; }
.np-join { background: var(--live); border-color: var(--live); color: #fff; }
.np-join .np-label, .np-join .np-sub { color: #fff; }
.np-join .np-dot { background: #fff; }
.np-go { flex: none; display: grid; place-items: center; min-width: 64px; min-height: 44px; padding: 0 16px; border-radius: var(--r-full); background: #fff; color: var(--live); font: 800 16px/1 var(--ui); }
.np.is-joining .np-card--next, .np.is-joining .np-row { display: none; }
.np.is-joining .np-card--radio { padding: 8px 12px 8px 8px; background: var(--surface); border-color: var(--line); }
.np.is-joining .np-card--radio .np-art { width: 40px; height: 40px; }
.np.is-joining .np-card--radio .np-sub { display: none; }
.np.is-joining .np-card--radio .np-play { width: 40px; height: 40px; }
/* Give: any amount, typed freely, the one thing on the form people must fill. */
.give-amount label { font-weight: 600; }
.give-amount-box { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0 16px; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.give-amount-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.give-amount-cur { font: 600 24px/1 var(--ui); color: var(--ink-2); }
.give-amount-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0; min-height: 60px; font: 700 30px/1 var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.give-amount.field--error .give-amount-box { border-color: var(--err, #b42318); }

/* Data saver (Q-3): a held-back picture keeps its space and waits for a tap. */
img[data-tap-img] { background: var(--line) center / 28px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 8'/%3E%3C/svg%3E"); cursor: pointer; }
/* Listen: a quiet pulse on the play button while it connects (replay.js). */
.lp-play.is-loading .lp-play-btn { animation: lp-connect 1.2s ease-in-out infinite; }
@keyframes lp-connect { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .lp-play.is-loading .lp-play-btn { animation: none; opacity: .7; } }
/* The station page (/radio, radio.js): play and pause on one button, the week's shows as quiet rows. */
.lp-play .radio-i-pause, .lp-play.is-playing .radio-i-play { display: none; }
.lp-play.is-playing .radio-i-pause { display: block; }
.radio-sched .casts-month { margin: 24px 0 4px; font: 600 12px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.radio-slot { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.radio-slot-time { flex: none; width: 72px; font: 600 14px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.radio-slot .cast-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.radio-slot .cast-text strong { font: 500 16px/1.25 var(--ui); }
.radio-slot .cast-text > span { font-size: 13px; color: var(--ink-2); }
.radio-slot.is-on .radio-slot-time { color: var(--ink); }
.cast-live { color: #b91c1c; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cast-live { color: #f87171; } }
:root[data-theme="dark"] .cast-live { color: #f87171; }
/* Live comments, questions and reactions (chat.js): reactions as chips, the feed as quiet rows, one Send. */
.chat { margin: 24px 0 0; display: grid; gap: 12px; }
.chat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chat-h { margin: 0; font: 700 18px/1.3 var(--ui); color: var(--ink); }
.chat-count { font-size: 13px; color: var(--ink-2); }
.chat-reactions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-react { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--ui); cursor: pointer; transition: transform .12s; }
.chat-react b { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.chat-react:active, .chat-react.is-pop { transform: scale(.94); }
.chat-react:disabled { cursor: default; }
.chat-feed { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; border-top: 1px solid var(--line); }
.chat-msg, .chat-empty { padding: 10px 0; border-bottom: 1px solid var(--line); }
.chat-empty { font-size: 14px; color: var(--ink-2); }
.chat-meta { margin: 0 0 2px; font-size: 13px; color: var(--ink-2); }
.chat-meta strong { color: var(--ink); font-weight: 600; }
.chat-body { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-q { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: var(--r-full); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); font: 600 11px/1.4 var(--ui); letter-spacing: .04em; text-transform: uppercase; }
.chat-form { display: grid; gap: 8px; }
.chat-kind { display: inline-grid; grid-auto-flow: column; justify-content: start; gap: 4px; padding: 4px; border-radius: var(--r-full); background: var(--surface-2); width: max-content; }
.chat-kind button { min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-full); background: none; color: var(--ink-2); font: 600 14px/1 var(--ui); cursor: pointer; }
.chat-kind button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.chat-form textarea { width: 100%; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 400 16px/1.4 var(--ui); resize: vertical; }
.chat-row { display: flex; gap: 8px; }
.chat-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 400 16px/1 var(--ui); }
.chat-send { flex: none; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-full); background: var(--primary); color: var(--primary-ink, #fff); font: 600 16px/1 var(--ui); cursor: pointer; }
.chat-send:disabled { opacity: .6; }
.chat-note { margin: 0; min-height: 1em; font-size: 13px; color: var(--ink-2); }
/* Listener waveform (listen-wave.js): when sound is coming out, in the brand colour; a line of words for everyone. */
.lp-wave { display: grid; gap: 4px; color: var(--primary); }
.lp-wave-canvas { width: 100%; height: 48px; display: block; }
.lp-wave-say { margin: 0; font-size: 13px; color: var(--ink-2); }
.lp-wave.is-flowing .lp-wave-say { color: var(--ink); }

/* The station's messages by series, and an unclaimed preview's catalogue teaser (src/cast/radio.tsx). */
.lib-series + .lib-series { margin-top: 16px; }
.lib-series-h { font-size: 16px; margin: 0 0 6px; }
.lib-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lib-msgs a { font-weight: 600; }
.lib-teaser { border: 1px dashed var(--line); border-radius: var(--r-md, 12px); padding: 16px; }
