/* ==========================================================================
   Walters Memorial A.M.E. Zion Church — "Digital Sanctuary"
   Vanilla CSS · no framework · custom properties throughout
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --burgundy: #4A121A;
  --burgundy-900: #2a080d;
  --burgundy-700: #5e1922;
  --burgundy-500: #7a2631;
  --gold: #D4AF37;
  --gold-soft: #e6cc7a;
  --gold-deep: #8a6d14;      /* AA-contrast gold for text on cream */
  --cream: #FDFBF7;
  --cream-200: #f6f0e4;
  --cream-300: #ece3d1;
  --charcoal: #2C2C2C;
  --muted: #5d5650;
  --line: rgba(74, 18, 26, 0.14);
  --line-light: rgba(253, 251, 247, 0.16);

  /* Typography */
  --font-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: clamp(0.72rem, 0.70rem + 0.10vw, 0.8rem);
  --fs-sm: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --fs-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
  --fs-2xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.9rem);
  --fs-hero: clamp(2.5rem, 1.4rem + 4.6vw, 8rem);
  --fs-numeral: clamp(6rem, 3rem + 13vw, 17rem);

  /* Spacing & layout */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --section-y: clamp(5rem, 3rem + 8vw, 10rem);
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 4rem);
  --content-max: 1440px;
  --hero-max: 1920px;
  --nav-base: 76px;
  --banner-h: 0px;
  --nav-h: calc(var(--nav-base) + var(--banner-h));

  /* Surfaces & motion */
  --radius-sm: 6px; --radius: 14px; --radius-lg: 24px;
  --shadow-soft: 0 1px 2px rgba(44, 20, 10, .04), 0 12px 32px -12px rgba(44, 20, 10, .14);
  --shadow-lift: 0 2px 4px rgba(44, 20, 10, .05), 0 24px 48px -16px rgba(74, 18, 26, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .45s;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
em { font-style: italic; }
code { font-size: .88em; background: rgba(212, 175, 55, .14); padding: .1em .35em; border-radius: 4px; }
[hidden] { display: none !important; }
main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.section:not(.worship) :focus-visible { outline-color: var(--burgundy); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: .7rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--burgundy); color: var(--cream); text-decoration: none; font-weight: 500;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 3. Layout primitives ---------- */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--space-5);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--gold-deep); }

.section-title { font-size: var(--fs-2xl); color: var(--burgundy); max-width: 18ch; margin-bottom: var(--space-5); }
.section-title em { color: var(--gold-deep); font-weight: 400; }
.section-title--light { color: var(--cream); }
.section-title--light em { color: var(--gold); }

/* ---------- 4. Buttons & links ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .85rem 1.6rem;
  border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .04em; text-decoration: none;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn::after {           /* soft sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--burgundy-900); }
.btn--gold:hover { --btn-bg: var(--gold-soft); }
.btn--ghost { --btn-bd: rgba(253, 251, 247, .45); --btn-fg: var(--cream); backdrop-filter: blur(6px); background: rgba(253,251,247,.06); }
.btn--ghost:hover { --btn-bd: var(--gold); color: var(--gold-soft); }
.btn--burgundy { --btn-bg: var(--burgundy); --btn-fg: var(--cream); }
.btn--burgundy:hover { --btn-bg: var(--burgundy-700); }
.btn--text { --btn-fg: var(--burgundy); padding-inline: .5rem; }
.btn--text:hover { box-shadow: none; transform: none; text-decoration: underline; text-underline-offset: 4px; }
.btn--sm { min-height: 40px; padding: .55rem 1.2rem; }
.btn--block { width: 100%; }
.btn__meta { font-size: .8em; opacity: .7; padding-left: .6rem; border-left: 1px solid currentColor; }

/* Gold underline animation */
.link-btn, .nav__link, .footer__link, .history__sources a {
  position: relative; text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 1px;
  transition: background-size .5s var(--ease-out), color .3s var(--ease);
}
.link-btn:hover, .nav__link:hover, .footer__link:hover, .history__sources a:hover,
.link-btn:focus-visible, .footer__link:focus-visible { background-size: 100% 1px; }
.link-btn {
  border: 0; background-color: transparent; padding: .25rem 0; color: var(--burgundy);
  font-weight: 500; font-size: var(--fs-sm); letter-spacing: .03em;
}
.link-btn span { display: inline-block; transition: transform .4s var(--ease-out); }
.link-btn:hover span { transform: translateX(5px); }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e2483d; box-shadow: 0 0 0 0 rgba(226,72,61,.6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(226,72,61,0); } 100% { box-shadow: 0 0 0 0 rgba(226,72,61,0); } }

/* ---------- 5. Navigation (glass) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(253, 251, 247, .86);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(74, 18, 26, .06);
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(253, 251, 247, .8); box-shadow: 0 10px 30px -18px rgba(44, 20, 10, .35); }
.nav {
  height: 100%; max-width: var(--hero-max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--burgundy); }
.brand__mark { display: block; flex: none; }
.brand__mark img { height: 42px; width: auto; aspect-ratio: 480 / 409; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; }
.brand__sub { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.nav__menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1rem, .2rem + 1.6vw, 2.4rem); }
.nav__link { font-size: var(--fs-sm); color: var(--charcoal); padding: .35rem 0; letter-spacing: .02em; }
.nav__link.is-active { color: var(--burgundy); background-size: 100% 1px; font-weight: 500; }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; position: relative; z-index: 2;
}
.nav__toggle-bar { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--burgundy); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav__toggle-bar:first-child { top: 18px; }
.nav__toggle-bar:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    padding: var(--space-6) var(--gutter);
    background: var(--cream);
    box-shadow: 0 30px 60px -30px rgba(44, 20, 10, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__menu li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav__link { display: block; font-family: var(--font-serif); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); padding: 1rem 0; background: none; }
  .nav__link.is-active { color: var(--gold-deep); background: none; }
  .nav__cta-item { border: 0 !important; padding-top: var(--space-6); }
  .nav__cta-item .btn { min-height: 52px; padding-inline: 2.2rem; }
}
@media (max-width: 420px) { .brand__sub { display: none; } }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  color: var(--cream); overflow: hidden; isolation: isolate;
  background: var(--burgundy-900);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  background: transparent;
  object-position: var(--hero-pos, 50% 50%); background-position: var(--hero-pos, 50% 50%);
  transform: scale(1.04); animation: slowzoom 24s var(--ease) infinite alternate;
}
@keyframes slowzoom { to { transform: scale(1.12); } }
.hero__backdrop {
  position: absolute; inset: -40px;
  /* photo on top, SVG illustration underneath as fallback */
  background: url("../assets/church-facade-blur.webp") center / cover no-repeat, url("../assets/church-facade.svg") center / cover no-repeat, var(--burgundy-900);
  filter: blur(28px) saturate(.9) brightness(.55); transform: scale(1.08); opacity: .55;
}
/* Framed, arched photo panel (keeps the low-res source at a size where it stays crisp) */
.hero__photo {
  position: absolute; z-index: 0; margin: 0;
  right: max(var(--gutter), calc((100vw - var(--hero-max)) / 2 + var(--gutter)));
  top: calc(var(--nav-h) + clamp(2rem, 6vh, 5rem)); bottom: clamp(3rem, 9vh, 7rem);
  aspect-ratio: 4 / 5; max-width: min(36vw, 620px);
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(212,175,55,.55), 0 0 0 10px rgba(253,251,247,.04), 0 50px 100px -30px rgba(0,0,0,.7);
}
.hero__photo picture, .hero__photo img { display: block; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 45% 50%; animation: slowzoom 24s var(--ease) infinite alternate; }
.hero__photo::after {   /* warm vignette over the photo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 75% at 50% 40%, transparent 45%, rgba(42, 8, 13, .55) 100%),
    linear-gradient(180deg, rgba(74, 18, 26, .15), rgba(74, 18, 26, .05) 40%, rgba(30, 6, 9, .55) 100%),
    linear-gradient(0deg, rgba(212, 175, 55, .10), rgba(212, 175, 55, .10));
  mix-blend-mode: normal;
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 40%, transparent 0%, rgba(42, 8, 13, .25) 45%, rgba(20, 4, 6, .85) 100%),
    linear-gradient(180deg, rgba(42, 8, 13, .55) 0%, transparent 30%, rgba(42, 8, 13, .25) 60%, rgba(30, 6, 9, .92) 100%),
    linear-gradient(90deg, rgba(42, 8, 13, .7) 0%, transparent 60%);
}
.hero__grain {
  position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  width: 100%; max-width: var(--hero-max); margin-inline: auto;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) clamp(4.5rem, 3rem + 6vw, 9rem);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--space-5);
}
.hero__inner { position: relative; z-index: 1; }
.hero__inner > * { grid-column: 1 / span 7; }
.hero__title { font-size: var(--fs-hero); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; max-width: 17ch; margin-bottom: var(--space-6); text-wrap: balance; }
.hero__lede { grid-column: 1 / span 6; font-size: var(--fs-lg); font-weight: 300; color: rgba(253, 251, 247, .86); max-width: 40ch; margin-bottom: var(--space-7); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(2rem, 1rem + 3vw, 4rem);
  width: 1px; height: 72px; background: rgba(253, 251, 247, .3);
}
.hero__scroll span { position: absolute; left: -1px; top: 0; width: 3px; height: 22px; background: var(--gold); border-radius: 2px; animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(50px); opacity: 0; } }
@media (min-width: 2000px) {
  .hero__inner > * { grid-column: 1 / span 7; }
  .hero__lede { grid-column: 1 / span 5; }
}
@media (max-width: 1100px) {
  /* tablets & phones: the photo moves into the flow as a framed panel above the headline */
  .hero { display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__photo {
    position: relative; inset: auto; order: -1; flex: none;
    margin: calc(var(--nav-h) + clamp(1.25rem, 3vh, 2.5rem)) var(--gutter) 0;
    width: auto; max-width: 620px; aspect-ratio: 16 / 10;
    border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
  }
  .hero__photo img { object-position: 45% 62%; }
  .hero__inner { padding-top: clamp(1.75rem, 4vh, 3rem); }
  .hero__inner > * { grid-column: 1 / span 10; }
}
@media (max-width: 760px) {
  .hero__photo { border-radius: 160px 160px var(--radius) var(--radius); }
  .hero__inner > *, .hero__lede { grid-column: 1 / -1; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__scroll { display: none; }
}

/* ---------- 7. Welcome ---------- */
.welcome__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-6); align-items: start; }
.welcome__numeral {
  grid-column: 1 / span 5; font-family: var(--font-serif); font-weight: 300; font-style: italic;
  font-size: var(--fs-numeral); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px rgba(138, 109, 20, .55);
  margin-top: -.05em;
}
.welcome__copy { grid-column: 7 / span 6; max-width: 62ch; }
.welcome__copy > p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lg); font-weight: 300; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: var(--space-7) 0 0; border-top: 1px solid var(--line); }
.facts div { padding: var(--space-5) var(--space-4) 0 0; }
.facts dt { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .4rem; }
.facts dd { margin: 0; font-family: var(--font-serif); font-size: var(--fs-lg); color: var(--burgundy); line-height: 1.3; }
@media (max-width: 900px) {
  .welcome__numeral, .welcome__copy { grid-column: 1 / -1; }
  .welcome__numeral { margin-bottom: 0; }
}
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts div { padding-right: 0; } }

/* ---------- 7b. Pastor ---------- */
.pastor { padding-top: 0; }
.pastor__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-7) var(--space-6); align-items: center; }
.pastor__portrait { grid-column: 2 / span 4; margin: 0; position: relative; }
.portrait-placeholder, .pastor__portrait img {
  position: relative; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 220px 220px var(--radius) var(--radius);
  background: linear-gradient(160deg, var(--burgundy-700), var(--burgundy-900)); box-shadow: var(--shadow-lift);
}
.portrait-placeholder, .pastor__portrait img { outline: 1px solid rgba(138,109,20,.45); outline-offset: 12px; }
.portrait-placeholder { display: grid; place-items: center; align-content: center; gap: 1rem; color: rgba(212,175,55,.7); text-align: center; overflow: hidden; }
.portrait-placeholder svg { width: 42%; }
.portrait-placeholder span { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: rgba(253,251,247,.7); line-height: 1.6; }
.pastor__portrait figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.pastor__portrait figcaption strong { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 600; color: var(--burgundy); }
.pastor__portrait figcaption span { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.pastor__copy { grid-column: 7 / span 6; max-width: 60ch; }
.pastor__letter p { font-family: var(--font-serif); font-size: clamp(1.2rem, 1.05rem + .55vw, 1.55rem); line-height: 1.55; color: var(--charcoal); }
.pastor__letter p:first-child::first-letter { float: left; font-size: 3.6em; line-height: .8; padding: .08em .1em 0 0; color: var(--burgundy); }
.pastor__letter p.pastor__salutation { font-style: italic; font-weight: 500; color: var(--burgundy); font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); line-height: 1.2; margin-bottom: .35em; letter-spacing: .005em; }
.pastor__letter p.pastor__salutation::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit; }
.pastor__sign { margin-top: var(--space-6); font-style: italic; color: var(--muted) !important; font-size: var(--fs-lg) !important; }
.pastor__signature { display: block; font-style: italic; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); color: var(--burgundy); margin-top: .35rem; line-height: 1.2; }
.pastor__role { display: block; font-family: var(--font-sans); font-style: normal; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-top: .35rem; }
.pastor__portrait picture { display: block; }
.pastor__portrait img { object-position: 50% 18%; height: auto; }
.pastor__bio { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.pastor__bio-title { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .75rem; }
.pastor__bio p { color: var(--muted); font-size: var(--fs-sm); }
.pastor__bio-src { font-size: var(--fs-xs) !important; }
.pastor__bio-src a { color: var(--burgundy); }
.pastor__bio-placeholder { margin-top: var(--space-6); padding: 1rem 1.25rem; border: 1px dashed rgba(138,109,20,.5); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--muted); }
.pastor__bio-placeholder span { display: inline-block; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-right: .5rem; }
@media (max-width: 900px) {
  .pastor__portrait { grid-column: 2 / span 10; max-width: 380px; justify-self: center; width: 100%; }
  .pastor__copy { grid-column: 1 / -1; }
}

/* ---------- 8a. History map ---------- */
.history__head .history__map { grid-column: 1 / -1; margin: var(--space-7) 0 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); align-items: end; }
.history__map img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lift); filter: sepia(.35) contrast(1.02); border: 1px solid var(--line); }
.history__map figcaption { font-size: var(--fs-sm); color: var(--muted); max-width: 46ch; border-left: 2px solid var(--gold); padding-left: var(--space-4); font-style: italic; font-family: var(--font-serif); font-size: var(--fs-lg); line-height: 1.45; }
.history__map figcaption a { color: var(--burgundy); }
@media (max-width: 820px) { .history__head .history__map { grid-template-columns: 1fr; } .history__map figcaption { max-width: none; } }

/* ---------- 8. History timeline ---------- */
.history { background: var(--cream-200); overflow: hidden; }
.history::before {   /* subtle editorial watermark */
  content: "Liberia"; position: absolute; right: -2vw; top: 3rem;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(6rem, 18vw, 22rem); line-height: 1;
  color: rgba(74, 18, 26, .035); pointer-events: none; white-space: nowrap;
}
.history__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--space-6); margin-bottom: var(--space-8); }
.history__head > * { grid-column: 1 / span 7; }
.history__intro { grid-column: 8 / span 5; align-self: end; color: var(--muted); font-size: var(--fs-lg); font-weight: 300; }
.history__head .eyebrow { grid-column: 1 / -1; }
.history__head .section-title { max-width: 16ch; }
@media (max-width: 900px) { .history__head > *, .history__intro { grid-column: 1 / -1; } }

.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 1200px; --line-x: 50%; }
.timeline__line { position: absolute; top: 0; bottom: 0; left: var(--line-x); width: 1px; background: var(--line); transform: translateX(-50%); }
.timeline__progress { position: absolute; inset: 0 0 auto 0; height: 100%; background: linear-gradient(var(--gold), var(--gold-deep)); transform-origin: top; transform: scaleY(var(--progress, 0)); width: 2px; left: -.5px; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-block: var(--space-5); }
.tl-item__marker {
  position: absolute; left: var(--line-x); top: calc(var(--space-5) + 2.1rem); width: 15px; height: 15px; border-radius: 50%;
  background: var(--cream); border: 1px solid var(--gold-deep); transform: translate(-50%, 0) rotate(45deg); border-radius: 2px;
  transition: background-color .6s var(--ease), box-shadow .6s var(--ease);
}
.tl-item.is-visible .tl-item__marker { background: var(--gold); box-shadow: 0 0 0 6px rgba(212, 175, 55, .18); }
.tl-card {
  grid-column: 1; margin-right: clamp(2rem, 1rem + 4vw, 5rem);
  background: var(--cream); padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease);
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tl-item:nth-child(odd) .tl-card { grid-column: 2; margin-right: 0; margin-left: clamp(2rem, 1rem + 4vw, 5rem); }
/* stagger the even items upward a touch for an asymmetric, editorial rhythm */
.tl-item + .tl-item { margin-top: clamp(-5rem, -3vw, -1rem); }
.tl-card__date { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-xl); color: var(--gold-deep); margin-bottom: .35rem; line-height: 1.1; }
.tl-card__title { font-size: var(--fs-lg); font-family: var(--font-sans); font-weight: 600; color: var(--burgundy); margin-bottom: .7rem; letter-spacing: 0; line-height: 1.3; }
.tl-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.75; }
.tl-card--feature { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.tl-card--feature .tl-card__date { color: var(--gold); font-size: var(--fs-2xl); }
.tl-card--feature .tl-card__title { color: var(--cream); }
.tl-card--feature p:last-child { color: rgba(253, 251, 247, .82); }
.history__sources { margin-top: var(--space-7); text-align: center; font-size: var(--fs-xs); color: var(--muted); letter-spacing: .04em; }
.history__sources a { color: var(--burgundy); }

/* History page (/history/) and the quiet home-page link to it */
.history--page { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.history-back { padding: var(--space-6) 0 var(--space-8); }
.history-link { background: var(--cream-200); padding: 0 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.history-link__a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; padding: 1.1rem 0; min-height: 44px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none;
}
.history-link__eyebrow { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.history-link__text { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lg); color: var(--burgundy); line-height: 1.35; }
.history-link__arrow { display: inline-block; font-style: normal; color: var(--gold-deep); transition: transform .3s var(--ease); }
.history-link__a:hover .history-link__arrow, .history-link__a:focus-visible .history-link__arrow { transform: translateX(4px); }
.history-link__a:hover .history-link__text { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .timeline { --line-x: 8px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 2.5rem; }
  .tl-item + .tl-item { margin-top: 0; }
  .tl-card, .tl-item:nth-child(odd) .tl-card { grid-column: 1; margin: 0; }
}

/* ---------- 9. Worship / media hub ---------- */
.worship {
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(212, 175, 55, .12), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(122, 38, 49, .6), transparent 70%),
    var(--burgundy);
  color: var(--cream);
}
.worship__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); align-items: end; margin-bottom: var(--space-7); }
.worship__note { color: rgba(253, 251, 247, .75); font-size: var(--fs-lg); font-weight: 300; max-width: 36ch; justify-self: end; }
@media (max-width: 820px) { .worship__head { grid-template-columns: 1fr; } .worship__note { justify-self: start; } }

.media-hub {
  border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  background: rgba(20, 4, 6, .28); padding: clamp(1rem, .5rem + 2vw, 2.5rem);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.tabs { display: flex; gap: .35rem; padding: .35rem; border-radius: 999px; background: rgba(253, 251, 247, .06); width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); scrollbar-width: none; }
.tab {
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  border: 0; background: transparent; color: rgba(253, 251, 247, .72);
  padding: .7rem 1.25rem; border-radius: 999px; font-size: var(--fs-sm); letter-spacing: .03em;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.tab:hover { color: var(--cream); }
.tab[aria-selected="true"] { background: var(--cream); color: var(--burgundy); font-weight: 500; }
.tab-panel { animation: panelIn .6s var(--ease-out); }
.tab-panel:focus-visible { outline-offset: 6px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }

.live-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); gap: clamp(1rem, .5rem + 2vw, 2.5rem); }
@media (max-width: 960px) { .live-grid { grid-template-columns: 1fr; } }

.player__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #120304; box-shadow: 0 0 0 1px rgba(212, 175, 55, .35), 0 0 0 8px rgba(253, 251, 247, .04);
}
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__idle {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(18, 3, 4, .45), rgba(18, 3, 4, .88)),
    url("../assets/uploads/site/church-facade-800w.webp") center 40% / cover,
    url("../assets/church-facade.svg") center 30% / cover;
}
.player__kicker { font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.player__countdown { font-family: var(--font-serif); font-size: var(--fs-xl); margin-bottom: .25rem; line-height: 1.15; }
.player__status { font-size: var(--fs-sm); color: rgba(253, 251, 247, .72); margin-bottom: 1.25rem; }
.player__play {
  width: clamp(56px, 4vw + 36px, 84px); aspect-ratio: 1; border-radius: 50%; margin-inline: auto;
  border: 1px solid rgba(212, 175, 55, .8); background: rgba(212, 175, 55, .12); color: var(--gold);
  display: grid; place-items: center;
  transition: transform .5s var(--ease-out), background-color .35s var(--ease), color .35s var(--ease);
}
.player__play svg { width: 40%; margin-left: 8%; }
.player__play:hover { transform: scale(1.08); background: var(--gold); color: var(--burgundy-900); }
.player__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1rem; }
.player__title { margin: 0; font-family: var(--font-serif); font-size: var(--fs-lg); }
.source-toggle { display: inline-flex; border: 1px solid var(--line-light); border-radius: 999px; padding: 3px; }
.source-toggle__btn { border: 0; background: transparent; color: rgba(253,251,247,.7); font-size: var(--fs-xs); letter-spacing: .06em; padding: .45rem .9rem; border-radius: 999px; transition: all .3s var(--ease); }
.source-toggle__btn[aria-pressed="true"] { background: rgba(212, 175, 55, .18); color: var(--gold-soft); }

.live-aside { border-left: 1px solid var(--line-light); padding-left: clamp(1rem, .5rem + 1.5vw, 2rem); }
@media (max-width: 960px) { .live-aside { border-left: 0; border-top: 1px solid var(--line-light); padding: 1.5rem 0 0; } }
.live-aside__title { font-size: var(--fs-xl); margin-bottom: 1rem; }
.order-of-service { list-style: none; padding: 0; margin: 0 0 1rem; }
.order-of-service li { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-light); font-size: var(--fs-sm); color: rgba(253,251,247,.85); }
.order-of-service span { color: var(--gold); font-variant-numeric: tabular-nums; min-width: 3.2rem; }
.live-aside__fine, .panel-note { font-size: var(--fs-xs); color: rgba(253,251,247,.55); }
.panel-note code { background: rgba(253,251,247,.08); }

.sermon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(1rem, .5rem + 1vw, 1.75rem); }
.sermon {
  display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  border: 1px solid var(--line-light); border-radius: var(--radius); background: rgba(253,251,247,.03); color: var(--cream);
  transition: transform .5s var(--ease-out), border-color .35s var(--ease), background-color .35s var(--ease);
}
.sermon:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.6); background: rgba(253,251,247,.06); }
.sermon__thumb { aspect-ratio: 16/9; position: relative; background: linear-gradient(135deg, var(--burgundy-500), var(--burgundy-900)); display: grid; place-items: center; }
.sermon__thumb::before { content: ""; position: absolute; inset: 0; background: url("../assets/church-facade.svg") center / cover; opacity: .35; mix-blend-mode: luminosity; }
.sermon__thumb svg { position: relative; width: 42px; height: 42px; color: var(--gold); transition: transform .5s var(--ease-out); }
.sermon:hover .sermon__thumb svg { transform: scale(1.15); }
.sermon__body { padding: 1.1rem 1.25rem 1.35rem; }
.sermon__meta { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.sermon__title { font-family: var(--font-serif); font-size: var(--fs-lg); line-height: 1.2; margin-bottom: .35rem; }
.sermon__speaker { font-size: var(--fs-xs); color: rgba(253,251,247,.6); margin: 0; }

.podcast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1rem, .5rem + 2vw, 2.5rem); align-items: start; }
@media (max-width: 860px) { .podcast { grid-template-columns: 1fr; } }
.podcast__now { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; padding: 1.25rem; border-radius: var(--radius); background: rgba(253,251,247,.05); border: 1px solid var(--line-light); }
.podcast__art { width: clamp(72px, 5vw + 48px, 112px); aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--burgundy-900); font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600; box-shadow: var(--shadow-lift); }
.podcast__label { font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .25rem; }
.podcast__title { font-family: var(--font-serif); font-size: var(--fs-lg); margin-bottom: .75rem; line-height: 1.25; }
.podcast__audio { width: 100%; height: 40px; border-radius: 999px; color-scheme: dark; }
@media (max-width: 480px) { .podcast__now { grid-template-columns: 1fr; } }
.episodes { list-style: none; margin: 0; padding: 0; counter-reset: ep; }
.episode {
  width: 100%; display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1rem; align-items: center; text-align: left;
  padding: 1rem .75rem; border: 0; border-bottom: 1px solid var(--line-light); background: transparent; color: var(--cream);
  border-radius: 8px; transition: background-color .3s var(--ease);
}
.episode:hover, .episode[aria-current="true"] { background: rgba(253,251,247,.06); }
.episode__num { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--gold); }
.episode__title { display: block; font-weight: 500; font-size: var(--fs-sm); }
.episode__meta { display: block; font-size: var(--fs-xs); color: rgba(253,251,247,.55); }
.episode__dur { font-size: var(--fs-xs); color: rgba(253,251,247,.6); font-variant-numeric: tabular-nums; }

/* ---------- 9b. Music ministry & gallery ---------- */
.music__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-7) var(--space-6); align-items: center; }
.music__copy { grid-column: 1 / span 5; }
.music__copy > p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lg); font-weight: 300; }
.music__note { font-size: var(--fs-sm) !important; font-weight: 400 !important; padding: 1rem 1.25rem; border: 1px dashed rgba(138,109,20,.5); border-radius: var(--radius-sm); }
.music__note span { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-right: .5rem; }
.gallery { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(120px, 10vw, 200px); gap: clamp(.75rem, .5rem + 1vw, 1.25rem); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__ph { height: 100%; border-radius: var(--radius); display: grid; place-items: end start; padding: 1rem 1.1rem; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--burgundy-500), var(--burgundy-900)); transition: transform .6s var(--ease-out); }
.gallery__item:nth-child(2) .gallery__ph { background: linear-gradient(150deg, #8a6d14, #4a3a0b); }
.gallery__item:nth-child(3) .gallery__ph { background: linear-gradient(150deg, var(--cream-300), #c9b89b); }
.gallery__item:nth-child(4) .gallery__ph { background: linear-gradient(150deg, var(--burgundy-700), #2a080d); }
.gallery__ph::before { content: ""; position: absolute; inset: 0; background: url("../assets/church-facade.svg") center / cover; opacity: .14; mix-blend-mode: luminosity; }
.gallery__ph:hover { transform: scale(1.015); }
.gallery__ph span { position: relative; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: rgba(253,251,247,.85); }
.gallery__item:nth-child(3) .gallery__ph span { color: var(--burgundy); }
@media (max-width: 900px) { .music__copy, .gallery { grid-column: 1 / -1; } .gallery { grid-auto-rows: 140px; } }

/* ---------- 10. Giving ---------- */
.giving__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-7) var(--space-6); }
.giving__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.funds { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .giving__intro, .funds { grid-column: 1 / -1; position: static; } }
.scripture { margin: var(--space-6) 0 0; padding-left: var(--space-5); border-left: 2px solid var(--gold); }
.scripture p { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lg); color: var(--charcoal); line-height: 1.5; }
.scripture cite { font-style: normal; font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.fund { display: grid; grid-template-columns: 4rem 1fr; gap: 0 1.25rem; padding: var(--space-6) 0; border-top: 1px solid var(--line); transition: padding .5s var(--ease-out); }
.fund:last-child { border-bottom: 1px solid var(--line); }
.fund:hover { padding-left: .75rem; }
.fund > *:not(.fund__num) { grid-column: 2; }
.fund__num { grid-row: span 3; font-family: var(--font-serif); font-style: italic; font-size: 2rem; color: var(--gold-deep); line-height: 1; }
.fund__title { font-size: var(--fs-xl); color: var(--burgundy); margin-bottom: .5rem; }
.fund p { color: var(--muted); margin-bottom: .75rem; }
.fund .link-btn { justify-self: start; }

/* ---------- 11. Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: clamp(.75rem, 2vw, 2rem); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(26, 5, 8, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn .4s var(--ease); }
.modal__dialog {
  position: relative; width: min(520px, 100%); max-height: calc(100dvh - 1.5rem); overflow: auto;
  background: var(--cream); border-radius: var(--radius-lg); box-shadow: 0 50px 100px -30px rgba(0,0,0,.55);
  animation: dialogIn .55s var(--ease-out);
}
.modal.is-closing .modal__backdrop { animation: fadeOut .3s var(--ease) forwards; }
.modal.is-closing .modal__dialog { animation: dialogOut .3s var(--ease) forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes dialogOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.75rem 1.75rem 1.25rem; background: var(--burgundy); color: var(--cream); }
.modal__secure { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.modal__secure svg { width: 14px; height: 14px; }
.modal__title { font-size: var(--fs-xl); margin-bottom: .25rem; }
.modal__desc { font-size: var(--fs-xs); color: rgba(253,251,247,.7); margin: 0; letter-spacing: .04em; }
.modal__close { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-light); background: transparent; color: var(--cream); display: grid; place-items: center; transition: transform .4s var(--ease-out), border-color .3s; }
.modal__close svg { width: 18px; }
.modal__close:hover { transform: rotate(90deg); border-color: var(--gold); }
.modal__progress { height: 3px; background: var(--cream-300); }
.modal__progress span { display: block; height: 100%; width: 50%; background: var(--gold); transition: width .6s var(--ease-out); }
.modal__body { padding: 1.5rem 1.75rem 1.75rem; }
.modal :focus-visible { outline-color: var(--burgundy); }

.field { border: 0; margin: 0 0 1.35rem; padding: 0; min-width: 0; }
.field__label { display: block; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; font-weight: 500; padding: 0; }
.field__error { min-height: 1.2em; font-size: var(--fs-xs); color: #a3242f; margin: -.5rem 0 .75rem; }
.segmented, .amounts { display: grid; gap: .5rem; }
.segmented { grid-template-columns: repeat(3, 1fr); background: var(--cream-200); padding: 4px; border-radius: 999px; }
.amounts { grid-template-columns: repeat(4, 1fr); margin-bottom: .6rem; }
.segmented input, .amounts input, .methods input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { text-align: center; padding: .55rem .5rem; border-radius: 999px; font-size: var(--fs-sm); cursor: pointer; transition: all .3s var(--ease); }
.segmented input:checked + label { background: var(--cream); color: var(--burgundy); font-weight: 500; box-shadow: 0 2px 8px rgba(44,20,10,.1); }
.amounts label { text-align: center; padding: .8rem .25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--burgundy); cursor: pointer; transition: all .3s var(--ease); }
.amounts label:hover { border-color: var(--gold); }
.amounts input:checked + label { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.segmented input:focus-visible + label, .amounts input:focus-visible + label, .methods input:focus-visible + label { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.custom-amount { position: relative; display: block; }
.custom-amount__cur { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.custom-amount input, .select select {
  width: 100%; min-height: 48px; padding: .7rem 1rem .7rem 2rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: var(--fs-base); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.custom-amount input:focus, .select select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
.select { position: relative; }
.select select { appearance: none; padding-left: 1rem; padding-right: 2.5rem; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--burgundy); border-bottom: 1.5px solid var(--burgundy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.summary { text-align: center; padding: 1.25rem; border-radius: var(--radius); background: var(--cream-200); margin-bottom: 1.35rem; }
.summary__label { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.summary__amount { font-family: var(--font-serif); font-size: clamp(2.2rem, 2rem + 1vw, 2.8rem); color: var(--burgundy); font-weight: 600; line-height: 1.1; margin-bottom: .25rem; }
.summary__meta { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.methods { display: grid; gap: .6rem; }
.method { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; transition: all .3s var(--ease); position: relative; }
.method::after { content: ""; position: absolute; right: 1.1rem; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); transition: all .3s var(--ease); }
.methods input:checked + .method { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy); }
.methods input:checked + .method::after { border: 5px solid var(--burgundy); }
.method strong { display: block; font-weight: 600; }
.method small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.method__logo { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; font-weight: 700; font-size: 1.15rem; color: #fff; }
.method__logo--givelify { background: linear-gradient(135deg, #2bb3a3, #157a8c); }
.method__logo--paypal { background: linear-gradient(135deg, #1a4fa0, #0b2f6e); font-style: italic; }
.paypal-slot { margin-bottom: 1rem; }
.assurance { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); margin: 0 0 1.25rem; }
.assurance svg { width: 18px; height: 18px; flex: none; color: var(--gold-deep); }
.step__actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.step--thanks { text-align: center; padding: 1rem 0; }
.step--thanks:focus { outline: none; }
.thanks__seal { width: 76px; height: 76px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--burgundy); color: var(--gold); box-shadow: 0 0 0 8px rgba(212,175,55,.18); animation: seal .7s var(--ease-out); }
.thanks__seal svg { width: 34px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .25s var(--ease-out) forwards; }
@keyframes seal { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks__title { font-size: var(--fs-xl); color: var(--burgundy); margin-bottom: .6rem; }
.thanks__text { color: var(--muted); }
.thanks__fine { font-size: var(--fs-xs); color: var(--muted); opacity: .8; margin-bottom: 1.5rem; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } .modal__head, .modal__body { padding-inline: 1.25rem; } }

/* ---------- 12. Outreach / events ---------- */
.outreach { background: var(--cream-200); }
.music { background: var(--cream); }
.outreach__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-5); margin-bottom: var(--space-7); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { border: 1px solid var(--line); background: transparent; padding: .6rem 1.15rem; border-radius: 999px; font-size: var(--fs-sm); color: var(--charcoal); transition: all .3s var(--ease); min-height: 44px; }
.filter:hover { border-color: var(--burgundy); }
.filter[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.events { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, .5rem + 1.5vw, 2rem); }
.event {
  grid-column: span 6; display: flex; flex-direction: column; position: relative;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); box-shadow: var(--shadow-soft);
  transition: transform .6s var(--ease-out), box-shadow .5s var(--ease), opacity .4s var(--ease);
}
.event:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.event:first-child { grid-column: span 7; background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.event:nth-child(2) { grid-column: span 5; }
.event.is-entering { animation: panelIn .6s var(--ease-out) both; }
@media (max-width: 1100px) { .event, .event:first-child, .event:nth-child(2) { grid-column: span 6; } }
@media (max-width: 700px) { .event, .event:first-child, .event:nth-child(2) { grid-column: 1 / -1; } }
.event__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.event__tag { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.event:first-child .event__tag { color: var(--gold); }
.event__day { text-align: right; font-family: var(--font-serif); line-height: 1; color: var(--burgundy); }
.event__day strong { display: block; font-size: clamp(2.4rem, 2rem + 1.5vw, 3.4rem); font-weight: 500; }
.event__day span { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-sans); color: var(--muted); }
.event:first-child .event__day, .event:first-child .event__day span { color: var(--gold); }
.event__title { font-size: var(--fs-xl); color: var(--burgundy); margin-bottom: .6rem; }
.event:first-child .event__title { color: var(--cream); font-size: var(--fs-2xl); }
.event__when { font-size: var(--fs-sm); font-weight: 500; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.event__when svg { width: 16px; height: 16px; color: var(--gold-deep); flex: none; }
.event:first-child .event__when svg { color: var(--gold); }
.event__desc { color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.event:first-child .event__desc { color: rgba(253,251,247,.8); }
.event__placeholder { display: inline-block; font-size: var(--fs-xs); padding: .2rem .6rem; border-radius: 999px; background: rgba(212,175,55,.18); color: #6e560f; margin-bottom: 1rem; align-self: flex-start; }

.atc { position: relative; margin-top: .5rem; align-self: flex-start; }
.atc__btn { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .6rem 1.1rem; font-size: var(--fs-sm); font-weight: 500; color: var(--burgundy); transition: all .3s var(--ease); min-height: 44px; }
.atc__btn:hover, .atc__btn[aria-expanded="true"] { border-color: var(--gold-deep); background: rgba(212,175,55,.1); }
.atc__btn svg { width: 16px; height: 16px; }
.atc__btn .chev { width: 10px; transition: transform .3s var(--ease); }
.atc__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.event:first-child .atc__btn { color: var(--cream); border-color: var(--line-light); }
.event:first-child .atc__btn:hover, .event:first-child .atc__btn[aria-expanded="true"] { border-color: var(--gold); background: rgba(212,175,55,.12); }
.atc__menu {
  position: absolute; left: 0; bottom: calc(100% + .5rem); z-index: 20; min-width: 220px; list-style: none; margin: 0; padding: .4rem;
  background: var(--cream); color: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  animation: panelIn .35s var(--ease-out);
}
.atc__menu a { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border-radius: 8px; text-decoration: none; font-size: var(--fs-sm); }
.atc__menu a:hover, .atc__menu a:focus-visible { background: var(--cream-200); outline: none; }

/* ---------- 13. Footer ---------- */
.footer { background: var(--burgundy-900); color: rgba(253,251,247,.78); padding: clamp(4rem, 3rem + 4vw, 7rem) 0 2rem; font-size: var(--fs-sm); }
.footer :focus-visible { outline-color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-7) var(--space-6); padding-bottom: var(--space-7); border-bottom: 1px solid var(--line-light); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__name { font-family: var(--font-serif); font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); color: var(--cream); line-height: 1.05; }
.footer__name em { color: var(--gold); font-weight: 400; }
.footer__tag { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer__h { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer address { font-style: normal; margin-bottom: .75rem; line-height: 1.7; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__link { color: var(--cream); }
.footer__pastor { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lg); color: var(--cream); margin-top: .5rem; }
.footer__small { font-size: var(--fs-xs); color: rgba(253,251,247,.65); }
.footer__denom { display: flex; align-items: center; gap: 1rem; margin-top: var(--space-5); max-width: 42ch; }
.footer__denom img { width: 84px; height: auto; aspect-ratio: 480 / 409; flex: none; }
.footer__denom p { margin: 0; font-size: var(--fs-xs); line-height: 1.6; color: rgba(253,251,247,.65); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: var(--fs-xs); }
.footer__base p { margin: 0; }

/* ---------- 14. Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 15. Ultra-wide ---------- */
/* Content stays capped at --content-max (1440px); the hero and nav span up to --hero-max. */
@media (min-width: 2200px) { :root { --nav-base: 84px; } }

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__video, .hero__photo img { animation: none; transform: none; }
  .timeline__progress { transform: scaleY(1); }
}

/* Denominational emblem tile in the footer (keeps the black emblem legible on the dark footer) */
.footer__denom picture { flex: none; background: var(--cream); padding: .6rem .7rem; border-radius: 12px; }

/* Small-screen refinements for the media hub */
@media (max-width: 600px) {
  .tabs { width: 100%; }
  .tab { flex: 1 1 0; justify-content: center; padding: .65rem .6rem; font-size: var(--fs-xs); }
  .player__frame:has(.player__idle:not([hidden])) { aspect-ratio: 4 / 3; }
  .player__countdown { font-size: 1.25rem; }
  .player__status { font-size: var(--fs-xs); margin-bottom: .75rem; }
  .player__play { width: 52px; }
}

/* ---------- 3b. Ministerial staff ---------- */
.staff { margin-top: 0; }
.pastor:has(+ .staff-section) { padding-bottom: 0; }
.pastor + .staff-section { padding-top: var(--space-8); }
.staff__head { text-align: center; margin-bottom: var(--space-6); }
.staff__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); color: var(--burgundy); line-height: 1.1; }
.staff__title em { font-style: italic; color: var(--gold-deep); }
.staff__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, .5rem + 2vw, 2.25rem); }
.staff-card figure { margin: 0; }
.staff-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--focus, 50% 40%); border-radius: 999px 999px var(--radius) var(--radius); box-shadow: 0 18px 40px -24px rgba(40,10,15,.45); transition: transform .5s var(--ease, ease); }
.staff-card:hover img { transform: translateY(-4px); }
.staff-card figcaption { text-align: center; margin-top: 1.1rem; }
.staff-card strong { display: block; font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-lg); color: var(--burgundy); line-height: 1.25; }
.staff-card figcaption span { display: block; margin-top: .35rem; font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.staff-card__mono { aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: 999px 999px var(--radius) var(--radius); background: var(--burgundy); color: var(--gold); font-family: var(--font-serif); font-size: 2.6rem; }
@media (max-width: 900px) { .staff__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- music: real photos & featured videos ---------- */
.gallery__item figure { margin: 0; height: 100%; border-radius: var(--radius); overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease, ease); }
.gallery__item:hover img { transform: scale(1.03); }
.music__credit { grid-column: 7 / span 6; margin: calc(-1 * var(--space-7) + .75rem) 0 0; font-size: var(--fs-xs); color: var(--muted); }
.music__credit a { color: var(--burgundy); }
.music__videos { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vcard { all: unset; box-sizing: border-box; cursor: pointer; display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #1b0a0d; }
.vcard img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .82; transition: opacity .3s, transform .5s; }
.vcard:hover img { opacity: .95; transform: scale(1.03); }
.vcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,5,8,.85)); }
.vcard__play { position: absolute; z-index: 1; top: .7rem; right: .7rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(253,251,247,.92); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.vcard__play::before { content: ""; position: absolute; left: 16px; top: 12px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--burgundy); }
.vcard__meta { position: absolute; z-index: 1; left: .85rem; right: .85rem; bottom: .7rem; color: #fdfbf7; line-height: 1.25; }
.vcard__meta strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; }
.vcard__meta span { font-size: .72rem; opacity: .85; }
.vcard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
@media (max-width: 900px) { .music__credit { grid-column: 1 / -1; margin-top: -1rem; } }
@media (max-width: 480px) { .music__videos { grid-template-columns: 1fr; } }

/* ---------- Announcement banner (CMS-toggled) ---------- */
html:has(body.has-banner) { --banner-h: 40px; }
.banner { height: var(--banner-h); display: flex; align-items: center; justify-content: center; padding-inline: var(--gutter); background: var(--burgundy); color: var(--cream); font-size: var(--fs-xs); letter-spacing: .04em; text-align: center; overflow: hidden; }
.banner__text { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.banner__link { color: var(--gold); margin-left: .5rem; text-decoration: underline; text-underline-offset: 3px; }
.banner--celebration { background: linear-gradient(90deg, var(--burgundy-900), var(--burgundy-700) 30%, #8a6d14 50%, var(--burgundy-700) 70%, var(--burgundy-900)); }
.banner--celebration .banner__text::before, .banner--celebration .banner__text::after { content: "✦"; color: var(--gold); margin: 0 .6rem; }
.banner--service { background: var(--gold); color: var(--burgundy-900); }
.banner--service .banner__link { color: var(--burgundy); }
.banner--notice { background: #2c2c2c; }
.has-banner .nav { height: var(--nav-base); }
@media (max-width: 600px) { html:has(body.has-banner) { --banner-h: 48px; } .banner__text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; } }

/* ---------- Little Liberia: map & story ---------- */
.liberia { background: var(--cream-200); }
.liberia__head { max-width: 900px; }
.liberia__intro { color: var(--muted); font-size: var(--fs-lg); font-weight: 300; max-width: 60ch; }
.liberia__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); align-items: start; margin-top: var(--space-6); }
.liberia__stage { position: sticky; top: calc(var(--nav-h) + 1.5rem); aspect-ratio: 1 / 1; max-height: calc(100vh - var(--nav-h) - 3rem); width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--burgundy-900); box-shadow: var(--shadow-lift); }
.liberia__view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s linear .8s; }
.liberia__view.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.liberia__view--1850 picture, .liberia__view--1850 img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: sepia(.25) contrast(1.02); }
.liberia__map { position: absolute; inset: 0; background: var(--cream-300); }
.liberia__badge { position: absolute; z-index: 500; top: 1rem; left: 1rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(42, 8, 13, .82); color: var(--gold); font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; }
.liberia__noscript { position: absolute; inset: auto 1rem 1rem; color: var(--cream); }
.liberia__panels { list-style: none; margin: 0; padding: 0; }
.liberia-panel { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: var(--space-6) 0 var(--space-6) var(--space-5); border-left: 2px solid rgba(74,18,26,.1); transition: border-color .5s var(--ease); }
.liberia-panel > * { transition: transform .5s var(--ease); }
.liberia-panel.is-active { border-left-color: var(--gold); }
.liberia-panel.is-active > * { transform: translateX(4px); }
.liberia-panel:not(.is-active) .liberia-panel__title { color: var(--burgundy-700, #6b2a33); }
.liberia-panel:first-child { min-height: 50vh; justify-content: flex-start; padding-top: var(--space-4); }
.liberia-panel__date { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 .5rem; }
.liberia-panel__title { font-family: var(--font-serif); font-weight: 500; font-size: var(--fs-xl); color: var(--burgundy); margin: 0 0 .75rem; line-height: 1.15; }
.liberia-panel p { color: var(--charcoal); max-width: 46ch; }
.liberia__places { list-style: none; padding: 0; margin: var(--space-7) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, .5rem + 1.5vw, 2rem); }
.place-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.place-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-lg); color: var(--burgundy); margin: 0 0 .25rem; }
.place-card__addr { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 .75rem; }
.place-card p { color: var(--muted); font-size: var(--fs-sm); }
.place-card__src, .liberia__credit { font-size: var(--fs-xs) !important; color: var(--muted); }
.place-card a, .liberia__credit a { color: var(--burgundy); }
.liberia__credit { margin-top: var(--space-5); }
.leaflet-container { font-family: var(--font-sans); }
.wm-pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--burgundy); border: 3px solid var(--gold); box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.wm-pin.is-active { background: var(--gold); border-color: var(--burgundy); }
@media (max-width: 900px) {
  .liberia__grid { grid-template-columns: 1fr; gap: 0; }
  .liberia__stage { position: relative; top: auto; aspect-ratio: 4 / 3; max-height: 60vh; z-index: 1; }
  .liberia-panel { min-height: 0; }
  .liberia-panel:first-child { padding-top: var(--space-6); }
}

/* ---------- Ministries ---------- */
.ministries__head { max-width: 900px; margin-bottom: var(--space-6); }
.ministries__intro { color: var(--muted); font-size: var(--fs-lg); font-weight: 300; }
.ministry-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(1rem, .5rem + 1.5vw, 2rem); }
.ministry-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ministry-card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ministry-card__media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--burgundy-700), var(--burgundy-900)); }
.ministry-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ministry-card__mono { display: grid; place-items: center; height: 100%; font-family: var(--font-serif); font-size: 3rem; color: var(--gold); }
.ministry-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.4rem 1.5rem; flex: 1; }
.ministry-card__name { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 600; color: var(--burgundy); }
.ministry-card__time { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); letter-spacing: .06em; color: var(--gold-deep); }
.ministry-card__time svg { width: 15px; height: 15px; }
.ministry-card__sum { color: var(--muted); font-size: var(--fs-sm); }
.ministry-card__more { margin-top: auto; padding-top: .5rem; font-size: var(--fs-sm); color: var(--burgundy); font-weight: 500; }

/* ---------- Connect: prayer & updates forms ---------- */
.connect { background: var(--cream-200); }
.connect__head { margin-bottom: var(--space-6); }
.connect__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1rem, .5rem + 2vw, 2.5rem); align-items: start; }
.cform { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); display: grid; gap: 1.1rem; }
.cform--dark { background: var(--burgundy); color: var(--cream); border-color: transparent; }
.cform__title { font-family: var(--font-serif); font-weight: 500; font-size: var(--fs-xl); color: var(--burgundy); margin: 0; line-height: 1.15; }
.cform--dark .cform__title { color: var(--cream); }
.cform__intro { margin: 0; color: var(--muted); }
.cform--dark .cform__intro, .cform--dark .cform__fine, .cform--dark .form-fallback { color: rgba(253,251,247,.78); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cfield { display: grid; gap: .4rem; font-size: var(--fs-sm); font-weight: 500; border: 0; padding: 0; margin: 0; }
.cfield small { font-weight: 400; color: var(--muted); }
.cform--dark .cfield small { color: rgba(253,251,247,.65); }
.cfield input:not([type=radio]):not([type=checkbox]), .cfield textarea { font: inherit; font-weight: 400; width: 100%; padding: .8rem .95rem; border: 1px solid rgba(74,18,26,.22); border-radius: var(--radius-sm); background: #fff; color: var(--charcoal); }
.cfield textarea { resize: vertical; min-height: 8rem; }
.cfield input:focus-visible, .cfield textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.cfield--choice legend { font-weight: 500; margin-bottom: .4rem; }
.cfield--choice label, .cfield--check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; padding: .25rem 0; }
.cfield--choice input, .cfield--check input { margin-top: .25rem; accent-color: var(--burgundy); width: 18px; height: 18px; flex: none; }
.cform--dark .cfield--check input { accent-color: var(--gold); }
.cform__fine { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.cform .btn { justify-self: start; }
.cform__status { margin: 0; font-size: var(--fs-sm); min-height: 1.2em; }
.cform__status.is-error { color: #a12a2a; }
.cform--dark .cform__status.is-error { color: #ffb4a8; }
.cform__status.is-ok { color: #1f6b3a; font-weight: 500; }
.cform--dark .cform__status.is-ok { color: var(--gold-soft); }
.form-fallback { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.form-fallback a { color: inherit; font-weight: 600; }
.form-fallback.is-prominent { font-size: var(--fs-sm); padding: .9rem 1rem; border: 1px dashed currentColor; border-radius: var(--radius-sm); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .connect__grid, .cform__row { grid-template-columns: 1fr; } }

/* ---------- Simple pages & ministry detail ---------- */
.subpage { padding-top: var(--nav-h); }
.page__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-6); }
.page__head { grid-column: 1 / span 8; }
.page__head .section-title { max-width: 22ch; }
.page__head .eyebrow a { color: inherit; text-decoration: none; }
.page__lede { font-size: var(--fs-lg); font-weight: 300; color: var(--muted); max-width: 55ch; }
.page__image { grid-column: 1 / -1; margin: 0; }
.page__image img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.page__body { grid-column: 2 / span 8; }
.prose { font-size: var(--fs-base); line-height: 1.75; color: var(--charcoal); }
.prose h2, .prose h3 { font-family: var(--font-serif); color: var(--burgundy); font-weight: 500; line-height: 1.2; margin: 2rem 0 .75rem; }
.prose h2 { font-size: var(--fs-xl); } .prose h3 { font-size: var(--fs-lg); }
.prose a { color: var(--burgundy); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--gold); font-family: var(--font-serif); font-size: var(--fs-lg); font-style: italic; }
.ministry__facts { margin-top: var(--space-5); }
.ministry__video { max-width: 560px; margin: var(--space-6) 0; }
.page__src { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 900px) { .page__head, .page__body { grid-column: 1 / -1; } }

/* ---------- questions & answers ---------- */
.faq { background: var(--cream); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-7, 3rem); align-items: start; }
.faq__intro { color: var(--muted); font-size: var(--fs-lg); font-weight: 300; }
.faq__list { display: grid; gap: .75rem; }
.faq__item { background: #fff; border: 1px solid rgba(74, 18, 26, .12); border-radius: 14px; box-shadow: 0 10px 30px -24px rgba(40, 10, 15, .45); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 14px; }
.faq__q { margin: 0; font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 600; color: var(--burgundy); line-height: 1.3; }
.faq__item .chev { flex: none; width: 14px; height: 9px; color: var(--gold-deep, #7a5f0f); transition: transform .3s var(--ease); }
.faq__item[open] .chev { transform: rotate(180deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq__a p { margin: 0 0 .6rem; } .faq__a p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5, 1.5rem); } }

/* Below-the-fold sections: let the browser skip their layout & paint until they're near the screen (faster first load on phones). */
:root:not(.cv-off) .welcome, :root:not(.cv-off) .pastor, :root:not(.cv-off) .staff-section, :root:not(.cv-off) .history, :root:not(.cv-off) .giving, :root:not(.cv-off) .worship, :root:not(.cv-off) .music, :root:not(.cv-off) .ministries, :root:not(.cv-off) .outreach, :root:not(.cv-off) .faq, :root:not(.cv-off) .connect, :root:not(.cv-off) .footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* main.js adds .cv-off before any jump to a #section so the scroll lands exactly. */

/* Church contact details (address → directions, phone, email, Sunday worship) */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-family: var(--font-sans); font-size: var(--fs-sm); line-height: 1.4; color: var(--ink, inherit); }
.contact-list li { display: flex; align-items: flex-start; gap: .6rem; min-width: 0; }
.contact-list__icon { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin-top: .1rem; fill: none; stroke: var(--gold-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: var(--burgundy); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; overflow-wrap: anywhere; }
.contact-list a:hover, .contact-list a:focus-visible { text-decoration-color: currentColor; }
.facts .facts__contact dd { font-family: var(--font-sans); font-size: var(--fs-sm); }
.contact-list--card { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.place-card .contact-list--card { color: var(--ink, inherit); }
.contact-list--footer { color: var(--cream); gap: .6rem; }
.contact-list--footer a { color: var(--cream); }
.contact-list--footer .contact-list__icon { stroke: var(--gold, #c9a227); }
.connect__contact { margin-top: var(--space-5); padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); max-width: 60rem; }
.connect__contact-title { margin: 0 0 .6rem; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-family: var(--font-sans); font-weight: 600; }
.contact-list--row { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem 1.5rem; }
.contact-list--card + .place-card__src { margin-top: .9rem; }

/* Little Liberia, compact: today's map beside the place cards (no scrolling story) */
.liberia--compact .liberia__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.25rem, .75rem + 2vw, 2.5rem); align-items: stretch; }
.liberia--compact .liberia__stage { position: relative; top: auto; aspect-ratio: auto; min-height: 420px; max-height: none; height: 100%; }
.liberia--compact .liberia__places { margin: 0; grid-template-columns: 1fr; align-content: start; }
@media (max-width: 900px) {
  .liberia--compact .liberia__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .liberia--compact .liberia__stage { aspect-ratio: 4 / 3; min-height: 0; height: auto; max-height: 60vh; }
}
.liberia--compact .liberia__badge { left: auto; right: 1rem; }
