/* CBA Orlando — design system ("Divine Light"; BRAND-FAMILY.md §2/§3/§4).
   Light, airy, minimalist white-and-tint canvas with ONE vivid door hue
   (CBA = LIFE GREEN --home) as the only accent color — colorful yet simple,
   big legible type, generous whitespace, one idea per section. Display type
   is Poppins, body type is Inter (BRAND-FAMILY.md §3); Fraunces is kept ONLY
   as the optional warm-serif accent for Scripture verses/pull-quotes, never
   as the default heading face.

   Single source of truth: every page (_build/) renders against these class
   names; the legacy class names (page-hero, band, sky-band, resource-note,
   button.dark/ghost/light, etc.) are mapped here so the inner pages inherit
   the Divine Light look without markup changes. */

:root {
  /* ---- Divine Light neutrals (BRAND-FAMILY.md §2, exact tokens) ---- */
  --paper: #ffffff;       /* clean white canvas — THE background */
  --paper-2: #ffffff;     /* cards / raised surfaces */
  --mist: #f6f7fb;        /* soft section / card tint (--bg-tint) */
  --ink: #16213a;         /* deep near-navy text */
  --ink-soft: #5a6478;    /* secondary text (--muted) */
  /* WCAG AA fix: the original #838da3 measured only 3.33:1 on white (fails the
     4.5:1 required for real body-sized text — this token is used for the
     footer legal line, form "(optional)" hints, and privacy notes, all real
     content, not decorative). #657085 clears 4.5:1 on both --paper and
     --mist while staying visibly a step lighter than --ink-soft. */
  --ink-faint: #657085;   /* tertiary / meta */
  --line: #e7e9f2;        /* hairline borders */
  --line-strong: #d7dbec; /* stronger hairline */

  /* ---- The divine spectrum (one hue owns each door; BRAND-FAMILY.md §2) ---- */
  --home: #1fa15b;        /* CBA Orlando   — Life Green (primary here) */
  --call: #f4a72c;        /* God's Calling — Sunrise Amber */
  --word: #f2624c;        /* Pray Then Act — Living Coral */
  --way: #7a5af0;         /* Discover Jesus — Royal Violet */
  --waters: #16b5c4;      /* To The Waters — Living-Water Cyan (baptism) */

  /* ---- CBA's own door — Life Green (primary and ONLY accent) ---- */
  --green: #1c7a4e;       /* deep, AA-on-light green for type/links */
  --green-deep: #0e4f33;  /* deepest green — emphasis word, headings on tint */
  --green-bright: #27a668;/* brighter green — gradient top */

  /* ---- "Gold" tokens repointed to green (BRAND-FAMILY.md: ONE vivid color
     per door — CBA never introduces a second accent hue). Kept as --gold-*
     names only so every existing eyebrow/numeral/hairline/status class below
     keeps working unchanged; the rendered color is CBA's own green. ---- */
  --gold: var(--green);          /* eyebrows, numerals, hairlines */
  --gold-2: var(--green-bright); /* secondary emphasis */
  --gold-soft: #cfead9;          /* soft green — underline glow */
  --gold-line: rgba(31, 161, 91, 0.28);

  /* ---- Skylight atmosphere (subtle, green-tinted, not gold) ---- */
  --glow-warm: rgba(255, 255, 255, 0.95);
  --glow-gold: rgba(31, 161, 91, 0.10);

  --shadow: 0 24px 60px -28px rgba(16, 33, 58, 0.24);
  --shadow-soft: 0 14px 40px -24px rgba(16, 33, 58, 0.18);
  --shadow-sm: 0 12px 30px -20px rgba(16, 33, 58, 0.14);

  --radius: 18px;
  /* Display = Poppins, body = Inter (BRAND-FAMILY.md §3). --serif is kept ONLY
     for the optional warm-serif accent (verse/pull-quote/numeral flourishes),
     never the default heading face. */
  --display: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: var(--sans); /* BRAND-FAMILY.md token name for family chrome */
  --wrap: 1180px;

  /* ---- Legacy aliases — keep old class names rendering against Divine Light tokens -- */
  --bg: var(--paper);
  --bg-tint: var(--mist);
  --white: #ffffff;
  --muted: var(--ink-soft);
  --soft: var(--mist);
  --sky: var(--mist);
  --forest: var(--home);
  --accent: var(--home);
  --accent-strong: var(--green);
  --accent-2: var(--gold);       /* eyebrows / kickers — CBA green */
  --copper-strong: var(--green-deep);
  --coral: var(--word);
  --deep: var(--green-deep);     /* old "dark section" → deep green */
  --deep-2: var(--green-deep);
  /* This site's own door hue, consumed by the Donate pill (BRAND-FAMILY.md §9). */
  --site-hue: var(--home);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
  color: var(--ink);
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  font-weight: 700;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.3rem;
  line-height: 1.26;
  font-weight: 600;
}

/* The emphasis word: deep-green with a soft green underline glow (matches the
   prototype's <span class="lit"> / inner-page <span class="gold">). Upright,
   not italic — Poppins/Inter is a clean geometric system, not a serif one. */
.gold,
.lit {
  color: var(--green-deep);
  font-style: normal;
  font-weight: 600;
  position: relative;
}

.lit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.42em;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, var(--gold-soft) 40%);
  opacity: 0.55;
}

/* The fixed, gently-breathing skylight — the ONLY background atmosphere. */
.skylight {
  position: fixed;
  inset: 0 0 auto 0;
  height: 88vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(62% 60% at 50% -8%, var(--glow-warm), transparent 68%),
    radial-gradient(42% 46% at 68% -4%, var(--glow-gold), transparent 60%);
  animation: breathe 12s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

@media (prefers-reduced-motion: reduce) {
  .skylight { animation: none; }
  .rise { animation: none !important; }
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 60;
  background: var(--green-deep);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2);
}

.nav-wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 74px;
  padding: 0.7rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
}

/* The CBA mark — inline SVG (BRAND-FAMILY.md §4), rendered at 36px in the
   header. The svg itself carries the green fill + white cross-over-water
   glyph; this wrapper sizes it and adds the lift shadow. */
.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px -4px rgba(14, 79, 51, 0.5);
  flex: none;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-text > span:first-child {
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-family: var(--sans);
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  font: 600 0.92rem var(--sans);
}

/* Three-zone bar: brand pinned left, links centered in the leftover space
   (auto margins), flags + Give pinned right. */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 100%;
  bottom: 0.1rem;
  height: 1.5px;
  background: var(--gold);
  transition: right 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a[aria-current="page"]::after {
  right: 0.4rem;
}

/* Header right cluster — flag switcher + the single Donate pill (BRAND §12). */
.header-right {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}

/* Language switcher = small FLAGS (BRAND-FAMILY.md §11). */
.langs {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.langs a,
.langs .on {
  display: inline-flex;
  width: 25px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
}

.langs a:hover,
.langs a:focus {
  opacity: 1;
  transform: translateY(-1px);
}

.langs .on {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--site-hue, #1fa15b);
}

.langs .flag {
  width: 100%;
  height: 100%;
  display: block;
}

/* The flag switcher is duplicated inside the dropdown (.nav-langs) for mobile;
   on desktop the bar copy is used, so the dropdown copy stays hidden. */
.nav-langs {
  display: none;
}

/* ---- Buttons — pill (solid-green primary / hairline ghost) ---- */
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.86rem 1.6rem;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.2s, color 0.2s, border-color 0.2s;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

/* Primary = solid green gradient pill (the confident door hue).
   WCAG AA fix: the lighter --green-bright endpoint measured only 3.12:1 for
   white button text (fails the 4.5:1 small-text requirement — button labels
   are ~16px, below the "large text" carve-out). Both endpoints below are
   verified >= 5.3:1 against white. */
.button.primary,
.button.warm,
.button.dark {
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(28, 122, 78, 0.6);
}

.button.primary:hover,
.button.primary:focus,
.button.warm:hover,
.button.warm:focus,
.button.dark:hover,
.button.dark:focus {
  box-shadow: 0 20px 38px -14px rgba(28, 122, 78, 0.7);
  color: #fff;
}

/* Ghost / outline / light = hairline pill on the light canvas. */
.button.ghost,
.button.outline,
.button.light {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.ghost:hover,
.button.ghost:focus,
.button.outline:hover,
.button.outline:focus,
.button.light:hover,
.button.light:focus {
  border-color: var(--green);
  color: var(--green-deep);
  background: var(--paper-2);
}

/* ---- Shared layout ---- */

/* WhatsApp button — green brand, used on baptism / decision pages */
.button.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.button.whatsapp-btn:hover,
.button.whatsapp-btn:focus {
  background: #1eb558;
  border-color: #1eb558;
  color: #fff;
}
.section-inner,
.footer-inner {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
}

main {
  position: relative;
  z-index: 1;
}

main section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2.6rem;
  max-width: 46ch;
}

.section-head .section-kicker {
  margin-bottom: 0.4rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}

/* Center the eyebrow hairline on both sides when the head is centered. */
.section-head.center .section-kicker::after {
  content: "";
  width: 26px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-head p,
.muted {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---- Page hero (inner pages) — now LIGHT and airy under the skylight ---- */
.hero,
.page-hero {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--ink);
  padding: clamp(3.25rem, 8vh, 6rem) 0 clamp(2.75rem, 5vh, 4rem);
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold);
}

.hero h1,
.page-hero h1 {
  color: var(--ink);
  max-width: 16ch;
}

.hero-lede,
.page-hero p {
  max-width: 34em;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.6;
}

.page-hero .actions {
  margin-top: 1.8rem;
}

/* ---- Photographic page hero — REAL PEOPLE on every inner page ----
   Matches the homepage treatment: a big image behind the headline, veiled by a
   light wash so the type stays legible and the page stays white and airy. */
.page-hero {
  overflow: hidden;
  padding-top: clamp(4rem, 9vh, 7rem);
  padding-bottom: clamp(3.25rem, 6vh, 5rem);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

/* Light veil — keeps the CBA "Divine Light" feel over any photograph. */
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.80) 45%, rgba(255,255,255,.94) 100%),
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.62) 62%, rgba(255,255,255,.55) 100%);
}

.page-hero .section-inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .page-hero-bg img { object-position: center 42%; }
  .page-hero-bg::after {
    background: linear-gradient(180deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.88) 50%, rgba(255,255,255,.96) 100%);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

/* ---- Emergency strip — calm light strip (no longer a dark slab) ---- */
.urgent-strip {
  background: var(--mist);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  color: var(--ink);
}

.urgent-strip .section-inner {
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.urgent-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.urgent-strip strong {
  color: var(--green-deep);
}

.urgent-strip a:not(.button) {
  color: var(--green-deep);
  font-weight: 600;
}

/* ---- Grids + cards (hairline cells with a hover lift) ---- */
.grid {
  display: grid;
  gap: 1.1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: none;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.card p:last-child,
.split-copy p:last-child,
.resource-note p:last-child {
  margin-bottom: 0;
}

.card.is-urgent {
  border-left: 4px solid var(--word);
}

.card h3 {
  font-size: 1.28rem;
}

.card p {
  color: var(--ink-soft);
}

/* Gold serif numeral (matches the prototype's italic-gold index). */
.number {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
}

.status {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: rgba(39, 166, 104, 0.12);
  color: var(--green-deep);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* "Planned" is a neutral state (not yet live) — kept off the brand green so it
   reads distinctly from the "active" pill above, without adding a second hue. */
.status.planned {
  background: var(--mist);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}

/* ---- Split sections ---- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-frame img {
  width: 100%;
  object-fit: cover;
}

.check-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
}

.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-2);
}

/* ---- Bands (soft tint) ---- */
.band {
  background: var(--mist);
}

.sky-band {
  background: linear-gradient(180deg, var(--mist), var(--paper));
  border-top: 1px solid var(--gold-line);
}

/* ---- Leadership ---- */
.leader-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
}

.leader-card span {
  display: block;
  color: var(--ink-soft);
}

/* Neutral avatar placeholder until real leadership photos arrive (BRAND-FAMILY.md §11). */
.leader-card .leader-avatar {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 0.5rem;
}

.leader-card .leader-photo-soon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--mist);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
}

/* ---- Schedule ---- */
.schedule {
  display: grid;
  gap: 0.5rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row strong {
  color: var(--green-deep);
}

/* ---- Callout card (formerly the dark "resource-note") — now a warm tint card -- */
.resource-note {
  background: var(--mist);
  color: var(--ink);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.resource-note h3 {
  color: var(--green-deep);
}

.resource-note p,
.resource-note .muted {
  color: var(--ink-soft);
}

/* ---- Directory ---- */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.directory-card {
  display: grid;
  gap: 0.55rem;
}

.directory-card a {
  color: var(--green);
  font-weight: 600;
}

/* ---- Article (resources) ---- */
.article {
  display: grid;
  gap: 2rem;
  max-width: 760px;
}

.prose > h2 {
  margin: 2.4rem 0 0.6rem;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose > h3 {
  margin: 1.8rem 0 0.4rem;
}

.prose p {
  margin: 0 0 1rem;
  line-height: 1.78;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.5rem;
  color: var(--ink-soft);
}

.prose li {
  line-height: 1.7;
}

.prose li::marker {
  color: var(--gold);
}

.prose a {
  color: var(--green);
  font-weight: 600;
  border-bottom: 1px solid var(--gold-line);
}

.prose a:hover {
  border-bottom-color: currentColor;
}

.article-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.article-related a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--green-deep);
}

.article-related a:hover,
.article-related a:focus {
  background: var(--mist);
  border-color: var(--line-strong);
}

/* ---- Forms (help / serve / start / care intake) ---- */
.form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  max-width: 780px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field.wide,
.choices,
.form-grid > .seg-field {
  grid-column: 1 / -1;
}

.field > span {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.field i {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.field textarea {
  resize: vertical;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  background: var(--paper);
}

.choice:has(input:checked) {
  border-color: var(--green);
  background: rgba(39, 166, 104, 0.08);
  box-shadow: inset 0 0 0 1px var(--green);
}

.choice input {
  margin-top: 0.2rem;
  accent-color: var(--green);
}

.choice span {
  font-weight: 600;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.seg label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}

.seg label:has(input:checked) {
  border-color: var(--green);
  background: rgba(39, 166, 104, 0.08);
  color: var(--green-deep);
}

.seg input {
  accent-color: var(--green);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.urgent-note {
  margin: 0 0 0.4rem;
  grid-column: 1 / -1;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  background: #fbeede;
  color: #8a4a17;
  border: 1px solid var(--gold-line);
  font-weight: 600;
}

.urgent-note strong {
  color: #8a4a17;
}

.form .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-status {
  margin: 0.6rem 0 0;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-status.ok {
  color: var(--green);
}

.form-status.err {
  color: var(--word);
}

.form-privacy {
  margin: 0.8rem 0 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

/* ---- "Explore the family" — CANONICAL 10-door grid (5 + 5, centered) ----
   This block is the family standard. Copy verbatim to every CBA family site. */
.cba-family-bar {
  position: relative;
  z-index: 1;
  background: var(--paper-2, #f7faf8);
  border-top: 1px solid var(--line);
  padding: clamp(2.4rem, 4vw, 3.4rem) 0 clamp(2.2rem, 4vw, 3rem);
}

.cba-family-bar .family-head {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto clamp(1.5rem, 3vw, 2.1rem);
}

.cba-family-bar .cba-family-eyebrow {
  display: block;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--green-deep, #158049);
  margin-bottom: 0.6rem;
}

.cba-family-bar .family-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: none;
}

/* 5 across on desktop → exactly two rows of five for ten doors. */
.family-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 1000px;
  margin: 0 auto;
}

.family-door {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 0.7rem;
  min-height: 56px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}

.family-door .dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  border-radius: 50%;
  background: var(--c, var(--home));
}

.family-door:hover,
.family-door:focus-visible {
  color: var(--ink);
  border-color: var(--c, var(--home));
  box-shadow: 0 6px 18px -8px rgba(18, 49, 79, 0.28);
  transform: translateY(-2px);
}

/* The site you are currently on — no link, marked as home. */
.family-door.is-here {
  background: color-mix(in srgb, var(--c) 9%, #fff);
  border-color: var(--c, var(--home));
  color: var(--ink);
  cursor: default;
}

@media (max-width: 900px) {
  .family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .family-door { font-size: 0.82rem; padding: 0.75rem 0.55rem; min-height: 50px; }
}

/* Copyright — the last line of every page. Left: ©  ·  Right: Soli Deo Gloria */
.copyright-line {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0 1.4rem;
  color: var(--ink-faint);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
}

.copyright-line .soli {
  font-family: var(--display, inherit);
  font-style: italic;
}

@media (max-width: 560px) {
  .copyright-line { justify-content: center; text-align: center; }
}

/* ---- Footer — light + airy (Glory) ---- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer-inner {
  padding: clamp(3rem, 5vw, 4.2rem) 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(120px, 0.7fr));
  gap: 1.75rem 2rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--green-deep);
}

.site-footer h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.site-footer p {
  color: var(--ink-soft);
  max-width: 32ch;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.legal-line {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  color: var(--ink-faint);
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.legal-links a {
  color: var(--ink-faint);
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus {
  color: var(--green-deep);
}

/* Colophon — "A ministry of CBA Orlando" (light footer). */
.cba-colophon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.cba-colophon .cba-mark {
  flex: none;
  border-radius: 7px;
}

.cba-colophon strong {
  color: var(--ink);
  font-weight: 600;
}

.site-footer a.cba-colophon:hover strong,
.site-footer a.cba-colophon:focus strong {
  text-decoration: underline;
}

/* Shared family legal line — sits just above the operational legal line. */
.family-legal {
  border-top: 1px solid var(--line);
  padding: 1rem 0 0.25rem;
  color: var(--ink-faint);
  font-size: 0.84rem;
  line-height: 1.7;
}

.family-legal + .legal-line {
  border-top: 0;
  padding-top: 0.5rem;
}

/* ---- Giving panel (Tithe.ly embed + security cues) ---- */
.give-panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.85rem;
}

.give-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--green-deep);
}

.give-lock {
  flex: none;
  color: var(--green-deep);
}

.give-embed {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.give-embed-help {
  margin: 0 0 1rem;
}

.give-embed-btn.cba-give {
  font-size: 1.05rem !important;
  padding: 0.85rem 2rem !important;
}

.give-embed-fallback {
  margin-top: 1.5rem;
  background: var(--mist);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.give-embed-fallback h3 {
  margin-top: 0;
}

/* ---- Transparency / legal facts ---- */
.legal-facts {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.legal-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.5fr) 1fr;
  gap: 0.5rem 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.legal-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-row dt {
  font-weight: 600;
  color: var(--green-deep);
}

.legal-row dd {
  margin: 0;
  color: var(--ink);
}

.subhead {
  text-align: center;
  margin: 2rem 0 1rem;
  color: var(--green-deep);
}

/* ---- Header Donate button — the ONLY header CTA (BRAND-FAMILY.md §9) ---- */
.header-give {
  flex: none;
}

.cba-give,
button.tithely-give-button.cba-give {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* WCAG AA fix: --green/--green-deep (not --green-bright) so white button
     text clears 4.5:1 at this ~15px size (verified 5.3:1 / 9.6:1). */
  background: linear-gradient(160deg, var(--green), var(--green-deep)) !important;
  color: #fff !important;
  font: 600 0.95rem/1 var(--sans) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 999px !important;
  border: none !important;
  cursor: pointer;
  text-shadow: none !important;
  box-shadow: 0 8px 20px -8px rgba(28, 122, 78, 0.6);
  min-height: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cba-give:hover,
.cba-give:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -10px rgba(28, 122, 78, 0.7);
}

/* ---- The Spectrum — Ministries hub door-coded spoke cards (BRAND-FAMILY.md §2) */
.spoke-spectrum {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.spoke-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--door, var(--home));
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.6rem;
  box-shadow: none;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.spoke-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.spoke-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--door, var(--home)) 14%, white);
  color: var(--door, var(--home));
}

.spoke-icon svg {
  width: 26px;
  height: 26px;
}

.spoke-card h3 {
  margin: 0.2rem 0 0;
}

.spoke-card p {
  margin: 0;
  color: var(--ink-soft);
}

.spoke-card .button.spoke-cta {
  margin-top: auto;
  /* WCAG AA fix: --door-btn is a deepened, per-door variant (set inline by
     ministries.mjs) verified >= 4.5:1 for white text; the raw --door hue
     (used for the border/icon above) measured as low as 2.0:1. Falls back to
     --door itself if --door-btn is ever absent. */
  background: var(--door-btn, var(--door, var(--home)));
  color: #fff;
  border-color: transparent;
  align-self: flex-start;
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--door, var(--home)) 80%, black);
}

.spoke-card .button.spoke-cta:hover,
.spoke-card .button.spoke-cta:focus {
  filter: brightness(0.96);
  color: #fff;
}

.spoke-card .muted {
  margin: 0;
  font-size: 0.85rem;
}

/* ======================================================================
   HOMEPAGE — Glory in the Light (matches cba-glory.html faithfully)
   ====================================================================== */

/* ---- Hero ---- */
.home-hero {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 9vh, 7rem) 0 clamp(3rem, 6vh, 5rem);
  /* Clip the decorative .hero-sun (absolute, right:-3%); without this it escapes
     body's overflow-x:hidden and shifts/clips the whole page on mobile. */
  overflow: hidden;
}

/* Hero background image — full-bleed, soft overlay, behind the text. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: brightness(1.15) saturate(0.9);
}

/* On mobile, let the image breathe a bit more. */
@media (max-width: 640px) {
  .hero-bg-img {
    opacity: 0.18;
  }
}

.home-hero .hero-inner {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
  max-width: 920px;
}

.home-hero .eyebrow {
  margin-bottom: 0;
}

.home-hero h1 {
  font-size: clamp(3rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 1.6rem 0 0;
  max-width: 16ch;
}

.home-hero .hero-lede {
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 33em;
  margin: 1.6rem 0 0;
}

.home-hero .actions {
  margin-top: 2.2rem;
}

.verse-whisper {
  margin: 2.5rem 0 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--gold-line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.verse-whisper cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* ---- Verse of the Day (shared family block) ---- */
.vod {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 2.75rem auto 0;
  max-width: 920px;
  padding: 1.8rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(14, 79, 51, 0.07);
  backdrop-filter: blur(8px);
}

.vod-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.vod-kicker {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.vod-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.vod-verse {
  margin: 0.85rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  color: var(--ink);
}

.vod-teach {
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60em;
}

.vod-player {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  background: rgba(207, 234, 217, 0.25);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vod-player-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vod-player-label .ic {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.vod-audio {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  outline: none;
}

.vod-promo {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--gold-line);
}

.vod-promo-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.vod-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.vod-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}

.vod-card:hover {
  background: #ffffff;
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(14, 79, 51, 0.08);
}

.vod-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c, var(--green));
  flex-shrink: 0;
}

.vod-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.3;
}

.vod-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.vod-meta span {
  color: var(--green-deep);
  font-size: 0.76rem;
}

.meta-line {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  align-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.meta-line .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
}

/* Faint rotating sun behind the hero. */
.hero-sun {
  position: absolute;
  top: 6%;
  right: -3%;
  width: min(36vw, 400px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: spin 90s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sun { animation: none; }
}

/* ---- Three open doors ---- */
.doors .section-head {
  margin-bottom: 2.6rem;
}

.doors .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.door {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.1rem 1.9rem 1.8rem;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.door::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-bright), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.door:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.door:hover::before {
  transform: scaleX(1);
}

.door .idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
}

.door h3 {
  font-size: 1.45rem;
  margin: 0.7rem 0 0.55rem;
}

.door p {
  margin: 0 0 1.3rem;
  color: var(--ink-soft);
  font-size: 0.99rem;
}

.door .go {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-deep);
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.door .go .arr,
.button .arr,
.door:hover .go .arr {
  transition: transform 0.2s;
}

.door:hover .go .arr,
.button:hover .arr {
  transform: translateX(4px);
}

/* ---- Offerings grid (hairline cells) ---- */
.offer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gold-line);
}

.offer .cell {
  padding: 1.9rem 1.6rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.25s;
}

.offer .cell:nth-child(3n) {
  border-right: none;
}

.offer .cell:hover {
  background: var(--mist);
}

.offer .cell .ic {
  width: 30px;
  height: 30px;
  color: var(--green);
  margin-bottom: 0.9rem;
}

.offer .cell h3 {
  font-size: 1.18rem;
  margin: 0 0 0.35rem;
}

.offer .cell p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---- Community mosaic — 4-image responsive strip ---- */
.mosaic {
  background: var(--mist);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.mosaic-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.mosaic-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.mosaic-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  display: block;
}

@media (max-width: 980px) {
  .mosaic-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mosaic-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

/* ---- Visit image (left of the visit text on desktop) ---- */
.visit-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.visit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  display: block;
}

/* ---- The glory Scripture band (faint gold conic rays) ---- */
.glory {
  position: relative;
  margin: clamp(3rem, 6vw, 5rem) 0;
  padding: clamp(4.5rem, 11vw, 8rem) 0;
  text-align: center;
  overflow: hidden;
}

.glory::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 120% at 50% 0%, rgba(31, 161, 91, 0.14), transparent 70%),
    linear-gradient(180deg, var(--mist), var(--paper));
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.glory .rays {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 140%;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%,
    transparent 0deg, rgba(31, 161, 91, 0.10) 12deg, transparent 24deg,
    rgba(31, 161, 91, 0.10) 36deg, transparent 48deg, rgba(31, 161, 91, 0.10) 60deg, transparent 72deg);
}

.glory blockquote {
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.12;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}

.glory cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.glory .sub {
  margin-top: 1.1rem;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

/* ---- Visit + "This week" gather card ---- */
.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.gather {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.gather .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(39, 166, 104, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.gather .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.gather .row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gather .row .k {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.gather .row .v {
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: right;
}

/* ---- Orchestrated page-load motion (one staggered fade-up) ---- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.rise {
  animation: rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---- Responsive ---- */
/* Hamburger takes over below 1200px: the 7-item primary nav only fits one line
   alongside the brand lockup + flag switcher + Give pill on wider desktops. */
@media (max-width: 1200px) {
  /* Brand pushes Give + hamburger to the right edge of the bar. */
  .brand {
    margin-right: auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-right {
    order: 2;
    margin-left: 0;
    gap: 0.6rem;
  }

  /* Bar keeps only the Donate pill on mobile; the flag switcher moves into the
     dropdown so brand + Give + hamburger always fit a phone-width header. */
  .header-right > .langs {
    display: none;
  }

  /* Tighten the bar so brand + Give + hamburger clear narrow (~360px) phones. */
  .nav-wrap {
    gap: 0.6rem;
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  .main-nav {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: calc(100% + 0.5rem);
    margin: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow);
    z-index: 50;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    color: var(--ink);
    padding: 0.6rem 0.65rem;
  }

  .main-nav a::after {
    display: none;
  }

  /* Flag switcher at the top of the open dropdown. */
  .main-nav .nav-langs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 0.4rem 0.6rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .nav-langs a,
  .main-nav .nav-langs .on {
    width: 30px;
    height: 21px;
    padding: 0;
  }
}

@media (max-width: 980px) {
  .split,
  .grid.three,
  .grid.four,
  .footer-inner,
  .directory-grid,
  .doors .grid,
  .offer,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .doors .grid,
  .offer {
    grid-template-columns: 1fr 1fr;
  }

  .offer .cell:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .offer .cell:nth-child(2n) {
    border-right: none;
  }

  .urgent-strip .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero .hero-sun {
    opacity: 0.3;
  }
}

@media (max-width: 640px) {
  /* The brand subtitle is wider than the name and wraps the header to two lines
     on phones; drop it so the lockup + Give + hamburger stay on one tidy row. */
  .brand-text small {
    display: none;
  }

  main section {
    padding: 3.4rem 0;
  }

  .grid.two,
  .form-grid,
  .choices,
  .spoke-spectrum,
  .doors .grid,
  .offer {
    grid-template-columns: 1fr;
  }

  .offer .cell {
    border-right: none;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .gather .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .gather .row .v {
    text-align: left;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cba-family-bar {
    padding: 2rem 0 1.9rem;
  }
}

:focus-visible{outline:2px solid var(--green,#1c7a4e);outline-offset:2px;border-radius:4px}
