/*
Theme Name: Love's Door
Theme URI: https://lovesdoor.org
Author: Love's Door
Description: Block theme for Love's Door (For All Nations), a Christian ministry serving children and families in rural Zambia. Zambezi Dusk palette: dusk blue, sun ochre and clay, Outfit and DM Sans.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loves-door
*/

/* =====================================================================
   Love's Door - Zambezi Dusk. Tokens: design/design-tokens.json (locked).
   Component patterns: design/design-patterns.html (approved).
   ===================================================================== */
:root {
  --blue: #173F5F; --ochre: #F5C860; --clay: #A34A28; --ink: #15161C;
  --bg: #FFFFFF; --alt: #F8F6EF; --surface: #FFFFFF;
  --title: #15161C; --text: #4F555A;
  --font-head: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --label: #A34A28; --link: #173F5F; --fill: #173F5F;
  --chip: rgba(245, 200, 96, .22); --chip-ink: #173F5F;
  --line: rgba(23, 63, 95, .12);
  --lift: 0 35px 42px -16px rgba(23, 63, 95, .14);
  --wave: rgba(23, 63, 95, .16);
  --ring: #173F5F;
  --mark: rgba(245, 200, 96, .7);
  --header-bg: rgba(255, 255, 255, .92);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --hover: .3s linear; --wipe: .35s linear; --reveal: .9s; --stagger: .08s;
  --section: 6rem; --gap: 1.5rem;
  --r-card: 14px; --r-img: 10px; --r-panel: 16px; --r-tile: 20px; --r-pill: 100px;
  --wide: 1200px;
  --on-blue: #F3F1EA; --on-blue-muted: rgba(243, 241, 234, .8);
}
:root[data-theme="dark"] {
  --bg: #0F1F2C; --alt: #132634; --surface: #172B3B; --title: #F3F1EA; --text: #B7C1C8;
  --label: #EE9F7C; --link: #7FB3D9; --fill: #2A6C93;
  --chip: rgba(245, 200, 96, .14); --chip-ink: #F5C860;
  --line: rgba(243, 241, 234, .10); --lift: 0 35px 42px -16px rgba(0, 0, 0, .65);
  --wave: rgba(127, 179, 217, .18); --ring: #F5C860; --mark: rgba(245, 200, 96, .45);
  --header-bg: rgba(15, 31, 44, .92);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1F2C; --alt: #132634; --surface: #172B3B; --title: #F3F1EA; --text: #B7C1C8;
    --label: #EE9F7C; --link: #7FB3D9; --fill: #2A6C93;
    --chip: rgba(245, 200, 96, .14); --chip-ink: #F5C860;
    --line: rgba(243, 241, 234, .10); --lift: 0 35px 42px -16px rgba(0, 0, 0, .65);
    --wave: rgba(127, 179, 217, .18); --ring: #F5C860; --mark: rgba(245, 200, 96, .45);
    --header-bg: rgba(15, 31, 44, .92);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s var(--ease), color .4s var(--ease); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--title); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 8vw, 56px); line-height: 1.06; }
h2 { font-size: clamp(28px, 5vw, 32px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ochre); color: var(--blue); padding: 10px 16px; border-radius: var(--r-pill); font: 600 14px/1 var(--font-head); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section) 0; }
.section.alt { background: var(--alt); }
.label { display: block; font: 500 12px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-bottom: 10px; }
.lede { font-size: 19px; line-height: 1.6; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.sec-head--row > div { max-width: 600px; }
.placeholder-note { color: var(--label); font-weight: 500; }
mark { background: linear-gradient(transparent 62%, var(--mark) 62% 92%, transparent 92%); color: inherit; padding: 0 .06em; }

/* ---------- Header (pattern) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); transition: background-color .4s var(--ease);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; max-width: var(--wide); margin: 0 auto; padding: 14px 24px; min-height: 76px; }
.wordmark { font: 600 26px/1 var(--font-head); color: var(--title); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.wordmark b { font-weight: 600; color: var(--ochre); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 10px 12px; border-radius: var(--r-pill);
  font: 500 15px/1 var(--font-body); color: var(--title); text-decoration: none; white-space: nowrap;
  background-image: linear-gradient(var(--ochre), var(--ochre)); background-repeat: no-repeat;
  background-size: 0 2px; background-position: 12px calc(100% - 4px);
  transition: background-size var(--hover), color var(--hover);
}
.site-nav a:hover, .site-nav a:focus-visible { background-size: calc(100% - 24px) 2px; }
.site-nav a[aria-current="page"] { background-size: calc(100% - 24px) 2px; color: var(--link); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-donate { padding: 13px 22px; min-height: 46px; font-size: 15px; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--alt); color: var(--title); cursor: pointer;
  transition: background-color var(--hover);
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 1140px) {
  .site-header__inner { gap: 12px; padding: 12px 16px; min-height: 68px; flex-wrap: wrap; }
  .wordmark { font-size: 22px; margin-right: auto; }
  .header-actions { order: 2; }
  .menu-toggle { display: inline-flex; }
  .site-nav { order: 3; flex-basis: 100%; margin: 0; display: none; }
  .site-nav.is-open { display: block; animation: drop .3s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 2px; padding: 8px 0 12px; border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 14px 4px; font-size: 17px; border-radius: 0; background-position: 4px calc(100% - 8px); }
  .site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { background-size: 40px 2px; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 20px; }
  .btn-donate { padding: 12px 16px; min-height: 44px; font-size: 14px; gap: 8px; }
  .menu-toggle { width: 44px; height: 44px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Eyebrow pill with dot (pattern) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--chip); color: var(--chip-ink); font: 500 13px/1 var(--font-body); letter-spacing: .02em; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.eyebrow--on-blue { background: rgba(245, 200, 96, .18); color: var(--ochre); }

/* ---------- Embellishments: dusk sun + river lines (pattern) ---------- */
.sun {
  position: absolute; top: -90px; right: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 200, 96, .55) 0 38%, rgba(245, 200, 96, .18) 39% 62%, transparent 63%);
  animation: glow 7s ease-in-out infinite alternate; pointer-events: none;
}
.river {
  position: absolute; width: 240px; height: 60px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.river i {
  position: absolute; left: 0; width: 200%; height: 10px;
  background: radial-gradient(10px 5px at 10px 0, transparent 8px, var(--wave) 8.5px 10px, transparent 10.5px) 0 0 / 20px 10px repeat-x;
  animation: flow 14s linear infinite;
}
.river i:nth-child(1) { top: 8px; }
.river i:nth-child(2) { top: 26px; animation-duration: 18s; opacity: .7; }
.river i:nth-child(3) { top: 44px; animation-duration: 23s; opacity: .45; }
@keyframes glow { to { transform: scale(1.08) translate(-6px, 6px); } }
@keyframes flow { to { transform: translateX(-50%); } }

/* ---------- Links (pattern) ---------- */
.link {
  color: var(--link); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 3px; text-decoration-color: var(--ochre); transition: text-decoration-color var(--hover);
}
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }

/* ---------- Buttons: pill + circle-wipe + sliding arrow (pattern) ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; min-height: 48px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font: 600 15px/1 var(--font-head); text-decoration: none; letter-spacing: .01em; white-space: nowrap;
  transition: color .3s linear, border-color .3s linear;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; top: 50%; left: -210%; width: 200%; aspect-ratio: 1; border-radius: 50%;
  transform: translateY(-50%); transition: left var(--wipe);
}
.btn:hover::before, .btn:focus-visible::before { left: -10%; }
.arrow { position: relative; display: inline-block; width: 16px; height: 16px; overflow: hidden; flex: none; }
.arrow svg { position: absolute; inset: 0; width: 16px; height: 16px; transition: transform .3s linear; }
.arrow svg + svg { transform: translateX(-120%); }
.btn:hover .arrow svg:first-child, .btn:focus-visible .arrow svg:first-child { transform: translateX(120%); }
.btn:hover .arrow svg + svg, .btn:focus-visible .arrow svg + svg { transform: translateX(0); }
.btn-primary { background: var(--ochre); color: var(--blue); }
.btn-primary::before { background: var(--fill); }
.btn-primary:hover, .btn-primary:focus-visible { color: #FFFFFF; }
.btn-secondary { background: transparent; color: var(--title); border: 1.5px solid var(--title); padding: 14px 23px; }
.btn-secondary::before { background: var(--ochre); }
.btn-secondary:hover, .btn-secondary:focus-visible { color: var(--blue); border-color: var(--ochre); }
/* secondary on dusk-blue / photo backgrounds */
.btn-on-blue { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .85); padding: 14px 23px; }
.btn-on-blue::before { background: var(--ochre); }
.btn-on-blue:hover, .btn-on-blue:focus-visible { color: var(--blue); border-color: var(--ochre); }
/* primary on dusk blue: wipe must differ from the band colour */
.on-blue .btn-primary::before { background: #FFFFFF; }
.on-blue .btn-primary:hover, .on-blue .btn-primary:focus-visible { color: var(--blue); }

/* ---------- Cards: soft lift + photo zoom in rounded frame (pattern) ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; background: transparent; border-radius: var(--r-card); padding: 10px 10px 20px;
  transition: background-color .3s linear, box-shadow .3s linear, transform .3s linear;
}
.card:hover, .card:focus-within { background: var(--surface); box-shadow: var(--lift); transform: translateY(-4px); }
.frame { position: relative; overflow: hidden; border-radius: var(--r-img); aspect-ratio: 4 / 3; margin-bottom: 14px; background: var(--line); }
.frame img, .frame .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .3s linear; }
.card:hover .frame img, .card:focus-within .frame img, .card:hover .frame .ph, .card:focus-within .frame .ph { transform: scale(1.1); }
.card .tag { display: block; font: 500 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin: 0 4px 8px; }
.card h3 { font-size: 20px; line-height: 1.25; margin: 0 4px 6px; }
.card p { font-size: 15px; line-height: 1.55; margin: 0 4px 14px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px; font: 600 14px/1 var(--font-head); color: var(--link); text-decoration: none; }
.more::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.more--plain::after { display: none; }
.more svg { width: 15px; height: 15px; transition: transform .3s linear; }
.card:hover .more svg, .card:focus-within .more svg { transform: translateX(4px); }
/* zoomable frame outside a card */
.zoom { overflow: hidden; border-radius: var(--r-img); }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s linear; }
.zoom:hover img { transform: scale(1.1); }
/* image placeholder tile (photo still to be supplied) */
.ph { display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 16px;
  background: radial-gradient(circle at 80% 15%, rgba(245, 200, 96, .45) 0 18%, transparent 19%), linear-gradient(135deg, var(--blue), #1F5379);
  color: var(--on-blue); font: 500 14px/1.35 var(--font-body); }
.ph svg { width: 36px; height: 36px; color: var(--ochre); }

/* ---------- Icon chip (tinted translucent panel) ---------- */
.chip-icon { width: 52px; height: 52px; border-radius: var(--r-card); display: grid; place-items: center; background: var(--chip); color: var(--chip-ink); flex: none; }
.chip-icon svg { width: 26px; height: 26px; }

/* ---------- Sponsor card (pattern) ---------- */
.sponsor {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px;
  transition: box-shadow .3s linear, transform .3s linear;
}
.sponsor:hover { box-shadow: var(--lift); transform: translateY(-4px); }
.sponsor::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--chip); pointer-events: none; }
.sponsor .frame { aspect-ratio: 4 / 3; margin: 0; border-radius: 12px; }
.sponsor:hover .frame img { transform: scale(1.1); }
.sponsor h3 { font-size: 22px; line-height: 1.2; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 12px; }
.price strong { font: 600 40px/1 var(--font-head); color: var(--title); letter-spacing: -.02em; }
.price span { font-size: 15px; }
.covers { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr; gap: 6px 12px; font-size: 15px; line-height: 1.4; }
.covers li { display: flex; gap: 8px; align-items: flex-start; color: var(--title); }
.covers svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--chip-ink); }
.sponsor .btn { position: relative; z-index: 1; }
@media (min-width: 600px) { .covers { grid-template-columns: 1fr 1fr; } }

/* ---------- Mission callout (pattern) ---------- */
.mission { padding: 18px 20px; border-left: 3px solid var(--ochre); background: var(--chip); border-radius: 0 12px 12px 0; }
.mission small { display: block; font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--chip-ink); margin-bottom: 8px; }
.mission p { color: var(--title); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: var(--on-blue-muted); padding: 72px 0 28px; font-size: 15px; }
.site-footer--accent { border-top: 6px solid var(--ochre); }
.site-footer a { color: var(--on-blue); text-decoration: none; transition: color var(--hover); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--ochre); }
.site-footer :focus-visible, .on-blue-zone :focus-visible { outline-color: var(--ochre); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.footer-brand .wordmark { color: #FFFFFF; font-size: 28px; }
.footer-brand .tagline { display: block; margin: 10px 0 16px; font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); }
.footer-brand p { max-width: 36ch; margin-bottom: 22px; }
.site-footer h4 { font-size: 16px; color: #FFFFFF; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(243, 241, 234, .25); transition: background-color var(--hover), color var(--hover), border-color var(--hover); }
.social a:hover, .social a:focus-visible { background: var(--ochre); color: var(--blue); border-color: var(--ochre); }
.social svg { width: 19px; height: 19px; }
.contact-line { display: inline-flex; align-items: center; gap: 8px; }
.contact-line svg { width: 18px; height: 18px; color: var(--ochre); }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(243, 241, 234, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

/* ---------- Fade-up on scroll (pattern) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: calc(var(--stagger) * 1); }
.js .reveal.d2 { transition-delay: calc(var(--stagger) * 2); }
.js .reveal.d3 { transition-delay: calc(var(--stagger) * 3); }
.js .reveal.d4 { transition-delay: calc(var(--stagger) * 4); }
/* once revealed, JS removes .reveal so each component's own hover transition applies again */


@media (max-width: 600px) {
  :root { --section: 4rem; }
  .wrap, .narrow { padding: 0 16px; }
  .sec-head { margin-bottom: 28px; }
  .lede { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .card:focus-within, .sponsor:hover { transform: none; }
  .card:hover .frame img, .card:focus-within .frame img, .sponsor:hover .frame img, .zoom:hover img, .card:hover .frame .ph { transform: none; }
}


/* ===== Layout-specific ===== */
/* v2 Layout 1 - Open Door Welcome: Open Door Hero top + Split Welcome body + Open Door Hero close */
.hero1 { position: relative; overflow: hidden; color: #FFFFFF; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(9rem, 16vw, 12rem); isolation: isolate; }
.hero1__bg { position: absolute; inset: 0; z-index: -2; }
.hero1__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero1::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23, 63, 95, .55) 0%, rgba(23, 63, 95, .88) 55%, rgba(23, 63, 95, .95) 100%); }
.hero1 .sun { top: auto; bottom: -150px; right: -110px; opacity: .55; }
.hero1__content { max-width: 640px; }
.hero1 h1 { color: #FFFFFF; margin-bottom: 20px; max-width: 14ch; }
.hero1 p { color: rgba(255, 255, 255, .92); font-size: 18px; max-width: 50ch; margin-bottom: 30px; }
.hero1 .scroll-cue { margin-top: 40px; display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); }
.hero1 .scroll-cue::before { content: ""; width: 36px; height: 2px; background: currentColor; }
@media (min-width: 900px) {
  .hero1::before { background: linear-gradient(90deg, rgba(23, 63, 95, .95) 0%, rgba(23, 63, 95, .86) 38%, rgba(23, 63, 95, .4) 72%, rgba(23, 63, 95, .2) 100%); }
  .hero1 p { font-size: 19px; }
}

/* pillars overlapping the hero bottom */
.pillars { position: relative; z-index: 2; margin-top: clamp(-8rem, -12vw, -5rem); }
.pillars__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pillar { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px 26px 30px;
  transition: transform .3s linear, box-shadow .3s linear; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.pillar__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pillar__num { font: 600 15px/1 var(--font-head); color: var(--label); letter-spacing: .06em; }
.pillar h3 { font-size: 20px; margin-bottom: 8px; }
.pillar p { font-size: 15px; line-height: 1.6; }
@media (min-width: 900px) { .pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pillars-intro { text-align: center; margin: 56px auto 0; max-width: 620px; }
.pillars-intro p { font-size: 16px; }

/* Mission + values */
.mv__top { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; margin-bottom: 48px; }
.mv__top h2 { margin-bottom: 18px; }
.strategy { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.strategy li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; font-size: 16px; line-height: 1.55; color: var(--title); }
.strategy li::before { content: "0" counter(s); font: 600 15px/40px var(--font-head); text-align: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ochre); color: var(--label); }
@media (min-width: 960px) { .mv__top { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.vgrid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; display: flex; gap: 18px; align-items: flex-start; transition: transform .3s linear, box-shadow .3s linear; }
.vcard:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.vcard h3 { font-size: 20px; margin-bottom: 4px; }
.vcard p { font-size: 15px; line-height: 1.55; }

/* Work cards with icon badge on the frame */
.card .frame .fbadge { position: absolute; left: 12px; top: 12px; z-index: 1; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--chip-ink); }
.card .frame .fbadge svg { width: 22px; height: 22px; }
.work2 .card .frame { aspect-ratio: 5 / 4; }

/* Sponsor band on dusk blue */
.band { background: var(--blue); color: var(--on-blue-muted); position: relative; overflow: hidden; }
.band .sun { top: auto; bottom: -160px; left: -120px; right: auto; opacity: .5; }
.band__grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.band h2 { color: #FFFFFF; margin-bottom: 14px; }
.band .price strong { color: #FFFFFF; }
.band .covers li { color: #FFFFFF; }
.band .covers svg { color: var(--ochre); }
.band .note { font-size: 15px; margin-bottom: 28px; max-width: 52ch; }
.band__photo { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.band__photo .zoom { aspect-ratio: 4 / 5; border-radius: var(--r-tile); }
.band__photo .zoom img { object-position: 50% 30%; }
.band__photo::before { content: ""; position: absolute; right: -26px; top: -26px; width: 120px; height: 120px; border-radius: 50%; background: var(--ochre); opacity: .9; }
.band__tag { position: absolute; left: -14px; bottom: 28px; background: var(--ochre); color: var(--blue); border-radius: var(--r-pill); padding: 10px 18px; font: 600 15px/1 var(--font-head); }
@media (min-width: 960px) { .band__grid { grid-template-columns: 1.15fr 1fr; gap: 80px; } }

/* Split Welcome photo collage + $39 badge, carried into the sponsor band */
.hcollage { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: center; isolation: isolate; }
.hcollage .big { aspect-ratio: 4 / 5; border-radius: var(--r-tile); }
.hcollage .big img { object-position: 38% 40%; }
.hcollage .stack { display: grid; gap: 16px; }
.hcollage .round { aspect-ratio: 1 / 1; border-radius: 50%; border: 6px solid var(--bg); box-shadow: 0 0 0 1px var(--line); }
.hcollage .round img { object-position: 50% 25%; }
.hcollage .stack .round:first-child { transform: translateX(-28px); }
.hcollage .river { right: -20px; bottom: 6%; }
.hcollage::before { content: ""; position: absolute; z-index: -1; right: 4%; top: 6%; width: 52%; aspect-ratio: 1; border-radius: 50%; background: var(--chip); }
.badge {
  position: absolute; left: -12px; bottom: 9%; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 16px 12px 12px; box-shadow: var(--lift);
  text-decoration: none; color: var(--title); transition: transform .3s linear;
}
.badge:hover { transform: translateY(-4px); }
.badge .chip-icon { width: 44px; height: 44px; border-radius: 12px; }
.badge .chip-icon svg { width: 22px; height: 22px; }
.badge strong { display: block; font: 600 18px/1.1 var(--font-head); }
.badge span { font-size: 13px; color: var(--text); }
@media (max-width: 600px) { .badge { left: 8px; bottom: 6px; } .hcollage .stack .round:first-child { transform: none; } }
.band__grid--collage { align-items: center; }
@media (min-width: 960px) { .band__grid--collage { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.band .hcollage .round { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(243, 241, 234, .14); }
.band .hcollage::before { background: rgba(245, 200, 96, .18); }
.band .hcollage .river { --wave: rgba(245, 200, 96, .24); }
.band .hcollage .big img { object-position: 50% 30%; }
.band .badge { color: var(--title); }

/* Mission + values without the strategy list (the overlapping cards already carry it) */
.mv__top .mission { margin-top: 4px; }

/* Team / directors split */
.team2 { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.team2 h2 { margin-bottom: 16px; }
.team2 p + p { margin-top: 14px; }
.team2 .actions { margin-top: 28px; }
.tphotos { position: relative; padding: 0 0 60px 0; }
.tphotos .main { aspect-ratio: 1 / 1; border-radius: var(--r-tile); width: 78%; }
.tphotos .sub { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border-radius: var(--r-tile); border: 6px solid var(--alt); }
.tphotos figcaption { position: absolute; left: 0; bottom: 14px; font-size: 14px; color: var(--text); max-width: 44%; }
.tphotos figcaption strong { display: block; color: var(--title); font: 600 16px/1.3 var(--font-head); }
@media (min-width: 960px) { .team2 { grid-template-columns: 1fr 1fr; gap: 80px; } .team2 .tphotos { order: 2; } }
@media (max-width: 600px) { .tphotos figcaption { position: static; max-width: none; margin-top: 12px; } .tphotos { padding-bottom: 0; } .tphotos .sub { bottom: 40px; } }

/* Stories with meta row */
.meta { display: flex; gap: 10px; align-items: center; margin: 0 4px 8px; }
.meta .tag { margin: 0; }
.meta time { font-size: 13px; color: var(--text); }

/* Get involved on dusk blue */
.gi { background: var(--blue); color: var(--on-blue-muted); position: relative; overflow: hidden; }
.gi h2 { color: #FFFFFF; }
.gi .label { color: var(--ochre); }
.gi__grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.gi__photo .zoom { aspect-ratio: 3 / 2; border-radius: var(--r-tile); }
.gi__photo figcaption { margin-top: 12px; font-size: 14px; color: var(--on-blue-muted); }
.ways { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 28px; }
.way { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: var(--r-card); border: 1px solid rgba(243, 241, 234, .14); transition: background-color .3s linear, transform .3s linear, border-color .3s linear; }
.way:hover, .way:focus-within { background: rgba(243, 241, 234, .07); border-color: rgba(245, 200, 96, .45); transform: translateY(-3px); }
.way .chip-icon { background: rgba(245, 200, 96, .18); color: var(--ochre); }
.way h3 { color: #FFFFFF; font-size: 20px; margin-bottom: 4px; }
.way p { font-size: 15px; line-height: 1.55; }
.way a { color: #FFFFFF; text-decoration: none; }
.way a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.way .go { margin-left: auto; align-self: center; width: 20px; height: 20px; color: var(--ochre); flex: none; transition: transform .3s linear; }
.way:hover .go, .way:focus-within .go { transform: translateX(4px); }
.gi .river { left: 0; bottom: 30px; transform: scaleX(-1); --wave: rgba(245, 200, 96, .22); }
@media (min-width: 960px) { .gi__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Closing CTA */
.closing { position: relative; overflow: hidden; text-align: center; }
.closing .sun { top: -120px; right: -100px; }
.closing .river { left: 6%; bottom: 40px; }
.closing h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; max-width: 22ch; margin: 0 auto 18px; }
.closing p { max-width: 52ch; margin: 0 auto 30px; }
.closing .actions { justify-content: center; }

/* ===== Inner pages (shared; same tokens, same components) ===== */
/* Page hero: dusk-blue band, optional photo with overlay */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--blue); color: var(--on-blue-muted); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem); }
.page-hero .sun { top: -120px; right: -120px; opacity: .55; }
.page-hero .river { left: 0; bottom: 16px; transform: scaleX(-1); --wave: rgba(245, 200, 96, .24); }
.page-hero__content { position: relative; max-width: 680px; }
.page-hero h1 { color: #FFFFFF; margin-bottom: 16px; max-width: 18ch; }
.page-hero p { color: rgba(255, 255, 255, .92); font-size: 18px; max-width: 54ch; }
.page-hero .actions { margin-top: 28px; }
.page-hero--photo { padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 6.5rem); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 63, 95, .72) 0%, rgba(23, 63, 95, .93) 100%); }
@media (min-width: 900px) {
  .page-hero--photo::before { background: linear-gradient(90deg, rgba(23, 63, 95, .95) 0%, rgba(23, 63, 95, .86) 40%, rgba(23, 63, 95, .45) 75%, rgba(23, 63, 95, .25) 100%); }
  .page-hero p { font-size: 19px; }
}
.crumbs { margin-bottom: 18px; font-size: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(243, 241, 234, .55); }
.crumbs a { color: var(--on-blue); text-decoration: underline; text-decoration-color: rgba(245, 200, 96, .6); text-underline-offset: 3px; transition: text-decoration-color var(--hover); }
.crumbs a:hover { text-decoration-color: var(--ochre); }
.crumbs [aria-current] { color: var(--ochre); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 22px; font-size: 15px; color: rgba(255, 255, 255, .92); }
.post-meta span { display: inline-flex; align-items: center; gap: 8px; }
.post-meta svg { width: 17px; height: 17px; color: var(--ochre); }

/* Split: text beside media */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.split h2 { margin-bottom: 16px; }
.split p + p { margin-top: 14px; }
.split .covers { margin-top: 20px; }
.split .actions { margin-top: 28px; }
.split__media { margin: 0; }
.split__media .zoom, .split__media .ph-tile { aspect-ratio: 4 / 3; border-radius: var(--r-tile); }
.split__media figcaption { margin-top: 12px; font-size: 14px; }
.ph-tile { overflow: hidden; }
.ph-tile .ph { width: 100%; height: 100%; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--rev .split__media { order: 2; } }
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; margin: 0; }
.duo .zoom { aspect-ratio: 4 / 5; border-radius: var(--r-tile); }
.duo .zoom + .zoom { margin-top: 48px; }
.duo--wide .zoom { aspect-ratio: 4 / 3; }
.count-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 18px; padding: 10px 16px; border-radius: var(--r-card); background: var(--chip); color: var(--title); font-size: 15px; }
.count-note svg { width: 18px; height: 18px; color: var(--chip-ink); flex: none; }

/* Jump links / category pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 36px; }
.pills a { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--title); font: 500 14px/1 var(--font-body); text-decoration: none; transition: background-color var(--hover), border-color var(--hover), color var(--hover); }
.pills a:hover, .pills a:focus-visible { border-color: var(--ochre); background: var(--chip); }
.pills a[aria-current] { background: var(--ochre); border-color: var(--ochre); color: var(--blue); }
.pills--center { justify-content: center; }

/* Grid variants */
@media (min-width: 1100px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) { .vgrid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .vgrid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) and (max-width: 999px) { .vgrid.four { grid-template-columns: repeat(2, 1fr); } }
.vcard--stack { flex-direction: column; gap: 16px; }
.vcard blockquote { margin: 14px 0 10px; padding: 2px 0 2px 14px; border-left: 3px solid var(--ochre); font: 600 17px/1.4 var(--font-head); color: var(--title); }
.vcard blockquote cite { display: block; margin-top: 4px; font: 400 13px/1.3 var(--font-body); font-style: normal; color: var(--text); }
.vcard p + p { margin-top: 10px; }
.card .actions { margin: 0 4px; }
.card .price { margin: 0 4px 10px; }
.card .price strong { font-size: 30px; }
.card--fund { display: flex; flex-direction: column; }
.card--fund p { flex: 1; }

/* Strategy list reused as numbered steps */
.strategy li strong { display: block; font: 600 18px/1.3 var(--font-head); color: var(--title); margin-bottom: 2px; }
.strategy li span { color: var(--text); }

/* Sponsor card, wide variant */
@media (min-width: 820px) { .sponsor--wide { grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 28px; } }

/* People */
.people { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 600px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(4, 1fr); } }
.card .frame--portrait { aspect-ratio: 4 / 5; }
.card .frame--portrait img { object-position: 50% 25%; }
.initials { font: 600 64px/1 var(--font-head); color: var(--ochre); letter-spacing: .02em; }
.card .role { display: block; font-size: 15px; margin: 0 4px; }

/* Placeholder block (plugin / content still to connect) */
.ph-block { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 44px); border: 2px dashed var(--label); border-radius: var(--r-panel); background: var(--chip); color: var(--title); }
.ph-block strong { font: 600 20px/1.35 var(--font-head); max-width: 32ch; }
.ph-block p { max-width: 50ch; font-size: 15px; color: var(--text); }
.ph-block .chip-icon { background: var(--surface); }

/* Info list (email, social) */
.info-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.info-list li { position: relative; display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: transform .3s linear, box-shadow .3s linear; }
.info-list li:hover, .info-list li:focus-within { transform: translateY(-3px); box-shadow: var(--lift); }
.info-list small { display: block; font: 500 12px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-bottom: 4px; }
.info-list a { color: var(--title); font: 600 17px/1.3 var(--font-head); text-decoration: none; overflow-wrap: anywhere; }
.info-list a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.info-list .go { margin-left: auto; width: 20px; height: 20px; color: var(--link); flex: none; transition: transform .3s linear; }
.info-list li:hover .go, .info-list li:focus-within .go { transform: translateX(4px); }

/* Forms (layout only until a plugin is connected) */
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(22px, 4vw, 36px); }
.form-panel .eyebrow { margin-bottom: 20px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font: 500 15px/1.3 var(--font-body); color: var(--title); margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; font: 400 16px/1.5 var(--font-body); color: var(--title); background: var(--bg); border: 1.5px solid var(--text); border-radius: 12px; padding: 13px 16px; transition: border-color var(--hover); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--title); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form-hint { font-size: 14px; }

/* Stories listing */
.card.featured { display: grid; grid-template-columns: 1fr; gap: 6px 40px; align-items: center; margin-bottom: 48px; }
.card.featured .frame { aspect-ratio: 16 / 10; margin: 0 0 14px; }
.card.featured h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin-bottom: 10px; }
.card.featured p { font-size: 16px; }
@media (min-width: 900px) { .card.featured { grid-template-columns: 1.25fr 1fr; padding: 14px; } .card.featured .frame { margin: 0; } }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span { min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); font: 600 15px/1 var(--font-head); color: var(--title); text-decoration: none; transition: background-color var(--hover), border-color var(--hover); }
.pagination a:hover, .pagination a:focus-visible { background: var(--chip); border-color: var(--ochre); }
.pagination [aria-current] { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.pagination svg { width: 15px; height: 15px; }
.flip svg, svg.flip { transform: scaleX(-1); }

/* Single story */
.post-figure { margin: 0 auto 44px; max-width: 980px; }
.post-figure .zoom { aspect-ratio: 16 / 9; border-radius: var(--r-tile); }
.post-figure figcaption { margin-top: 12px; font-size: 14px; text-align: center; }
.prose { max-width: 680px; margin: 0 auto; }
.prose > p { font-size: 18px; line-height: 1.75; }
.prose > p + p { margin-top: 1.1em; }
.prose h2 { font-size: 26px; margin: 1.7em 0 .6em; }
.pullquote { position: relative; margin: 2.2em 0; padding: 28px 28px 26px 30px; border-left: 4px solid var(--ochre); background: var(--chip); border-radius: 0 var(--r-panel) var(--r-panel) 0; }
.pullquote svg { width: 30px; height: 30px; color: var(--chip-ink); margin-bottom: 10px; }
.pullquote p { font: 600 clamp(21px, 3vw, 25px)/1.38 var(--font-head); color: var(--title); }
.pullquote cite { display: block; margin-top: 12px; font: 500 14px/1.3 var(--font-body); font-style: normal; color: var(--text); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.share > span { font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-right: 6px; }
.share a, .share button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--title); cursor: pointer; transition: background-color var(--hover), border-color var(--hover), color var(--hover); }
.share a:hover, .share a:focus-visible, .share button:hover, .share button:focus-visible { background: var(--ochre); border-color: var(--ochre); color: var(--blue); }
.share svg { width: 19px; height: 19px; }
.share .copied { font-size: 14px; color: var(--text); }
.postnav { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
.postnav a { position: relative; display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--title); text-decoration: none; transition: transform .3s linear, box-shadow .3s linear; }
.postnav a:hover, .postnav a:focus-visible { transform: translateY(-4px); box-shadow: var(--lift); }
.postnav small { display: flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.postnav small svg { width: 14px; height: 14px; }
.postnav strong { display: block; margin-top: 8px; font: 600 18px/1.3 var(--font-head); }
@media (min-width: 700px) { .postnav { grid-template-columns: 1fr 1fr; } .postnav .next { text-align: right; } .postnav .next small { justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { .info-list li:hover, .postnav a:hover { transform: none; } }

/* ---------- Icons (from the mockup SVG sprite, used as CSS masks) ---------- */
:root {
  --i-arrow: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='black' opacity='.18'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-compass: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z'/%3E%3C/g%3E%3C/svg%3E");
  --i-sprout: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 12c0-4 3-6.5 7.5-6.5 0 4.2-3 6.5-7.5 6.5z'/%3E%3Cpath d='M12 14.5c0-3.2-2.4-5.5-6.5-5.5 0 3.4 2.4 5.5 6.5 5.5z'/%3E%3Cpath d='M7 21h10'/%3E%3C/g%3E%3C/svg%3E");
  --i-bridge: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 17h20'/%3E%3Cpath d='M3 9c4 5 14 5 18 0'/%3E%3Cpath d='M6 11.6V17M10 12.9V17M14 12.9V17M18 11.6V17'/%3E%3C/g%3E%3C/svg%3E");
  --i-cross: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M7 8.5h10'/%3E%3C/g%3E%3C/svg%3E");
  --i-shield: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.8-3 8-7 10-4-2-7-5.2-7-10V6z'/%3E%3Cpath d='M9 12l2.2 2.2L15.5 10'/%3E%3C/g%3E%3C/svg%3E");
  --i-people: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.5 2.7-6 6-6s6 2.5 6 6'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M16.5 14c2.8.2 4.5 2.3 4.5 5'/%3E%3C/g%3E%3C/svg%3E");
  --i-heart: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.1 4.1 0 0 1 12 7.4a4.1 4.1 0 0 1 7.5 2.4C19.5 15.4 12 20 12 20z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-gift: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5h15V20h-15z'/%3E%3Cpath d='M3 8h18v3.5H3z'/%3E%3Cpath d='M12 8v12'/%3E%3Cpath d='M12 8c-1.2-2.8-5-3.6-5-1.3C7 8 9.5 8 12 8zM12 8c1.2-2.8 5-3.6 5-1.3C17 8 14.5 8 12 8z'/%3E%3C/g%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6-7-11a7 7 0 0 1 14 0c0 5-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  --i-home: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/g%3E%3C/svg%3E");
  --i-egg: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c-3.4 0-6.2 5.8-6.2 10.1a6.2 6.2 0 0 0 12.4 0C18.2 8.8 15.4 3 12 3z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-book: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5z'/%3E%3Cpath d='M4 20.5A2.5 2.5 0 0 0 6.5 21H20'/%3E%3C/g%3E%3C/svg%3E");
  --i-pen: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/g%3E%3C/svg%3E");
  --i-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/g%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/g%3E%3C/svg%3E");
  --i-fb: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8.5h2.5V5H14a3.5 3.5 0 0 0-3.5 3.5V11H8v3.5h2.5V21H14v-6.5h2.6l.6-3.5H14V8.9c0-.2.2-.4.4-.4z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-ig: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/g%3E%3Ccircle cx='17.2' cy='6.8' r='1.1' fill='black'/%3E%3C/svg%3E");
  --i-quote: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 6C6.5 7 4.5 9.6 4.5 13v5h6v-6h-3c0-2 1-3.4 2.6-4.2zM19.5 6c-3 1-5 3.6-5 7v5h6v-6h-3c0-2 1-3.4 2.6-4.2z' fill='black'/%3E%3C/svg%3E");
  --i-calendar: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/g%3E%3C/svg%3E");
  --i-user: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20.5c0-4 3.4-6.8 7.5-6.8s7.5 2.8 7.5 6.8'/%3E%3C/g%3E%3C/svg%3E");
  --i-link: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/g%3E%3C/svg%3E");
  --i-chat: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5h16v10.5H10l-4.5 3.5V16H4z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-hands: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v8'/%3E%3Cpath d='M12 12c-1.5-2.2-4-3.6-6.5-3.2L4 15l4 5h4'/%3E%3Cpath d='M12 12c1.5-2.2 4-3.6 6.5-3.2L20 15l-4 5h-4'/%3E%3C/g%3E%3C/svg%3E");
  --i-coins: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='9' cy='7' rx='5.5' ry='2.5'/%3E%3Cpath d='M3.5 7v4c0 1.4 2.5 2.5 5.5 2.5s5.5-1.1 5.5-2.5V7'/%3E%3Cpath d='M9.5 16.4c.5 1.2 2.8 2.1 5.5 2.1 3 0 5.5-1.1 5.5-2.5v-4c0-1.2-1.8-2.2-4.2-2.4'/%3E%3C/g%3E%3C/svg%3E");
  --i-chart: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V4M4 20h16'/%3E%3Cpath d='M8 16v-4M12 16V8M16 16v-6'/%3E%3C/g%3E%3C/svg%3E");
}
.i-arrow { --icon: var(--i-arrow); }
.i-check { --icon: var(--i-check); }
.i-compass { --icon: var(--i-compass); }
.i-sprout { --icon: var(--i-sprout); }
.i-bridge { --icon: var(--i-bridge); }
.i-cross { --icon: var(--i-cross); }
.i-shield { --icon: var(--i-shield); }
.i-people { --icon: var(--i-people); }
.i-heart { --icon: var(--i-heart); }
.i-gift { --icon: var(--i-gift); }
.i-pin { --icon: var(--i-pin); }
.i-home { --icon: var(--i-home); }
.i-egg { --icon: var(--i-egg); }
.i-book { --icon: var(--i-book); }
.i-pen { --icon: var(--i-pen); }
.i-image { --icon: var(--i-image); }
.i-mail { --icon: var(--i-mail); }
.i-fb { --icon: var(--i-fb); }
.i-ig { --icon: var(--i-ig); }
.i-quote { --icon: var(--i-quote); }
.i-calendar { --icon: var(--i-calendar); }
.i-user { --icon: var(--i-user); }
.i-link { --icon: var(--i-link); }
.i-chat { --icon: var(--i-chat); }
.i-hands { --icon: var(--i-hands); }
.i-coins { --icon: var(--i-coins); }
.i-chart { --icon: var(--i-chart); }

/* =====================================================================
   WordPress block adapter
   The rules above are the approved mockup CSS, ported unchanged.
   The rules below map core block markup (wp:group, wp:image, wp:cover,
   wp:button, wp:navigation, wp:query ...) onto those same components,
   and replace the mockup's inline SVG icons with CSS mask icons.
   ===================================================================== */

/* ---------- Icon helper: any element with an i-* class gets --icon ---------- */
.chip-icon::before,
.ph.ph-icon::before,
.count-note::before,
.contact-line::before,
.post-meta > [class*="i-"]::before {
  content: ""; display: block; flex: none; background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}

/* ---------- Base resets for block markup ---------- */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks > footer { margin-block-start: 0; }
main.wp-block-group { margin: 0; }
.wp-block-group.section, .wp-block-group.page-hero, .wp-block-group.pillars { margin-block-end: 0; }
figure.wp-block-image, .wp-block-post-featured-image { margin: 0; }
.wp-block-spacer.sun, .wp-block-spacer.river { margin: 0; }
.wp-block-spacer.chip-icon { margin: 0; }
.wp-block-post-excerpt { margin: 0; }
.wp-block-post-excerpt__more-text { display: none; }
.wp-block-buttons.actions { gap: 12px; }
.wp-block-buttons { gap: 12px; }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 40; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.site-header.wp-block-group { position: relative; top: auto; }
.wp-block-site-title.wordmark { margin-top: 0; margin-bottom: 0; }
.wordmark a { color: inherit; text-decoration: none; }
.header-actions .wp-block-buttons { gap: 10px; flex-wrap: nowrap; }
.site-nav.wp-block-navigation { margin-left: auto; font: 500 15px/1 var(--font-body); }
.site-nav.wp-block-navigation .wp-block-navigation__container { gap: 4px; }
.site-nav.wp-block-navigation .wp-block-navigation-item__content {
  display: inline-block; padding: 10px 12px; border-radius: var(--r-pill);
  font: 500 15px/1 var(--font-body); color: var(--title); text-decoration: none; white-space: nowrap;
  background-image: linear-gradient(var(--ochre), var(--ochre)); background-repeat: no-repeat;
  background-size: 0 2px; background-position: 12px calc(100% - 4px);
  transition: background-size var(--hover), color var(--hover);
}
.site-nav.wp-block-navigation .wp-block-navigation-item__content:hover,
.site-nav.wp-block-navigation .wp-block-navigation-item__content:focus-visible { background-size: calc(100% - 24px) 2px; }
.site-nav.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.site-nav.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] { background-size: calc(100% - 24px) 2px; color: var(--link); }
/* menu toggle (core overlay button styled as the mockup's round toggle) */
.site-nav .wp-block-navigation__responsive-container-open,
.site-nav .wp-block-navigation__responsive-container-close {
  align-items: center; justify-content: center; width: 46px; height: 46px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--alt); color: var(--title); cursor: pointer;
  transition: background-color var(--hover);
}
.site-nav .wp-block-navigation__responsive-container-close { display: flex; top: 0; right: 0; }
.site-nav .wp-block-navigation__responsive-container-open svg,
.site-nav .wp-block-navigation__responsive-container-close svg { width: 20px; height: 20px; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--bg); color: var(--title); padding: 14px 16px 24px;
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; padding-top: 62px; }
.site-nav .is-menu-open .wp-block-navigation__container {
  flex-direction: column; align-items: stretch; gap: 2px; width: 100%; padding: 8px 0 12px; border-top: 1px solid var(--line);
}
.site-nav .is-menu-open .wp-block-navigation-item { width: 100%; }
.site-nav.wp-block-navigation .is-menu-open .wp-block-navigation-item__content {
  display: block; width: 100%; padding: 14px 4px; font-size: 17px; border-radius: 0; background-position: 4px calc(100% - 8px);
}
.site-nav.wp-block-navigation .is-menu-open .wp-block-navigation-item__content:hover,
.site-nav.wp-block-navigation .is-menu-open .current-menu-item > .wp-block-navigation-item__content { background-size: 40px 2px; }
.header-donate .wp-block-button__link { padding: 13px 22px; min-height: 46px; font-size: 15px; }
@media (max-width: 1140px) {
  .site-header__inner { flex-wrap: nowrap; }
  .site-nav.wp-block-navigation { display: flex; order: 3; flex-basis: auto; margin: 0; }
  .site-nav.wp-block-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) { display: inline-flex; }
  .site-nav.wp-block-navigation .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 380px) {
  .header-donate .wp-block-button__link { padding: 12px 16px; min-height: 44px; font-size: 14px; gap: 8px; }
  .site-nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; }
}

/* ---------- Buttons: core button = pill + circle-wipe + sliding arrow ---------- */
.wp-block-button .wp-block-button__link {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; min-height: 48px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font: 600 15px/1 var(--font-head); text-decoration: none; letter-spacing: .01em; white-space: nowrap;
  background: var(--ochre); color: var(--blue);
  transition: color .3s linear, border-color .3s linear;
}
.wp-block-button .wp-block-button__link::before {
  content: ""; position: absolute; z-index: -1; top: 50%; left: -210%; width: 200%; aspect-ratio: 1; border-radius: 50%;
  transform: translateY(-50%); transition: left var(--wipe); background: var(--fill);
}
.wp-block-button .wp-block-button__link:hover::before,
.wp-block-button .wp-block-button__link:focus-visible::before { left: -10%; }
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible { color: #FFFFFF; }
/* sliding arrow: two arrows in one mask, the first slides out as the second slides in */
.wp-block-button .wp-block-button__link::after {
  content: ""; display: inline-block; width: 16px; height: 16px; flex: none; background-color: currentColor;
  -webkit-mask-image: var(--i-arrow), var(--i-arrow); mask-image: var(--i-arrow), var(--i-arrow);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 16px 16px; mask-size: 16px 16px;
  -webkit-mask-position: 0 0, -20px 0; mask-position: 0 0, -20px 0;
  transition: -webkit-mask-position .3s linear, mask-position .3s linear;
}
.wp-block-button .wp-block-button__link:hover::after,
.wp-block-button .wp-block-button__link:focus-visible::after { -webkit-mask-position: 20px 0, 0 0; mask-position: 20px 0, 0 0; }
.wp-block-button.is-style-secondary .wp-block-button__link { background: transparent; color: var(--title); border: 1.5px solid var(--title); padding: 14px 23px; }
.wp-block-button.is-style-secondary .wp-block-button__link::before { background: var(--ochre); }
.wp-block-button.is-style-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-secondary .wp-block-button__link:focus-visible { color: var(--blue); border-color: var(--ochre); }
.wp-block-button.is-style-on-blue .wp-block-button__link { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .85); padding: 14px 23px; }
.wp-block-button.is-style-on-blue .wp-block-button__link::before { background: var(--ochre); }
.wp-block-button.is-style-on-blue .wp-block-button__link:hover,
.wp-block-button.is-style-on-blue .wp-block-button__link:focus-visible { color: var(--blue); border-color: var(--ochre); }
.on-blue .wp-block-button:not(.is-style-secondary):not(.is-style-on-blue) .wp-block-button__link::before { background: #FFFFFF; }
.on-blue .wp-block-button:not(.is-style-secondary):not(.is-style-on-blue) .wp-block-button__link:hover,
.on-blue .wp-block-button:not(.is-style-secondary):not(.is-style-on-blue) .wp-block-button__link:focus-visible { color: var(--blue); }
.sponsor .wp-block-buttons { position: relative; z-index: 1; }
.card .wp-block-buttons.actions { margin: 0 4px; }

/* ---------- Decorative sun / river (wp:spacer elements) ---------- */
.wp-block-spacer.sun { position: absolute; }
.river::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(10px 5px at 10px 0, transparent 8px, var(--wave) 8.5px 10px, transparent 10.5px),
    radial-gradient(10px 5px at 10px 0, transparent 8px, color-mix(in srgb, var(--wave) 70%, transparent) 8.5px 10px, transparent 10.5px),
    radial-gradient(10px 5px at 10px 0, transparent 8px, color-mix(in srgb, var(--wave) 45%, transparent) 8.5px 10px, transparent 10.5px);
  background-size: 20px 10px; background-repeat: repeat-x;
  background-position: 0 8px, 0 26px, 0 44px;
  animation: river-flow 42s linear infinite;
}
@keyframes river-flow { to { background-position: -720px 8px, -560px 26px, -440px 44px; } }

/* ---------- Covers used as photo heroes ---------- */
.wp-block-cover.hero1, .wp-block-cover.page-hero { display: block; min-height: 0; align-items: initial; justify-content: initial; color: inherit; }
.wp-block-cover.hero1 { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(9rem, 16vw, 12rem); color: #FFFFFF; }
.wp-block-cover.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem); color: var(--on-blue-muted); }
.wp-block-cover.page-hero--photo { padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 6.5rem); }
.wp-block-cover.hero1 > .wp-block-cover__inner-container,
.wp-block-cover.page-hero > .wp-block-cover__inner-container { position: static; width: 100%; z-index: auto; color: inherit; }
.wp-block-cover.hero1 > .wp-block-cover__background,
.wp-block-cover.page-hero > .wp-block-cover__background { opacity: 0; }
.wp-block-cover.hero1::before, .wp-block-cover.page-hero--photo::before { z-index: 1; }
.wp-block-cover.hero1 > .wp-block-cover__image-background { object-position: 60% 30%; }
.wp-block-cover.page-hero > .wp-block-cover__image-background { object-position: 50% 35%; }
.wp-block-cover .sun, .wp-block-cover .river { z-index: 1; }
.wp-block-cover .wrap { position: relative; z-index: 2; }
.hero1 .actions, .page-hero .actions { margin-bottom: 0; }

/* ---------- Breadcrumbs (wp:list or group row) ---------- */
ol.crumbs, ul.crumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.crumbs li:last-child:not(:first-child) { color: var(--ochre); }
.crumbs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs-row > * + *::before { content: "/"; margin-right: 8px; color: rgba(243, 241, 234, .55); }
.crumbs-row > *:last-child:not(:first-child) { color: var(--ochre); }
.crumbs-row p { margin: 0; }

/* ---------- Eyebrow / label on paragraphs and term lists ---------- */
p.eyebrow, div.eyebrow { width: fit-content; }
.sec-head.center p.eyebrow, .closing p.eyebrow { margin-left: auto; margin-right: auto; }
.eyebrow a { color: inherit; text-decoration: none; }
.wp-block-heading.label { font: 500 12px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-bottom: 10px; }

/* ---------- Images inside frames / zoom wrappers ---------- */
.wp-block-image.frame { margin: 0 0 14px; }
.sponsor .wp-block-image.frame { margin: 0; }
.wp-block-image.frame img, .wp-block-image.zoom img,
.wp-block-post-featured-image.frame img, .wp-block-post-featured-image.zoom img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; vertical-align: top;
}
.wp-block-post-featured-image.frame { margin: 0 0 14px; }
.card.featured .wp-block-post-featured-image.frame { margin: 0 0 14px; }
@media (min-width: 900px) { .card.featured .wp-block-post-featured-image.frame { margin: 0; } }
.frame > a, .zoom > a { display: block; height: 100%; }
/* Frame icon badge (mockup .fbadge) */
.frame.fbadge::before { content: ""; position: absolute; left: 12px; top: 12px; z-index: 1; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); }
.frame.fbadge::after {
  content: ""; position: absolute; left: 22px; top: 22px; z-index: 2; width: 22px; height: 22px; background: var(--chip-ink);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
/* Photo placeholder tile */
.ph.ph-icon::before { width: 36px; height: 36px; color: var(--ochre); }
.ph p, .card .ph p { font: inherit; margin: 0; color: inherit; }
.card .ph p.initials { font: 600 64px/1 var(--font-head); color: var(--ochre); letter-spacing: .02em; }
.ph-tile > .ph { width: 100%; height: 100%; }
.ph-tile { aspect-ratio: 4 / 3; border-radius: var(--r-tile); }

/* ---------- Chip icons (wp:spacer) ---------- */
.wp-block-spacer.chip-icon { display: grid; place-items: center; }
.chip-icon::before { width: 26px; height: 26px; }
.badge .chip-icon::before { width: 22px; height: 22px; }

/* ---------- Cards ---------- */
.card .meta p { margin: 0; }
.card .tag a, .meta .tag a { color: inherit; text-decoration: none; }
.card .wp-block-post-title { margin: 0 4px 6px; }
.card .wp-block-post-title a { color: inherit; text-decoration: none; }
.card.featured .wp-block-post-title { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin-bottom: 10px; }
.card .wp-block-post-date { font-size: 13px; color: var(--text); }
/* "Read the story" / "Sponsor a child" links with arrow */
a.wp-block-read-more.more { display: inline-flex; width: auto; }
.more::before {
  content: ""; order: 2; width: 15px; height: 15px; flex: none; background-color: currentColor;
  -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat;
  transition: transform .3s linear;
}
.card:hover .more::before, .card:focus-within .more::before { transform: translateX(4px); }
p.more { position: static; }
p.more::after { content: none; }
p.more a { color: inherit; text-decoration: none; }
p.more a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.wp-block-post-template.cards { list-style: none; margin: 0; padding: 0; max-width: none; }
.wp-block-post-template.cards > li { margin: 0; }
.wp-block-post-template.cards > li > .card { height: 100%; }
.featured-list { list-style: none; margin: 0; padding: 0; }

/* ---------- Lists with icons ---------- */
.covers li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background-color: var(--chip-ink);
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
.band .covers li::before { background-color: var(--ochre); }
.strategy li strong, .strategy li span { grid-column: 2; }
.strategy li::before { grid-row: span 2; }
.pills li { margin: 0; }

/* ---------- Pillars / value cards ---------- */
.pillar .pillar__num { line-height: 1; margin: 0; }
.pillar__top .chip-icon { margin: 0; }
.vcard blockquote p { font: inherit; color: inherit; margin: 0; }
.vcard .wp-block-quote { border-left: 3px solid var(--ochre); }
.mission p { margin: 0; }

/* ---------- Badge on the photo collage ---------- */
.badge p { margin: 0; }
.badge a { color: inherit; text-decoration: none; }
.badge a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.hcollage .stack { margin: 0; }

/* ---------- Get involved "ways" ---------- */
.way::after {
  content: ""; margin-left: auto; align-self: center; width: 20px; height: 20px; flex: none; background-color: var(--ochre);
  -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat;
  transition: transform .3s linear;
}
.way:hover::after, .way:focus-within::after { transform: translateX(4px); }
.way .wp-block-heading a { color: #FFFFFF; text-decoration: none; }

/* ---------- Closing ---------- */
.closing .narrow { position: relative; }

/* ---------- Count note ---------- */
.count-note::before { width: 18px; height: 18px; color: var(--chip-ink); }

/* ---------- Info list (group version of the mockup's ul.info-list) ---------- */
.info-list > .info-item { position: relative; display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: transform .3s linear, box-shadow .3s linear; }
.info-list > .info-item:hover, .info-list > .info-item:focus-within { transform: translateY(-3px); box-shadow: var(--lift); }
.info-list > .info-item::after {
  content: ""; margin-left: auto; width: 20px; height: 20px; flex: none; background-color: var(--link);
  -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat;
  transition: transform .3s linear;
}
.info-list > .info-item:hover::after, .info-list > .info-item:focus-within::after { transform: translateX(4px); }
.info-list p { margin: 0; }
.info-list > .info-item > .wp-block-group { min-width: 0; }

/* ---------- Placeholder blocks ---------- */
.ph-block p { margin: 0; }
.ph-block p strong { display: block; font: 600 20px/1.35 var(--font-head); max-width: 32ch; margin: 0 auto; color: var(--title); }
.form-panel .ph-block { margin-top: 4px; }
.form-panel .form-hint { margin-top: 18px; }

/* ---------- Footer ---------- */
.footer-brand .wordmark { margin: 0; }
.footer-brand .wordmark a { color: #FFFFFF; }
.footer-brand .wp-block-site-tagline.tagline { margin: 10px 0 16px; }
.contact-line::before { width: 18px; height: 18px; color: var(--ochre); }
.contact-line { margin: 0; }
.social p { margin: 0; }
.social a, .share a { font-size: 0; line-height: 0; }
.social a::before, .share a::before {
  content: ""; width: 19px; height: 19px; background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.social a[href*="facebook"], .share a[href*="facebook"] { --icon: var(--i-fb); }
.social a[href*="instagram"] { --icon: var(--i-ig); }
.share a[href^="mailto"] { --icon: var(--i-mail); }
.share a[href="#share-copy"] { --icon: var(--i-link); }
.footer-bottom p { margin: 0; }
.site-footer .wp-block-list { margin: 0; }

/* ---------- Single story ---------- */
.post-meta > * { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.post-meta > [class*="i-"]::before { width: 17px; height: 17px; color: var(--ochre); }
.post-meta p { margin: 0; }
.post-meta .post-meta__by { gap: .3em; }
.post-meta__by::before { margin-right: calc(8px - .3em); }
.page-hero .wp-block-post-excerpt p { color: rgba(255, 255, 255, .92); font-size: 18px; max-width: 54ch; }
.page-hero h1.wp-block-post-title { color: #FFFFFF; margin-bottom: 16px; max-width: 18ch; }
.post-figure .wp-block-post-featured-image.zoom { aspect-ratio: 16 / 9; border-radius: var(--r-tile); }
.prose.wp-block-post-content > p { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose > .wp-block-heading { margin: 1.7em 0 .6em; }
.prose > .wp-block-image, .prose > .wp-block-quote, .prose > .wp-block-list { margin-top: 1.4em; }
.pullquote::before {
  content: ""; display: block; width: 30px; height: 30px; margin-bottom: 10px; background-color: var(--chip-ink);
  -webkit-mask: var(--i-quote) center / contain no-repeat; mask: var(--i-quote) center / contain no-repeat;
}
.wp-block-quote.pullquote p { margin: 0; }
.share > p { margin: 0; }
.share > p:first-child { font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-right: 6px; }
.share .copied { font-size: 14px; color: var(--text); }
.postnav:empty { display: none; }
.postnav .wp-block-post-navigation-link a {
  position: relative; display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); color: var(--title); text-decoration: none; transition: transform .3s linear, box-shadow .3s linear;
}
.postnav .wp-block-post-navigation-link a:hover, .postnav .wp-block-post-navigation-link a:focus-visible { transform: translateY(-4px); box-shadow: var(--lift); }
.postnav .wp-block-post-navigation-link__label { display: flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.postnav .wp-block-post-navigation-link__title { display: block; margin-top: 8px; font: 600 18px/1.3 var(--font-head); }
.postnav .post-navigation-link-previous .wp-block-post-navigation-link__label::before,
.postnav .post-navigation-link-next .wp-block-post-navigation-link__label::after {
  content: ""; width: 14px; height: 14px; background-color: currentColor;
  -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat;
}
.postnav .post-navigation-link-previous .wp-block-post-navigation-link__label::before { transform: scaleX(-1); }
@media (min-width: 700px) {
  .postnav .post-navigation-link-next { grid-column: 2; text-align: right; }
  .postnav .post-navigation-link-next .wp-block-post-navigation-link__label { justify-content: flex-end; }
}

/* ---------- Query pagination ---------- */
.wp-block-query-pagination.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pagination .wp-block-query-pagination-numbers { display: contents; }
.pagination .wp-block-query-pagination-next::after, .pagination .wp-block-query-pagination-previous::before {
  content: ""; width: 15px; height: 15px; background-color: currentColor;
  -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat;
}
.pagination .wp-block-query-pagination-previous::before { transform: scaleX(-1); }
.pagination .page-numbers.dots { border: 0; }

/* ---------- Generic page content (page.html, archive, search, 404) ---------- */
.page-content > * + * { margin-top: 1.2em; }
.page-content { padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .page-content { padding-left: 16px; padding-right: 16px; } }
.no-results { text-align: center; }
.wp-block-search__button { background: var(--ochre); color: var(--blue); border: 0; border-radius: var(--r-pill); font: 600 15px/1 var(--font-head); padding: 12px 20px; }
.wp-block-search__input { border: 1.5px solid var(--text); border-radius: 12px; padding: 12px 16px; font: 400 16px/1.5 var(--font-body); background: var(--bg); color: var(--title); }

/* ---------- Motion in the editor and for reduced motion ---------- */
.editor-styles-wrapper .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .river::before { animation: none !important; }
  .wp-block-button .wp-block-button__link::after { transition: none !important; }
  .info-list > .info-item:hover, .postnav .wp-block-post-navigation-link a:hover { transform: none; }
}

/* ---------- Paragraph-based components: guard against the mockup's
   context rules (.hero1 p, .page-hero p, .closing p, .card p, .split p + p),
   which in the mockup only ever hit real paragraphs ---------- */
p.eyebrow.eyebrow { font: 500 13px/1 var(--font-body); letter-spacing: .02em; margin: 0 0 16px; max-width: none; color: var(--chip-ink); }
p.eyebrow--on-blue.eyebrow--on-blue { color: var(--ochre); }
.sec-head.center p.eyebrow.eyebrow, .closing p.eyebrow.eyebrow { margin-left: auto; margin-right: auto; }
.form-panel p.eyebrow.eyebrow { margin-bottom: 20px; }
p.label.label { font: 500 12px/1.2 var(--font-body); letter-spacing: .14em; margin: 0 0 10px; max-width: none; color: var(--label); }
.gi p.label.label { color: var(--ochre); }
.card p.more.more { margin: 0 4px; font: 600 14px/1 var(--font-head); color: var(--link); }
p.price.price { font-size: 15px; line-height: 1.65; }
.card p.price.price { margin: 0 4px 10px; }
.mission p + p, .info-list p + p, .ph-block p + p, .crumbs-row p + p, .badge p + p { margin-top: 0; }
.page-hero .crumbs-row p { font-size: 14px; color: inherit; max-width: none; }
.page-hero .post-meta p { font-size: inherit; color: inherit; max-width: none; }
.strategy li { row-gap: 0; }
.footer-brand .wordmark { line-height: 32px; }
.card p.role { line-height: 1.65; }
/* backdrop-filter would trap the fixed overlay menu inside the header */
.site-header:has(.is-menu-open) { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Page-specific helpers (inline styles from the mockups) ---------- */
.split__media .zoom.square { aspect-ratio: 1 / 1; }
.split.split--top { align-items: start; }
.signup-note { margin-top: 16px; font-size: 14px; color: var(--ochre); }
p.band__tag { margin: 0; }
.listing-search { max-width: 520px; margin: 0 auto 40px; }

/* ------------------------------------------------------------------
   Block editor: equal tile heights.
   The editor adds `margin-block-start: 24px` to every block except the
   first in a container. Inside grid/flex rows that pushes tiles 2..n
   down and makes them shorter than the first. The front end has no such
   margin (theme.json blockGap is null), so remove it in the editor only.
   ------------------------------------------------------------------ */
.editor-styles-wrapper :is(.pillars__grid, .vgrid, .cards, .people, .band__grid, .gi__grid, .split, .strategy, .team2, .ways, .covers, .form-row, .sponsor, .hcollage, .footer-grid, .info-list, .social, .pills, .actions, .header-actions, .share, .postnav, .footer-bottom, .sec-head--row, .crumbs-row) > * {
	margin-block-start: 0;
}
