/* ==========================================================================
   Citadel Ministries — site.css
   Page-level layout on top of the design system (tokens.css + components.css).
   ========================================================================== */

/* ---------- Accessibility ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--c-ink-800); color: #fff; padding: 0.5rem 1rem; z-index: 100; border-radius: 0 0 var(--radius-md) 0; }
.skip:focus { left: 0; }

/* ---------- Header additions ---------- */
.brand { color: var(--text); }
.site-footer .brand { color: var(--text-on-dark); }
.nav__madagascar { display: none; }
@media (min-width: 72rem) { .nav__madagascar { display: inline-flex; } }
.mobile-nav { border-top: 1px solid var(--border); background: var(--bg); }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--sp-4) var(--gutter) var(--sp-5); display: grid; gap: var(--sp-1); }
.mobile-nav a:not(.btn) { display: block; padding: 0.75rem 0; font-size: var(--fs-lg); font-family: var(--font-display); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: var(--sp-3); }
.nav-toggle[aria-expanded="true"] svg path { d: path("M6 6l12 12M18 6L6 18"); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 56ch; }

/* ---------- Two purposes ---------- */
.purposes { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.purpose { display: grid; grid-template-rows: auto 1fr auto; gap: var(--sp-4); padding: var(--sp-7) var(--sp-6); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.purpose:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.purpose::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: var(--accent); }
.purpose--dark { background: var(--bg-dark); border-color: transparent; color: var(--text-on-dark-muted); }
.purpose--dark h2, .purpose--dark h3 { color: var(--text-on-dark); }
.purpose--dark::before { background: var(--accent-on-dark); }
.purpose h2 { font-size: var(--fs-2xl); margin: 0; }
.purpose p { margin: 0; font-size: var(--fs-md); }
.purpose .btn { justify-self: start; }
.purpose__num { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--accent-hover); }
.purpose--dark .purpose__num { color: var(--accent-on-dark); }

/* ---------- What we do list ---------- */
.dolist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.dolist li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); align-items: start; }
.dolist svg { width: 1.5rem; height: 1.5rem; color: var(--accent-hover); margin-top: 0.15rem; }
.dolist strong { display: block; color: var(--text); font-weight: 600; }
.dolist span { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- How you can help ---------- */
.help-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.help { display: grid; gap: var(--sp-2); padding: var(--sp-5); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.help:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.help strong { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--text); font-weight: 500; }
.help span { font-size: var(--fs-sm); color: var(--text-muted); }
:is(.on-dark, .section--dark, .site-footer) .help { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
:is(.on-dark, .section--dark, .site-footer) .help strong { color: var(--text-on-dark); }
:is(.on-dark, .section--dark, .site-footer) .help span { color: var(--text-on-dark-muted); }

/* ---------- Tagline ---------- */
.tagline { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: 0.02em; color: var(--text); text-align: center; margin: 0; }
.tagline span { color: var(--accent-hover); }
:is(.on-dark, .section--dark, .site-footer) .tagline { color: var(--text-on-dark); }
:is(.on-dark, .section--dark, .site-footer) .tagline span { color: var(--accent-on-dark); }

/* ---------- Person ---------- */
.person { display: grid; gap: var(--sp-4); }
.person img, .person .person__photo { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); width: 100%; }
.person__photo { background: linear-gradient(160deg, var(--c-stone-200), var(--c-stone-300)); display: grid; place-items: center; }
.person h3 { margin: 0; font-size: var(--fs-xl); }
.person .role { font-size: var(--fs-sm); color: var(--accent-hover); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.person p { font-size: var(--fs-sm); color: var(--text-body); margin: 0; }

/* ---------- Testimonies archive ---------- */
.testimonies-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.testimonies-grid .testimonial { margin: 0; }
.testimonies-grid .testimonial[hidden] { display: none; }
.testimonies-grid .testimonial__quote { font-size: var(--fs-md); }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.filter-bar .format-tabs { flex-wrap: wrap; }
.count { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Resources ---------- */
.products { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.product__media img { max-height: 100%; max-width: 70%; }
.product .btn { justify-self: start; }

/* ---------- Events ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.event { display: grid; grid-template-columns: 6rem 1fr auto; gap: var(--sp-5); align-items: center; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.event__date { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.1; color: var(--text); }
.event__date small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); margin-top: 0.25rem; }
.event h3 { margin: 0 0 0.25rem; font-size: var(--fs-lg); }
.event p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
@media (max-width: 40rem) { .event { grid-template-columns: 1fr; } }

/* ---------- Give page ---------- */
.give-layout { display: grid; gap: var(--sp-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.give-sticky { position: sticky; top: 6rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { display: grid; grid-template-columns: 11rem 1fr; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.facts li strong { color: var(--text); font-weight: 600; }
@media (max-width: 36rem) { .facts li { grid-template-columns: 1fr; gap: 0.25rem; } }
.donate { max-width: none; }

/* ---------- Embed container (Zeffy) ---------- */
.embed { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.embed iframe { display: block; width: 100%; min-height: 40rem; border: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: var(--sp-4) 0; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-hover); transition: transform var(--dur-base) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 var(--sp-4); color: var(--text-body); font-size: var(--fs-md); max-width: 60ch; }

/* ---------- Placeholder for content Stephen must supply ---------- */
.placeholder { border: 1.5px dashed var(--accent); background: var(--accent-tint); border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5); color: var(--c-brass-600); font-size: var(--fs-sm); display: grid; gap: 0.25rem; }
.placeholder::before { content: "Content needed"; font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.placeholder--photo { aspect-ratio: 4 / 3; place-content: center; text-align: center; }
:is(.on-dark, .section--dark, .site-footer) .placeholder { background: rgba(212,166,90,0.12); color: var(--accent-on-dark); border-color: var(--accent-on-dark); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); width: 100%; }
.gallery figcaption { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-2); }

/* ---------- Prose page ---------- */
.legal .prose h2 { font-size: var(--fs-xl); }
.legal .prose p:first-of-type::first-letter { all: unset; }
.updates { display: grid; gap: var(--sp-4); }
.update { display: grid; grid-template-columns: 7rem 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1px solid var(--border); }
.update time { font-size: var(--fs-sm); color: var(--text-muted); }
.update h3 { font-size: var(--fs-lg); margin: 0 0 var(--sp-2); }
.update p { margin: 0; font-size: var(--fs-sm); }
@media (max-width: 36rem) { .update { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.stack { display: grid; gap: var(--sp-5); }
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .u-flex { justify-content: center; }
.hero__media img { filter: saturate(0.9); }
/* Two plain (or two alt) sections in a row share one gap; a change of background keeps full padding */
.section:not(.section--alt):not(.section--dark):not(.cta-band) + .section:not(.section--alt):not(.section--dark),
.section--alt + .section--alt { padding-top: 0; }

/* ---------- Fixes after first render ---------- */
.badge { white-space: nowrap; }
.testimonial__meta { flex-wrap: wrap; row-gap: 0.5rem; }
.testimonial__meta strong, .testimonial__meta > span:not(.badge) { white-space: nowrap; }
.format-tabs button { white-space: nowrap; }
.products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.hero__proof { gap: var(--sp-4) var(--sp-6); }
.hero__proof .stat__value { font-size: var(--fs-2xl); }
.hero .display { max-width: 16ch; }
body { overflow-x: clip; }
.hero__proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--sp-4) var(--sp-6); }
@media (max-width: 30rem) { .hero__proof { grid-template-columns: repeat(2, auto); } }
html { overflow-x: clip; }
.section, .hero, .page-hero { overflow-x: clip; }

/* ---------- Header: never wrap nav labels; collapse to the menu button before they would ---------- */
.nav a, .site-header .brand__name { white-space: nowrap; }
@media (max-width: 70rem) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Zeffy donation forms (one per fund) ---------- */
.zeffy-donate { display: grid; gap: var(--sp-4); }
.zeffy-donate .format-tabs { justify-self: start; }
.embed iframe { min-height: 0; }

/* ==========================================================================
   Design pass, October 2026
   ========================================================================== */

/* Hero: a little less empty space above the headline */
.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3.5rem, 8vw, 6rem); }

/* Home hero collage: founder portrait, with a Madagascar photo laid over its corner */
.hero__collage { padding: 0 0 14% 18%; }
.hero__collage figure { margin: 0; position: relative; }
.hero__collage .hero__main img { object-position: 50% 20%; }
.hero__collage .hero__inset { position: absolute; left: 0; bottom: 0; width: 44%; z-index: 1; }
.hero__media .hero__inset img { aspect-ratio: 3 / 4; outline: 6px solid var(--bg); box-shadow: var(--shadow-lg); }
.hero__collage::before { inset: auto -5% 4% auto; width: 55%; height: 55%; }
.hero__tag { position: absolute; left: var(--sp-3); bottom: var(--sp-3); padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); background: rgba(18, 26, 38, 0.72); color: #fff; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.03em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__main .hero__tag { left: auto; right: var(--sp-3); bottom: auto; top: var(--sp-3); }
.hero--animate .hero__tag { animation: rise 900ms var(--ease-out) 900ms both; }

/* Split with a long list on one side: the short side stays in view while the list scrolls */
.split--top { align-items: start; }
@media (min-width: 52rem) { .split--top > :first-child { position: sticky; top: 7rem; } }

/* Featured testimony sits centred under a centred heading */
.testimonial--feature { justify-items: center; text-align: center; max-width: 54rem; margin-inline: auto; }
.testimonial--feature .testimonial__quote { max-width: 34ch; }
.testimonial--feature .testimonial__meta { justify-content: center; }

/* Founder note on Home */
.founder { text-align: center; }
.founder h2 { max-width: 24ch; margin-inline: auto; }
.founder .lede { max-width: 58ch; margin: 0 auto var(--sp-5); }

/* Display statement (About: the prophetic word) */
.pullquote { margin: 0; padding-left: var(--sp-5); border-left: 2px solid var(--accent); }
.pullquote p { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.75rem, 3.4vw, 2.625rem); line-height: 1.18; color: var(--text); margin: 0 0 var(--sp-4); font-variation-settings: "opsz" 144, "SOFT" 60; }
.pullquote figcaption { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-hover); }

/* Leadership cards: photo beside the text */
.person--row { grid-template-columns: minmax(8rem, 38%) 1fr; column-gap: var(--sp-5); align-content: start; align-items: start; }
.person--row > img { grid-row: 1 / span 6; }
.person--row > :not(img) { grid-column: 2; }
@media (max-width: 30rem) { .person--row { grid-template-columns: 1fr; } .person--row > img { grid-row: auto; } .person--row > :not(img) { grid-column: 1; } }

/* Gallery: whole rows at every width (12 photos = 4 × 3, 3 × 4 or 2 × 6) */
.gallery { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60rem) { .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); } }

/* Inner-page headers: a faint outline of the citadel mark balances the empty right-hand side */
.page-hero { position: relative; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  top: 50%; transform: translateY(-46%);
  width: clamp(14rem, 24vw, 20rem); aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23B8873B' stroke-width='0.45' stroke-linejoin='round'%3E%3Crect x='6' y='14' width='28' height='22' rx='1.5'/%3E%3Crect x='6' y='10' width='5' height='5'/%3E%3Crect x='13.5' y='10' width='5' height='5'/%3E%3Crect x='21.5' y='10' width='5' height='5'/%3E%3Crect x='29' y='10' width='5' height='5'/%3E%3Cpath d='M17 36V26a3 3 0 0 1 6 0v10'/%3E%3Cpath d='M20 2v6M17 5h6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.12;
}
@media (max-width: 64rem) { .page-hero::after { display: none; } }

/* Buttons keep their own text colour inside dark sections and the footer (link colours there were overriding it) */
:is(.on-dark, .section--dark, .site-footer) .btn { color: var(--btn-fg); }
.hero__tag { white-space: nowrap; }
@media (max-width: 30rem) {
  .hero__collage .hero__inset { width: 50%; }
  .hero__tag { left: var(--sp-2); bottom: var(--sp-2); font-size: 0.6875rem; padding: 0.25rem 0.55rem; }
  .hero__main .hero__tag { right: var(--sp-2); top: var(--sp-2); }
}

/* ---------- Newsletter sign-up (top of the footer, every page) ---------- */
.newsletter { display: grid; gap: var(--sp-5) var(--sp-7); align-items: center; padding-bottom: var(--sp-7); margin-bottom: var(--sp-7); border-bottom: 1px solid rgba(255, 255, 255, 0.1); scroll-margin-top: 6rem; }
@media (min-width: 60rem) { .newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.newsletter__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.newsletter p { margin: 0; }
.newsletter__fields { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.newsletter__fields .input { flex: 1 1 9rem; width: auto; }
.newsletter__fields .newsletter__email { flex: 1.6 1 13rem; }
.newsletter__fields .btn { flex: none; }
.newsletter__note { font-size: var(--fs-xs); color: var(--c-ink-400); margin-top: var(--sp-3) !important; }
.newsletter__note a { text-decoration: underline; }
@media (max-width: 36rem) { .newsletter__fields > * { flex: 1 1 100%; } .newsletter__fields .btn { width: 100%; } }
@media (min-width: 60rem) { .newsletter__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr) auto; } }

/* ==========================================================================
   Interaction pass, October 2026
   Everything here is progressive: browsers without a feature simply skip it,
   and movement switches off under prefers-reduced-motion.
   ========================================================================== */

/* Reading progress: a thin brass line under the header fills as you scroll (no JavaScript) */
@supports (animation-timeline: scroll()) {
  .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); animation: read-progress linear both; animation-timeline: scroll(root block); pointer-events: none; }
  @keyframes read-progress { to { transform: scaleX(1); } }
}

/* Page-to-page fade in browsers that support cross-document view transitions; the header stays put */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 160ms ease-out both; }
::view-transition-new(root) { animation: vt-in 340ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Card spotlight (motion.js sets --mx / --my and .is-lit) */
@media (hover: hover) and (pointer: fine) {
  .is-lit.is-lit { background-image: radial-gradient(22rem circle at var(--mx) var(--my), rgba(212, 166, 90, 0.13), transparent 45%); }
}

/* Hero parallax (motion.js sets --py between -1 and 1) */
.hero__collage .hero__inset { transform: translateY(calc(var(--py, 0) * 36px)); }
.hero__collage .hero__main { transform: translateY(calc(var(--py, 0) * -10px)); }

/* Phone menu slides in */
@media (prefers-reduced-motion: no-preference) {
  .mobile-nav:not([hidden]) { animation: menu-in 260ms var(--ease-out) both; }
  .mobile-nav:not([hidden]) li { animation: rise 420ms var(--ease-out) both; }
  .mobile-nav:not([hidden]) li:nth-child(2) { animation-delay: 30ms; }
  .mobile-nav:not([hidden]) li:nth-child(3) { animation-delay: 60ms; }
  .mobile-nav:not([hidden]) li:nth-child(4) { animation-delay: 90ms; }
  .mobile-nav:not([hidden]) li:nth-child(5) { animation-delay: 120ms; }
  .mobile-nav:not([hidden]) li:nth-child(6) { animation-delay: 150ms; }
  .mobile-nav:not([hidden]) li:nth-child(7) { animation-delay: 180ms; }
  .mobile-nav:not([hidden]) li:nth-child(n+8) { animation-delay: 210ms; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
  /* Testimonies re-flow gently when a filter is chosen */
  .testimonies-grid.is-filtered > :not([hidden]) { animation: rise 420ms var(--ease-out) both; }
}

/* FAQ answers open smoothly where the browser can animate to height: auto */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height var(--dur-base) var(--ease-out), content-visibility var(--dur-base) allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}


/* ---------- Madagascar gift explorer ---------- */
.impact { display: grid; gap: var(--sp-6) var(--sp-8); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); padding: clamp(1.75rem, 4vw, 3rem); margin-bottom: var(--sp-7); border-radius: var(--radius-lg); }
.impact__label { display: block; font-size: var(--fs-sm); color: var(--text-on-dark-muted); }
.impact__amount { display: block; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1; color: var(--text-on-dark); font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 144; margin: var(--sp-2) 0 var(--sp-5); }
.impact__range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 0 0 var(--sp-5); border-radius: var(--radius-pill); background: linear-gradient(to right, var(--accent-on-dark) var(--fill, 8%), rgba(255, 255, 255, 0.16) var(--fill, 8%)); cursor: pointer; }
.impact__range:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.impact__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--accent-on-dark); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); transition: transform var(--dur-fast) var(--ease-out); }
.impact__range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--accent-on-dark); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
.impact__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.impact__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.impact__chips button { font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--text-on-dark); background: transparent; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius-pill); padding: 0.4rem 1rem; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.impact__chips button:hover { border-color: var(--accent-on-dark); }
.impact__chips button[aria-pressed="true"] { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--c-ink-900); }
.impact__or { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-on-dark-muted); margin-bottom: var(--sp-3); }
.impact__results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.impact__results li { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--sp-4); align-items: center; padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-md); background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); }
.impact__results strong { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 500; line-height: 1; color: var(--accent-on-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.impact__results span { color: var(--text-on-dark); font-size: var(--fs-sm); }
.impact__note { font-size: var(--fs-xs); margin: var(--sp-4) 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .is-pop { animation: pop 320ms var(--ease-out); }
  @keyframes pop { from { opacity: 0.35; transform: scale(0.88); } }
}

/* ---------- Photo lightbox ---------- */
.gallery figure { cursor: zoom-in; }
.gallery figure img { transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow); }
.gallery figure:hover img, .gallery figure:focus-visible img { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(1rem, 4vw, 3rem); border: 0; background: transparent; display: grid; place-items: center; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(12, 17, 25, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__figure { margin: 0; display: grid; gap: var(--sp-3); justify-items: center; max-width: min(100%, 64rem); }
.lightbox__figure img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; border-radius: var(--radius-md); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox figcaption { display: flex; gap: var(--sp-4); justify-content: space-between; width: 100%; color: #F2EFE8; font-size: var(--fs-sm); }
.lightbox__count { color: var(--text-on-dark-muted); font-variant-numeric: tabular-nums; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background var(--dur-fast); }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__btn svg { width: 1.375rem; height: 1.375rem; }
.lightbox__close { top: var(--sp-4); right: var(--sp-4); }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: var(--sp-4); }
.lightbox__next { right: var(--sp-4); }
@media (max-width: 40rem) { .lightbox__prev, .lightbox__next { top: auto; bottom: var(--sp-4); transform: none; } }
html:has(.lightbox[open]) { overflow: hidden; }
@media (max-width: 36rem) {
  .newsletter__fields .input, .newsletter__fields .newsletter__email { flex: 1 1 100%; }
  .impact__results li { grid-template-columns: 4.25rem 1fr; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
}
.kit-form { min-height: 3rem; }
/* Kit's form pads its top for a heading we don't use; the form now sits only on /sign-up/ */
.kit-form .formkit-form [data-style="clean"] { padding-top: 0 !important; }
.newsletter__cta { display: flex; justify-content: flex-start; }
@media (min-width: 60rem) { .newsletter__cta { justify-content: flex-end; } }
/* Google allows hiding the reCAPTCHA badge when the form's note names reCAPTCHA and links Google's terms (see /sign-up/) */
.grecaptcha-badge { visibility: hidden; }

/* ---------- Map of places taught (About) ---------- */
.worldmap { position: relative; margin: 0 0 var(--sp-6); }
.worldmap__svg { width: 100%; height: auto; overflow: hidden; }
.worldmap__land { fill: rgba(255, 255, 255, 0.08); }
.worldmap__country { fill: var(--accent-on-dark); fill-opacity: 0.85; stroke: var(--bg-dark); stroke-width: 0.5; transition: fill var(--dur-fast), fill-opacity var(--dur-fast); cursor: default; }
.worldmap__dot circle:not(.worldmap__ping) { fill: var(--accent-on-dark); stroke: var(--bg-dark); stroke-width: 1; }
.worldmap__ping { fill: var(--accent-on-dark); opacity: 0; }
.worldmap .is-active, .worldmap__country:hover { fill: #F7E6C4; fill-opacity: 1; }
.worldmap__dot.is-active circle:not(.worldmap__ping), .worldmap__dot:hover circle:not(.worldmap__ping) { fill: #F7E6C4; }
.worldmap__tip { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 12px)); padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); background: #F2EFE8; color: var(--c-ink-900); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-md); }
.worldmap__list { display: grid; gap: var(--sp-5) var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.worldmap__list h3 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: var(--sp-3); }
.worldmap__list h3 span { color: var(--text-on-dark-muted); margin-left: 0.35em; }
.worldmap__list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.worldmap__list li { font-size: var(--fs-sm); color: var(--text-on-dark); padding: 0.1rem 0; cursor: default; transition: color var(--dur-fast); }
.worldmap__list li.is-active { color: var(--accent-on-dark); }
.worldmap__note { color: var(--text-on-dark-muted); margin: var(--sp-6) 0 0; }
.stat--link { text-decoration: none; color: inherit; }
.stat--link:hover .stat__label { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .worldmap.reveal .worldmap__country, .worldmap.reveal .worldmap__dot { opacity: 0; }
  .worldmap.reveal.is-in .worldmap__country { animation: map-in 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 22ms); }
  .worldmap.reveal.is-in .worldmap__dot { animation: map-in 600ms var(--ease-out) both; animation-delay: calc(400ms + var(--i) * 22ms); }
  .worldmap.reveal.is-in .worldmap__ping { animation: map-ping 2.8s ease-out infinite; animation-delay: calc(1.4s + var(--i) * 60ms); transform-box: fill-box; transform-origin: center; }
  @keyframes map-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes map-ping { 0% { opacity: 0.55; transform: scale(0.4); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
}
/* the map itself should not slide in with the generic reveal, only fade its places */
.worldmap.reveal { opacity: 1; transform: none; }

/* Lede text in dark sections */
:is(.on-dark, .section--dark) .lede { color: var(--text-on-dark-muted); }
@media (max-width: 36rem) { .worldmap__list ul { display: block; columns: 2; column-gap: var(--sp-5); } .worldmap__list li { break-inside: avoid; } }

/* ---------- Give: two funds (Ian & Rosemary's ministry, Madagascar) ---------- */
.fund-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.fund-list li { position: relative; padding-left: 1.25rem; }
.fund-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); }
.purpose--dark .fund-list li::before { background: var(--accent-on-dark); }
.donate__label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text); margin-bottom: var(--sp-2); }
.donate__toggle + .donate__label { margin-top: calc(-1 * var(--sp-2)); }
#give-form { scroll-margin-top: 5.5rem; }
