/* ==========================================================================
   Christ's Hope — V3 design language (preview)
   --------------------------------------------------------------------------
   A standalone stylesheet loaded ONLY on the /v3-preview page. It does not
   touch the live style.css. Everything is namespaced under .ch-v3 so it can
   never leak into the rest of the site.

   Direction: professional & trustworthy.
     - Near-black "ink" headings; green used as an ACCENT, not a fill.
     - One modular type scale (1.2 minor-third), Jost display / Inter text.
     - 8px spacing system; restrained radii; calm, low shadows.
     - Real SVG line-icons (see inc/icons.php) instead of emoji.
     - Generous whitespace, editorial rhythm, evidence-forward numbers.
   ========================================================================== */

.ch-v3 {
  /* ---- Colour: ink-led, green as accent ---- */
  --v3-ink:        #14201b;   /* near-black, faint green undertone */
  --v3-ink-soft:   #3d4a44;   /* secondary text */
  --v3-muted:      #6b7671;   /* meta / captions */
  --v3-line:       #e4e9e6;   /* hairline borders */
  --v3-bg:         #ffffff;
  --v3-bg-soft:    #f6f9f7;   /* section tint */
  --v3-bg-ink:     #14201b;   /* dark sections */

  --v3-green:      #00a551;   /* TRUE brand green (from official logo SVG) */
  --v3-green-ink:  #067a3d;   /* darker green for hover/depth */
  --v3-green-tint: #e6f5ec;
  --v3-gold:       #ffcc01;   /* TRUE brand gold (from logo); accents only */
  --v3-gold-ink:   #b88f00;   /* readable gold for small text on light */

  /* ---- Type scale (1.200 minor third, 18px base) ---- */
  --v3-font-display: 'Jost', system-ui, sans-serif;
  --v3-font-text:    'Inter', system-ui, sans-serif;
  --v3-t-eyebrow: 0.8125rem;  /* 13px */
  --v3-t-small:   0.875rem;   /* 14px */
  --v3-t-body:    1.0625rem;  /* 17px */
  --v3-t-lead:    1.25rem;    /* 20px */
  --v3-t-h3:      1.5rem;     /* 24px */
  --v3-t-h2:      2.1rem;     /* ~34px */
  --v3-t-h1:      3.25rem;    /* 52px */

  /* ---- Spacing (8px system) ---- */
  --v3-s1: 8px;  --v3-s2: 16px; --v3-s3: 24px; --v3-s4: 32px;
  --v3-s5: 48px; --v3-s6: 64px; --v3-s7: 96px; --v3-s8: 128px;

  /* ---- Radii: restrained, hierarchical ---- */
  --v3-r-card: 12px;
  --v3-r-btn:  8px;
  --v3-r-pill: 999px;   /* chips/badges only */

  /* ---- Shadows: calm, single-direction ---- */
  --v3-shadow:    0 1px 2px rgba(20,32,27,.04), 0 6px 20px rgba(20,32,27,.06);
  --v3-shadow-lg: 0 2px 4px rgba(20,32,27,.05), 0 18px 40px rgba(20,32,27,.10);

  --v3-maxw: 1160px;

  color: var(--v3-ink-soft);
  font-family: var(--v3-font-text);
  font-size: var(--v3-t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout primitives ---- */
.ch-v3 .v3-container { max-width: var(--v3-maxw); margin: 0 auto; padding: 0 24px; }
.ch-v3 .v3-narrow    { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.ch-v3 .v3-section   { padding: var(--v3-s7) 0; }
.ch-v3 .v3-bg-soft   { background: var(--v3-bg-soft); }
.ch-v3 .v3-bg-ink    { background: var(--v3-bg-ink); color: #d9e2dd; }
.ch-v3 .v3-center    { text-align: center; }

/* ---- Typography ---- */
.ch-v3 .v3-eyebrow {
  font-family: var(--v3-font-text);
  font-size: var(--v3-t-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--v3-green);
  margin: 0 0 var(--v3-s2);
  display: inline-flex; align-items: center; gap: 8px;
}
.ch-v3 .v3-eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--v3-gold);
}
.ch-v3 .v3-center .v3-eyebrow::before { display: none; }

.ch-v3 h1, .ch-v3 h2, .ch-v3 h3 {
  font-family: var(--v3-font-display);
  color: var(--v3-ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--v3-s3);
}
.ch-v3 .v3-h1 { font-size: var(--v3-t-h1); line-height: 1.05; letter-spacing: -0.02em; }
.ch-v3 .v3-h2 { font-size: var(--v3-t-h2); }
.ch-v3 .v3-h3 { font-size: var(--v3-t-h3); margin-bottom: var(--v3-s2); }
.ch-v3 .v3-lead { font-size: var(--v3-t-lead); color: var(--v3-ink-soft); line-height: 1.55; }
.ch-v3 .v3-p    { margin: 0 0 var(--v3-s2); }
.ch-v3 .v3-section-head { max-width: 680px; margin: 0 0 var(--v3-s6); }
.ch-v3 .v3-center .v3-section-head { margin-left: auto; margin-right: auto; }

/* accent underline under a heading */
.ch-v3 .v3-accent-rule { width: 48px; height: 3px; background: var(--v3-gold); border: 0; margin: 0 0 var(--v3-s4); border-radius: 2px; }
.ch-v3 .v3-center .v3-accent-rule { margin-left: auto; margin-right: auto; }

/* ---- Icons ---- */
.ch-v3 .ch-v3-icon { display: block; }
.ch-v3 .v3-icon-badge {
  width: 52px; height: 52px; border-radius: var(--v3-r-card);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--v3-green-tint); color: var(--v3-green);
  margin-bottom: var(--v3-s3);
}
.ch-v3 .v3-icon-badge .ch-v3-icon { width: 26px; height: 26px; }

/* ---- Buttons: buttons look like buttons ---- */
.ch-v3 .v3-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--v3-font-text); font-weight: 600; font-size: var(--v3-t-body);
  padding: 14px 26px; border-radius: var(--v3-r-btn);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.ch-v3 .v3-btn .ch-v3-icon { width: 18px; height: 18px; }
.ch-v3 .v3-btn-primary { background: var(--v3-green); color: #fff; box-shadow: var(--v3-shadow); }
.ch-v3 .v3-btn-primary:hover { background: var(--v3-green-ink); transform: translateY(-1px); box-shadow: var(--v3-shadow-lg); }
.ch-v3 .v3-btn-ghost { background: transparent; color: var(--v3-ink); border-color: var(--v3-line); }
.ch-v3 .v3-btn-ghost:hover { border-color: var(--v3-green); color: var(--v3-green); }
.ch-v3 .v3-btn-on-ink { background: #fff; color: var(--v3-ink); }
.ch-v3 .v3-btn-on-ink:hover { transform: translateY(-1px); box-shadow: var(--v3-shadow-lg); }
.ch-v3 .v3-btn-row { display: flex; flex-wrap: wrap; gap: var(--v3-s2); }
.ch-v3 .v3-center .v3-btn-row { justify-content: center; }

/* ---- Chips / badges (the one place pills stay) ---- */
.ch-v3 .v3-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--v3-t-small); font-weight: 600; color: var(--v3-green-ink);
  background: var(--v3-green-tint); border-radius: var(--v3-r-pill);
  padding: 7px 16px; margin-bottom: var(--v3-s4);
}
.ch-v3 .v3-chip-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--v3-green); }

/* ---- Hero ---- */
.ch-v3 .v3-hero { padding: var(--v3-s8) 0 var(--v3-s7); background:
  radial-gradient(120% 90% at 50% -10%, var(--v3-green-tint) 0%, #fff 60%); }
.ch-v3 .v3-hero .v3-lead { max-width: 620px; margin-left: auto; margin-right: auto; margin-bottom: var(--v3-s5); }

/* ---- Card grid (differentiators / ways to help) ---- */
.ch-v3 .v3-grid { display: grid; gap: var(--v3-s3); }
@media (min-width: 720px)  { .ch-v3 .v3-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .ch-v3 .v3-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .ch-v3 .v3-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.ch-v3 .v3-card {
  background: #fff; border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-card); padding: var(--v3-s4);
  transition: box-shadow .2s ease, transform .12s ease, border-color .2s ease;
}
.ch-v3 .v3-card:hover { box-shadow: var(--v3-shadow-lg); transform: translateY(-2px); border-color: transparent; }
.ch-v3 .v3-card .v3-h3 { margin-bottom: var(--v3-s1); }
.ch-v3 .v3-card p { margin: 0; color: var(--v3-ink-soft); font-size: var(--v3-t-body); }

.ch-v3 a.v3-card { display: block; text-decoration: none; }
.ch-v3 .v3-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--v3-s3); color: var(--v3-green); font-weight: 600; font-size: var(--v3-t-small);
}
.ch-v3 a.v3-card:hover .v3-card-cta .ch-v3-icon { transform: translateX(3px); }
.ch-v3 .v3-card-cta .ch-v3-icon { width: 16px; height: 16px; transition: transform .15s ease; }

/* ---- Stat / evidence band ---- */
.ch-v3 .v3-stats { display: grid; gap: var(--v3-s4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .ch-v3 .v3-stats { grid-template-columns: repeat(4, 1fr); } }
.ch-v3 .v3-stat { text-align: center; }
.ch-v3 .v3-stat-num {
  font-family: var(--v3-font-display); font-weight: 600;
  font-size: 2.6rem; line-height: 1; color: var(--v3-ink);
  letter-spacing: -0.02em;
}
.ch-v3 .v3-bg-ink .v3-stat-num { color: #fff; }
.ch-v3 .v3-stat-num .v3-unit { color: var(--v3-green); }
.ch-v3 .v3-bg-ink .v3-stat-num .v3-unit { color: #4ea96f; }
.ch-v3 .v3-stat-label { margin-top: var(--v3-s2); font-size: var(--v3-t-small); color: var(--v3-muted); letter-spacing: .04em; text-transform: uppercase; }
.ch-v3 .v3-bg-ink .v3-stat-label { color: #9fb0a8; }

/* ---- Trust bar: flat glyphs, gold accent, no boxes ---- */
.ch-v3 .v3-trust { border-top: 1px solid var(--v3-line); padding: var(--v3-s5) 0; background: #fff; }
.ch-v3 .v3-trust-grid { display: grid; gap: var(--v3-s4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .ch-v3 .v3-trust-grid { grid-template-columns: repeat(4, 1fr); } }
.ch-v3 .v3-trust-item { display: flex; align-items: center; gap: var(--v3-s2); }
.ch-v3 .v3-trust-icon {
  flex: 0 0 auto; width: 40px; height: 40px; color: var(--v3-green);
  display: flex; align-items: center; justify-content: center;
  border-left: 2px solid var(--v3-gold); padding-left: 12px;
}
.ch-v3 .v3-trust-icon .ch-v3-icon { width: 24px; height: 24px; }
.ch-v3 .v3-trust-text strong { display: block; color: var(--v3-ink); font-size: var(--v3-t-small); font-weight: 600; }
.ch-v3 .v3-trust-text span { display: block; color: var(--v3-muted); font-size: var(--v3-t-small); }

/* ---- Big call-to-action band ---- */
.ch-v3 .v3-cta-band { padding: var(--v3-s7) 0; }
.ch-v3 .v3-cta-band .v3-h2 { color: #fff; }
.ch-v3 .v3-cta-band .v3-lead { color: #b6c5bd; max-width: 560px; margin: 0 auto var(--v3-s5); }

/* ---- Preview harness note (only on this preview page) ---- */
.ch-v3 .v3-preview-note {
  background: #14201b; color: #cdd8d2; font-size: 13px; text-align: center;
  padding: 10px 16px; font-family: var(--v3-font-text); letter-spacing: .02em;
}
.ch-v3 .v3-preview-note strong { color: #fff; }

/* ==========================================================================
   IMAGE-LED COMPONENTS  (photo-led + balanced variants)
   ========================================================================== */

/* ---- Full-bleed photo hero (photo-led) ---- */
.ch-v3 .v3-hero-photo {
  position: relative; min-height: 640px; display: flex; align-items: center;
  background-size: cover; background-position: center 30%; color: #fff;
  padding: var(--v3-s7) 0;
}
.ch-v3 .v3-hero-photo::before {
  content: ""; position: absolute; inset: 0;
  /* left-weighted scrim so text stays legible and gaze leads to the CTA */
  background: linear-gradient(90deg, rgba(10,18,14,.82) 0%, rgba(10,18,14,.55) 45%, rgba(10,18,14,.15) 100%);
}
@media (max-width: 720px) {
  .ch-v3 .v3-hero-photo::before { background: linear-gradient(180deg, rgba(10,18,14,.55) 0%, rgba(10,18,14,.82) 100%); }
}
.ch-v3 .v3-hero-photo .v3-container { position: relative; z-index: 1; }
.ch-v3 .v3-hero-photo .v3-inner { max-width: 620px; }
.ch-v3 .v3-hero-photo .v3-h1 { color: #fff; }
.ch-v3 .v3-hero-photo .v3-lead { color: #e7ede9; }
.ch-v3 .v3-hero-photo .v3-chip { background: rgba(255,255,255,.14); color: #fff; }
.ch-v3 .v3-hero-photo .v3-chip-dot { background: var(--v3-gold); }

/* ---- Framed photo hero (balanced): photo + text side by side ---- */
.ch-v3 .v3-hero-split { padding: var(--v3-s7) 0; }
.ch-v3 .v3-hero-split .v3-split {
  display: grid; gap: var(--v3-s6); align-items: center;
}
@media (min-width: 900px) { .ch-v3 .v3-hero-split .v3-split { grid-template-columns: 1.05fr 1fr; } }
.ch-v3 .v3-hero-figure {
  position: relative; border-radius: var(--v3-r-card); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--v3-shadow-lg);
}
.ch-v3 .v3-hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* small stat chip floating on the hero image */
.ch-v3 .v3-figure-tag {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255,255,255,.95); color: var(--v3-ink);
  border-radius: 10px; padding: 10px 14px; box-shadow: var(--v3-shadow);
  font-size: var(--v3-t-small); font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.ch-v3 .v3-figure-tag .ch-v3-icon { width: 18px; height: 18px; color: var(--v3-green); }

/* ---- Photo card (image on top, body below) ---- */
.ch-v3 .v3-photo-card {
  background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card);
  overflow: hidden; display: block; text-decoration: none;
  transition: box-shadow .2s ease, transform .12s ease;
}
.ch-v3 .v3-photo-card:hover { box-shadow: var(--v3-shadow-lg); transform: translateY(-3px); }
.ch-v3 .v3-photo-card .v3-photo {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--v3-bg-soft);
}
.ch-v3 .v3-photo-card .v3-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.ch-v3 .v3-photo-card:hover .v3-photo img { transform: scale(1.04); }
.ch-v3 .v3-photo-card .v3-photo-body { padding: var(--v3-s3) var(--v3-s3) var(--v3-s4); }
.ch-v3 .v3-photo-card .v3-h3 { margin-bottom: var(--v3-s1); }
.ch-v3 .v3-photo-card p { margin: 0; color: var(--v3-ink-soft); font-size: var(--v3-t-body); }
.ch-v3 .v3-photo-card .v3-card-cta { margin-top: var(--v3-s3); }

/* small overline tag sitting on a photo corner */
.ch-v3 .v3-photo { position: relative; }
.ch-v3 .v3-photo-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--v3-green); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: var(--v3-r-pill); letter-spacing: .02em;
}

/* ---- "Meet a child" portrait split ---- */
.ch-v3 .v3-portrait-split { display: grid; gap: var(--v3-s6); align-items: center; }
@media (min-width: 900px) { .ch-v3 .v3-portrait-split { grid-template-columns: 0.85fr 1fr; } }
.ch-v3 .v3-portrait-figure {
  border-radius: var(--v3-r-card); overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--v3-shadow-lg); max-width: 420px;
}
.ch-v3 .v3-portrait-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Photo strip (balanced: a row of small images as proof) ---- */
.ch-v3 .v3-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--v3-s2); }
@media (min-width: 720px) { .ch-v3 .v3-strip { grid-template-columns: repeat(4, 1fr); } }
.ch-v3 .v3-strip figure { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; }
.ch-v3 .v3-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Variant switcher bar (preview harness only) ---- */
.ch-v3 .v3-switch { display: inline-flex; gap: 4px; background: rgba(255,255,255,.12); padding: 4px; border-radius: 999px; }
.ch-v3 .v3-switch a { color: #cdd8d2; text-decoration: none; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; }
.ch-v3 .v3-switch a.is-active { background: #fff; color: #14201b; }

/* ==========================================================================
   INTERACTIVE FEATURES  (v3-preview.js drives these)
   ========================================================================== */

/* ---- Scroll reveal: elements start hidden, .is-in reveals them ---- */
.ch-v3 .v3-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.ch-v3 .v3-reveal.is-in { opacity: 1; transform: none; }
.ch-v3 .v3-reveal-1 { transition-delay: .06s; }
.ch-v3 .v3-reveal-2 { transition-delay: .12s; }
.ch-v3 .v3-reveal-3 { transition-delay: .18s; }
.ch-v3 .v3-reveal-4 { transition-delay: .24s; }

/* ---- Living hero: slow Ken Burns drift on the background photo ---- */
.ch-v3 .v3-hero-photo { overflow: hidden; }
.ch-v3 .v3-hero-photo.v3-kenburns { animation: v3-kenburns 22s ease-in-out infinite alternate; }
@keyframes v3-kenburns {
  from { background-size: 108%; background-position: 48% 28%; }
  to   { background-size: 118%; background-position: 55% 34%; }
}

/* ---- Donation impact slider ---- */
.ch-v3 .v3-impact { display: grid; gap: var(--v3-s6); align-items: center; }
@media (min-width: 900px) { .ch-v3 .v3-impact { grid-template-columns: 1fr 1fr; } }
.ch-v3 .v3-impact-photo { border-radius: var(--v3-r-card); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--v3-shadow-lg); position: relative; }
.ch-v3 .v3-impact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s ease; }
.ch-v3 .v3-amount-row { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--v3-s3) 0 var(--v3-s2); }
.ch-v3 .v3-amount-btn {
  border: 1.5px solid var(--v3-line); background: #fff; color: var(--v3-ink);
  border-radius: var(--v3-r-btn); padding: 10px 16px; font-weight: 600; font-size: var(--v3-t-body);
  font-family: var(--v3-font-text); cursor: pointer; transition: all .15s ease;
}
.ch-v3 .v3-amount-btn:hover { border-color: var(--v3-green); color: var(--v3-green); }
.ch-v3 .v3-amount-btn.is-active { background: var(--v3-green); border-color: var(--v3-green); color: #fff; }
.ch-v3 .v3-slider { width: 100%; margin: var(--v3-s2) 0 var(--v3-s3); accent-color: var(--v3-green); height: 6px; }
.ch-v3 .v3-impact-amount { font-family: var(--v3-font-display); font-size: 2.6rem; color: var(--v3-ink); font-weight: 600; line-height: 1; }
.ch-v3 .v3-impact-amount .v3-per { font-size: 1rem; color: var(--v3-muted); font-weight: 500; }
.ch-v3 .v3-impact-what { font-size: var(--v3-t-lead); color: var(--v3-green-ink); font-weight: 600; margin: var(--v3-s2) 0 var(--v3-s1); min-height: 1.6em; transition: opacity .25s ease; }
.ch-v3 .v3-impact-detail { color: var(--v3-ink-soft); margin-bottom: var(--v3-s4); min-height: 1.5em; }

/* ---- Count-up (styling shared with .v3-stat-num; JS sets the value) ---- */
.ch-v3 .v3-countup { font-variant-numeric: tabular-nums; }

/* ---- V3 interactive map (option A: bigger map + summary panel) ---- */
.ch-v3 .v3-map-wrap { display: grid; gap: 0; border-radius: var(--v3-r-card); overflow: hidden; box-shadow: var(--v3-shadow-lg); border: 1px solid var(--v3-line); }
@media (min-width: 860px) { .ch-v3 .v3-map-wrap { grid-template-columns: 1.9fr 1fr; } }
.ch-v3 .v3-map { min-height: 560px; height: 560px; background: #eef3f0; }
@media (max-width: 859px) { .ch-v3 .v3-map { height: 420px; min-height: 420px; } }
.ch-v3 .v3-map-panel { background: #fff; padding: var(--v3-s5); display: flex; flex-direction: column; }
.ch-v3 .v3-map-panel .v3-eyebrow { margin-bottom: var(--v3-s1); }
.ch-v3 .v3-map-panel-title { font-family: var(--v3-font-display); font-size: var(--v3-t-h2); color: var(--v3-ink); font-weight: 600; margin: 0 0 var(--v3-s3); }
.ch-v3 .v3-map-panel-stats { display: flex; gap: var(--v3-s5); margin-bottom: var(--v3-s4); }
.ch-v3 .v3-map-panel-stat b { display: block; font-family: var(--v3-font-display); font-size: 2.2rem; color: var(--v3-green); line-height: 1; }
.ch-v3 .v3-map-panel-stat span { font-size: 12px; color: var(--v3-muted); text-transform: uppercase; letter-spacing: .04em; }
.ch-v3 .v3-map-summary { color: var(--v3-ink-soft); font-size: var(--v3-t-body); line-height: 1.6; margin: 0 0 var(--v3-s2); }
.ch-v3 .v3-map-summary-soft { color: var(--v3-muted); font-size: var(--v3-t-small); }
.ch-v3 .v3-map-cp { border-top: 1px solid var(--v3-line); padding: 12px 0; }
.ch-v3 .v3-map-cp strong { color: var(--v3-ink); display: block; font-size: var(--v3-t-body); }
.ch-v3 .v3-map-cp span { color: var(--v3-muted); font-size: var(--v3-t-small); }
.ch-v3 .v3-map-hint { color: var(--v3-muted); font-size: var(--v3-t-small); margin-top: auto; padding-top: var(--v3-s4); }
/* leaflet look: strip default chrome for a cleaner feel */
.ch-v3 .v3-map .leaflet-container { background: #eef3f0; font-family: var(--v3-font-text); }
.ch-v3 .v3-map-tip { background: #fff; border: 0; box-shadow: var(--v3-shadow); border-radius: 8px; padding: 8px 12px; color: var(--v3-ink); font-size: 13px; }
.ch-v3 .v3-map-tip b { color: var(--v3-green-ink); }

/* ---- Country cards (option B: no map) ---- */
.ch-v3 .v3-country-grid { display: grid; gap: var(--v3-s3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px)  { .ch-v3 .v3-country-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .ch-v3 .v3-country-grid { grid-template-columns: repeat(4, 1fr); } }
.ch-v3 .v3-country-card { background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card); overflow: hidden; transition: box-shadow .2s ease, transform .12s ease; }
.ch-v3 .v3-country-card:hover { box-shadow: var(--v3-shadow-lg); transform: translateY(-2px); }
.ch-v3 .v3-country-photo { aspect-ratio: 3/2; overflow: hidden; background: var(--v3-bg-soft); }
.ch-v3 .v3-country-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ch-v3 .v3-country-card:hover .v3-country-photo img { transform: scale(1.05); }
.ch-v3 .v3-country-body { padding: var(--v3-s3); }
.ch-v3 .v3-country-name { font-family: var(--v3-font-display); font-size: var(--v3-t-h3); color: var(--v3-ink); font-weight: 600; margin-bottom: var(--v3-s2); }
.ch-v3 .v3-country-stats { display: flex; flex-direction: column; gap: 4px; }
.ch-v3 .v3-country-stats span { color: var(--v3-muted); font-size: var(--v3-t-small); }
.ch-v3 .v3-country-stats b { color: var(--v3-green); font-family: var(--v3-font-display); font-size: 1.05rem; }

/* ==========================================================================
   SITE COMPONENTS (V2.0 live build — forms, drill-down map skin, news)
   ========================================================================== */

/* ---- Lead form ---- */
.ch-v3 .v3-lead-form { max-width: 640px; }
.ch-v3 .v3-center .v3-lead-form,
.ch-v3 .v3-lead-form.v3-lead-center { margin-left: auto; margin-right: auto; }
.ch-v3 .v3-form {
  background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card);
  padding: var(--v3-s4); box-shadow: var(--v3-shadow); text-align: left;
}
.ch-v3 .v3-bg-soft .v3-form { box-shadow: var(--v3-shadow-lg); }
.ch-v3 .v3-field { display: block; margin-bottom: var(--v3-s3); }
.ch-v3 .v3-field > span {
  display: block; font-size: var(--v3-t-small); font-weight: 600; color: var(--v3-ink);
  margin-bottom: 6px;
}
.ch-v3 .v3-field > span em { color: var(--v3-muted); font-weight: 400; font-style: normal; }
.ch-v3 .v3-field input, .ch-v3 .v3-field select, .ch-v3 .v3-field textarea {
  width: 100%; box-sizing: border-box; font-family: var(--v3-font-text);
  font-size: var(--v3-t-body); color: var(--v3-ink);
  padding: 12px 14px; border: 1.5px solid var(--v3-line); border-radius: var(--v3-r-btn);
  background: #fff; transition: border-color .15s ease;
}
.ch-v3 .v3-field input:focus, .ch-v3 .v3-field select:focus, .ch-v3 .v3-field textarea:focus {
  outline: none; border-color: var(--v3-green);
}
.ch-v3 .v3-field-row { display: grid; gap: 0 var(--v3-s2); }
@media (min-width: 640px) { .ch-v3 .v3-field-row { grid-template-columns: 1fr 1fr; } }
.ch-v3 .v3-form .v3-btn { width: 100%; justify-content: center; margin-top: var(--v3-s1); }
.ch-v3 .v3-form-small { font-size: var(--v3-t-small); color: var(--v3-muted); margin: var(--v3-s2) 0 0; }
.ch-v3 .v3-form-small a { color: var(--v3-green-ink); }
.ch-v3 .v3-hp { position: absolute; left: -9999px; top: -9999px; }

.ch-v3 .v3-form-notice {
  border-radius: var(--v3-r-card); padding: var(--v3-s3) var(--v3-s4); margin-bottom: var(--v3-s3);
  font-size: var(--v3-t-body); text-align: left;
}
.ch-v3 .v3-form-notice strong { display: block; margin-bottom: 4px; }
.ch-v3 .v3-form-notice-ok  { background: var(--v3-green-tint); color: var(--v3-green-ink); border: 1px solid #bfe5cf; }
.ch-v3 .v3-form-notice-err { background: #fdf1f1; color: #9c3535; border: 1px solid #f0d3d3; }

/* ---- Drill-down map, V3 skin (same IDs home.js has always used) ---- */
.ch-v3 .ch-map-wrap {
  display: grid; gap: var(--v3-s3); align-items: start;
}
@media (min-width: 960px) { .ch-v3 .ch-map-wrap { grid-template-columns: 1.9fr 1fr; } }
.ch-v3 .ch-map-stage { position: relative; border-radius: var(--v3-r-card); overflow: hidden; box-shadow: var(--v3-shadow-lg); border: 1px solid var(--v3-line); }
.ch-v3 .ch-map { height: 560px; background: #eef3f0; }
@media (max-width: 720px) { .ch-v3 .ch-map { height: 420px; } }
.ch-v3 .ch-map .leaflet-container { background: #eef3f0; font-family: var(--v3-font-text); }
.ch-v3 .ch-map-back {
  position: absolute; z-index: 800; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--v3-ink); border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-btn); padding: 9px 16px; font-family: var(--v3-font-text);
  font-size: var(--v3-t-small); font-weight: 600; cursor: pointer; box-shadow: var(--v3-shadow);
}
.ch-v3 .ch-map-back:hover { border-color: var(--v3-green); color: var(--v3-green-ink); }
.ch-v3 .ch-cluster-badge {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--v3-gold); color: var(--v3-ink); font-family: var(--v3-font-text);
  font-weight: 800; font-size: 14px; border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 3px 10px rgba(20,32,27,.25);
}
.ch-v3 .ch-country-tooltip-hover {
  background: #fff; border: 0; box-shadow: var(--v3-shadow); border-radius: 8px;
  padding: 8px 12px; color: var(--v3-ink); font-size: 13px; font-family: var(--v3-font-text);
}

/* default (Africa-wide summary) panel content */
.ch-v3 .ch-panel-default { padding: var(--v3-s4); display: flex; flex-direction: column; height: 100%; }
.ch-v3 .ch-panel-default .v3-map-hint { margin-top: auto; padding-top: var(--v3-s3); }

/* map side panel (markup built by home.js) */
.ch-v3 .ch-map-panel, .ch-v3 #ch-panel {
  background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card);
  box-shadow: var(--v3-shadow); overflow: hidden; display: none;
}
.ch-v3 #ch-panel.open { display: block; }
.ch-v3 .ch-panel-header { background: var(--v3-bg-ink); color: #d9e2dd; padding: var(--v3-s4); position: relative; }
.ch-v3 .ch-panel-country { font-size: var(--v3-t-eyebrow); text-transform: uppercase; letter-spacing: .1em; color: #8fc7a5; font-weight: 600; }
.ch-v3 .ch-panel-name { font-family: var(--v3-font-display); font-size: var(--v3-t-h3); color: #fff; font-weight: 600; margin: 6px 0 12px; }
.ch-v3 .ch-panel-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ch-v3 .ch-panel-header .ch-chip { background: rgba(255,255,255,.14); color: #fff; border-radius: var(--v3-r-pill); padding: 5px 12px; font-size: 12px; font-weight: 600; }
.ch-v3 .ch-panel-link { color: var(--v3-gold); font-size: var(--v3-t-small); font-weight: 600; text-decoration: none; }
.ch-v3 .ch-panel-body { padding: var(--v3-s3) var(--v3-s4); color: var(--v3-ink-soft); font-size: var(--v3-t-small); line-height: 1.6; }
.ch-v3 .ch-panel-section { padding: 0 var(--v3-s4) var(--v3-s4); }
.ch-v3 .ch-panel-section h4 { font-family: var(--v3-font-display); color: var(--v3-ink); margin: 0 0 var(--v3-s2); }
.ch-v3 .ch-panel-header .ch-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 8px;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.ch-v3 .ch-need-item { border-top: 1px solid var(--v3-line); padding: 12px 0; }
.ch-v3 .ch-need-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--v3-ink); }
.ch-v3 .ch-need-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--v3-gold-ink); background: #fff8df; border-radius: var(--v3-r-pill); padding: 3px 10px; }
.ch-v3 .ch-need-tag.urgent { color: #9c3535; background: #fdf1f1; }
.ch-v3 .ch-need-detail { font-size: var(--v3-t-small); color: var(--v3-muted); margin-top: 4px; }
.ch-v3 .ch-progress { height: 6px; background: var(--v3-bg-soft); border-radius: 999px; overflow: hidden; }
.ch-v3 .ch-progress-fill { height: 100%; background: var(--v3-gold); border-radius: 999px; }
.ch-v3 .ch-progress-fill.ok { background: var(--v3-green); }
.ch-v3 .ch-need-fund {
  display: inline-block; margin-top: 10px; font-size: var(--v3-t-small); font-weight: 600;
  color: #fff; background: var(--v3-green); border-radius: var(--v3-r-btn);
  padding: 8px 16px; text-decoration: none;
}
.ch-v3 .ch-need-fund.outline { color: var(--v3-green-ink); background: transparent; border: 1.5px solid var(--v3-line); }

/* country summary cards under the map (markup built by home.js) */
.ch-v3 .ch-country-grid { display: grid; gap: var(--v3-s2); grid-template-columns: repeat(2, 1fr); margin-top: var(--v3-s4); }
@media (min-width: 720px)  { .ch-v3 .ch-country-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1040px) { .ch-v3 .ch-country-grid { grid-template-columns: repeat(7, 1fr); } }
.ch-v3 .ch-country-card {
  background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card);
  padding: var(--v3-s2) var(--v3-s3); cursor: pointer; text-align: center;
  transition: box-shadow .2s ease, transform .12s ease;
}
.ch-v3 .ch-country-card:hover { box-shadow: var(--v3-shadow-lg); transform: translateY(-2px); }
.ch-v3 .ch-country-card strong { display: block; font-family: var(--v3-font-display); color: var(--v3-ink); font-weight: 600; margin-bottom: 2px; }
.ch-v3 .ch-country-card span { font-size: 12px; color: var(--v3-muted); }

/* needs board cards (markup built by home.js) */
.ch-v3 .ch-needs-heading { display: flex; align-items: center; gap: 10px; font-family: var(--v3-font-display); color: var(--v3-ink); font-size: var(--v3-t-h3); margin: 0 0 var(--v3-s3); }
.ch-v3 .ch-needs-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.ch-v3 .ch-needs-grid { display: grid; gap: var(--v3-s3); }
@media (min-width: 720px)  { .ch-v3 .ch-needs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ch-v3 .ch-needs-grid { grid-template-columns: repeat(3, 1fr); } }
.ch-v3 .ch-need-card { background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card); padding: var(--v3-s3); }
.ch-v3 .ch-need-card.urgent { border-color: #f0d3d3; }
.ch-v3 .ch-need-location { font-size: 12px; color: var(--v3-muted); margin-bottom: 8px; }
.ch-v3 .ch-progress-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--v3-muted); margin: 6px 0 12px; }

/* ---- Prayer for Today card ---- */
.ch-v3 .v3-prayer {
  background: #fff; border: 1px solid var(--v3-line); border-left: 3px solid var(--v3-gold);
  border-radius: var(--v3-r-card); padding: var(--v3-s4); max-width: 640px; margin: 0 auto;
  box-shadow: var(--v3-shadow);
}
.ch-v3 .v3-prayer-name { font-family: var(--v3-font-display); font-size: var(--v3-t-h3); color: var(--v3-ink); font-weight: 600; margin: 0 0 var(--v3-s1); }
.ch-v3 .v3-prayer-country { color: var(--v3-muted); font-weight: 500; }
.ch-v3 .v3-prayer-fact { color: var(--v3-ink-soft); font-size: var(--v3-t-small); margin: 0 0 var(--v3-s2); }
.ch-v3 .v3-prayer-text { font-size: var(--v3-t-lead); color: var(--v3-ink); line-height: 1.5; margin: 0 0 var(--v3-s2); }
.ch-v3 .v3-prayer-note { color: var(--v3-muted); font-size: var(--v3-t-small); margin: 0; }

/* ---- "Right now" live strip ---- */
.ch-v3 .v3-now {
  background: #fff8df; border-top: 1px solid #f2e4a8; border-bottom: 1px solid #f2e4a8;
  padding: 14px 0; font-size: var(--v3-t-small); color: var(--v3-ink);
}
.ch-v3 .v3-now .v3-container { display: flex; align-items: center; gap: 10px; }
.ch-v3 .v3-now-dot {
  flex: 0 0 auto; width: 9px; height: 9px; border-radius: 999px; background: var(--v3-green);
  animation: v3-now-pulse 2s ease-in-out infinite;
}
@keyframes v3-now-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ch-v3 .v3-now-dot { animation: none; } }

/* ---- Modal (data-ask and friends) ---- */
.ch-v3 .v3-modal-backdrop {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(20,32,27,.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 16px; overflow-y: auto;
}
.ch-v3 .v3-modal-backdrop[hidden] { display: none; }
.ch-v3 .v3-modal {
  position: relative; background: #fff; border-radius: var(--v3-r-card);
  box-shadow: var(--v3-shadow-lg); max-width: 640px; width: 100%;
  padding: var(--v3-s5); animation: v3-modal-in .22s ease;
}
@keyframes v3-modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ch-v3 .v3-modal { animation: none; } }
.ch-v3 .v3-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border: 1px solid var(--v3-line); background: #fff; color: var(--v3-ink);
  border-radius: 8px; font-size: 20px; line-height: 1; cursor: pointer;
}
.ch-v3 .v3-modal-close:hover { border-color: var(--v3-green); color: var(--v3-green-ink); }
.ch-v3 .v3-modal .v3-form { box-shadow: none; border: 0; padding: 0; }
.ch-v3 .v3-modal .v3-lead-form { max-width: none; }

/* question chips inside the modal */
.ch-v3 .v3-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--v3-s3); }
.ch-v3 .v3-q-chip {
  border: 1.5px solid var(--v3-line); background: #fff; color: var(--v3-ink);
  border-radius: var(--v3-r-pill); padding: 8px 16px; font-family: var(--v3-font-text);
  font-size: var(--v3-t-small); font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.ch-v3 .v3-q-chip:hover { border-color: var(--v3-green); color: var(--v3-green-ink); }
.ch-v3 .v3-q-chip.is-active { background: var(--v3-green); border-color: var(--v3-green); color: #fff; }

/* ---- News cards ---- */
.ch-v3 .v3-news-grid { display: grid; gap: var(--v3-s3); }
@media (min-width: 800px) { .ch-v3 .v3-news-grid { grid-template-columns: repeat(3, 1fr); } }
.ch-v3 .v3-news-card {
  background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  transition: box-shadow .2s ease, transform .12s ease;
}
.ch-v3 .v3-news-card:hover { box-shadow: var(--v3-shadow-lg); transform: translateY(-2px); }
.ch-v3 .v3-news-image { aspect-ratio: 16/9; overflow: hidden; background: var(--v3-bg-soft); }
.ch-v3 .v3-news-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-v3 .v3-news-body { padding: var(--v3-s3); display: flex; flex-direction: column; gap: 8px; }
.ch-v3 .v3-news-date { font-size: 12px; color: var(--v3-muted); text-transform: uppercase; letter-spacing: .05em; }
.ch-v3 .v3-news-title { font-family: var(--v3-font-display); font-size: 1.15rem; color: var(--v3-ink); font-weight: 600; line-height: 1.3; margin: 0; }
.ch-v3 .v3-news-excerpt { font-size: var(--v3-t-small); color: var(--v3-ink-soft); margin: 0; }

/* ---- Prose blocks (About / longer copy) ---- */
.ch-v3 .v3-prose p { margin: 0 0 var(--v3-s3); }
.ch-v3 .v3-prose a { color: var(--v3-green-ink); }
.ch-v3 .v3-value-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ch-v3 .v3-value-pill {
  background: #fff; border: 1px solid var(--v3-line); color: var(--v3-ink);
  border-radius: var(--v3-r-pill); padding: 8px 18px; font-size: var(--v3-t-small); font-weight: 600;
}

/* ---- Steps (church page: 1-2-3) ---- */
.ch-v3 .v3-steps { display: grid; gap: var(--v3-s3); counter-reset: v3step; }
@media (min-width: 800px) { .ch-v3 .v3-steps { grid-template-columns: repeat(3, 1fr); } }
.ch-v3 .v3-step { background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card); padding: var(--v3-s4); position: relative; }
.ch-v3 .v3-step::before {
  counter-increment: v3step; content: counter(v3step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; margin-bottom: var(--v3-s2);
  background: var(--v3-green); color: #fff; font-family: var(--v3-font-display);
  font-weight: 600; font-size: 1.1rem;
}

/* ---- Definition rows (impact-claim strip, checklists) ---- */
.ch-v3 .v3-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ch-v3 .v3-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.ch-v3 .v3-checklist .ch-v3-icon { width: 20px; height: 20px; color: var(--v3-green); flex: 0 0 auto; margin-top: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ch-v3 .v3-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ch-v3 .v3-hero-photo.v3-kenburns { animation: none !important; }
}

/* ---- Responsive type ---- */
@media (max-width: 640px) {
  .ch-v3 { --v3-t-h1: 2.4rem; --v3-t-h2: 1.7rem; }
  .ch-v3 .v3-section { padding: var(--v3-s6) 0; }
  .ch-v3 .v3-hero { padding: var(--v3-s6) 0 var(--v3-s5); }
  .ch-v3 .v3-hero-photo { min-height: 520px; }
}

/* ---- V3 FAQ accordion (page-faqs) ---- */
.ch-v3 .v3-faq-cat { font-family: var(--v3-font-display); font-size: 1.15rem; font-weight: 700; color: var(--v3-green-ink); margin: var(--v3-s5) 0 var(--v3-s3); }
.ch-v3 .v3-faq-group:first-of-type .v3-faq-cat { margin-top: 0; }
.ch-v3 details.v3-faq { background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card); margin-bottom: var(--v3-s2); overflow: hidden; }
.ch-v3 details.v3-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--v3-s2); padding: var(--v3-s3) var(--v3-s4); font-weight: 600; color: var(--v3-ink); }
.ch-v3 details.v3-faq summary::-webkit-details-marker { display: none; }
.ch-v3 details.v3-faq summary::after { content: "+"; font-family: var(--v3-font-display); font-size: 1.35rem; color: var(--v3-green); line-height: 1; flex-shrink: 0; transition: transform .2s ease; }
.ch-v3 details.v3-faq[open] summary::after { transform: rotate(45deg); }
.ch-v3 details.v3-faq[open] summary { color: var(--v3-green-ink); }
.ch-v3 .v3-faq-a { padding: 0 var(--v3-s4) var(--v3-s3); color: var(--v3-ink-soft); line-height: 1.6; }
.ch-v3 .v3-faq-a a { color: var(--v3-green-ink); }
