/* =========================================================================
   Gospel for Africa — site.css
   Type: Newsreader (scripture, headings) + Figtree (interface, body)
   ========================================================================= */

:root {
  --red: #B81415; /* matched to the logo */
  /* logo palette, used for accents only */
  --logo-red: #B81415; --logo-scarlet: #E5222A; --logo-orange: #FEA702; --logo-green: #A3BB27; --logo-blue: #1E84C6; --logo-sky: #2AA7DD;
  --logo-band: linear-gradient(90deg, var(--logo-red) 0 16.66%, var(--logo-scarlet) 0 33.33%, var(--logo-orange) 0 50%, var(--logo-green) 0 66.66%, var(--logo-blue) 0 83.33%, var(--logo-sky) 0);
  --red-deep: #8C0D11;
  --wine: #33090B;
  --wine-2: #4A0E11;
  --gold: #D9A53C;
  --gold-soft: #F6E7C4;
  --ink: #241C1C;
  --ink-soft: #5E5353;
  --ink-faint: #8A7F7F;
  --paper: #FFFFFF;
  --sand: #F4EFE8;
  --line: #E7DFD5;
  --focus: #1F5FD0;
  --masonry: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 .5h120M0 30.5h120M.5 0v30M60.5 0v30M30.5 30v30M90.5 30v30' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E");

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.5vw, 3.8rem);
  --step-5: clamp(2.6rem, 1.8rem + 4vw, 5rem);

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 26px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.has-player { padding-bottom: 92px; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: var(--step-5); font-weight: 450; letter-spacing: -0.02em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 38em; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--wine { background: var(--masonry), var(--wine); color: #F6EDEA; }
.section--wine h2, .section--wine h3 { color: #fff; }
.section--wine .muted, .section--wine .lede { color: #D9C6C2; }
.section--tight { padding-block: calc(var(--section) * .6); }

/* Section heading: a small serif kicker in sentence case, then the title */
.kicker { display: block; font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--red); margin-bottom: .35rem; }
.section--wine .kicker { color: var(--gold); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.section-head--split > div { max-width: 40rem; }
.section-head p { color: var(--ink-soft); margin: 0; }
.section--wine .section-head p { color: #D9C6C2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--wine); }
.btn--light:hover { background: var(--gold-soft); color: var(--wine); }
.btn--outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--wine); border-color: #fff; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* The frosted background sits on its own layer. A backdrop-filter on the
   header itself would trap the fixed-position mobile menu inside the header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
}
body.nav-open .site-header { z-index: 140; } /* menu above the audio player and back-to-top button */
body.nav-open .site-header::before { background: #fff; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(36,28,28,.06); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 50px; width: auto; object-fit: contain; }
.brand__mark { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--serif); font-size: 1rem; align-items: center; justify-content: center; }
.brand.no-logo img { display: none; }
.brand.no-logo .brand__mark { display: inline-flex; }
.brand__name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; letter-spacing: -.005em; line-height: 1; }
.brand__name span { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 500; color: var(--ink-faint); letter-spacing: .01em; margin-top: .25rem; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
.nav__link { display: block; padding: .5rem .7rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav__link:hover { background: var(--sand); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--red); background: #FBEDED; }
.nav__donate { margin-left: .5rem; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; height: calc(100dvh - var(--header-h)); background: #fff;
    padding: 1.25rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain;
    overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .22s var(--ease), transform .22s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav__link { font-family: var(--serif); font-size: 1.5rem; padding: .7rem .5rem; border-radius: var(--r-sm); border-bottom: 1px solid var(--line); }
  .nav__link[aria-current="page"] { background: transparent; }
  .nav__donate { margin: 1.25rem 0 0; }
  .nav__donate .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #F6EDEA;
  background: radial-gradient(60% 80% at 8% 0%, rgba(179,18,22,.55), rgba(179,18,22,0) 70%), var(--wine);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(7rem, 11vw, 9.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--masonry);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 85%); mask-image: linear-gradient(180deg, transparent 0%, #000 85%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__intro { font-weight: 600; color: var(--gold); margin-bottom: 1.25rem; display: inline-flex; align-items: center; gap: .6rem; }
.hero__intro::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { color: #fff; margin-bottom: .4em; font-size: clamp(2.7rem, 1.7rem + 4.4vw, 5.4rem); line-height: 1.04; }
.hero__tagline { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; color: #E4D3CF; max-width: 24em; margin-bottom: 2.25rem; }
.hero__tagline span { display: block; }
.hero__media { position: relative; padding: 18px; }
/* Arch frame: a semicircular top, like a church window */
.hero__media::before {
  content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(217,165,60,.55);
  border-radius: 50% 50% 22px 22px / 40% 40% 22px 22px; pointer-events: none;
}
.hero__photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
  background: #fff url("../assets/img/logo.png") center 58% / 52% auto no-repeat;
  box-shadow: 0 40px 70px -35px rgba(0,0,0,.7);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: -.5rem; bottom: 2.5rem; display: flex; align-items: center; gap: .75rem; background: #fff; color: var(--ink); padding: .7rem 1.15rem .7rem .7rem; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); font-weight: 600; font-size: .92rem; }
.hero__badge img { height: 44px; width: auto; object-fit: contain; }
.hero__stamp { position: absolute; right: -.25rem; top: 22%; width: 108px; height: 108px; border-radius: 50%; background: var(--gold); color: var(--wine); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 500; line-height: 1.15; font-size: .98rem; padding: 1rem; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }

.verse-ribbon { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.5rem; align-items: baseline; }
.verse-ribbon__ref { font-weight: 700; color: var(--gold); font-size: .9rem; white-space: nowrap; }
.verse-ribbon blockquote { margin: 0; font-family: var(--serif); font-size: var(--step-1); line-height: 1.45; font-style: italic; color: #fff; max-width: 46em; }

/* page-load sequence: the only ambient motion on the site */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] { opacity: 0; transform: translateY(14px); animation: enter .8s var(--ease) forwards; }
  .hero [data-enter="2"] { animation-delay: .12s; }
  .hero [data-enter="3"] { animation-delay: .24s; }
  .hero [data-enter="4"] { animation-delay: .38s; }
  .hero [data-enter="5"] { animation-delay: .55s; }
  .wall [data-enter] { opacity: 0; transform: translateY(18px); animation: enter .8s var(--ease) forwards; animation-delay: .7s; }
  .wall [data-enter="2"] { animation-delay: .78s; }
  .wall [data-enter="3"] { animation-delay: .86s; }
  .wall [data-enter="4"] { animation-delay: .94s; }
  @keyframes enter { to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 400px; width: 100%; margin-inline: auto; }
  .hero__badge { left: 0; bottom: 1.5rem; }
  .hero__stamp { right: 0; top: 18%; width: 90px; height: 90px; font-size: .84rem; }
  .verse-ribbon { grid-template-columns: 1fr; }
}

/* ---------- The wall: real figures laid like foundation stones ---------- */
.wall-section { background: var(--sand); }
.wall { position: relative; z-index: 2; top: clamp(-5.5rem, -7vw, -4rem); margin-bottom: clamp(-3rem, -4vw, -1.5rem); }
.wall__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; align-items: start; }
.stone-stat {
  display: flex; flex-direction: column; gap: .15rem; padding: 1.35rem 1.4rem 1.5rem; background: #fff; color: var(--ink);
  text-decoration: none; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 22px 40px -26px rgba(51,9,11,.55);
  transition: border-color .2s var(--ease), translate .25s var(--ease);
}
.stone-stat { border-top: 5px solid var(--logo-red); }
.stone-stat:nth-child(2) { border-top-color: var(--logo-orange); }
.stone-stat:nth-child(3) { border-top-color: var(--logo-green); }
.stone-stat:nth-child(4) { border-top-color: var(--logo-blue); }
.stone-stat:nth-child(even) { margin-top: 1.1rem; }
.stone-stat:hover { border-left-color: var(--red); border-right-color: var(--red); border-bottom-color: var(--red); color: var(--ink); translate: 0 -3px; }
.stone-stat__n { font-family: var(--serif); font-size: clamp(2.4rem, 1.9rem + 2vw, 3.4rem); line-height: 1; color: var(--red); margin-bottom: .35rem; }
.stone-stat__l { font-weight: 700; line-height: 1.25; }
.stone-stat__s { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .wall__grid { grid-template-columns: 1fr 1fr; }
  .stone-stat:nth-child(even) { margin-top: 0; }
  .stone-stat:nth-child(n+3) { margin-left: 1.25rem; margin-right: -1.25rem; }
  .wall__grid { padding-right: 1.25rem; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #F6EDEA;
  background: radial-gradient(55% 90% at 0% 0%, rgba(179,18,22,.45), rgba(179,18,22,0) 70%), var(--wine);
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--masonry);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%); mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
/* gold arch outline at the right edge, echoing the home page frame */
.page-hero::after {
  content: ""; position: absolute; z-index: -1; bottom: 0;
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  width: clamp(130px, 20vw, 260px); aspect-ratio: 4 / 5;
  border: 1.5px solid rgba(217,165,60,.5); border-bottom: 0;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background: linear-gradient(180deg, rgba(179,18,22,.25), rgba(179,18,22,0));
}
@media (max-width: 760px) { .page-hero::after { opacity: .35; width: 120px; } }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .kicker { color: var(--gold); }
.page-hero h1 { color: #fff; max-width: 14em; }
.page-hero .lede { color: #E4D3CF; }
.crumbs { font-size: .88rem; margin-bottom: 1.5rem; color: #CDB8B4; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* ---------- Acts 2:42 — pillars + passage (signature) ---------- */
.acts { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.pillar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 1.15rem 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; text-align: left; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.pillar__name { font-family: var(--serif); font-size: var(--step-2); line-height: 1.1; }
.pillar__ref { font-size: .85rem; color: var(--ink-faint); white-space: nowrap; }
.pillar:hover, .pillar.is-active { border-color: var(--red); background: #FFF7F6; }
.pillar.is-active .pillar__name { color: var(--red); }
.passage { background: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.passage h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; color: var(--ink-soft); margin-bottom: 1.25rem; }
.passage p { font-family: var(--serif); font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); line-height: 1.75; margin-bottom: .85rem; }
.passage sup { font-family: var(--sans); font-size: .62em; font-weight: 700; color: var(--red); margin-right: .25em; vertical-align: .55em; }
.passage mark { background: linear-gradient(transparent 58%, var(--gold-soft) 58%); color: inherit; padding: 0 .08em; transition: background-color .25s var(--ease), color .25s var(--ease); border-radius: 2px; }
.passage mark.is-active { background: var(--red); color: #fff; }
.passage__source { font-size: .85rem; color: var(--ink-faint); margin: 1.25rem 0 0; font-family: var(--sans) !important; }
@media (max-width: 900px) { .acts { grid-template-columns: 1fr; } .passage { position: static; } }

/* ---------- Calling / feature lists ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.feature { position: relative; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.feature::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--red); border-radius: 2px; }
.feature h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.feature p { color: var(--ink-soft); margin: 0; }
.section--wine .feature { border-top-color: rgba(255,255,255,.15); }
.section--wine .feature::before { background: var(--gold); }
.section--wine .feature p { color: #D9C6C2; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Video thumbnails ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }
.video-card h3 { font-size: var(--step-1); margin: .9rem 0 .25rem; }
.video-card p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.section--wine .video-card p { color: #CDB8B4; }
.thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--r-md); overflow: hidden; background: var(--masonry), linear-gradient(150deg, var(--red-deep), var(--wine));
}
.thumb img.is-broken, .hero__photo img.is-broken, .photo-frame img.is-broken, .series-card__img img.is-broken { visibility: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.thumb__play {
  position: absolute; z-index: 1; left: 1rem; bottom: 1rem; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--red); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.3);
  transition: transform .25s var(--ease);
}
.thumb__play svg { width: 20px; height: 20px; margin-left: 3px; }
.thumb:hover img { transform: scale(1.04); }
.thumb:hover .thumb__play { transform: scale(1.08); }
.thumb__label { position: absolute; z-index: 1; right: .9rem; bottom: 1.05rem; color: #fff; font-size: .82rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* ---------- Mission ---------- */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.mission blockquote { margin: 0; font-family: var(--serif); font-size: var(--step-3); line-height: 1.25; font-weight: 400; color: #fff; }
.mission cite { display: block; margin-top: 1.25rem; font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--gold); font-weight: 600; }
.mission__ask { font-family: var(--serif); font-size: var(--step-2); color: #fff; margin-bottom: 1.5rem; }
.mission__list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.mission__list li { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; color: #E9DAD6; }
.mission__list svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
@media (max-width: 860px) { .mission { grid-template-columns: 1fr; } }

/* ---------- Reach (countries) ---------- */
.reach { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.reach span { padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; }

/* ---------- Resource tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.5rem, 3vw, 2.1rem); border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 250px;
  transition: border-color .2s var(--ease), transform .25s var(--ease);
}
.tile:hover { border-color: var(--red); color: var(--ink); transform: translateY(-3px); }
.tile__icon { width: 52px; height: 58px; border-radius: 999px 999px 10px 10px; background: #FBEDED; color: var(--red); display: grid; place-items: center; }
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: var(--step-2); margin: .25rem 0 0; }
.tile p { color: var(--ink-soft); margin: 0; flex: 1; }
.tile .text-link { color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--masonry), var(--red); color: #fff; border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; border: 60px solid rgba(255,255,255,.08); }
.cta-band h2 { color: #fff; font-size: var(--step-3); margin-bottom: .5rem; }
.cta-band p { color: #FBE3E1; margin: 0; max-width: 34em; }
.cta-band .btn-row { justify-content: flex-end; position: relative; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Latest audio (home) + audio rows ---------- */
.audio-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.audio-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.audio-row__title { font-weight: 600; line-height: 1.3; }
.audio-row__meta { font-size: .88rem; color: var(--ink-soft); }
.audio-row__extra { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.audio-row__series { font-size: .78rem; font-weight: 600; color: var(--red-deep); background: #FBEDED; border-radius: 999px; padding: .2rem .6rem; }
@media (max-width: 640px) { .audio-row { grid-template-columns: 44px 1fr; } .audio-row__extra { grid-column: 2; justify-content: flex-start; } }

.play-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--red); background: #fff; color: var(--red);
  display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: background-color .2s, color .2s;
}
.play-btn svg { width: 18px; height: 18px; }
.play-btn .i-pause { display: none; }
.play-btn:hover { background: var(--red); color: #fff; }
.play-btn.is-playing { background: var(--red); color: #fff; }
.play-btn.is-playing .i-play { display: none; }
.play-btn.is-playing .i-pause { display: block; }
.play-btn .i-play { margin-left: 2px; }

.chip-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink); cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); color: var(--ink); }
.chip-btn svg { width: 16px; height: 16px; }
.chip-btn.is-playing { border-color: var(--red); background: var(--red); color: #fff; }
.chip-btn .i-pause { display: none; }
.chip-btn.is-playing .i-play { display: none; }
.chip-btn.is-playing .i-pause { display: block; }

/* ---------- Tools: filters, search ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-bottom: 1.5rem; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-faint); pointer-events: none; }
.search input, .search input[type="search"] { width: 100%; padding-left: 2.75rem; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .3rem; background: var(--sand); border-radius: 999px; }
.segmented button { border: 0; background: transparent; padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-soft); }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(36,28,28,.08); }
.result-count { font-size: .9rem; color: var(--ink-soft); margin: 0 0 1rem; }
.empty { padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--ink-soft); }
.empty strong { display: block; color: var(--ink); font-family: var(--serif); font-size: var(--step-1); font-weight: 500; margin-bottom: .35rem; }

/* ---------- Forms ---------- */
label, .label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .4rem; }
.req { color: var(--red); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23241C1C'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(179,18,22,.12); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.field { margin-bottom: 1.15rem; }
.field-error { color: var(--red); font-size: .86rem; margin-top: .35rem; min-height: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .9rem; cursor: pointer; }
.chips button[aria-pressed="true"] { border-color: var(--red); background: #FBEDED; color: var(--red-deep); }
.form-note { font-size: .88rem; color: var(--ink-soft); margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; font-weight: 500; }
.form-status--ok { background: #EAF5EC; color: #1E5B2C; }
.form-status--err { background: #FBEDED; color: var(--red-deep); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.photo-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 4.4; border-radius: 50% 50% 18px 18px / 36% 36% 18px 18px; background: #fff url("../assets/img/logo.png") center 58% / 46% auto no-repeat; border: 1px solid var(--line); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame__tag { position: absolute; left: 1rem; bottom: 1rem; background: #fff; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .9rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .65rem; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; }
.ticks svg { width: 20px; height: 20px; color: var(--red); margin-top: 3px; }

.identity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.identity__item { background: #fff; border-radius: var(--r-md); padding: 1.5rem; border: 1px solid var(--line); }
.identity__we { font-size: .9rem; color: var(--ink-faint); margin: 0 0 .25rem; }
.identity__item h3 { font-size: var(--step-1); margin: 0 0 .75rem; }
.identity__not { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.identity__not s { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.identity__item--wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; background: var(--wine); color: #F6EDEA; border: 0; }
.identity__item--wide h3 { color: #fff; }
.identity__item--wide .identity__we { color: var(--gold); }
@media (max-width: 860px) { .identity { grid-template-columns: 1fr; } .identity__item--wide { grid-column: auto; grid-template-columns: 1fr; } }

.vision { text-align: center; }
.vision blockquote { margin: 0 auto; max-width: 30em; font-family: var(--serif); font-size: var(--step-3); line-height: 1.3; font-weight: 400; }
.vision__words { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 2rem; color: var(--gold); font-weight: 600; }

/* carousel */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 380px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; overscroll-behavior-x: contain; }
.carousel__track > * { scroll-snap-align: start; }
.objective { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; min-height: 230px; display: flex; flex-direction: column; }
.objective__num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--red); margin-bottom: 1rem; }
.objective h3 { font-size: var(--step-1); }
.objective p { color: var(--ink-soft); margin: 0; }
.carousel__controls { display: flex; align-items: center; gap: .75rem; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; color: inherit; }
.carousel__count { font-size: .92rem; color: var(--ink-soft); min-width: 4.5em; text-align: center; }

.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.approach h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.approach p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .approach { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .approach { grid-template-columns: 1fr; } }

.video-frame { border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Ministry ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .channels { grid-template-columns: 1fr; } }
.channel { display: flex; flex-direction: column; gap: .8rem; padding: 2rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.channel h3 { font-size: var(--step-2); margin: 0; }
.channel p { color: var(--ink-soft); flex: 1; margin: 0; }
.channel__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.doc { display: grid; grid-template-columns: 44px 1fr auto; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.doc:hover { border-color: var(--red); color: var(--ink); }
.doc__type { width: 44px; height: 52px; border-radius: 6px; background: var(--sand); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--red-deep); }
.doc__title { font-weight: 600; line-height: 1.3; }
.doc__cat { font-size: .84rem; color: var(--ink-soft); }
.doc svg { width: 20px; height: 20px; color: var(--ink-faint); }

.featured-series { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 860px) { .featured-series { grid-template-columns: 1fr; } }
.series-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--wine); color: #F6EDEA; text-decoration: none; }
.series-card:hover { color: #fff; }
.series-card__img { aspect-ratio: 16 / 7; background: var(--masonry), linear-gradient(150deg, var(--red-deep), var(--wine)); position: relative; }
.series-card__img img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.series-card__body { padding: 1.75rem; }
.series-card h3 { color: #fff; margin-bottom: .4rem; }
.series-card p { color: #D9C6C2; margin-bottom: 1rem; }
.series-card .text-link { color: var(--gold); }

/* ---------- The Church ---------- */
.study-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .study-head { grid-template-columns: 1fr; } }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.lang { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.lang:hover { border-color: var(--red); color: var(--red); }
.lang svg { width: 18px; height: 18px; }
.lang--primary { background: var(--red); border-color: var(--red); color: #fff; }
.lang--primary:hover { background: var(--red-deep); color: #fff; }

.progress-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.progress-card h3 { font-size: var(--step-1); margin-bottom: .25rem; }
.progress { height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 1rem 0 .6rem; }
.progress__bar { height: 100%; width: 0; background: var(--red); border-radius: inherit; transition: width .5s var(--ease); }
.progress-card__count { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
@media (max-width: 900px) { .progress-card { position: static; } }

.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.chapter { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); align-items: center; }
.chapter.is-done { border-color: #CFE3D3; background: #FAFDFB; }
.chapter__body { padding-right: .5rem; }
.chapter__num { font-family: var(--serif); font-size: .95rem; font-style: italic; color: var(--red); }
.chapter h3 { font-size: var(--step-2); margin: .1rem 0 .9rem; }
.chapter__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; margin: 0 0 0 .4rem; cursor: pointer; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; accent-color: #2E7D44; cursor: pointer; }
.chips .check input { accent-color: var(--red); }
@media (max-width: 680px) { .chapter { grid-template-columns: 1fr; } .chapter__body { padding: 0 .25rem .25rem; } }

/* ---------- Foundations ---------- */
.foundation-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .foundation-intro { grid-template-columns: 1fr; } }
.cornerstone { background: var(--wine); color: #fff; border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3rem); text-align: center; }
.cornerstone p { font-family: var(--serif); font-size: var(--step-3); line-height: 1.2; margin: 0; }
.cornerstone small { display: block; margin-top: 1rem; color: var(--gold); font-weight: 600; font-size: .92rem; }

.stones { display: grid; gap: .75rem; }
.stone { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stone[open] { border-color: var(--red); }
.stone summary { list-style: none; display: grid; grid-template-columns: 52px 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; cursor: pointer; }
.stone summary::-webkit-details-marker { display: none; }
.stone__n { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; color: var(--red-deep); }
.stone[open] .stone__n { background: var(--red); color: #fff; }
.stone__title { font-family: var(--serif); font-size: var(--step-1); line-height: 1.2; }
.stone__ref { display: block; font-family: var(--sans); font-size: .85rem; color: var(--ink-faint); margin-top: .2rem; }
.stone__chev { width: 22px; height: 22px; transition: transform .25s var(--ease); color: var(--ink-faint); }
.stone[open] .stone__chev { transform: rotate(180deg); color: var(--red); }
.stone__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.5rem; padding: 0 1.25rem 1.5rem 5.25rem; }
.stone__audio { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; align-content: start; }
.stone__audio li { display: flex; align-items: center; gap: .8rem; }
.stone__audio span { font-weight: 600; }
@media (max-width: 800px) { .stone__body { grid-template-columns: 1fr; padding: 0 1.1rem 1.25rem; } .stone summary { grid-template-columns: 44px 1fr auto; } }

/* ---------- Events ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.filters .field { margin: 0; min-width: 200px; }
.notice { display: flex; gap: .85rem; padding: 1rem 1.15rem; background: var(--gold-soft); border-radius: var(--r-md); color: #5A410C; margin-bottom: 1.5rem; font-size: .95rem; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.event { display: grid; grid-template-columns: 112px 1fr auto; gap: 1.5rem; align-items: center; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.event__date { text-align: center; padding: .9rem .5rem; border-radius: var(--r-md); background: var(--sand); }
.event__days { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.event__month { display: block; font-size: .85rem; font-weight: 600; color: var(--red-deep); margin-top: .35rem; }
.event h3 { font-size: var(--step-1); margin: 0 0 .3rem; }
.event__where { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--ink-soft); font-size: .95rem; }
.event__where span { display: inline-flex; align-items: center; gap: .35rem; }
.event__where svg { width: 16px; height: 16px; }
.event__side { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.status { font-size: .8rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.status--upcoming { background: #E6F2E8; color: #1E5B2C; }
.status--tbc { background: var(--gold-soft); color: #5A410C; }
.status--completed { background: #EEE9E9; color: var(--ink-soft); }
@media (max-width: 700px) { .event { grid-template-columns: 84px 1fr; } .event__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.news { display: flex; flex-direction: column; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.news--lead { grid-column: span 2; background: var(--wine); color: #F6EDEA; border: 0; }
.news--lead h3 { color: #fff; font-size: var(--step-3); }
.news--lead p { color: #D9C6C2; }
.news--lead .news__meta { color: var(--gold); }
.news--lead .text-link { color: var(--gold); }
@media (max-width: 620px) { .news--lead { grid-column: auto; } }
.news__meta { font-size: .85rem; font-weight: 600; color: var(--red); margin-bottom: .75rem; }
.news h3 { font-size: var(--step-1); }
.news p { color: var(--ink-soft); flex: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.contact-list .tile__icon { width: 44px; height: 50px; }
.contact-list .tile__icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; }
.map { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .donate-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 2rem; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; color: var(--ink-faint); padding-top: .75rem; border-top: 3px solid var(--line); }
.steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font-size: .8rem; flex: none; }
.steps li.is-current { color: var(--ink); border-top-color: var(--red); }
.steps li.is-current::before { background: var(--red); color: #fff; }
.steps li.is-done { color: var(--ink-soft); border-top-color: #2E7D44; }
.steps li.is-done::before { background: #2E7D44; color: #fff; }
@media (max-width: 520px) { .steps li span { display: none; } }
.wizard fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wizard legend { font-family: var(--serif); font-size: var(--step-2); padding: 0; margin-bottom: 1.25rem; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
@media (max-width: 520px) { .amounts { grid-template-columns: 1fr 1fr; } }
.amounts button { min-height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.amounts button[aria-pressed="true"] { border-color: var(--red); background: #FBEDED; color: var(--red-deep); }
.methods { display: grid; gap: .6rem; }
.method { display: grid; grid-template-columns: 22px 1fr; gap: .85rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.method input { margin-top: 4px; accent-color: var(--red); width: 18px; height: 18px; }
.method strong { display: block; }
.method span { color: var(--ink-soft); font-size: .92rem; }
.method:has(input:checked) { border-color: var(--red); background: #FFF7F6; }
.wizard__nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.summary { background: var(--sand); border-radius: 12px; padding: 1rem 1.15rem; margin-top: 1.25rem; font-size: .95rem; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 600; }

.bank { background: var(--wine); color: #F6EDEA; border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.25rem); }
.bank h2 { color: #fff; font-size: var(--step-3); }
.bank p { color: #D9C6C2; }
.bank__list { list-style: none; margin: 1.5rem 0; padding: 0; }
.bank__row { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.bank__label { font-size: .84rem; color: #CDB8B4; }
.bank__value { font-weight: 600; color: #fff; word-break: break-word; }
.bank__note { display: block; font-size: .8rem; color: var(--gold); font-weight: 500; }
.copy-btn { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 999px; padding: .4rem .85rem; font-size: .82rem; font-weight: 600; cursor: pointer; grid-row: span 2; }
.copy-btn:hover { background: #fff; color: var(--wine); }
.copy-btn.is-copied { background: #2E7D44; border-color: #2E7D44; color: #fff; }

.thanks { text-align: center; }
.thanks svg { width: 40px; height: 40px; color: var(--red); margin: 0 auto 1rem; }
.thanks h2 { font-size: var(--step-3); }
.thanks p { max-width: 36em; margin-inline: auto; color: var(--ink-soft); font-size: var(--step-1); font-family: var(--serif); line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--masonry), #1E1314; color: #CDBDBB; padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.site-footer a { color: #F3E7E5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--logo-band); }
.site-footer .brand { color: #fff; margin-bottom: 1.25rem; gap: 1rem; }
.site-footer .brand img { height: 92px; background: #fff; padding: 14px 12px 8px; border-radius: 999px 999px 12px 12px; box-sizing: content-box; }
.site-footer .brand.no-logo .brand__mark { width: 64px; height: 64px; font-size: 1.3rem; }
.page-hero { border-bottom: 0; }
.page-hero > .brand-band, .hero > .brand-band { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--logo-band); }
.site-footer .brand__name span { color: #A99795; }
.footer-tag { font-family: var(--serif); font-size: var(--step-1); color: #fff; line-height: 1.35; max-width: 22em; }
.site-footer h2 { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links--2 { grid-template-columns: 1fr 1fr; gap: .55rem 1rem; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .88rem; }

.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility 0s linear .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.to-top svg { width: 20px; height: 20px; }
body.has-player .to-top { bottom: 104px; }

/* ---------- Global audio player ---------- */
.player {
  position: fixed; left: 50%; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 120;
  width: min(100% - 1.5rem, 880px); translate: -50% 0;
  display: grid; grid-template-columns: auto 1fr auto; gap: .5rem 1rem; align-items: center;
  padding: .75rem 1rem; border-radius: 20px; background: #231516; color: #fff;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.55);
}
.player[hidden] { display: none; }
.player__main { display: flex; align-items: center; gap: .35rem; }
.player__btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.player__btn:hover { background: rgba(255,255,255,.1); }
.player__btn svg { width: 20px; height: 20px; }
.player__toggle { width: 48px; height: 48px; background: var(--red); }
.player__toggle:hover { background: var(--red-deep); }
.player__toggle .i-pause { display: none; }
.player.is-playing .player__toggle .i-play { display: none; }
.player.is-playing .player__toggle .i-pause { display: block; }
.player__info { min-width: 0; }
.player__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta { font-size: .82rem; color: #BFAAA7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__bar { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; font-size: .78rem; color: #BFAAA7; font-variant-numeric: tabular-nums; }
.player__bar input[type="range"] { flex: 1; accent-color: var(--red); height: 4px; min-height: 0; padding: 0; border: 0; }
.player__side { display: flex; align-items: center; gap: .25rem; }
.player__speed { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; padding: .3rem .6rem; font-size: .8rem; font-weight: 700; cursor: pointer; min-width: 3.2em; }
.player__speed:hover { background: rgba(255,255,255,.1); }
.player a.player__btn { color: #fff; }
.player.is-loading .player__toggle { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
@media (max-width: 640px) {
  .player { grid-template-columns: auto 1fr; padding: .65rem .75rem; }
  .player__side { grid-column: 1 / -1; justify-content: space-between; }
  .player__skip { display: none; }
  body.has-player { padding-bottom: 136px; }
  body.has-player .to-top { bottom: 140px; }
  body.has-player .toast { bottom: 146px; }
}

/* ---------- Video modal ---------- */
.video-modal { width: min(100% - 2rem, 1080px); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.video-modal::backdrop { background: rgba(20,10,10,.85); backdrop-filter: blur(4px); }
.video-modal__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-md); overflow: hidden; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #fff; margin-bottom: .75rem; }
.video-modal__title { font-family: var(--serif); font-size: var(--step-1); }
.video-modal__close { border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.video-modal__close svg { width: 16px; height: 16px; }
.video-modal__close:hover { background: #fff; color: #000; }
.video-modal__alt { color: #CDB8B4; font-size: .88rem; margin-top: .75rem; }
.video-modal__alt a { color: #fff; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 150; background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .92rem; opacity: 0; transition: opacity .25s, transform .25s; transform: translateY(8px); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: none; }
body.has-player .toast { bottom: 110px; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .player, .to-top, .nav-toggle { display: none !important; }
  .page-hero, .section--wine { background: none; color: #000; }
}

/* =========================================================================
   v2.3 additions: search, library, newsletter, social, intro video
   ========================================================================= */

/* ---------- Header search ---------- */
.site-header .nav { order: 2; }
.search-toggle { order: 3; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.search-toggle:hover { border-color: var(--ink); }
.search-toggle svg { width: 20px; height: 20px; }
.nav-toggle { order: 4; }
@media (max-width: 1240px) {
  .search-toggle { margin-left: auto; }
  .nav-toggle { margin-left: .5rem; }
}
@media (min-width: 1241px) {
  .nav__link { padding: .5rem .45rem; font-size: .9rem; }
  .nav__donate { margin-left: .25rem; }
  .site-header .wrap { gap: 1rem; }
  .brand__name span { display: none; }
}

.search-modal { width: min(100% - 1.5rem, 760px); max-width: none; max-height: min(84vh, 780px); margin: 8vh auto auto; padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; }
.search-modal::backdrop { background: rgba(30,15,15,.6); backdrop-filter: blur(3px); }
.search-modal__box { display: flex; flex-direction: column; max-height: min(84vh, 780px); }
.search-modal__bar { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.search-modal__bar svg { width: 22px; height: 22px; color: var(--ink-faint); flex: none; }
.search-modal__bar input { border: 0; min-height: 48px; padding: .5rem 0; font-size: 1.1rem; box-shadow: none !important; }
.search-modal__close { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem .9rem; font-weight: 600; font-size: .88rem; cursor: pointer; flex: none; }
.search-modal__results { overflow-y: auto; padding: .5rem 1.25rem 1.5rem; overscroll-behavior: contain; }
.search-modal__hint { color: var(--ink-soft); padding: 1.25rem 0; margin: 0; }
.search-group { padding-top: 1rem; }
.search-group h3 { font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--ink-faint); margin: 0 0 .4rem; }
.search-group h3 span { font-weight: 600; background: var(--sand); color: var(--ink-soft); border-radius: 999px; padding: .1rem .45rem; margin-left: .25rem; }
.search-group ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
.search-hit a { display: block; padding: .6rem .75rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-hit a:hover, .search-hit a:focus-visible { background: var(--sand); color: var(--ink); }
.search-hit__t { display: block; font-weight: 600; line-height: 1.3; }
.search-hit__s { display: block; font-size: .86rem; color: var(--ink-soft); }
.search-hit--audio { display: grid; grid-template-columns: 46px 1fr; gap: .75rem; align-items: center; padding: .4rem .75rem; }

/* ---------- Audio library ---------- */
.library-sub { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 1rem; }
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 960px) { .series-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .series-grid { grid-template-columns: 1fr; } }
.series-tile { display: flex; flex-direction: column; gap: .25rem; text-align: left; padding: 1.1rem 1.2rem 1.2rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--logo-blue, #1E84C6); border-radius: var(--r-md); cursor: pointer; transition: border-color .2s var(--ease), translate .2s var(--ease); }
.series-tile:nth-child(4n+2) { border-top-color: var(--logo-orange, #FEA702); }
.series-tile:nth-child(4n+3) { border-top-color: var(--logo-green, #A3BB27); }
.series-tile:nth-child(4n+4) { border-top-color: var(--logo-red, #B81415); }
.series-tile:hover { border-left-color: var(--ink); border-right-color: var(--ink); border-bottom-color: var(--ink); translate: 0 -2px; }
.series-tile__kind { font-size: .78rem; font-weight: 700; color: var(--red-deep); }
.series-tile__name { font-family: var(--serif); font-size: 1.18rem; line-height: 1.2; color: var(--ink); }
.series-tile__meta { font-size: .88rem; color: var(--ink-soft); }
.series-tile__count { font-size: .84rem; color: var(--ink-faint); margin-top: .35rem; }
.library-filters { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr .7fr auto; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.library-filters .search { max-width: none; }
@media (max-width: 960px) { .library-filters { grid-template-columns: 1fr 1fr; } .library-filters .search { grid-column: 1 / -1; } }
@media (max-width: 520px) { .library-filters { grid-template-columns: 1fr; } }
.series-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; padding: 1.4rem 1.5rem; margin-bottom: 1rem; border-radius: var(--r-md); background: var(--sand); border-left: 4px solid var(--red); }
.series-panel h3 { margin: .15rem 0 .25rem; font-size: var(--step-2); }
.series-panel p { margin: 0; }
.series-panel__docs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.series-panel .btn svg { width: 16px; height: 16px; }
a.audio-row__series { text-decoration: none; }
a.audio-row__series:hover { background: var(--red); color: #fff; }

/* ---------- Intro video + stay connected ---------- */
.connect { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.connect--news { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) { .connect, .connect--news { grid-template-columns: 1fr; } }
.connect__side h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.connect__follow { display: grid; gap: .6rem; margin-top: 1rem; }
.follow-card { display: grid; grid-template-columns: 46px 1fr; gap: .85rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: #fff; }
.follow-card:hover { border-color: var(--ink); color: var(--ink); }
.follow-card strong { display: block; line-height: 1.25; }
.follow-card span span { font-size: .88rem; color: var(--ink-soft); }
.follow-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.follow-card__icon svg { width: 24px; height: 24px; }
.follow-card__icon--ig { background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF); }
.follow-card__icon--yt { background: #E62117; }

/* ---------- Newsletter ---------- */
.newsletter__fields { display: grid; gap: 0 .75rem; }
.newsletter--full .newsletter__fields, .newsletter--home .newsletter__fields { grid-template-columns: 1fr; }
.newsletter .field { margin-bottom: .75rem; }
.newsletter .btn { width: 100%; }
.newsletter .form-note { margin-top: .6rem; }
.newsletter--compact .newsletter__fields { grid-template-columns: 1fr auto; align-items: start; }
.newsletter--compact .field { margin: 0; }
.newsletter--compact input { min-height: 46px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.newsletter--compact input::placeholder { color: #A99795; }
.newsletter--compact .btn { width: auto; min-height: 46px; }
.newsletter--compact .form-note { color: #A99795; font-size: .8rem; }
.site-footer .form-status { font-size: .88rem; }

/* ---------- Social ---------- */
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social__link { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.social__link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.social__link svg { width: 20px; height: 20px; }
.social--footer .social__link { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.social--footer .social__link:hover { background: #fff; color: var(--wine); }

/* ---------- Player: next ---------- */
.player__next svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .player__next:not([hidden]) { display: grid; } }

/* =========================================================================
   Church map and church leaders’ area
   ========================================================================= */
.church-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.church-toolbar { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.church-toolbar .search { max-width: none; }
.church-toolbar .btn svg { width: 16px; height: 16px; }
@media (max-width: 960px) { .church-toolbar { grid-template-columns: 1fr 1fr; } .church-toolbar .search { grid-column: 1 / -1; } }
.church-view { display: none; margin-bottom: .75rem; }
.church-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 1rem; align-items: start; }
.church-map-wrap { position: sticky; top: calc(var(--header-h) + 1rem); }
#church-map { height: min(72vh, 680px); border-radius: var(--r-lg); overflow: hidden; background: #E6EEF0; border: 1px solid var(--line); }
.map-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }
.map-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.map-legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--red); }
.map-legend i.approx { width: 18px; height: 18px; background: rgba(184,20,21,.18); border: 2px solid var(--red); box-shadow: none; }
.church-list-wrap { max-height: min(78vh, 760px); overflow-y: auto; padding-right: .25rem; }
#church-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.church-card { width: 100%; display: grid; grid-template-columns: 96px 1fr; gap: .9rem; align-items: start; padding: .7rem; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.church-card:hover { border-color: var(--red); }
.church-card img, .church-card__noimg { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--masonry), linear-gradient(150deg, var(--red-deep), var(--wine)); }
.church-card__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.church-card__name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; color: var(--ink); }
.church-card__where { font-size: .88rem; color: var(--ink-soft); }
.church-card__times { font-size: .84rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.church-card__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: var(--sand); color: var(--ink-soft); }
.tag--members { background: #E8EEF9; color: #1F4E9B; }
.tag--dist { background: #E6F2E8; color: #1E5B2C; }
.church-unlisted { margin-top: 1rem; font-size: .9rem; }
.church-unlisted summary { cursor: pointer; font-weight: 600; }
.church-status { padding: 1rem 1.15rem; border-radius: var(--r-md); margin-bottom: 1rem; background: var(--gold-soft); color: #5A410C; }
.church-status--err { background: #FBEDED; color: var(--red-deep); }
#church-app.is-setup .church-layout, #church-app.is-setup .church-toolbar { display: none; }
#church-app.no-map .church-layout { grid-template-columns: 1fr; }
#church-app.no-map .church-map-wrap, #church-app.no-map .church-view { display: none !important; }
#church-app.no-map .church-list-wrap { max-height: none; display: block !important; }
@media (max-width: 900px) {
  .church-view { display: inline-flex; }
  .church-layout { grid-template-columns: 1fr; }
  .church-map-wrap { position: static; }
  #church-map { height: 62vh; }
  .church-list-wrap { max-height: none; }
  #church-app[data-view="map"] .church-list-wrap { display: none; }
  #church-app[data-view="list"] .church-map-wrap { display: none; }
}
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #1F5FD0; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(31,95,208,.25); }
.map-pop { font-family: var(--sans); }
.map-pop img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px 8px 0 0; display: block; }
.map-pop__body { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .8rem .8rem; }
.map-pop__body strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; line-height: 1.2; }
.map-pop__body span { font-size: .85rem; color: var(--ink-soft); }
.map-pop__note { font-style: italic; }
.map-pop .btn { margin-top: .5rem; }
.maplibregl-popup-content { padding: 0 !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 16px 40px -12px rgba(0,0,0,.35) !important; }
.maplibregl-popup-close-button { font-size: 20px; width: 30px; height: 30px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

.church-dialog { width: min(100% - 1.5rem, 860px); max-width: none; max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.church-dialog::backdrop { background: rgba(30,15,15,.6); }
.church-dialog__inner { position: relative; }
.church-dialog__close { position: absolute; z-index: 2; right: .8rem; top: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.church-dialog__inner > h2, .church-dialog__inner > p { padding: 1.5rem 1.5rem 0; }
.church-gallery__main { aspect-ratio: 16 / 9; background: var(--sand); }
.church-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.church-gallery__thumbs { display: flex; gap: .5rem; padding: .6rem 1.5rem 0; }
.church-gallery__thumbs button { width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.church-gallery__thumbs button[aria-pressed="true"] { border-color: var(--red); }
.church-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.church-dialog__body { padding: 1.25rem 1.5rem 1.75rem; }
.church-dialog__where { color: var(--ink-soft); margin: 0 0 .25rem; }
.church-dialog__body h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.church-facts { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; margin: 0 0 1rem; }
.church-facts dt { font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.church-facts dd { margin: 0; }
.church-dialog__about { line-height: 1.65; margin-bottom: 1.25rem; }
.church-dialog__actions .btn svg { width: 16px; height: 16px; }
.church-contact { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.church-contact h3 { font-size: var(--step-1); margin-bottom: .2rem; }
.church-report { margin-top: 1.25rem; font-size: .92rem; }
.church-report summary { cursor: pointer; color: var(--ink-soft); }
.church-report form { margin-top: .75rem; }

/* ---------- Church leaders’ area ---------- */
.portal { min-height: 40vh; }
.auth { max-width: 640px; margin: 0 auto; }
.auth__tabs { margin-bottom: 1rem; }
.auth__card h2 { font-size: var(--step-2); }
.auth__done { text-align: center; padding: 1rem 0; }
.field-help { font-size: .84rem; color: var(--ink-soft); margin: .35rem 0 0; }
.notice--warn { background: var(--gold-soft); color: #5A410C; }
.portal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding: .9rem 1.1rem; border-radius: var(--r-md); background: var(--sand); margin-bottom: 1.5rem; }
.portal-tabs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.portal-tabs button { border: 0; background: transparent; padding: .5rem .9rem; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.portal-tabs button[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(36,28,28,.08); }
.portal-tabs .portal-logout { color: var(--red-deep); }
.portal-head { margin-bottom: 1.25rem; }
.portal-head h2 { font-size: var(--step-3); margin: .25rem 0; }
.portal-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.portal-head .text-link { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font-weight: 600; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--sand); color: var(--ink-soft); }
.badge--published { background: #E6F2E8; color: #1E5B2C; }
.badge--pending { background: var(--gold-soft); color: #5A410C; }
.badge--draft { background: #EEE9E9; color: var(--ink-soft); }
.badge--archived { background: #FBEDED; color: var(--red-deep); }
.mini-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .6rem; }
.mini-church { display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: center; padding: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.mini-church img, .mini-church__noimg { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--sand); display: block; }
.mini-church__body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.mini-church__note { margin: .25rem 0 0; font-size: .9rem; color: #5A410C; background: var(--gold-soft); border-radius: 8px; padding: .4rem .6rem; }
.mini-church__actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
@media (max-width: 640px) { .mini-church { grid-template-columns: 72px 1fr; } .mini-church img, .mini-church__noimg { width: 72px; height: 56px; } .mini-church__actions { grid-column: 1 / -1; justify-content: flex-start; } }
.add-church h3, .invite-form h3, .safety-form h3 { font-size: var(--step-1); }

.editor__section { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.editor__section h3 { display: flex; align-items: center; gap: .6rem; font-size: var(--step-2); }
.editor__section h3 span { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--sans); font-size: .9rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.editor__save { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .9rem 0; background: linear-gradient(transparent, #fff 30%); }
body.has-player .editor__save { bottom: 96px; }
.editor__save .form-status { margin: 0; }
.check--block { display: flex; margin: 0 0 1.15rem; }
.loc-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.loc-search { display: flex; gap: .4rem; flex: 1 1 280px; }
.loc-search input { min-height: 40px; padding: .45rem .8rem; }
.loc-results { list-style: none; margin: 0 0 .6rem; padding: .4rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.loc-results button { width: 100%; text-align: left; border: 0; background: none; padding: .55rem .6rem; border-radius: 8px; cursor: pointer; }
.loc-results button:hover { background: var(--sand); }
.loc-map { height: 360px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #E6EEF0; }
.loc-map--off { height: auto; padding: 1rem; background: var(--sand); }
.loc-readout { margin: .6rem 0; color: var(--ink-soft); }
.loc-manual { margin: .5rem 0 1rem; font-size: .92rem; }
.loc-manual summary { cursor: pointer; color: var(--ink-soft); margin-bottom: .6rem; }
.vis { border: 0; padding: 0; margin: 1rem 0 0; }
.vis legend { font-weight: 700; margin-bottom: .6rem; }
.vis__opt { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: .5rem; cursor: pointer; font-weight: 400; }
.vis__opt input { margin-top: 4px; accent-color: var(--red); width: 18px; height: 18px; }
.vis__opt strong { display: block; }
.vis__opt span span { color: var(--ink-soft); font-size: .92rem; }
.vis__opt:has(input:checked) { border-color: var(--red); background: #FFF7F6; }
.vis__opt.is-disabled { opacity: .5; cursor: not-allowed; }
.photo-grid { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.photo { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.photo__img { position: relative; aspect-ratio: 4 / 3; background: var(--sand); }
.photo__img img { width: 100%; height: 100%; object-fit: cover; }
.photo__cover { position: absolute; left: .5rem; top: .5rem; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.photo__alt { border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; min-height: 42px !important; font-size: .9rem; }
.photo__actions { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; border-top: 1px solid var(--line); }
.photo__actions button { border: 0; background: var(--sand); border-radius: 8px; padding: .35rem .6rem; font-size: .82rem; font-weight: 600; cursor: pointer; }
.photo__actions .danger { margin-left: auto; color: var(--red-deep); background: #FBEDED; }
.photo-add { display: flex; align-items: center; gap: 1rem; }
.upload-progress { height: 6px; background: var(--sand); border-radius: 999px; overflow: hidden; margin-top: .75rem; }
.upload-progress div { height: 100%; width: 0; background: var(--red); transition: width .2s; }
.editor-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.editor-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .55rem .8rem; background: var(--sand); border-radius: 10px; }
.editor-list .text-link { background: none; border: 0; cursor: pointer; color: var(--red-deep); }
.add-editor__row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; }
.add-editor__row .btn { margin-top: .9rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; color: var(--ink-soft); }
.checklist .is-ok { color: #1E5B2C; font-weight: 600; }
.btn.danger, .danger.btn--ghost { color: var(--red-deep); border-color: #E9B9BA; }
[aria-busy="true"] { opacity: .65; cursor: progress; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.admin-stats div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1rem; }
.admin-stats strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--red); }
.admin-stats span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 640px) { .admin-stats { grid-template-columns: 1fr 1fr; } }
.admin-tabs { margin-bottom: 1rem; }
.admin-tabs .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; margin-left: .25rem; }
.admin-filter { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: 1rem; }
.admin-filter .search { flex: 1 1 220px; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.admin-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.admin-item__main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1 1 320px; }
.admin-item__note { margin: .35rem 0 0; padding: .45rem .7rem; background: var(--sand); border-radius: 8px; font-size: .92rem; }
.admin-item__actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.admin-item__actions select { min-height: 40px; width: auto; padding: .4rem 2.2rem .4rem .8rem; font-size: .88rem; }
.change-list { list-style: none; margin: 0; padding: 0; }
.change-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.review { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.review__photos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-content: start; }
.review__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.review__about { grid-column: 1 / -1; padding: 1rem 1.15rem; background: var(--sand); border-radius: var(--r-md); line-height: 1.6; }
.review__actions { display: grid; gap: 1.25rem; }
.return-form, .safety-form { padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .review { grid-template-columns: 1fr; } }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .account-grid { grid-template-columns: 1fr; } }

.tag--example { background: #FFF1D6; color: #7A4B00; }
.church-dialog__example { margin: 0 0 .6rem; padding: .55rem .8rem; border-radius: 10px; background: #FFF1D6; color: #7A4B00; font-size: .92rem; font-weight: 600; }
.map-pop__body .tag--example { align-self: flex-start; margin-bottom: .2rem; }
.church-status__details { margin-top: .5rem; font-size: .9rem; }
.church-status__details summary { cursor: pointer; font-weight: 600; }
