/* Note: --hero-img URLs are resolved relative to this stylesheet (assets/), so build.py writes them as ../wp-content/... */
/* Layout: light, airy long-scroll page. White and soft-grey bands alternate; one wide rounded photo
   carries the hero; headings in Prata (the logo's serif); the lamp's gold is used sparingly as an accent. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --surface: #ffffff;
  --fg: #161b24;
  --muted: #5b6474;
  --line: #e4e7ec;
  --gold: #f2b33d;        /* lamp flame: dots, step numbers, small marks */
  --gold-ink: #94620a;    /* gold as text on light backgrounds */
  --gold-soft: #fdf4e1;   /* tinted panels */
  --btn: #161b24;         /* primary buttons */
  --btn-fg: #ffffff;
  --shadow: 0 1px 2px rgba(22,27,36,.04), 0 12px 32px rgba(22,27,36,.07);
  --photo-a: #e9ecf1;
  --photo-b: #f5f6f8;

  /* legacy names still used in markup-level styles */
  --dawn: var(--gold); --dawn-ink: #1b1405; --accent-text: var(--gold-ink);

  --display: "Prata", "Georgia", "Times New Roman", serif;
  --body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.85rem, 1.4rem + 1.8vw, 2.85rem);
  --step-3: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);
  --radius: 22px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 76px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1319; --bg-soft: #151a22; --surface: #1a2029; --fg: #eef1f5; --muted: #a3acba; --line: #283040;
    --gold-ink: #f2b33d; --gold-soft: #2a2417; --btn: #eef1f5; --btn-fg: #0f1319;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35); --photo-a: #1d2430; --photo-b: #151a22; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1319; --bg-soft: #151a22; --surface: #1a2029; --fg: #eef1f5; --muted: #a3acba; --line: #283040;
  --gold-ink: #f2b33d; --gold-soft: #2a2417; --btn: #eef1f5; --btn-fg: #0f1319;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35); --photo-a: #1d2430; --photo-b: #151a22; color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: var(--step-0); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: var(--step-3); line-height: 1.06; }
h2 { font-size: var(--step-2); line-height: 1.12; }
h3 { font-family: var(--body); font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--btn); color: var(--btn-fg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 6px; }
.selectable { user-select: all; -webkit-user-select: all; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.muted { color: var(--muted); }

.eyebrow, .eyebrow-sm { font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-ink); }
.eyebrow { font-size: var(--step--1); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.eyebrow-sm { font-size: .72rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 .95rem/1 var(--body); padding: .85em 1.35em; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background-color .2s, border-color .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 1rem; padding: 1em 1.6em; }
.btn-sm { font-size: .85rem; padding: .65em 1.05em; }
.btn-light, .btn-dark { background: var(--btn); color: var(--btn-fg); }
.btn-light:hover, .btn-dark:hover { box-shadow: var(--shadow); }
.btn-ghost, .btn-outline { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--fg); }
.text-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--fg); text-decoration: none; }
.text-link svg { width: 1.05em; height: 1.05em; color: var(--gold-ink); transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }
.text-link:hover { color: var(--gold-ink); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); margin-right: auto; flex: none; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; color: var(--fg); --logo-flame: var(--gold); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--display); font-size: 1.15rem; line-height: 1.1; display: flex; flex-direction: column; white-space: nowrap; }
.brand-name small { font-family: var(--body); font-weight: 600; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { position: relative; display: block; padding: 8px 9px; text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; color: var(--muted); transition: color .2s; }
.site-nav ul a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.site-nav ul a:hover, .site-nav ul a.active, .site-nav ul a[aria-current] { color: var(--fg); }
.site-nav ul a.active::after, .site-nav ul a[aria-current]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-decoration: none; color: var(--muted); padding: 8px 6px; }
.lang:hover { color: var(--fg); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229,72,77,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.menu-btn { display: none; background: none; border: 0; color: var(--fg); width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-lines, .menu-lines::before, .menu-lines::after { position: absolute; left: 12px; width: 20px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .25s, top .25s; content: ""; }
.menu-lines { top: 21px; }
.menu-lines::before { left: 0; top: -6px; }
.menu-lines::after { left: 0; top: 6px; }
.menu-open .menu-lines { background: transparent; }
.menu-open .menu-lines::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-lines::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .site-nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 18px;
    padding: 8px var(--gutter-r) 28px var(--gutter-l); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-6px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; }
  .menu-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { font-size: 1.15rem; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .nav-actions { flex-wrap: wrap; }
}

/* Hero */
.hero { position: relative; background: var(--bg); padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px); }
.glow { display: none; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.hero-copy { display: grid; gap: 22px; max-width: 820px; min-width: 0; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-media { position: relative; min-width: 0; }
.photo.photo-hero { aspect-ratio: 21 / 9; border-radius: 28px; }
.photo-hero img { object-position: center 62%; }
.hero-card { position: absolute; left: 24px; bottom: 24px; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); color: var(--fg); padding: 16px 20px; border-radius: 16px; box-shadow: var(--shadow); font-size: .92rem; line-height: 1.45; max-width: min(420px, calc(100% - 48px)); z-index: 2; }
.hero-card-ic { color: var(--gold-ink); width: 22px; flex: none; margin-top: 1px; }
.hero-card-sub { color: var(--muted); font-size: .85rem; }
.hero-sm { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.hero-sm .wrap { display: grid; gap: 20px; }
.hero-sm .lead { max-width: 60ch; }
.hero-photo .wrap::after { content: ""; display: block; aspect-ratio: 21 / 8; border-radius: 28px; margin-top: clamp(16px, 3vw, 32px); background: var(--photo-a) var(--hero-img) center 60% / cover no-repeat; }

/* Photos (with a designed fallback if a file is missing) */
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: linear-gradient(135deg, var(--photo-a), var(--photo-b)); }
.photo::after { content: attr(data-label); position: absolute; left: 18px; bottom: 16px; right: 18px; font: 600 .74rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo-hero::after, .photo-pastor::after { content: ""; }
.photo-pastor { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 50%; flex: none; }
.photo-pastor img { object-position: top; }

/* Sections */
.band { padding-block: clamp(72px, 9vw, 128px); background: var(--bg); }
.band-alt { background: var(--bg-soft); }
.section-head { display: grid; gap: 16px; max-width: 700px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.head-row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.head-row > div { display: grid; gap: 16px; max-width: 680px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 104px); align-items: center; }
.split-rev .split-media { order: 2; }
.split-copy { display: grid; gap: 20px; min-width: 0; }
.split-copy > p:not(.eyebrow) { color: var(--muted); max-width: 58ch; }
.split-media { min-width: 0; }
.split-media .photo { aspect-ratio: 5 / 4; }

.pastor { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 10px 22px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.pastor-name { font-family: var(--display); font-size: 1.12rem; }

/* Mission values: an open row, not boxes */
.values { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value { display: grid; gap: 6px; padding: 28px 24px 28px 0; }
.value + .value { padding-left: 24px; border-left: 1px solid var(--line); }
.value-a { font-family: var(--display); font-size: var(--step-1); line-height: 1.2; }
.value-b { color: var(--muted); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); font-weight: 500; font-size: .92rem; }
.band-alt .chips li { background: var(--surface); }

/* Stats: a quiet ruled row */
.stats-band { background: var(--bg); padding-block: clamp(8px, 2vw, 24px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stat { display: grid; gap: 8px; align-content: start; padding: clamp(28px, 4vw, 44px) 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat-num { font-family: var(--display); font-size: clamp(2.6rem, 1.8rem + 3vw, 4.2rem); line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .95rem; max-width: 30ch; }

/* Ministries */
.ministries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.min-card { display: grid; gap: 12px; align-content: start; padding: 30px; border-radius: var(--radius); background: var(--surface); transition: box-shadow .25s, transform .25s; }
.band:not(.band-alt) .min-card { background: var(--bg-soft); }
.min-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.min-card > p { color: var(--muted); }
.min-when { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.min-when svg { width: 18px; height: 18px; color: var(--gold-ink); }
.min-card .text-link { justify-self: start; margin-top: 6px; font-size: .92rem; }

/* Sermons */
.sermons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.sermon { display: grid; gap: 14px; text-decoration: none; color: var(--fg); min-width: 0; }
.sermon-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--photo-a), var(--photo-b)); }
.sermon-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: #161b24; transition: transform .25s; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.play svg { width: 20px; height: 20px; margin-left: 3px; }
.sermon:hover .play { transform: scale(1.08); }
.sermon:hover img { transform: scale(1.03); }
.sermon-meta { display: grid; gap: 4px; }
.sermon-title { font-weight: 600; font-size: 1.04rem; line-height: 1.4; }
.sermon:hover .sermon-title { color: var(--gold-ink); }

/* Events */
.events-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.events-lists { display: grid; gap: 16px; min-width: 0; }
.events-lists h3 { font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 2px 20px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.event time { grid-row: span 2; display: grid; justify-items: start; }
.ev-day { font-family: var(--display); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ev-mon { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }
.ev-title { font-weight: 600; line-height: 1.4; min-width: 0; }
.ev-range { font-size: .9rem; color: var(--muted); }
.ev-today { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.events-none, .cal-fallback { padding: 20px 22px; border-radius: 16px; background: var(--surface); color: var(--muted); }
.cal-fallback a { color: var(--gold-ink); font-weight: 600; }
.past summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--fg); list-style: none; display: flex; align-items: center; gap: 10px; }
.past summary::-webkit-details-marker { display: none; }
.past summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-weight: 500; line-height: 1; }
.past[open] summary::before { content: "−"; }
.past .event { opacity: .7; }
.cal-subscribe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cal-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); justify-self: start; }
.cal-tabs button { font: 600 .9rem var(--body); color: var(--muted); background: none; border: 0; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.cal-tabs button[aria-selected="true"] { background: var(--btn); color: var(--btn-fg); }
.live-cal [role="tabpanel"] { display: grid; gap: 12px; }
.cal-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cal-embed iframe { display: block; width: 100%; height: 640px; border: 0; }
.cal-more { justify-self: start; }

/* Prayer */
.prayer-band { background: var(--gold-soft); padding-block: clamp(56px, 7vw, 88px); }
.prayer-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.prayer-row > div { display: grid; gap: 14px; max-width: 640px; }
.prayer-band p:not(.eyebrow) { color: var(--muted); }

/* Giving */
.give { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.give-card { display: grid; gap: 12px; align-content: start; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.give-card p:not(.give-kind):not(.give-value) { color: var(--muted); }
.give-kind { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.give-value { font-weight: 600; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.give-value.small { font-size: 1.02rem; }
.give-card-feature { background: var(--gold-soft); border-color: transparent; }
.give-card .btn { justify-self: start; margin-top: 6px; }
.copy { justify-self: start; font: 600 .85rem var(--body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; }
.copy:hover { border-color: var(--fg); }
.howto summary { cursor: pointer; font-weight: 600; color: var(--gold-ink); font-size: .9rem; }
.howto img { margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); }

/* Contact / plan a visit */
.visit { background: var(--bg-soft); }
.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.visit-copy { display: grid; gap: 20px; min-width: 0; }
.contact-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.contact-list strong, .on-dark-strong { color: var(--fg); font-weight: 600; }
.contact-list svg { width: 20px; height: 20px; color: var(--gold-ink); flex: none; margin-top: 3px; }
.contact-list a { color: var(--fg); font-weight: 600; }
.form { display: grid; gap: 16px; background: var(--surface); color: var(--fg); padding: clamp(24px, 3.4vw, 40px); border-radius: 24px; box-shadow: var(--shadow); min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: .88rem; color: var(--muted); min-width: 0; }
.field input, .field select, .field textarea { font: 400 1rem var(--body); color: var(--fg); background: var(--bg-soft); border: 1px solid transparent; border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .2s, background-color .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-ink); background: var(--surface); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-ink); flex: none; }
.form .btn { justify-self: start; }
.form-status { min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: #1f8a4c; }
.form-status.err { color: #c2412d; }
.hp { position: absolute; left: -9999px; }

/* Welcome scripture card */
.verse-card { position: relative; margin: 0; aspect-ratio: 5 / 4; max-width: 100%; border-radius: var(--radius); background: var(--gold-soft); color: var(--fg); display: grid; align-content: end; gap: 18px; padding: clamp(28px, 4vw, 52px); }
.verse-mark { position: absolute; top: clamp(28px, 4vw, 48px); left: clamp(28px, 4vw, 52px); width: 44px; height: 44px; color: var(--fg); --logo-flame: var(--gold); }
.verse-card blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem); line-height: 1.3; text-wrap: balance; }
.verse-card figcaption { color: var(--gold-ink); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: var(--step--1); }

/* Footer */
.site-footer { background: var(--bg); padding-block: 72px 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid > * { min-width: 0; }
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-name { font-family: var(--display); font-size: 1.2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; color: var(--muted); }
.footer-links li { overflow-wrap: anywhere; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--fg); }
.to-top svg { width: 16px; height: 16px; }

/* Beliefs page */
.beliefs-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)); display: grid; gap: 18px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 12px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; line-height: 1.35; counter-increment: toc; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--gold-ink); font-weight: 600; }
.toc a:hover { background: var(--bg-soft); color: var(--fg); }
.articles { display: grid; gap: 0; min-width: 0; border-top: 1px solid var(--line); }
.article { border-bottom: 1px solid var(--line); }
.article summary { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 24px 4px; cursor: pointer; list-style: none; }
.article summary::-webkit-details-marker { display: none; }
.art-n { font-weight: 600; color: var(--gold-ink); font-variant-numeric: tabular-nums; font-size: .9rem; }
.art-t { font-family: var(--display); font-size: var(--step-1); line-height: 1.25; }
.art-ic { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background-color .25s, border-color .25s; }
.art-ic::before, .art-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: var(--fg); }
.art-ic::after { transform: rotate(90deg); transition: transform .25s; }
.article[open] .art-ic { background: var(--btn); border-color: var(--btn); }
.article[open] .art-ic::before, .article[open] .art-ic::after { background: var(--btn-fg); }
.article[open] .art-ic::after { transform: rotate(0); }
.art-body { padding: 0 4px 30px; display: grid; gap: 14px; max-width: 70ch; }
.art-body h4 { font-family: var(--body); font-weight: 600; font-size: 1rem; margin-top: 8px; color: var(--fg); }
.art-body p { color: var(--muted); }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc-card { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--surface); }
.doc-ic { width: 30px; color: var(--gold-ink); }
.doc-title { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-links a { font-weight: 600; font-size: .88rem; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }
.doc-links a:hover { border-color: var(--fg); }

/* Visit page */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: .95rem; }
.step p { color: var(--muted); }
.map-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.map-grid .section-head { margin-bottom: 0; }
.map-grid .btn { justify-self: start; }
.contact-list.on-light li { color: var(--muted); }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; min-width: 0; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.map-photo { aspect-ratio: 4 / 3; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-item summary { grid-template-columns: 1fr auto; }
.faq-item .art-t { font-family: var(--body); font-weight: 600; font-size: 1.08rem; }

/* Small UI bits */
.announce { background: var(--gold-soft); color: var(--fg); font-weight: 500; font-size: .92rem; text-align: center; padding-block: 10px; }
.announce a { color: inherit; }
.give-fab { display: none; position: fixed; z-index: 40; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--btn); color: var(--btn-fg); font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow); }
.todo { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: baseline; padding: 6px 12px; border: 1.5px dashed #d0892a; border-radius: 10px; background: rgba(242,179,61,.1); color: var(--fg); font-size: .84rem; line-height: 1.4; }
.todo b { color: var(--gold-ink); font-weight: 700; }
.todo-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Motion: everything is visible at rest; entering cards get a small rise */
.reveal.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }

/* Responsive */
@media (max-width: 900px) {
  .split, .events-grid, .visit-grid, .beliefs-grid, .map-grid, .faq-grid { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 0; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sermons, .give, .docs, .ministries, .steps { grid-template-columns: repeat(2, 1fr); }
  .give-card-feature { grid-column: 1 / -1; }
  .head-row { grid-template-columns: 1fr; }
  .head-row .btn { justify-self: start; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, 1fr); }
  .photo.photo-hero { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .give-fab { display: inline-flex; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .values, .sermons, .give, .docs, .ministries, .steps, .field-row, .toc ol, .footer-grid { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 20px 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:first-child { padding: 24px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .brand-name { font-size: 1rem; }
  .photo.photo-hero { aspect-ratio: 4 / 3; border-radius: 20px; }
  .hero-card { position: relative; left: 0; bottom: 0; margin: -36px 12px 0; max-width: none; }
  .hero-photo .wrap::after { aspect-ratio: 4 / 3; border-radius: 20px; }
  .event { grid-template-columns: 56px 1fr; gap: 2px 14px; }
  .article summary { gap: 12px; }
  .pastor { border-radius: 18px; }
  .btn { white-space: normal; }
  .verse-card { aspect-ratio: auto; min-height: 300px; }
  .cal-embed iframe { height: 520px; }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Give page and projects */
.give-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.give-wide { grid-column: 1 / -1; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.give-wide-copy { display: grid; gap: 12px; align-content: start; }
.give-wide-copy p:not(.give-kind) { color: var(--muted); max-width: 62ch; }
.give-wide-copy .btn { justify-self: start; margin-top: 6px; }
.give-methods { font-weight: 600; color: var(--fg) !important; }
.qr-box { margin: 0; display: grid; gap: 10px; justify-items: center; text-align: center; width: 190px; }
.qr { width: 170px; height: 170px; border-radius: 14px; box-shadow: var(--shadow); }
.qr-box figcaption { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.give-card-todo { background: transparent; border-style: dashed; }
.give-card .text-link { justify-self: start; margin-top: 4px; font-size: .92rem; }
.give-memo { margin-top: 24px; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.band-alt .projects:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.proj-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); transition: box-shadow .25s, transform .25s; }
.band-alt .proj-card { background: var(--surface); }
.proj-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.proj-card .photo.proj-photo { aspect-ratio: 16 / 8; border-radius: 0; }
.proj-mark { display: grid; place-items: center; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--gold-soft), var(--bg-soft)); color: var(--fg); --logo-flame: var(--gold); }
.proj-mark svg { width: 56px; height: 56px; opacity: .85; }
.proj-body { display: grid; gap: 12px; align-content: start; padding: 26px 28px 30px; }
.proj-body > p { color: var(--muted); }
.proj-body .btn { justify-self: start; margin-top: 6px; }
.proj-progress { display: grid; gap: 8px; font-size: .92rem; }
.proj-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.proj-bar span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
@media (max-width: 900px) {
  .projects, .band-alt .projects:has(> :nth-child(3):last-child) { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .give-wide { grid-template-columns: 1fr; }
  .qr-box { justify-self: start; }
  .proj-mark { aspect-ratio: 16 / 6; }
  .projects, .band-alt .projects:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; }
}

/* Full-bleed photo hero (home) with the header floating over it */
.hero-full { margin-top: calc(-1 * var(--header-h)); padding-block: calc(var(--header-h) + clamp(72px, 12vw, 168px)) clamp(64px, 9vw, 128px);
  min-height: min(88vh, 860px); display: grid; align-items: end; color: #fff;
  background: #1b2230 var(--hero-img) center 55% / cover no-repeat; isolation: isolate; }
.hero-full::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,14,22,.62) 0%, rgba(10,14,22,.2) 65%, rgba(10,14,22,0) 100%), linear-gradient(180deg, rgba(10,14,22,.5) 0%, rgba(10,14,22,.2) 35%, rgba(10,14,22,.7) 100%); }
.hero-full h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-full .lead { color: rgba(255,255,255,.88); }
.eyebrow.on-photo { color: #ffd27a; }
.btn-white { background: #fff; color: #161b24; }
.btn-white:hover { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.site-header.over-hero { transition: border-color .25s, background-color .25s, color .25s; }
.site-header.over-hero:not(.scrolled):not(.menu-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.over-hero:not(.scrolled):not(.menu-open) .brand,
.site-header.over-hero:not(.scrolled):not(.menu-open) .brand-mark,
.site-header.over-hero:not(.scrolled):not(.menu-open) .menu-btn { color: #fff; }
.site-header.over-hero:not(.scrolled):not(.menu-open) .brand-name small { color: rgba(255,255,255,.75); }
@media (min-width: 1241px) {
  .site-header.over-hero:not(.scrolled) .site-nav ul a, .site-header.over-hero:not(.scrolled) .lang { color: rgba(255,255,255,.82); }
  .site-header.over-hero:not(.scrolled) .site-nav ul a:hover, .site-header.over-hero:not(.scrolled) .lang:hover { color: #fff; }
  .site-header.over-hero:not(.scrolled) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
  .site-header.over-hero:not(.scrolled) .btn-light { background: #fff; color: #161b24; }
}

/* Service times bar */
.svc-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.svc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; padding-block: 22px; }
.svc-item { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.45; color: var(--muted); }
.svc-item strong { color: var(--fg); font-weight: 600; }
.svc-item svg { width: 22px; height: 22px; color: var(--gold-ink); flex: none; margin-top: 1px; }
.svc-item a { color: var(--fg); font-weight: 500; }
.svc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; color: var(--fg); font-weight: 600; font-size: .92rem; transition: border-color .2s, background .2s; }
.svc-live svg { width: 16px; height: 16px; }
.svc-live:hover { border-color: var(--fg); }
.svc-live:not(.is-live) .live-dot { background: var(--gold); animation: none; box-shadow: none; }
.svc-live.is-live { background: #e5484d; border-color: #e5484d; color: #fff; }
.svc-live.is-live .live-dot { background: #fff; }

/* Next steps */
.next-band { padding-block: clamp(64px, 8vw, 112px); }
.next-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.next-card { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); color: var(--fg); text-decoration: none;
  transition: box-shadow .25s, transform .25s, background .25s; }
.next-card:hover { background: var(--surface); box-shadow: var(--shadow); transform: translateY(-3px); }
.next-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); margin-bottom: 8px; }
.next-ic svg { width: 22px; height: 22px; }
.next-t { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; }
.next-b { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Sermons: one large latest service, the rest as a list */
.sermons-v2 { grid-template-columns: 1.6fr 1fr; grid-auto-flow: dense; gap: 16px 40px; align-items: start; }
.sermon-feature { grid-row: span 5; gap: 18px; }
.sermon-feature .sermon-thumb { border-radius: var(--radius); }
.sermon-feature .play { transform: scale(1.35); }
.sermon-feature .sermon-title { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.15; }
.sermon-feature .sermon-meta { gap: 10px; }
.latest-badge { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sermon-row { grid-template-columns: 148px 1fr; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sermon-row:last-child { border-bottom: 0; }
.sermon-row .sermon-thumb { border-radius: 12px; }
.sermon-row .play { transform: scale(.7); }
.sermon-row .sermon-title { font-size: .98rem; }
.sermon-thumb.playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Email sign-up */
.connect-band { padding-block: clamp(64px, 8vw, 104px); }
.connect-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.connect-row h2 { margin-block: 14px 12px; }
.connect-actions { display: grid; gap: 14px; }
.sub-form { display: flex; gap: 10px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.sub-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 18px; font: inherit; color: var(--fg); outline: none; }
.sub-form:focus-within { border-color: var(--fg); }
.sub-status { min-height: 1.2em; font-size: .9rem; color: var(--muted); }
.sub-status.ok { color: #1d7a46; } .sub-status.err { color: #b4232a; }
.connect-actions .text-link { justify-self: start; }

@media (max-width: 1100px) { .next-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .sermons-v2 { grid-template-columns: 1fr; }
  .sermon-feature { grid-row: auto; }
  .connect-row { grid-template-columns: 1fr; }
  .svc-live { margin-left: 0; }
}
@media (max-width: 600px) {
  .hero-full { min-height: 78vh; padding-top: calc(var(--header-h) + 96px); }
  .next-grid { grid-template-columns: 1fr; }
  .next-card { grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px; }
  .next-ic { grid-row: span 2; margin: 0; }
  .sermon-row { grid-template-columns: 112px 1fr; }
  .sub-form { border-radius: 18px; flex-direction: column; }
}

/* Members area */
.login-band { background: var(--bg-soft); min-height: 70vh; }
.login-card { max-width: 520px; margin: 0 auto; display: grid; gap: 14px; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.login-card h1 { font-size: var(--step-2); }
.login-mark { width: 44px; height: 44px; color: var(--fg); --logo-flame: var(--gold); }
.login-mark svg { width: 100%; height: 100%; }
.login-step { display: grid; gap: 12px; }
.login-step label { font-weight: 600; font-size: .9rem; margin-top: 6px; }
.login-step input { font: inherit; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--fg); }
.login-step input:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
.login-step .btn { justify-self: start; margin-top: 6px; }
.code-input { font-size: 1.8rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.login-who { font-weight: 600; }
.login-links { display: flex; flex-wrap: wrap; gap: 18px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; font-weight: 600; color: var(--fg); text-decoration: underline; cursor: pointer; }
.linkish:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.login-status { min-height: 1.2em; color: #b4232a; font-size: .92rem; }
.login-status:empty { display: none; }
.login-note { font-size: .85rem; color: var(--gold-ink); }
.login-help { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.portal-hero { background: var(--gold-soft); }
.portal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.portal-bar > span { margin-right: auto; }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portal-card { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); }
.portal-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.portal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.portal-list li { display: grid; gap: 2px; }
.portal-list time { font-size: .8rem; font-weight: 600; color: var(--gold-ink); }
.admin-wrap { max-width: 760px; display: grid; gap: 18px; }
.admin-add { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; }
.admin-add input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); min-width: 0; }
.admin-count { color: var(--muted); font-size: .9rem; }
.admin-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-list .who { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.admin-list .muted { font-size: .88rem; }
.admin-admins h3 { font-size: .95rem; margin-bottom: 6px; }
.admin-admins ul { margin: 0; padding-left: 18px; color: var(--muted); }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .portal-grid, .admin-add { grid-template-columns: 1fr; } }
.portal-tiles .next-t { font-size: 1.3rem; }
.portal-tile .text-link { margin-top: 6px; font-size: .9rem; }
.portal-grid-2 { grid-template-columns: repeat(2, 1fr); }
.portal-back { margin-top: 36px; }
.portal-links .portal-list { columns: 2; column-gap: 40px; }
.portal-links .portal-list li { break-inside: avoid; margin-bottom: 10px; }
@media (max-width: 600px) { .portal-grid-2 { grid-template-columns: 1fr; } .portal-links .portal-list { columns: 1; } }
/* Members area: people, groups, workbooks */
.leader-row { margin-bottom: 28px; }
.person { display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.person-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; display: inline-grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: 1.3rem; }
.person-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; margin-top: 2px; }
.person-contact { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; margin-top: 4px; }
.person-contact a { color: var(--fg); }
.person-empty { border-style: dashed; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.group-card { display: grid; gap: 18px; align-content: start; padding: 26px; border-radius: var(--radius); background: var(--surface); }
.group-card header { display: grid; gap: 6px; }
.group-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.group-card .person { border: 0; padding: 0; background: none; }
.workbooks { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.workbooks h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.wb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wb-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wb-list a { color: var(--fg); font-weight: 500; overflow-wrap: anywhere; }
.wb-form { display: grid; gap: 8px; margin-top: 6px; padding: 14px; border-radius: 14px; background: var(--bg-soft); }
.wb-form input[type=url], .wb-form input[name=title] { font: inherit; font-size: .92rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.wb-file { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.wb-file input { font-size: .85rem; }
.wb-form .btn { justify-self: start; }
.wb-note { font-size: .78rem; color: var(--muted); }
/* Ministry icons */
.min-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--gold-soft); color: var(--fg); --icon-accent: var(--gold); }
.min-ic svg { width: 30px; height: 30px; }
.min-card .min-ic { margin-bottom: 4px; }
.band:not(.band-alt) .min-card .min-ic { background: var(--surface); }
.min-ic-lg { width: 76px; height: 76px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.min-ic-lg svg { width: 44px; height: 44px; }
.portal-tile .next-ic.min-ic { color: var(--fg); }
@media (max-width: 600px) { .portal-tile.next-card { grid-template-columns: 52px 1fr; } .portal-tile .min-ic { grid-row: span 3; } }
.min-ic > svg, .next-ic.min-ic > svg { width: 30px; height: 30px; }
.min-ic-lg > svg { width: 44px; height: 44px; }

/* Watch live page: just the player */
.live-band { padding: 28px 0 64px; }
.live-wrap { max-width: min(1100px, calc((100vh - 230px) * 16 / 9 + 48px)); }
.live-h1 { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 4vw, 38px); margin: 0 0 18px; }
.live-h1 .live-dot { width: 12px; height: 12px; }
.live-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.live-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-note { margin-top: 18px; color: var(--muted, #5b6170); }
.live-meta { margin-top: 8px; }
@media (max-width: 600px) { .live-player { border-radius: 12px; } }

/* Sermon library */
.sermon-grid { grid-template-columns: repeat(3, 1fr); }
.sermon-card.is-current .sermon-thumb { outline: 3px solid var(--gold, #F2B33D); outline-offset: 3px; }
.sermon-now { margin-top: 14px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
@media (max-width: 900px) { .sermon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sermon-grid { grid-template-columns: 1fr; } }

/* Church app: home invitation and the app page */
.app-band { padding-top: 40px; padding-bottom: 40px; }
.app-band-row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--bg-soft, #f5f6f8); border-radius: var(--radius, 20px); padding: 28px 32px; }
.app-band-row h2 { font-size: var(--step-1, 1.5rem); margin: 0 0 4px; }
.app-band-row p { margin: 0; color: var(--muted); }
.app-band-icon, .app-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: #0D1626; color: #F3F5FA; }
.app-band-icon svg, .app-icon svg { width: 40px; height: 40px; }
.app-wrap { max-width: 860px; }
.app-icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 20px; }
.app-icon svg { width: 54px; height: 54px; }
.app-wrap h1 { font-size: clamp(32px, 5vw, 52px); margin: 6px 0 12px; }
.app-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.app-steps ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.app-alerts { margin-top: 20px; }
.app-alerts h2 { font-size: var(--step-1, 1.5rem); margin: 0 0 8px; }
.app-status { margin-top: 10px; color: var(--muted); min-height: 1.2em; }
@media (max-width: 700px) {
  .app-band-row { grid-template-columns: auto 1fr; padding: 22px; }
  .app-band-row .btn { grid-column: 1 / -1; justify-self: start; }
  .app-steps { grid-template-columns: 1fr; }
}

/* Give page: form on the page, impact, tithe calculator */
.give-now { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.give-now-copy h2 { margin: 6px 0 12px; }
.check-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--gold-ink, #E09A1F); border-bottom: 2px solid var(--gold-ink, #E09A1F); transform: rotate(-45deg); }
.give-now-alt { margin: 8px 0 24px; }
.give-app-link { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--bg-soft); color: var(--fg); text-decoration: none; }
.give-app-link .app-band-icon { width: 52px; height: 52px; border-radius: 13px; }
.give-app-link .app-band-icon svg { width: 32px; height: 32px; }
.give-app-link span:last-child { color: var(--muted); font-size: .95rem; }
.give-app-link strong { color: var(--fg); }
.zeffy-box { border-radius: var(--radius, 20px); overflow: hidden; background: #fff; border: 1px solid var(--line); min-height: 760px; }
.zeffy-box iframe { display: block; width: 100%; height: 900px; border: 0; }
.impact { grid-template-columns: repeat(3, 1fr); }
.impact-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft); color: var(--gold-ink, #E09A1F); font-weight: 700; margin-bottom: 10px; }
.tithe-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tithe-calc { display: grid; gap: 18px; }
.tithe-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.tithe-out { margin: 0; font-size: 1.05rem; }
.tithe-out strong { font-size: 1.3rem; color: var(--fg); }
.tithe-calc .btn { justify-self: start; }
@media (max-width: 900px) {
  .give-now, .tithe-grid { grid-template-columns: 1fr; }
  .impact { grid-template-columns: 1fr; }
  .zeffy-box iframe { height: 1000px; }
}
.tithe-hint { margin: 0; color: var(--gold-ink, #B87A10); font-weight: 600; }
.tithe-hint:empty { display: none; }
#give-now-hint { margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
