/*
Theme Name: SOS Impact
Theme URI: https://sosgambia.org
Author: SOS Impact
Author URI: https://sosgambia.org
Description: A premium, blazing-fast, 100% configurable WordPress theme for SOS Children's Villages The Gambia. Four complete homepage designs (Village Impact / Stories Editorial / Giving Front / Cinematic Action with full-screen hero slider) as fully Gutenberg-editable block pages, an interactive map of The Gambia with the real national boundary, Events / Projects / Locations content types, animated impact counters, programmes, news, lightbox gallery and premium donation integration — every word, photo and section editable in the block editor. No jQuery, no page builder, no bloat.
Version: 14.7.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sos-impact
Tags: charity, nonprofit, one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* =====================================================================================
   SOS IMPACT 13.0 — Events, Projects, Locations + Concept D hero slider
   -------------------------------------------------------------------------------------
   v13: Events / Projects / Locations content types, interactive Gambia map,
   hero-slider shortcodes + Concept D. v12: all demo pages — including the
   homepage concepts — are 100%
   Gutenberg block content on a full-width canvas (.si-canvas). The demo
   import reconstructs the whole site idempotently (meta/slug/title lookup,
   true dedupe). No page content is hardcoded in PHP templates.
   Header safety contract (v2, unchanged):
   - .site-header / .site-header__inner are NEVER moved with transform
   - sticky = position:sticky; top:0 (+ admin-bar offset). Nothing else.
   - scroll only toggles .is-scrolled => background + shadow change
   - mobile nav is a fixed overlay OUTSIDE the header element
   ===================================================================================== */

/* 1. Tokens ------------------------------------------------------------------------- */
:root {
        --si-primary: #00ABEC;
        --si-primary-dark: #0087B8;
        --si-primary-soft: #E6F6FC;
        --si-accent: #DE5A6C;
        --si-dark: #1C325D;
        --si-body: #5E6468;
        --si-alt: #F3F5F8;
        --si-radius: 14px;
        --si-container: 1200px;
        --si-footer-bg: #0E1A2B;
        --si-footer-ink: #ffffff;
        --si-font-head: var(--si-sys-head);
        --si-font-body: var(--si-sys-body);
        --si-sys-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        --si-sys-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        --si-header-h: 76px;
        --si-shadow-sm: 0 2px 10px rgba(28, 50, 93, 0.07);
        --si-shadow: 0 12px 34px rgba(28, 50, 93, 0.12);
        --si-shadow-lg: 0 24px 60px rgba(28, 50, 93, 0.18);
        --si-border: rgba(28, 50, 93, 0.10);
        /* v14.3 — accessible color roles: solid buttons carry white text on a
           deep SOS blue (4.9:1), small cyan TEXT uses --si-ink (5.6:1 on
           white), pink badges use --si-accent-ink (5.2:1), the cream band
           gets a real warm tint instead of page-white, and --si-muted is
           finally DEFINED (it was referenced by six rules but never set). */
        --si-btn: #0077B6;
        --si-btn-hover: #005F8C;
        --si-ink: #006DA6;
        --si-accent-ink: #C13B57;
        --si-cream: #FDF9F3;
        --si-muted: #5E6468;
}

/* 2. Reset & base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--si-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
        margin: 0;
        font-family: var(--si-font-body);
        font-size: 17px;
        line-height: 1.7;
        color: var(--si-body);
        background: #fff;
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 {
        font-family: var(--si-font-head);
        color: var(--si-dark);
        line-height: 1.18;
        letter-spacing: -0.02em;
        margin: 0 0 0.6em;
        font-weight: 800;
        text-wrap: balance;
}
p { margin: 0 0 1.2em; }
a { color: var(--si-ink, #006DA6); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--si-primary-dark); }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--si-dark); color: #fff; }
:focus-visible { outline: 3px solid var(--si-accent); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
        border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
        height: 1px; width: 1px; margin: -1px; overflow: hidden;
        padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 99999; }
.skip-link:focus { left: 12px; top: 12px; background: var(--si-dark); color: #fff; padding: 10px 18px; border-radius: 8px; }

.si-icon { width: 1.15em; height: 1.15em; vertical-align: -0.22em; fill: currentColor; flex-shrink: 0; }
.si-icon--sm { width: 0.95em; height: 0.95em; }

/* Layout.
   v13.6 — ONE content edge site-wide: the container's inner padding now uses
   the same fluid clamp as the canvas sections and the CPT heroes (which used
   to be 48px while this stayed 24px → body text sat 24px closer to the page
   edge than the hero above it on every single Project/Event/Location page).
   At 1440px every content edge lands on 168px; at 390px on 18px. */
.container { max-width: var(--si-container); margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); width: 100%; }
.container--narrow { max-width: 820px; }
.section { padding: var(--si-section-py, 96px) 0; position: relative; }
.site-main { min-height: 40vh; }

/* 3. Buttons ------------------------------------------------------------------------- */
.btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        padding: 14px 30px;
        border-radius: var(--si-radius);
        border: 2px solid transparent;
        font-family: var(--si-font-head);
        font-weight: 700;
        font-size: 15.5px;
        line-height: 1.2;
        letter-spacing: 0.01em;
        cursor: pointer;
        text-align: center;
        transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.btn .si-icon { transition: transform 0.22s ease; }
.btn:hover .si-icon { transform: translateX(4px); }
.btn--primary { background: var(--si-btn, #0077B6); color: #fff; }
.btn--primary:hover { background: var(--si-btn-hover, #005F8C); color: #fff; box-shadow: 0 10px 26px rgba(28, 50, 93, 0.3); }
/* v14.4 — #DE5A6C cannot carry small text in any pairing (white 3.6:1,
   navy 3.5:1) so solid coral buttons use the accessible shade (5.2:1). */
.btn--accent { background: var(--si-accent-ink, #C13B57); color: #fff; }
.btn--accent:hover { background: #A82F49; color: #fff; box-shadow: 0 10px 26px rgba(28, 50, 93, 0.25); }
.btn--outline { background: transparent; border-color: var(--si-primary); color: var(--si-primary); }
.btn--outline:hover { background: var(--si-btn, #0077B6); border-color: var(--si-btn, #0077B6); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.65); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--si-dark); border-color: #fff; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 17px 38px; font-size: 16.5px; }

/* 4. Top bar ------------------------------------------------------------------------- */
.topbar { background: var(--si-dark); color: rgba(255, 255, 255, 0.85); font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; flex-wrap: wrap; }
.topbar__contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.85); }
a.topbar__item:hover { color: #fff; }

/* Social links */
.social-links { display: flex; align-items: center; gap: 8px; }
.social-links a {
        display: inline-flex; align-items: center; justify-content: center;
        width: 32px; height: 32px; border-radius: 50%;
        color: inherit; background: rgba(255, 255, 255, 0.10);
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-links a:hover { background: var(--si-btn, #0077B6); color: #fff; transform: translateY(-2px); }
.social-links a .si-icon { width: 15px; height: 15px; }
.social-links--sm a { width: 28px; height: 28px; }
.social-links--sm a .si-icon { width: 13px; height: 13px; }
.topbar .social-links a { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* 5. Header & navigation — THE FIXED IMPLEMENTATION ---------------------------------- */
.site-header {
        background: #fff;
        border-bottom: 1px solid var(--si-border);
        z-index: 1000;
        /* Only color/shadow transitions — layout is NEVER animated */
        transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
/* Sticky: position only. No transform. No margin tricks. No topbar hiding.
   IMPORTANT: the sticky element must be the .si-headwrap (topbar + header),
   because a sticky element can never escape its parent box — sticking the
   header alone would "unstick" after ~120px (the height of the wrap). */
.has-sticky-header .si-headwrap {
        position: sticky;
        top: 0;
        z-index: 1000;
}
.has-sticky-header .si-headwrap .site-header { position: static; }
/* Logged-in admin bar offset (variable set by WP core). */
.admin-bar .has-sticky-header .si-headwrap { top: var(--wp-admin--admin-bar--height, 32px); }
/* Scrolled state: solid backdrop + shadow only. */
.site-header.is-scrolled {
        background: rgba(255, 255, 255, 0.94);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
        backdrop-filter: saturate(180%) blur(12px);
        box-shadow: 0 10px 30px rgba(20, 33, 61, 0.10);
        border-bottom-color: transparent;
}

.site-header__inner {
        display: flex;
        align-items: center;
        gap: 26px;
        min-height: var(--si-header-h);
}

.site-branding { flex-shrink: 0; }
.site-branding img.custom-logo { max-height: 52px; width: auto; }
.site-branding__text { display: inline-flex; align-items: center; gap: 12px; color: var(--si-dark); font-weight: 800; font-size: 16.5px; line-height: 1.15; letter-spacing: -0.01em; }
.site-branding__mark {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; border-radius: 12px;
        background: var(--si-btn, #0077B6); color: #fff;
        font-size: 15px; font-weight: 800; letter-spacing: 0.03em;
        box-shadow: 0 6px 16px rgba(28, 50, 93, 0.22);
}
.site-branding__name { max-width: 180px; }

.main-nav { margin-left: auto; min-width: 0; }
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-menu li { position: relative; }
.nav-menu > li > a {
        display: block; padding: 10px 14px;
        color: var(--si-dark); font-weight: 600; font-size: 15px;
        border-radius: 9px; transition: color 0.2s ease, background-color 0.2s ease;
        white-space: nowrap; /* v13.1 — a long label wraps the whole header; collapse to burger instead (see 30.4) */
}
/* v13.1 — the Donate menu item as an accent pill (class added by the demo menu builder). */
.nav-menu > .menu-donate > a { background: var(--si-donate, #C13B57); color: #fff; margin-left: 8px; }
.nav-menu > .menu-donate > a:hover,
.nav-menu > .menu-donate > a:focus-visible { background: #A30D24; color: #fff; }
.si-headwrap--overlay .nav-menu > .menu-donate > a,
.si-headwrap--overlay.is-scrolled .nav-menu > .menu-donate > a { background: var(--si-donate, #C13B57); color: #fff; }
.si-headwrap--overlay.is-scrolled .nav-menu > .menu-donate > a:hover { background: #A30D24; }

/* v13.1 — JS nav-fit guard: when the menu is wider than the space beside the
   logo/actions at ANY viewport, main.js sets .si-nav-fit and the burger takes
   over. Pure-CSS breakpoints below remain the no-JS fallback. */
.site-header.si-nav-fit .main-nav { display: none !important; }
.site-header.si-nav-fit .nav-toggle { display: flex !important; }
.nav-menu > li > a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current_page_ancestor > a { color: var(--si-primary); background: var(--si-primary-soft); }

.nav-menu .menu-item-has-children > a::after,
.nav-menu .page_item_has_children > a::after {
        content: ""; display: inline-block; margin-left: 7px; vertical-align: middle;
        width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-3px); opacity: 0.55;
}

/* Dropdowns — positioned, no layout shift */
.nav-menu ul.sub-menu,
.nav-menu ul.children {
        position: absolute; top: 100%; left: 0; min-width: 236px;
        background: #fff; border: 1px solid var(--si-border); border-radius: 12px;
        box-shadow: var(--si-shadow); list-style: none; margin: 0; padding: 8px 0;
        opacity: 0; visibility: hidden; transform: translateY(8px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
        z-index: 100;
}
.nav-menu li:hover > ul,
.nav-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu ul.sub-menu li, .nav-menu ul.children li { position: relative; }
.nav-menu ul.sub-menu a, .nav-menu ul.children a { display: block; padding: 9px 18px; font-size: 14px; color: var(--si-dark); font-weight: 500; }
.nav-menu ul.sub-menu a:hover, .nav-menu ul.children a:hover { color: var(--si-primary); background: var(--si-primary-soft); }
.nav-menu ul.sub-menu ul, .nav-menu ul.children ul { top: 0; left: 100%; }

/* Header actions */
.site-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Hamburger — animates its own bars only */
.nav-toggle {
        display: none; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; padding: 10px;
        background: transparent; border: 0; cursor: pointer;
        position: relative; z-index: 1002;
}
.nav-toggle__bar { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--si-dark); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-open .nav-toggle__bar { background: var(--si-dark); }
.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile overlay — sibling of header, fixed to viewport, FADE only */
.mobile-nav {
        position: fixed; inset: 0; z-index: 995;
        background: #fff;
        padding: calc(var(--si-header-h) + 90px) 28px 44px;
        overflow-y: auto;
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.25s ease; }
.admin-bar .mobile-nav { padding-top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--si-header-h) + 40px); }
.mobile-nav .mobile-menu,
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
/* The no-menu fallback outputs <ul class="nav-menu"> inside the drawer;
   neutralize the desktop flex layout so fallback menus stack correctly. */
.mobile-nav .nav-menu { display: block; }
.mobile-menu > li, .mobile-menu .menu-item,
.mobile-nav ul > li { border-bottom: 1px solid var(--si-border); }
.mobile-menu a,
.mobile-nav ul a { display: block; padding: 15px 2px; font-family: var(--si-font-head); font-weight: 700; font-size: 19px; color: var(--si-dark); }
.mobile-menu ul a,
.mobile-nav ul ul a { padding: 12px 2px 12px 18px; font-size: 16px; font-weight: 600; color: var(--si-body); }
.mobile-menu ul ul, .mobile-nav ul ul ul { display: none; }
.mobile-nav__cta { width: 100%; margin-top: 26px; }
.mobile-nav__contact { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; color: var(--si-body); font-size: 15px; }
.mobile-nav__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--si-body); }
.mobile-nav__contact .social-links a { background: var(--si-alt); color: var(--si-dark); width: 38px; height: 38px; }

/* Scroll progress (thin accent line at the very top) — solid, no gradients (v7) */
.si-progress {
        position: fixed; top: 0; left: 0; right: 0; height: 3px;
        background: var(--si-accent);
        transform-origin: 0 50%; transform: scaleX(0);
        z-index: 1001; pointer-events: none;
}
.admin-bar .si-progress { top: var(--wp-admin--admin-bar--height, 32px); }
.anim-off .si-progress { display: none; }
/* 6. Hero ---------------------------------------------------------------------------- */
.hero {
        position: relative;
        display: flex; align-items: center;
        min-height: 560px;
        overflow: hidden;
        color: #fff;
        isolation: isolate;
}
.hero--tall { min-height: 92vh; }
.hero--medium { min-height: 72vh; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Flat solid fallback — no gradients anywhere (v7) */
.hero__bg--fallback { background: #0F2C3F; }
.hero__overlay {
        position: absolute; inset: 0; z-index: -1;
        background: rgba(28, 50, 93, 0.6);
}
.hero__inner { position: relative; width: 100%; padding-top: 40px; padding-bottom: 90px; }
.hero--center .hero__content { text-align: center; margin: 0 auto; }
.hero--center .hero__kicker { justify-content: center; }
.hero--center .hero__actions { justify-content: center; }
.hero__content { max-width: 780px; }
.hero__kicker {
        display: flex; align-items: center; gap: 14px;
        text-transform: uppercase; letter-spacing: 0.16em;
        font-size: 13.5px; font-weight: 700; color: var(--si-accent);
        margin-bottom: 22px;
}
.hero__kicker span { display: inline-block; width: 44px; height: 2px; background: var(--si-accent); }
.hero__title {
        color: #fff; font-size: clamp(2.5rem, 6vw, 4.4rem);
        font-weight: 800; line-height: 1.08; margin-bottom: 0.5em;
        text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__subtitle { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; color: rgba(255, 255, 255, 0.88); max-width: 640px; margin-bottom: 2em; }
.hero--center .hero__subtitle { margin-left: auto; margin-right: auto; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
        position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
        width: 30px; height: 48px; border: 2px solid rgba(255, 255, 255, 0.55);
        border-radius: 16px; display: flex; justify-content: center;
        transition: border-color 0.2s ease;
}
.hero__scroll:hover { border-color: #fff; }
.hero__scroll span { width: 4px; height: 9px; margin-top: 8px; border-radius: 2px; background: #fff; animation: si-scroll-cue 1.8s ease-in-out infinite; }
@keyframes si-scroll-cue {
        0%, 100% { transform: translateY(0); opacity: 1; }
        55% { transform: translateY(14px); opacity: 0.15; }
}

/* 7. Section head --------------------------------------------------------------------- */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head__kicker {
        display: inline-flex; align-items: center; gap: 10px;
        text-transform: uppercase; letter-spacing: 0.16em;
        font-size: 13px; font-weight: 700; color: var(--si-ink, #006DA6);
        margin-bottom: 14px;
}
.section-head__kicker::before { content: ""; width: 34px; height: 2px; background: var(--si-accent); }
.section-head--center .section-head__kicker::after { content: ""; width: 34px; height: 2px; background: var(--si-accent); }
.section-head__title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 0.45em; }
.section-head__lead { font-size: 1.08rem; color: var(--si-body); margin-bottom: 0; }
.section-head--light .section-head__title { color: #fff; }
.section-head--light .section-head__kicker { color: var(--si-accent); }
.section-head--light .section-head__lead { color: rgba(255, 255, 255, 0.82); }
.section-more { text-align: center; margin-top: 48px; }

/* 8. Impact stats --------------------------------------------------------------------- */
.stats-band--dark { background: #1C325D; color: #fff; }
.stats-band--red { background: var(--si-primary-dark); color: #fff; }
.stats-band--light { background: var(--si-alt); }
.stats-grid {
        display: grid; grid-template-columns: repeat(4, 1fr);
        gap: 20px; counter-reset: stat;
}
.stat {
        padding: 34px 26px; text-align: center;
        border-radius: var(--si-radius);
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        transition: background-color 0.25s ease, transform 0.25s ease;
}
.stats-band--light .stat { background: #fff; border-color: var(--si-border); box-shadow: var(--si-shadow-sm); }
.stat:hover { transform: translateY(-4px); }
.stat__number {
        display: block;
        font-family: var(--si-font-head); font-weight: 800;
        font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: 1;
        letter-spacing: -0.02em; color: #fff;
        margin-bottom: 10px;
        font-variant-numeric: tabular-nums;
}
.stat__number::after {
        content: ""; display: block; width: 34px; height: 3px;
        background: var(--si-accent); margin: 12px auto 0; border-radius: 2px;
}
.stat__label { display: block; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }
.stats-band--light .stat__number { color: var(--si-ink, #006DA6); }
.stats-band--light .stat__label { color: var(--si-body); }

/* 9. Programmes ------------------------------------------------------------------------ */
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.program-card {
        display: flex; flex-direction: column;
        background: #fff; border: 1px solid var(--si-border);
        border-radius: var(--si-radius); overflow: hidden;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        color: inherit;
}
a.program-card:hover { color: inherit; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--si-shadow); border-color: transparent; }
.program-card__media { position: relative; aspect-ratio: 16 / 10.5; background: var(--si-alt); overflow: hidden; }
.program-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.program-card:hover .program-card__img { transform: scale(1.06); }
.program-card__icon {
        position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
        background: var(--si-primary-soft);
        color: var(--si-primary); transition: transform 0.4s ease;
}
.program-card__icon .si-icon { width: 64px; height: 64px; }
.program-card:hover .program-card__icon { transform: scale(1.08); }
.program-card__chip {
        position: absolute; top: 14px; left: 14px;
        background: var(--si-btn, #0077B6); color: #fff;
        font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
        padding: 6px 12px; border-radius: 999px;
}
.program-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.program-card__title { font-size: 1.22rem; margin-bottom: 0.5em; }
.program-card__text { font-size: 15px; line-height: 1.65; color: var(--si-body); flex: 1; }
.program-card__more {
        display: inline-flex; align-items: center; gap: 7px;
        margin-top: 18px; font-weight: 700; font-size: 14.5px; color: var(--si-ink, #006DA6);
}
.program-card__more .si-icon { transition: transform 0.2s ease; }
.program-card:hover .program-card__more .si-icon { transform: translateX(4px); }

/* 10. About ------------------------------------------------------------------------------ */
.section--about { background: var(--si-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.about-media { position: relative; padding: 0 56px 56px 0; }
.about-media__main {
        border-radius: var(--si-radius); overflow: hidden;
        box-shadow: var(--si-shadow-lg);
        position: relative; z-index: 1;
}
.about-media__main::after {
        content: ""; position: absolute; inset: 0;
        border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(20, 33, 61, 0.08);
}
.about-media__main img { width: 100%; height: 480px; object-fit: cover; }
.about-media__small {
        position: absolute; right: 0; bottom: 0; z-index: 2;
        width: 46%; border-radius: var(--si-radius); overflow: hidden;
        border: 5px solid #fff; box-shadow: var(--si-shadow);
}
.about-media__small img { width: 100%; height: 240px; object-fit: cover; }
.about-media__badge {
        position: absolute; top: 26px; left: -8px; z-index: 2;
        background: var(--si-btn, #0077B6); color: #fff;
        border-radius: var(--si-radius); padding: 18px 22px;
        box-shadow: 0 14px 34px rgba(28, 50, 93, 0.32);
        max-width: 200px;
}
.about-media__badge-num { display: block; font-family: var(--si-font-head); font-weight: 800; font-size: 1.9rem; line-height: 1.1; }
.about-media__badge-label { display: block; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); margin-top: 4px; }
.about-text { color: var(--si-body); }
.about-checklist { list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 12px; }
.about-checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--si-dark); font-size: 15.5px; }
.about-checklist .si-icon--sm { color: var(--si-primary); background: var(--si-primary-soft); border-radius: 50%; padding: 3px; margin-top: 2px; }
.about-body--full { max-width: 820px; }

/* 11. News ------------------------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
        display: flex; flex-direction: column;
        background: #fff; border: 1px solid var(--si-border);
        border-radius: var(--si-radius); overflow: hidden;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--si-shadow); }
.news-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--si-alt); }
.news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card__img { transform: scale(1.05); }
.news-card__placeholder {
        width: 100%; height: 100%; display: flex; flex-direction: column;
        align-items: center; justify-content: center; gap: 12px;
        background: var(--si-primary-soft);
        color: var(--si-primary);
}
.news-card__placeholder .si-icon { width: 44px; height: 44px; opacity: 0.9; }
.news-card__placeholder span {
        font-family: var(--si-font-head); font-weight: 800; font-size: 1.02rem;
        color: var(--si-dark); text-align: center; padding: 0 18px;
}
.news-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--si-body); margin-bottom: 12px; }
.post-meta time { text-transform: uppercase; letter-spacing: 0.06em; }
.post-meta__sep { opacity: 0.5; }
.post-meta__cat { color: var(--si-ink, #006DA6); }
.post-meta__cat:hover { text-decoration: underline; }
.news-card__title { font-size: 1.18rem; margin-bottom: 0.5em; }
.news-card__title a { color: var(--si-dark); }
.news-card__title a:hover { color: var(--si-ink, #006DA6); }
.news-card__excerpt { font-size: 15px; line-height: 1.65; flex: 1; }
.news-card__more { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--si-ink, #006DA6); margin-top: auto; }

/* 12. Gallery ------------------------------------------------------------------------------ */
.gallery-grid--masonry { columns: 3; column-gap: 18px; }
.gallery-grid--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { margin: 0 0 18px; break-inside: avoid; border-radius: var(--si-radius); overflow: hidden; position: relative; }
.gallery-grid--grid .gallery-item { margin: 0; }
.gallery-item__link { display: block; position: relative; background: var(--si-alt); }
/* Masonry items keep natural ratios; reserve a soft placeholder block so
   URL-based images (no width/height attrs) never collapse to zero. */
.gallery-grid--masonry .gallery-item__link { min-height: 180px; }
.gallery-item__img { width: 100%; transition: transform 0.5s ease; display: block; }
/* Uniform tiles for the "grid" style: space is reserved even before lazy
   images load (no layout shift), and square-ish crops read cleaner. */
.gallery-grid--grid .gallery-item__img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item:hover .gallery-item__img { transform: scale(1.06); }
.gallery-item__veil {
        position: absolute; inset: 0;
        display: flex; align-items: center; justify-content: center;
        background: rgba(20, 33, 61, 0.45);
        color: #fff; opacity: 0;
        transition: opacity 0.3s ease;
}
.gallery-item__veil .si-icon { width: 36px; height: 36px; }
.gallery-item:hover .gallery-item__veil, .gallery-item__link:focus-visible .gallery-item__veil { opacity: 1; }

/* 13. Donation CTA -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; }
.cta--gradient { background: var(--si-primary-dark); }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta__overlay { position: absolute; inset: 0; z-index: -1; background: rgba(28, 50, 93, 0.6); }
.cta__inner { max-width: 760px; }
.cta__kicker { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; font-size: 13.5px; color: var(--si-accent); margin-bottom: 16px; }
.cta__title { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0.5em; }
.cta__text { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; max-width: 620px; margin: 0 auto 2em; }
.cta__note { margin: 18px auto 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
/* 14. Footer ---------------------------------------------------------------------------- */
.site-footer { background: var(--si-footer-bg); color: var(--si-footer-ink); }
.footer-grid {
        display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
        gap: 48px; padding: 76px 0 60px;
}
/* v14.5 - modernised footer: real logo from the Customizer (same source as
   the header), ticked column titles, tiled contact icons, support shortcut. */
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--si-footer-ink); margin-bottom: 18px; flex-wrap: wrap; }
.footer-brand img.custom-logo { max-height: 48px; width: auto; display: block; }
.footer-brand .custom-logo-link { display: inline-flex; line-height: 0; }
.footer-brand__name { font-weight: 800; font-family: var(--si-font-head); font-size: 17px; line-height: 1.3; max-width: 230px; }
a.footer-brand__home { display: inline-flex; align-items: center; gap: 12px; color: var(--si-footer-ink); text-decoration: none; transition: color 0.2s ease; }
a.footer-brand__home:hover { color: var(--si-accent); }
.footer-about { font-size: 15px; line-height: 1.7; opacity: 0.78; max-width: 300px; }
.footer-about p { margin: 0; }
.footer-col__title {
        display: flex; align-items: center; gap: 10px;
        color: var(--si-footer-ink); font-family: var(--si-font-head); font-size: 13.5px; font-weight: 800;
        text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 20px;
}
.footer-col__title::before { content: ""; width: 20px; height: 2px; background: var(--si-accent); flex: 0 0 auto; }
/* .footer-col ul covers the no-menu fallback (<ul class="nav-menu">) so the
   Explore column stays a clean stacked list even before a menu is assigned. */
.footer-menu, .footer-legal, .footer-col .nav-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-menu a, .footer-col .nav-menu a { color: var(--si-footer-ink); opacity: 0.78; font-size: 15px; transition: opacity 0.2s ease, color 0.2s ease; }
.footer-menu a:hover, .footer-col .nav-menu a:hover { opacity: 1; color: var(--si-accent); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 15px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact__tile {
        flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px;
        background: rgba(255, 255, 255, 0.08); color: var(--si-footer-ink);
        display: grid; place-items: center; transition: background 0.2s ease;
}
.footer-contact li:hover .footer-contact__tile { background: rgba(222, 90, 108, 0.22); }
.footer-contact .si-icon--sm { color: var(--si-accent); }
.footer-contact a { color: var(--si-footer-ink); opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.footer-contact a:hover { color: var(--si-accent); opacity: 1; }
.site-footer .social-links { margin-top: 22px; }
.site-footer .social-links a { background: rgba(255, 255, 255, 0.1); color: var(--si-footer-ink); width: 36px; height: 36px; }
.footer-cta-text { font-size: 15px; opacity: 0.78; margin-bottom: 18px; }
.footer-support__link {
        display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
        color: rgba(255, 255, 255, 0.85); font-size: 14.5px; font-weight: 600; text-decoration: none;
        transition: color 0.2s ease, gap 0.2s ease;
}
.footer-support__link .si-icon { width: 14px; height: 14px; }
.footer-support__link:hover { color: var(--si-accent); gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-copy { margin: 0; font-size: 13.5px; opacity: 0.65; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 13.5px; color: var(--si-footer-ink); opacity: 0.65; transition: opacity 0.2s ease, color 0.2s ease; }
.footer-legal a:hover { opacity: 1; color: var(--si-accent); }

/* 15. Page hero (inner pages) ------------------------------------------------------------- */
.page-hero {
        position: relative; isolation: isolate;
        background: #0F2C3F;
        color: #fff; text-align: left;
        padding: 84px 0;
        overflow: hidden;
}
.page-hero--media { padding: 140px 0; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero__overlay { position: absolute; inset: 0; z-index: -1; background: rgba(28, 50, 93, 0.6); }
.page-hero__title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 0.35em; }
.page-hero__lead { color: rgba(255, 255, 255, 0.82); max-width: 640px; margin: 0; }
.page-hero__form { max-width: 460px; margin: 22px 0 0; }
.page-hero .post-meta { justify-content: flex-start; color: rgba(255, 255, 255, 0.75); }
.page-hero .post-meta__cat { color: var(--si-accent); }
.page-hero__byline { color: rgba(255, 255, 255, 0.7); font-size: 14.5px; margin: 6px 0 0; }

/* 16. Blog listing ------------------------------------------------------------------------- */
.content-row { padding: 76px 24px; display: grid; gap: 48px; }
.content-row:not(.has-sidebar) { grid-template-columns: 1fr; max-width: var(--si-container); }
.content-row.has-sidebar { grid-template-columns: 1fr 320px; align-items: start; max-width: calc(var(--si-container) + 200px); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-list { display: grid; gap: 28px; max-width: 760px; margin: 0 auto; }
.post-list .news-card { flex-direction: row; }
.post-list .news-card__media { flex: 0 0 300px; aspect-ratio: 4 / 3; }
.post-list .news-card__body { padding: 28px 30px; }
.sidebar .widget {
        background: #fff; border: 1px solid var(--si-border);
        border-radius: var(--si-radius); padding: 26px; margin-bottom: 22px;
}
.widget-title { font-size: 1.05rem; margin-bottom: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.widget a { color: var(--si-body); font-size: 15px; }
.widget a:hover { color: var(--si-primary); }

.pagination, .navigation.pagination { grid-column: 1 / -1; margin-top: 44px; }
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-numbers {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 44px; height: 44px; padding: 0 14px;
        border: 1px solid var(--si-border); border-radius: 10px;
        color: var(--si-dark); font-weight: 700; font-size: 15px;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.page-numbers.current { background: var(--si-btn, #0077B6); border-color: var(--si-btn, #0077B6); color: #fff; }
.page-numbers:hover:not(.current) { border-color: var(--si-ink, #006DA6); color: var(--si-ink, #006DA6); }
.page-numbers.dots { border: 0; }

/* 17. Single post & prose ---------------------------------------------------------------------- */
.single-post__media { margin-top: -70px; position: relative; z-index: 1; margin-bottom: 44px; }
.single-post__media img { width: 100%; border-radius: var(--si-radius); box-shadow: var(--si-shadow-lg); }
.prose { font-size: 17.5px; line-height: 1.8; color: var(--si-body); }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.3rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose blockquote {
        border-left: 4px solid var(--si-primary);
        background: var(--si-alt);
        margin: 1.5em 0; padding: 20px 26px;
        border-radius: 0 var(--si-radius) var(--si-radius) 0;
        font-style: italic; color: var(--si-dark);
}
.prose img { border-radius: var(--si-radius); }
.prose--empty { text-align: center; padding: 30px 0 10px; color: var(--si-body); }
.single-post__tags { margin-top: 36px; }
.single-post__tags a {
        display: inline-block; margin: 0 8px 8px 0;
        padding: 6px 14px; border-radius: 999px;
        background: var(--si-alt); color: var(--si-dark);
        font-size: 13px; font-weight: 600;
}
.single-post__tags a:hover { background: var(--si-btn, #0077B6); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--si-border); }
.post-nav__item {
        display: flex; flex-direction: column; gap: 6px;
        padding: 22px 24px; border: 1px solid var(--si-border);
        border-radius: var(--si-radius); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.post-nav__item:hover { border-color: var(--si-primary); box-shadow: var(--si-shadow-sm); }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--si-ink, #006DA6); }
.post-nav__title { font-family: var(--si-font-head); font-weight: 700; color: var(--si-dark); font-size: 1.05rem; line-height: 1.4; }
.author-box {
        display: flex; gap: 20px; align-items: flex-start;
        margin-top: 44px; padding: 28px;
        background: var(--si-alt); border-radius: var(--si-radius);
}
.author-box__avatar img { border-radius: 50%; }
.author-box__name { margin-bottom: 6px; color: var(--si-dark); }
.author-box__bio { margin: 0; font-size: 15px; }

/* 18. Comments ------------------------------------------------------------------------------------- */
.comments-area { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--si-border); }
.comments-title { font-size: 1.4rem; margin-bottom: 28px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .comment { border: 1px solid var(--si-border); border-radius: var(--si-radius); padding: 22px 24px; margin-bottom: 16px; }
.comment-list .children { list-style: none; margin: 18px 0 0; padding-left: 22px; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--si-dark); font-style: normal; }
.comment-metadata a { color: var(--si-body); font-size: 13px; }
.comment-content a { word-wrap: break-word; }
.no-comments { color: var(--si-body); }
.comment-respond { background: var(--si-alt); border-radius: var(--si-radius); padding: 28px; }
.comment-reply-title { margin-top: 0; }
.comment-form { display: grid; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; color: var(--si-dark); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
        width: 100%; padding: 13px 16px;
        border: 1px solid var(--si-border); border-radius: 10px;
        font-family: inherit; font-size: 15px; background: #fff; color: var(--si-dark);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.comment-form input:focus, .comment-form textarea:focus {
        outline: none; border-color: var(--si-primary);
        box-shadow: 0 0 0 3px var(--si-primary-soft);
}
.comment-form .submit { border: 0; cursor: pointer; }

/* 19. Search form / 404 ------------------------------------------------------------------------------ */
.search-form__row { display: flex; gap: 10px; }
.search-form__input {
        flex: 1; padding: 13px 18px;
        border: 1px solid var(--si-border); border-radius: 10px;
        font-family: inherit; font-size: 15px; color: var(--si-dark); background: #fff;
}
.page-hero .search-form__input { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.page-hero .search-form__input::placeholder { color: rgba(255, 255, 255, 0.6); }
.search-form__input:focus { outline: none; border-color: var(--si-primary); box-shadow: 0 0 0 3px var(--si-primary-soft); }
.search-form__btn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 48px; border: 0; border-radius: 10px;
        background: var(--si-btn, #0077B6); color: #fff; cursor: pointer;
        transition: background-color 0.2s ease;
}
.search-form__btn:hover { background: var(--si-primary-dark); }
.search-form__btn .si-icon { width: 20px; height: 20px; }
.error-404 { text-align: center; }
.error-404__code {
        font-family: var(--si-font-head); font-weight: 800;
        font-size: clamp(6rem, 18vw, 11rem); line-height: 1;
        letter-spacing: -0.04em;
        color: var(--si-primary);
        margin-bottom: 0.1em;
}
.error-404__title { font-size: clamp(1.4rem, 3vw, 2rem); }
.error-404__text { max-width: 480px; margin: 0 auto 28px; }
.error-404__form { max-width: 440px; margin: 0 auto 30px; }
.error-404__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* 20. Lightbox ------------------------------------------------------------------------------------------ */
.si-lightbox {
        position: fixed; inset: 0; z-index: 10050;
        display: flex; align-items: center; justify-content: center;
        background: rgba(10, 14, 25, 0.94);
        opacity: 0; visibility: hidden;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
        padding: 40px;
}
.si-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.si-lightbox__figure { max-width: min(1100px, 92vw); text-align: center; }
.si-lightbox__figure img {
        max-width: 100%; max-height: 82vh;
        border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
        margin: 0 auto;
}
.si-lightbox__figure figcaption { color: rgba(255, 255, 255, 0.8); font-size: 14.5px; margin-top: 16px; }
.si-lightbox__close {
        position: absolute; top: 18px; right: 22px;
        width: 46px; height: 46px; border-radius: 50%;
        background: rgba(255, 255, 255, 0.1); color: #fff;
        border: 0; font-size: 26px; line-height: 1; cursor: pointer;
        transition: background-color 0.2s ease;
}
.si-lightbox__close:hover { background: var(--si-btn, #0077B6); }
.si-lightbox__nav {
        position: absolute; top: 50%; transform: translateY(-50%);
        width: 48px; height: 48px; border-radius: 50%;
        background: rgba(255, 255, 255, 0.1); color: #fff;
        border: 0; font-size: 30px; line-height: 1; cursor: pointer;
        transition: background-color 0.2s ease;
}
.si-lightbox__nav:hover { background: var(--si-btn, #0077B6); }
.si-lightbox__prev { left: 20px; }
.si-lightbox__next { right: 20px; }

/* 21. Back to top ------------------------------------------------------------------------------------------ */
.backtotop {
        position: fixed; right: 24px; bottom: 24px; z-index: 900;
        width: 48px; height: 48px; border-radius: 50%;
        background: var(--si-btn, #0077B6); color: #fff; border: 0; cursor: pointer;
        box-shadow: 0 12px 28px rgba(28, 50, 93, 0.32);
        display: flex; align-items: center; justify-content: center;
        opacity: 0; visibility: hidden;
        transform: translateY(14px);
        transition: opacity 0.25s ease, visibility 0s linear 0.25s, background-color 0.2s ease, transform 0.25s ease;
}
.backtotop.is-shown { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.25s ease, transform 0.25s ease; }
.backtotop:hover { background: var(--si-primary-dark); }

/* 22. Reveal system ------------------------------------------------------------------------------------------ */
.reveal-pending .reveal-pending,
.reveal-pending { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-pending.reveal-in { opacity: 1; transform: none; }
body.anim-off .reveal-pending { opacity: 1; transform: none; transition: none; }
.reveal-pending[data-delay="2"] { transition-delay: 0.1s; }
.reveal-pending[data-delay="3"] { transition-delay: 0.2s; }
.reveal-pending[data-delay="4"] { transition-delay: 0.3s; }

/* 23. WordPress compat ----------------------------------------------------------------------------------------- */
.alignwide { max-width: min(1400px, 94vw); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--si-body); text-align: center; margin-top: 8px; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.screen-reader-text:focus {
        background-color: var(--si-dark); clip: auto !important;
        clip-path: none; color: #fff; display: block;
        font-size: 14px; font-weight: 700; height: auto;
        left: 12px; top: 12px; line-height: normal;
        padding: 12px 20px; width: auto; z-index: 100000;
        border-radius: 8px;
}

/* 24. Responsive ----------------------------------------------------------------------------------------------- */
/* v13.1 — desktop nav gives way to the burger at 1080px (was 900px). With the
   full demo menu the header needs ~1,040px; between 901–1080px the old
   breakpoint squeezed the links until they wrapped into two broken lines. */
@media (max-width: 1080px) {
        .nav-toggle { display: flex; }
        .main-nav { display: none; }
}
@media (max-width: 1100px) {
        .programs-grid { grid-template-columns: repeat(2, 1fr); }
        .news-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
        .about-grid { gap: 48px; }
        .about-media__main img { height: 420px; }
        .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
        :root { --si-header-h: 66px; }
        .stats-grid { grid-template-columns: repeat(2, 1fr); }
        .gallery-grid--masonry, .gallery-grid--grid { columns: 2; }
        .gallery-grid--grid { display: grid; grid-template-columns: repeat(2, 1fr); }
        .section { padding: 76px 0; }
        .content-row.has-sidebar { grid-template-columns: 1fr; }
        .about-grid { grid-template-columns: 1fr; gap: 56px; }
        .about-media { max-width: 520px; }
        .topbar__contact { gap: 14px; }
}
@media (max-width: 640px) {
        body { font-size: 16px; }
        .section { padding: 62px 0; }
        .hero--tall { min-height: 88vh; }
        .hero__actions .btn { width: 100%; }
        .news-grid, .post-grid, .programs-grid { grid-template-columns: 1fr; }
        .post-list .news-card { flex-direction: column; }
        .post-list .news-card__media { flex-basis: auto; }
        .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
        .stat { padding: 24px 16px; }
        .gallery-grid--masonry { columns: 1; }
        .gallery-grid--grid { grid-template-columns: 1fr; }
        .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 44px; }
        .footer-bottom__inner { justify-content: center; text-align: center; }
        .post-nav { grid-template-columns: 1fr; }
        .about-media { padding-right: 0; margin-bottom: 0; }
        .about-media__main img { height: 320px; }
        .about-media__small { display: none; }
        .author-box { flex-direction: column; }
        .si-lightbox__nav { width: 40px; height: 40px; }
        .backtotop { right: 16px; bottom: 16px; }
}

/* 25. Reduced motion ---------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
        .reveal-pending { opacity: 1; transform: none; }
        .si-progress { display: none; }
}

/* =====================================================================================
   26. v3 PREMIUM ADDITIONS — overlay header, center header, hero split/gradient,
        testimonials slider, preloader, footer wave, progress ring, related posts
   ===================================================================================== */

/* --- 26.1 Transparent overlay header (homepage hero) -------------------------------- */
.si-headwrap--overlay { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.admin-bar .si-headwrap--overlay { top: var(--wp-admin--admin-bar--height, 32px); }
.si-headwrap--overlay .site-header { background: transparent; border-bottom-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.si-headwrap--overlay .site-branding__text,
.si-headwrap--overlay .nav-menu > li > a { color: #fff; }
.si-headwrap--overlay .nav-menu > li > a:hover,
.si-headwrap--overlay .nav-menu > li > a:focus-visible,
.si-headwrap--overlay .nav-menu .current-menu-item > a,
.si-headwrap--overlay .nav-menu .current_page_item > a,
.si-headwrap--overlay .nav-menu .current-menu-ancestor > a,
.si-headwrap--overlay .nav-menu .current_page_ancestor > a { color: #fff; background: rgba(255, 255, 255, 0.14); }
.si-headwrap--overlay .nav-toggle__bar { background: #fff; }
.si-headwrap--overlay .topbar { background: rgba(10, 16, 32, 0.38); color: rgba(255, 255, 255, 0.92); transition: background-color 0.25s ease, max-height 0.3s ease, opacity 0.25s ease; max-height: 70px; overflow: hidden; }
.si-headwrap--overlay .topbar__item,
.si-headwrap--overlay .topbar a.topbar__item { color: rgba(255, 255, 255, 0.92); }
/* Scrolled: collapse the topbar, header turns solid — colors only, never transforms */
.si-headwrap--overlay.is-scrolled .topbar { max-height: 0; opacity: 0; }
.si-headwrap--overlay.is-scrolled .site-header { background: #fff; border-bottom-color: var(--si-border); }
.si-headwrap--overlay.is-scrolled .site-branding__text,
.si-headwrap--overlay.is-scrolled .nav-menu > li > a { color: var(--si-dark); }
.si-headwrap--overlay.is-scrolled .nav-menu > li > a:hover,
.si-headwrap--overlay.is-scrolled .nav-menu .current-menu-item > a,
.si-headwrap--overlay.is-scrolled .nav-menu .current_page_item > a { color: var(--si-primary); background: var(--si-primary-soft); }
.si-headwrap--overlay.is-scrolled .nav-toggle__bar { background: var(--si-dark); }
/* Solid header while the mobile menu is open (contrast safety) */
body.nav-open .si-headwrap--overlay .site-header { background: #fff; border-bottom-color: var(--si-border); }
body.nav-open .si-headwrap--overlay .site-branding__text { color: var(--si-dark); }
body.nav-open .si-headwrap--overlay .nav-toggle__bar { background: var(--si-dark); }

/* --- 26.2 Centered header layout ------------------------------------------------------ */
@media (min-width: 901px) {
        body.header-center { --si-header-h: 128px; }
        html:has(body.header-center) { scroll-padding-top: 144px; }
        .site-header--center .site-header__inner { flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 12px 0 16px; min-height: 0; }
        .site-header--center .site-branding { width: 100%; display: flex; justify-content: center; }
        .site-header--center .main-nav { margin: 0 auto; }
        .site-header--center .site-header__actions { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
}

/* --- 26.3 Hero — split layout ---------------------------------------------------------- */
.hero--split .hero__inner { padding-top: 48px; padding-bottom: 96px; }
.hero__split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; width: 100%; }
.hero--split .hero__kicker span + span { display: none; }
.hero__media { position: relative; }
.hero__media-img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--si-radius); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); position: relative; z-index: 1; }
.hero__media-img--empty { background: var(--si-primary-dark); }
.hero__media-ring { position: absolute; inset: 28px -28px -28px 28px; border: 2px solid rgba(242, 169, 59, 0.55); border-radius: var(--si-radius); z-index: 0; }
.hero__media-dots { position: absolute; top: -34px; right: -30px; width: 120px; height: 120px; background-image: radial-gradient(rgba(255, 255, 255, 0.5) 2px, transparent 2.5px); background-size: 18px 18px; opacity: 0.55; z-index: 0; }
.hero__media-chip { position: absolute; left: -16px; bottom: 36px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--si-dark); font-weight: 700; font-size: 13.5px; line-height: 1.3; padding: 12px 18px; border-radius: 999px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); max-width: 300px; }
.hero__media-chip .si-icon { color: var(--si-primary); flex-shrink: 0; }

/* --- 26.4 Hero — solid color layout (v7: the old gradient orbs are gone) ----------------- */
.hero--solid .hero__bg--fallback,
.hero--gradient .hero__bg--fallback { background: #0F2C3F; }

/* --- 26.5 Testimonials slider --------------------------------------------------------------- */
.section--testimonials { background: var(--si-alt); overflow: hidden; }
.testi-slider { max-width: 860px; margin: 0 auto; position: relative; }
.testi-track { display: flex; transition: transform 0.55s cubic-bezier(0.22, 0.9, 0.28, 1); }
.testi-slide { flex: 0 0 100%; margin: 0; padding: 8px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.testi-slide__quote-icon { color: var(--si-primary); opacity: 0.28; }
.testi-slide__quote-icon .si-icon { width: 42px; height: 42px; }
.testi-slide__quote { font-family: var(--si-font-head); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.55; color: var(--si-dark); font-weight: 600; margin: 12px 0 26px; max-width: 700px; }
.testi-slide__who { display: flex; align-items: center; gap: 14px; }
.testi-slide__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 20px rgba(20, 33, 61, 0.18); }
.testi-slide__avatar--initials { display: inline-flex; align-items: center; justify-content: center; background: var(--si-btn, #0077B6); color: #fff; font-weight: 800; font-family: var(--si-font-head); letter-spacing: 0.04em; }
.testi-slide__id { text-align: left; display: flex; flex-direction: column; }
.testi-slide__name { font-weight: 800; color: var(--si-dark); font-family: var(--si-font-head); }
.testi-slide__role { font-size: 13.5px; color: var(--si-body); }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.testi-nav__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--si-border); background: #fff; color: var(--si-dark); font-size: 24px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.testi-nav__btn:hover { background: var(--si-btn, #0077B6); border-color: var(--si-btn, #0077B6); color: #fff; }
.testi-dots { display: flex; gap: 8px; }
.testi-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(20, 33, 61, 0.2); cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; }
.testi-dot.is-active { background: var(--si-btn, #0077B6); transform: scale(1.3); }
body.anim-off .testi-track { transition: none; }

/* --- 26.6 Preloader ---------------------------------------------------------------------------- */
.si-preloader { display: none; }
.si-js .si-preloader { display: flex; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 100000; background: #fff; animation: si-pre-autohide 0.4s ease 2.4s forwards; }
.si-preloader__mark { width: 74px; height: 74px; border-radius: 20px; background: var(--si-btn, #0077B6); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; letter-spacing: 0.04em; font-family: var(--si-font-head); box-shadow: 0 18px 44px rgba(28, 50, 93, 0.35); animation: si-pre-pulse 1.1s ease-in-out infinite; }
.si-preloader.si-pre-done { opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
@keyframes si-pre-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes si-pre-autohide { to { opacity: 0; visibility: hidden; } }
body.anim-off .si-preloader { display: none !important; }

/* --- 26.7 Footer wave ---------------------------------------------------------------------------- */
.footer-wave { line-height: 0; margin-bottom: -1px; }
.footer-wave svg { width: 100%; height: 64px; display: block; }

/* --- 26.8 Back-to-top with progress ring ------------------------------------------------------------ */
.backtotop { background: #fff; color: var(--si-dark); box-shadow: var(--si-shadow); width: 52px; height: 52px; }
.backtotop:hover { background: #fff; color: var(--si-primary); box-shadow: 0 16px 34px rgba(20, 33, 61, 0.24); transform: translateY(-3px); }
.backtotop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.backtotop__ring-bg { fill: none; stroke: rgba(20, 33, 61, 0.12); stroke-width: 3; }
.backtotop__ring-fill { fill: none; stroke: var(--si-primary); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; }
.backtotop .si-icon { width: 18px; height: 18px; position: relative; }

/* --- 26.9 Read time + related posts ------------------------------------------------------------------- */
.read-time { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.read-time .si-icon--sm { color: var(--si-accent); }
.page-hero__dot { margin: 0 6px; opacity: 0.55; }
.page-hero .read-time { color: rgba(255, 255, 255, 0.85); }
.related-posts { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--si-border); }
.related-posts__title { font-size: 1.3rem; margin-bottom: 22px; }

/* --- 26.10 Column variants ------------------------------------------------------------------------------ */
.news-grid--2 { grid-template-columns: repeat(2, 1fr); }
.news-grid--4 { grid-template-columns: repeat(4, 1fr); }
.programs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.programs-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* --- 26.11 v3 responsive ---------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
        .news-grid--4 { grid-template-columns: repeat(2, 1fr); }
        .programs-grid--3, .programs-grid--4 { grid-template-columns: repeat(2, 1fr); }
        .hero__split { gap: 40px; }
        .hero__media-img { height: 420px; }
}
@media (max-width: 900px) {
        .hero__split { grid-template-columns: 1fr; gap: 52px; }
        .hero__media { max-width: 520px; margin: 0 auto; }
        .hero__media-img { height: 360px; }
        .testi-slide__quote { max-width: 92%; }
}
@media (max-width: 640px) {
        .hero__media-img { height: 300px; }
        .hero__media-ring { display: none; }
        .news-grid--2, .news-grid--3, .news-grid--4, .programs-grid--2, .programs-grid--3, .programs-grid--4 { grid-template-columns: 1fr; }
        .related-posts .news-grid { grid-template-columns: 1fr; }
        .footer-wave svg { height: 42px; }
        .backtotop { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
        .si-preloader { display: none !important; }
        .testi-track { transition: none; }
}

/* =====================================================================================
   27. v4 PREMIUM — breadcrumbs, contact page, page templates
   ===================================================================================== */

/* --- Breadcrumbs ------------------------------------------------------------------- */
.si-breadcrumbs { margin-bottom: 14px; }
.si-breadcrumbs ol {
        list-style: none; display: flex; flex-wrap: wrap; align-items: center;
        gap: 4px 10px; margin: 0; padding: 0;
        font-size: 13px; letter-spacing: 0.02em; color: inherit;
}
.si-breadcrumbs li { display: flex; align-items: center; gap: 10px; opacity: 0.8; }
.si-breadcrumbs li + li::before { content: "/"; opacity: 0.45; }
.si-breadcrumbs a { color: inherit; text-decoration: none; }
.si-breadcrumbs a:hover { color: var(--si-accent); }
.si-breadcrumbs [aria-current="page"] { opacity: 1; font-weight: 700; }

/* --- Contact page ------------------------------------------------------------------ */
.contact-section { background: var(--si-alt); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-cards__title,
.contact-form__title {
        font-family: var(--si-font-head); font-size: clamp(1.5rem, 2.4vw, 2rem);
        color: var(--si-dark); margin: 0 0 8px; letter-spacing: -0.02em;
}
.contact-form__note { color: var(--si-body); margin: 0 0 22px; }
.contact-card {
        display: flex; gap: 16px; align-items: flex-start;
        background: #fff; border: 1px solid rgba(20, 33, 61, 0.08);
        border-radius: var(--si-radius); padding: 18px 20px;
        box-shadow: 0 6px 18px rgba(20, 33, 61, 0.05);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card + .contact-card { margin-top: 14px; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--si-shadow); }
.contact-card__icon {
        flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
        background: var(--si-primary-soft); color: var(--si-ink, #006DA6);
        display: grid; place-items: center;
}
.contact-card__icon .si-icon { width: 22px; height: 22px; }
.contact-card__body { display: grid; gap: 2px; align-content: start; }
.contact-card__body strong { color: var(--si-dark); font-size: 15px; }
.contact-card__body span,
.contact-card__body a { color: var(--si-body); font-size: 14.5px; text-decoration: none; }
.contact-card__body a:hover { color: var(--si-ink, #006DA6); }
.contact-card--social .social-links { margin-top: 8px; }
.contact-card--social .social-links a { background: rgba(20, 33, 61, 0.05); color: var(--si-dark); }

/* --- AJAX form --------------------------------------------------------------------- */
.si-form {
        background: #fff; border: 1px solid rgba(20, 33, 61, 0.08);
        border-radius: var(--si-radius); padding: 28px;
        box-shadow: 0 6px 18px rgba(20, 33, 61, 0.05);
}
.si-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.si-form__field { margin: 0 0 14px; display: grid; gap: 6px; }
.si-form__field label {
        font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
        text-transform: uppercase; color: var(--si-dark);
}
.si-form__field input,
.si-form__field textarea {
        width: 100%; border: 1.5px solid rgba(20, 33, 61, 0.14);
        border-radius: calc(var(--si-radius) - 4px); padding: 12px 14px;
        font: inherit; color: var(--si-dark); background: #fff;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.si-form__field input:focus,
.si-form__field textarea:focus {
        outline: none; border-color: var(--si-primary);
        box-shadow: 0 0 0 3px var(--si-primary-soft);
}
.si-form__hp {
        position: absolute !important; left: -10000px !important;
        top: auto !important; width: 1px !important; height: 1px !important;
        overflow: hidden !important;
}
.form-status { min-height: 22px; font-size: 14.5px; margin: 0 0 12px; }
.form-status:empty { margin-bottom: 0; min-height: 0; }
.form-status--ok { color: #1b7f4d; font-weight: 600; }
.form-status--err { color: #c0392b; font-weight: 600; }

/* --- Page with Sidebar -------------------------------------------------------------- */
.page-sidebar-grid {
        display: grid; grid-template-columns: minmax(0, 1fr) 320px;
        gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 56px;
}
.page-sidebar .widget {
        background: #fff; border: 1px solid rgba(20, 33, 61, 0.08);
        border-radius: var(--si-radius); padding: 22px; margin-bottom: 18px;
}
.widget-title {
        font-family: var(--si-font-head); font-size: 15px; letter-spacing: 0.08em;
        text-transform: uppercase; color: var(--si-dark); margin: 0 0 12px;
}
.page-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.page-sidebar .widget li { padding: 6px 0; border-bottom: 1px solid rgba(20, 33, 61, 0.06); }
.page-sidebar .widget li:last-child { border-bottom: 0; }
.page-sidebar .widget a { color: var(--si-body); text-decoration: none; }
.page-sidebar .widget a:hover { color: var(--si-primary); }

@media (max-width: 900px) {
        .contact-grid { grid-template-columns: 1fr; gap: 40px; }
        .page-sidebar-grid { grid-template-columns: 1fr; gap: 32px; }
        .si-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* =====================================================================================
   28. v5 PREMIUM — dark mode, team, FAQ accordion, partners marquee,
        fundraising progress meter, share buttons, theme toggle
   ===================================================================================== */

/* --- 28.1 Surfaces become variables (dark mode redefines them) ---------------------- */
:root {
        --si-bg: #ffffff;
        --si-card: #ffffff;
        --si-ink-soft: rgba(20, 33, 61, 0.62);
}
body { background: var(--si-bg); }

[data-si-theme="dark"] {
        --si-bg: #0c1424;
        --si-card: #152238;
        --si-alt: #101b30;
        --si-dark: #f1f4fa;
        --si-body: #a9b4c8;
        --si-ink-soft: rgba(255, 255, 255, 0.55);
        --si-border: rgba(255, 255, 255, 0.09);
        --si-primary-soft: rgba(100, 175, 205, 0.18);
        /* v14.3 — light counterparts of the accessible ink roles (the deep
           blues that pass on white would sink into the dark surfaces). */
        --si-ink: #7CC6E8;
        --si-muted: #94A3B8;
        --si-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
        --si-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
        --si-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
        color-scheme: dark;
}

[data-si-theme="dark"] body,
[data-si-theme="dark"] .mobile-nav { background: var(--si-bg); }
[data-si-theme="dark"] .site-header { background: #0c1424; }
[data-si-theme="dark"] .site-header.is-scrolled { background: rgba(12, 20, 36, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
[data-si-theme="dark"] .nav-menu ul.sub-menu,
[data-si-theme="dark"] .nav-menu ul.children,
[data-si-theme="dark"] .news-card,
[data-si-theme="dark"] .team-card,
[data-si-theme="dark"] .faq-item,
[data-si-theme="dark"] .contact-card,
[data-si-theme="dark"] .si-form,
[data-si-theme="dark"] .testi-nav__btn,
[data-si-theme="dark"] .share-btn,
[data-si-theme="dark"] .backtotop,
[data-si-theme="dark"] .widget,
[data-si-theme="dark"] .page-sidebar .widget,
[data-si-theme="dark"] .stats-band--light .stat,
[data-si-theme="dark"] .hero__media-chip { background: var(--si-card); }
[data-si-theme="dark"] .si-form__field input,
[data-si-theme="dark"] .si-form__field textarea,
[data-si-theme="dark"] input[type="search"],
[data-si-theme="dark"] input[type="text"],
[data-si-theme="dark"] input[type="email"],
[data-si-theme="dark"] input[type="url"],
[data-si-theme="dark"] input[type="tel"],
[data-si-theme="dark"] textarea { background: #0f1b31; color: var(--si-dark); border-color: var(--si-border); }
[data-si-theme="dark"] .si-preloader { background: var(--si-bg); }
[data-si-theme="dark"] .hero__media-chip { color: var(--si-dark); }
[data-si-theme="dark"] .testi-nav__btn { color: var(--si-dark); }
[data-si-theme="dark"] .share-btn { color: var(--si-dark); }
[data-si-theme="dark"] .backtotop { color: var(--si-dark); }
[data-si-theme="dark"] .si-marquee__item { color: rgba(255, 255, 255, 0.38); }
[data-si-theme="dark"] .si-marquee__item:hover { color: var(--si-accent); }
[data-si-theme="dark"] .news-card__placeholder span { color: var(--si-dark); }
[data-si-theme="dark"] .page-numbers { background: var(--si-card); color: var(--si-dark); }
[data-si-theme="dark"] .page-numbers.current { background: var(--si-btn, #0077B6); color: #fff; }

/* --- 28.2 Theme toggle ---------------------------------------------------------------- */
.si-theme-toggle {
        display: none;
        position: relative;
        width: 42px; height: 42px; flex-shrink: 0;
        align-items: center; justify-content: center;
        border-radius: 50%;
        border: 1px solid var(--si-border);
        background: transparent; color: var(--si-dark);
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.si-js .si-theme-toggle { display: inline-flex; }
.si-theme-toggle:hover { background: var(--si-primary-soft); color: var(--si-primary); border-color: transparent; }
.si-theme-toggle__icon { display: none; line-height: 0; }
.si-theme-toggle__icon .si-icon { width: 19px; height: 19px; }
html:not([data-si-theme="dark"]) .si-theme-toggle__icon--moon { display: block; }
[data-si-theme="dark"] .si-theme-toggle__icon--sun { display: block; }
.si-headwrap--overlay .si-theme-toggle { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.si-headwrap--overlay.is-scrolled .si-theme-toggle,
body.nav-open .si-headwrap--overlay .si-theme-toggle { color: var(--si-dark); border-color: var(--si-border); }

/* --- 28.3 Team section ---------------------------------------------------------------- */
.section--team { background: var(--si-alt); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
        background: var(--si-card);
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius);
        padding: 0 0 24px;
        text-align: center;
        overflow: hidden;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--si-shadow); }
.team-card__media { aspect-ratio: 1 / 1; overflow: hidden; }
.team-card__photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-card__photo { transform: scale(1.05); }
.team-card__photo--initials {
        display: flex; align-items: center; justify-content: center;
        background: var(--si-primary-soft);
        color: var(--si-primary);
        font-family: var(--si-font-head); font-weight: 800;
        font-size: 2.6rem; letter-spacing: 0.05em;
}
.team-card__name { font-size: 1.12rem; margin: 20px 18px 4px; }
.team-card__role {
        font-size: 12.5px; font-weight: 700; color: var(--si-primary);
        text-transform: uppercase; letter-spacing: 0.07em;
        margin: 0 18px;
}

/* --- 28.4 FAQ accordion ------------------------------------------------------------------ */
.section--faq { background: var(--si-alt); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
        background: var(--si-card);
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius);
        margin-bottom: 12px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: var(--si-primary); box-shadow: var(--si-shadow-sm); }
.faq-item__q {
        list-style: none;
        cursor: pointer;
        display: flex; align-items: center; justify-content: space-between; gap: 18px;
        padding: 20px 24px;
        font-family: var(--si-font-head); font-weight: 700;
        color: var(--si-dark); font-size: 1.05rem; line-height: 1.4;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--si-primary); }
.faq-item__mark { position: relative; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--si-primary-soft); }
.faq-item__mark::before,
.faq-item__mark::after {
        content: ""; position: absolute; top: 50%; left: 50%;
        width: 12px; height: 2px; border-radius: 2px; background: var(--si-primary);
        transform: translate(-50%, -50%);
        transition: transform 0.25s ease;
}
.faq-item__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-item__mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item__a { padding: 0 58px 22px 24px; color: var(--si-body); font-size: 15.5px; line-height: 1.75; }
.faq-item[open] .faq-item__a { animation: si-faq-in 0.3s ease; }
@keyframes si-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --- 28.5 Partners marquee ------------------------------------------------------------------ */
.section--partners { padding: 64px 0; }
.partners__title {
        text-align: center;
        font-size: 13px; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.18em;
        color: var(--si-ink-soft);
        margin-bottom: 34px;
}
.si-marquee {
        overflow: hidden;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.si-marquee__track { display: flex; width: max-content; animation: si-marquee 32s linear infinite; }
.si-marquee__list { display: flex; align-items: center; gap: 76px; list-style: none; margin: 0; padding: 0 38px; }
.si-marquee__item {
        font-family: var(--si-font-head); font-weight: 800; font-size: 1.35rem;
        color: rgba(20, 33, 61, 0.34); white-space: nowrap;
        transition: color 0.25s ease;
}
.si-marquee__item:hover { color: var(--si-primary); }
.si-marquee:hover .si-marquee__track { animation-play-state: paused; }
@keyframes si-marquee { to { transform: translateX(-50%); } }
body.anim-off .si-marquee__track { animation: none; }

/* --- 28.6 Fundraising progress meter ------------------------------------------------------------ */
.cta__progress { max-width: 540px; margin: 36px auto 0; }
.cta__progress-bar {
        height: 12px; border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
        overflow: hidden;
}
.cta__progress-fill {
        display: block; height: 100%; border-radius: 999px;
        background: var(--si-accent);
        transform: scaleX(0); transform-origin: 0 50%;
        transition: transform 1.6s cubic-bezier(0.22, 0.9, 0.28, 1) 0.25s;
}
.cta__progress.reveal-in .cta__progress-fill { transform: scaleX(1); }
body.anim-off .cta__progress-fill { transform: none; transition: none; }
.cta__progress-meta {
        display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
        margin-top: 12px; font-size: 14.5px; color: rgba(255, 255, 255, 0.85);
}
.cta__progress-raised strong { color: var(--si-accent); margin-left: 6px; font-weight: 800; }
.cta__progress-goal { opacity: 0.8; }

/* --- 28.7 Share buttons ------------------------------------------------------------------------- */
.share-row {
        display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
        margin: 36px 0 6px; padding-top: 22px;
        border-top: 1px solid var(--si-border);
}
.share-row__label {
        display: inline-flex; align-items: center; gap: 6px;
        font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em;
        text-transform: uppercase; color: var(--si-ink-soft);
        margin-right: 4px;
}
.share-btn {
        width: 42px; height: 42px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 50%; border: 1px solid var(--si-border);
        background: var(--si-card); color: var(--si-dark);
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.share-btn .si-icon { width: 18px; height: 18px; }
.share-btn:hover { background: var(--si-btn, #0077B6); border-color: var(--si-btn, #0077B6); color: #fff; transform: translateY(-2px); }
.share-btn--copy.is-copied { background: #1b7f4d; border-color: #1b7f4d; color: #fff; }

/* --- 28.8 v5 responsive --------------------------------------------------------------------------- */
@media (max-width: 1100px) {
        .team-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
        .team-grid--2, .team-grid--3, .team-grid--4 { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
        .faq-item__a { padding: 0 24px 22px; }
        .si-marquee__item { font-size: 1.1rem; }
        .si-marquee__list { gap: 44px; }
        .cta__progress-meta { flex-direction: column; gap: 4px; align-items: center; text-align: center; }
        .share-row { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
        .si-marquee__track { animation: none; }
        .cta__progress-fill { transform: none; transition: none; }
        .faq-item[open] .faq-item__a { animation: none; }
}

/* =====================================================================================
   29. SOS INTERNATIONAL — v6.0.0 redesign layer
   -------------------------------------------------------------------------------------
   Design DNA extracted from sos-childrensvillages.org (official tokens):
   cyan #00ABEC · coral #DE5A6C · ink #1C325D · gray #5E6468 · surface #F3F5F8
   Modernized: mega-panel dropdowns, uppercase kickers, "Where we help"
   location cards, cyan stat band, refined card hovers.
   ===================================================================================== */

/* --- 29.1 Cyan stats band (flat, v7) ------------------------------------------------ */
.stats-band--brand {
        background: var(--si-primary);
        color: #fff;
}
.stats-band--brand .stat { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.22); }
.stats-band--brand .stat__number { color: #fff; }
.stats-band--brand .stat__label { color: rgba(255, 255, 255, 0.85); }
.stats-band--brand .section-head__title { color: #fff; }
.stats-band--brand .section-head__kicker { color: #fff; }
.stats-band--brand .section-head__kicker::before,
.stats-band--brand .section-head__kicker::after { background: rgba(255, 255, 255, 0.6); }
.stats-band--brand .section-head__lead { color: rgba(255, 255, 255, 0.85); }

/* --- 29.2 International kicker treatment ------------------------------------------ */
/* Uppercase, letterspaced — echoes PREVENTION / PROTECTION / ADVOCACY headings */
.section-head__kicker {
        text-transform: uppercase;
        letter-spacing: 0.16em;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--si-ink, #006DA6);
}

/* --- 29.3 Mega-panel dropdowns ------------------------------------------------------ */
.nav-menu ul.sub-menu,
.nav-menu ul.children {
        min-width: 264px;
        padding: 10px 0;
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius);
        background: #fff;
        box-shadow: var(--si-shadow);
}
.nav-menu ul.sub-menu .menu-item-has-children > a,
.nav-menu ul.children .page_item_has_children > a {
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-size: 12px;
        font-weight: 700;
        color: #8997A0;
        cursor: default;
}
.nav-menu ul.sub-menu .menu-item-has-children > a:hover,
.nav-menu ul.children .page_item_has_children > a:hover {
        color: #8997A0;
        background: transparent;
}
.nav-menu ul.sub-menu a,
.nav-menu ul.children a { border-left: 2px solid transparent; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.nav-menu ul.sub-menu a:hover,
.nav-menu ul.children a:hover { border-left-color: var(--si-primary); }

/* --- 29.4 "Where we help" location cards ------------------------------------------- */
.section--locations { background: var(--si-alt); }
.locations-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
}
.location-card {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 26px 26px;
        background: #fff;
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius);
        text-decoration: none;
        color: inherit;
        overflow: hidden;
        transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.location-card::after {
        content: "";
        position: absolute;
        left: 0; right: 0; top: 0;
        height: 3px;
        background: var(--si-primary);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.32s ease;
}
.location-card:hover,
.location-card:focus-visible {
        transform: translateY(-6px);
        box-shadow: var(--si-shadow);
        border-color: transparent;
}
.location-card:hover::after,
.location-card:focus-visible::after { transform: scaleX(1); }
.location-card__pin {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px; height: 52px;
        margin-bottom: 18px;
        border-radius: 16px;
        background: var(--si-primary-soft);
        color: var(--si-primary);
        transition: background-color 0.28s ease, color 0.28s ease;
}
.location-card__pin .si-icon { width: 24px; height: 24px; }
.location-card:hover .location-card__pin { background: var(--si-primary); color: #fff; }
.location-card__tag {
        display: inline-block;
        margin-bottom: 12px;
        padding: 4px 12px;
        border-radius: 999px;
        background: var(--si-primary-soft);
        color: var(--si-dark);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
}
.location-card__name {
        margin: 0 0 10px;
        font-size: 1.18rem;
        line-height: 1.3;
        color: var(--si-dark);
        font-family: var(--si-font-head);
}
.location-card__text { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--si-body); }
.location-card__more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--si-border);
        width: 100%;
        font-size: 0.86rem;
        font-weight: 700;
        color: var(--si-primary);
}
.location-card__more .si-icon { transition: transform 0.22s ease; }
.location-card:hover .location-card__more .si-icon { transform: translateX(4px); }

/* --- 29.5 Refined card & link micro-interactions ------------------------------------ */
.program-card, .post-card, .team-card { will-change: transform; }
.program-card:hover { border-color: var(--si-primary-soft); }
.post-card__title a {
        text-decoration: underline;
        text-decoration-color: transparent;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
        transition: text-decoration-color 0.3s ease;
}
.post-card__title a:hover { text-decoration-color: currentColor; }

/* --- 29.6 v6 dark mode counterparts --------------------------------------------------- */
[data-si-theme="dark"] .nav-menu ul.sub-menu,
[data-si-theme="dark"] .nav-menu ul.children { background: var(--si-card); }
[data-si-theme="dark"] .location-card { background: var(--si-card); border-color: var(--si-border); }
[data-si-theme="dark"] .location-card__name { color: #fff; }
[data-si-theme="dark"] .location-card__tag { background: rgba(0, 167, 228, 0.16); color: #7FD4F4; }
[data-si-theme="dark"] .location-card__more { border-top-color: var(--si-border); }

/* --- 29.7 v6 responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
        .locations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
        .locations-grid { grid-template-columns: 1fr; }
        .location-card { padding: 26px 22px 22px; }
        .section-head__kicker { letter-spacing: 0.13em; }
}
@media (prefers-reduced-motion: reduce) {
        .location-card, .location-card::after, .location-card__pin, .location-card__more .si-icon { transition: none; }
        .location-card:hover { transform: none; }
        .post-card__title a { transition: none; }
}

/* =====================================================================================
   30. v7.0.0 — RESPONSIVE HARDENING
   -------------------------------------------------------------------------------------
   A defensive layer that guarantees clean layout on every device: no horizontal
   scroll, no overflowing decorations, fluid media, proper stacking order.
   ===================================================================================== */

/* 30.1 — Kill horizontal scroll globally. `clip` does NOT create a scroll
           container, so the sticky header keeps working (overflow:hidden on
           ancestors breaks position:sticky in some browsers). */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
        html, body { overflow-x: hidden; }
}

/* 30.2 — Fluid media: nothing can ever exceed its container. */
img, svg, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
.wp-block-video video, .wp-block-embed__wrapper iframe { width: 100%; }
.prose table, .wp-block-table { display: block; width: 100%; overflow-x: auto; }
.wp-block-table table { display: table; }
.woocommerce-product-gallery img { max-width: 100%; }

/* 30.3 — Grid/flex children can never force their parent wider. */
.site-header__inner > *, .nav-menu > li, .hero__content, .cta__inner,
.section-head, .footer-grid > *, .about-grid > *, .contact-grid > *,
.news-grid > *, .programs-grid > *, .locations-grid > *, .team-grid > *,
.stats-grid > *, .post-grid > *, .content-row > * { min-width: 0; }

/* 30.4 — Header: safe wrapping at every width. */
.site-header__inner { flex-wrap: nowrap; }
.site-branding { flex-shrink: 0; }
.site-branding__name { white-space: normal; }
@media (max-width: 1280px) and (min-width: 1081px) {
        /* Compact but still-desktop: fits the full 8-item demo menu. */
        .nav-menu > li > a { padding: 10px 11px; font-size: 14.5px; }
        .nav-menu > .menu-donate > a { margin-left: 4px; }
        .site-header__inner { gap: 18px; }
        .site-header__cta { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 640px) {
        .site-header__cta { display: none; } /* the burger + drawer CTA take over on phones */
}

/* 30.5 — Hero decorations were overflowing on tablets/phones → contain them. */
@media (max-width: 900px) {
        .hero__media-ring, .hero__media-dots { display: none; }
        .hero__media-chip { left: 12px; bottom: 18px; max-width: 260px; padding: 10px 14px; font-size: 12.5px; }
        .hero__inner { padding-top: 24px; padding-bottom: 72px; }
        .hero__subtitle { margin-bottom: 1.6em; }
}

/* 30.6 — Topbar: hide the location/e-mail row on small phones (declutter). */
@media (max-width: 640px) {
        .topbar__contact .topbar__item:not(:first-child) { display: none; }
        .topbar__inner { justify-content: space-between; }
}

/* 30.7 — Stats band on small screens. */
@media (max-width: 1100px) {
        .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
        .stats-grid { gap: 12px; }
        .stat { padding: 22px 12px; }
        .stat__number { font-size: 1.9rem; }
        .stat__label { font-size: 13px; }
}

/* 30.8 — Section rhythm tightens on mobile. */
@media (max-width: 900px) {
        .section-head { margin-bottom: 40px; }
        .section-more { margin-top: 34px; }
}

/* 30.9 — CTA / donation band. */
@media (max-width: 640px) {
        .cta__inner { max-width: 100%; }
        .cta__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
        .cta__text { font-size: 1rem; }
}

/* 30.10 — Breadcrumbs never break the line on phones. */
@media (max-width: 640px) {
        .breadcrumbs { font-size: 12px; }
        .breadcrumbs ol { flex-wrap: wrap; }
}

/* 30.11 — Forms and admin-bar awareness. */
@media (max-width: 480px) {
        .si-form { padding: 20px 16px; }
        .si-form__row { grid-template-columns: 1fr; gap: 0; }
        .comment-respond { padding: 20px 16px; }
}

/* 30.12 — Wordmark marquee and footer on small screens. */
@media (max-width: 900px) {
        .footer-grid { gap: 36px; }
        .footer-legal { flex-wrap: wrap; gap: 12px 18px; }
}

/* 30.13 — Menu overlay accounts for both header states. */
body.nav-open { overflow: hidden; }
@media (max-width: 640px) {
        .mobile-nav { padding-left: 20px; padding-right: 20px; }
        .mobile-menu a, .mobile-nav ul a { font-size: 17px; padding: 13px 2px; }
}

/* =====================================================================================
   31. v7.0.0 — DONATIONS (Donation Platform for WooCommerce) + WOOCOMMERCE
   -------------------------------------------------------------------------------------
   First-class integration with the free "Donation Platform for WooCommerce"
   plugin (wc-donation-platform). Flat colors only — the plugin's own styles
   are harmonized with the theme tokens.
   ===================================================================================== */

/* 31.1 — Donation form inside the homepage CTA band: white elevated card. */
.cta .si-donate-card {
        background: #fff; color: var(--si-dark);
        border-radius: var(--si-radius);
        max-width: 620px; margin: 0 auto;
        padding: 30px 34px;
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
        text-align: left;
}
.cta .si-donate-card .wcdp_donation_form,
.cta .si-donate-card form.woocommerce-cart-form { text-align: left; }

/* 31.2 — Harmonize the plugin's donation forms with the theme (flat, no gradients). */
.si-donate-card input[type="number"],
.si-donate-card input[type="text"],
.si-donate-card input[type="email"],
.si-donate-card input[type="tel"],
.woocommerce-page input[type="number"],
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"] {
        border: 1.5px solid rgba(20, 33, 61, 0.16);
        border-radius: calc(var(--si-radius) - 4px);
        padding: 11px 14px; min-height: 0;
        font: inherit; color: var(--si-dark); background: #fff;
}
.si-donate-card input:focus,
.woocommerce-page input:focus {
        outline: none; border-color: var(--si-primary);
        box-shadow: 0 0 0 3px var(--si-primary-soft);
}

/* 31.3 — Theme-styled buttons inside WooCommerce / WCDP output. */
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.wcdp-open-button, .wcdp_donation_form .button {
        background: var(--si-primary) !important;
        color: #fff !important;
        border-radius: 999px !important;
        font-family: var(--si-font-head); font-weight: 700;
        padding: 12px 26px; line-height: 1.2;
        text-shadow: none !important;
        border: 0; cursor: pointer;
        transition: background-color 0.2s ease, transform 0.2s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wcdp-open-button:hover, .wcdp_donation_form .button:hover {
        background: var(--si-primary-dark) !important;
        color: #fff !important;
        transform: translateY(-1px);
}
.woocommerce #place_order {
        background: var(--si-primary) !important;
        color: #fff !important;
        border-radius: 999px !important;
        font-family: var(--si-font-head); font-weight: 700;
        padding: 14px 30px; border: 0; cursor: pointer;
}
.woocommerce #place_order:hover { background: var(--si-primary-dark) !important; }

/* 31.4 — Progress bar shortcode: flush, on-brand spacing. */
.si-donation-progress { max-width: 620px; margin: 26px auto 0; }
.si-donation-progress .wcdp-progress { margin: 0; }

/* 31.5 — Donor wall (leaderboard) on the Donate page. */
.si-donor-wall { max-width: 620px; margin: 40px auto 0; text-align: left; }
.si-donor-wall__title {
        font-family: var(--si-font-head); font-size: 1.15rem;
        color: var(--si-dark); margin: 0 0 14px;
}
.si-donor-wall .wcdp-leaderboard { background: #fff; }

/* 31.6 — Donate page template layout. */
.donate-page { padding: 72px 0 84px; }
.donate-page__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.donate-page__prose { color: var(--si-body); font-size: 16.5px; line-height: 1.75; }
.donate-page__prose h2 { font-family: var(--si-font-head); color: var(--si-dark); font-size: 1.45rem; margin: 1.4em 0 0.4em; }
.donate-page__form-card {
        background: #fff; border: 1px solid var(--si-border);
        border-radius: var(--si-radius); padding: 28px 30px;
        box-shadow: var(--si-shadow);
}
.donate-page__note { margin: 18px 0 0; font-size: 13.5px; color: var(--si-ink-soft); }
.donate-page__facts { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 12px; }
.donate-page__facts li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--si-dark); font-size: 15.5px; }
.donate-page__facts .si-icon--sm { color: var(--si-primary); background: var(--si-primary-soft); border-radius: 50%; padding: 3px; margin-top: 2px; flex-shrink: 0; }

/* 31.7 — Admin-only setup hint when the donation plugins are not ready yet. */
.si-donate-setup {
        background: #FDF6E4; border: 1px solid #EAD9A8;
        border-radius: var(--si-radius); padding: 22px 26px;
        color: #6b5313; font-size: 14.5px; line-height: 1.65;
}
.si-donate-setup strong { display: block; margin-bottom: 6px; }
.si-donate-setup ol { margin: 10px 0 0; padding-left: 20px; }

/* 31.8 — WooCommerce shop/checkout pages inherit the theme rhythm. */
.woocommerce { padding: 56px 0; }
.woocommerce-checkout #payment { background: var(--si-alt); border-radius: var(--si-radius); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--si-font-head); color: var(--si-dark); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error {
        border-radius: var(--si-radius); border-top-color: var(--si-primary);
}

/* 31.9 — Dark mode counterparts for the donation UI. */
[data-si-theme="dark"] .cta .si-donate-card,
[data-si-theme="dark"] .donate-page__form-card,
[data-si-theme="dark"] .si-donor-wall .wcdp-leaderboard { background: var(--si-card); color: var(--si-dark); }
[data-si-theme="dark"] .donate-page__prose h2 { color: #fff; }
[data-si-theme="dark"] .donate-page__facts li { color: #fff; }
[data-si-theme="dark"] .woocommerce-checkout #payment { background: var(--si-card); }

/* 31.10 — Donations + WooCommerce responsive. */
@media (max-width: 900px) {
        .donate-page__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
        .cta .si-donate-card { padding: 22px 18px; }
        .donate-page { padding: 52px 0 64px; }
        .donate-page__form-card { padding: 20px 16px; }
        .woocommerce { padding: 40px 0; }
        .woocommerce table.shop_table { display: block; overflow-x: auto; }
}

/* =====================================================================================
   32. v8.0.0 — "DESIGN HOUSE" PREMIUM REFRESH
   -------------------------------------------------------------------------------------
   A flat (zero-gradient) editorial design language on top of the existing system:
   duotone icon squircles, pill buttons, elevated cards with layered shadows,
   huge tabular numerals, kicker chips, bento-style campaign components.
   Every rule here safely overrides earlier sections (later cascade wins).
   ===================================================================================== */

/* 32.1 — Tokens v2 ------------------------------------------------------------------- */
:root {
        --si-radius-card: 18px;
        --si-radius-xl: 24px;
        --si-shadow-card: 0 1px 2px rgba(22, 20, 26, 0.05), 0 12px 32px -14px rgba(22, 20, 26, 0.16);
        --si-shadow-card-hover: 0 2px 6px rgba(22, 20, 26, 0.06), 0 28px 56px -18px rgba(22, 20, 26, 0.28);
        --si-shadow-pop: 0 4px 14px rgba(22, 20, 26, 0.16);
        --si-track: rgba(22, 20, 26, 0.09);
        --si-ease: cubic-bezier(0.22, 0.8, 0.36, 1);
}
html { -webkit-tap-highlight-color: transparent; }
.si-icon { vertical-align: -0.2em; }
h1, h2, h3, h4 { letter-spacing: -0.028em; }

/* 32.2 — Section heads v2 ------------------------------------------------------------ */
.section-head { margin-bottom: 56px; }
.section-head__kicker {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 8px 18px;
        border-radius: 999px;
        background: var(--si-primary-soft);
        color: var(--si-ink, #006DA6);
        font-family: var(--si-font-head);
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        margin: 0 0 20px;
}
.section-head__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--si-accent); flex-shrink: 0; }
.section-head__title { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-head__lead { font-size: 18.5px; line-height: 1.65; margin: 0; }
.section-head--light .section-head__kicker { background: rgba(255, 255, 255, 0.14); color: #fff; }
.section-head--light .section-head__kicker::before { background: currentColor; }
.section-head--light .section-head__lead { color: rgba(255, 255, 255, 0.8); }

/* Small "chips" used across v8 components. */
.si-chip {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 7px 14px;
        border-radius: 999px;
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.09em;
        text-transform: uppercase;
}
.si-chip--tint { background: rgba(255, 255, 255, 0.94); color: var(--si-dark); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.si-chip--live { background: rgba(255, 255, 255, 0.14); color: #fff; }
.si-chip--live span { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.25); }

.link-more {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-family: var(--si-font-head);
        font-weight: 700;
        font-size: 14.5px;
        color: var(--si-ink, #006DA6);
}
.link-more .si-icon { transition: transform 0.25s var(--si-ease); }
.link-more:hover .si-icon { transform: translateX(3px); }
.link-more:hover { color: var(--si-btn, #0077B6); }

/* 32.3 — Buttons v2 ------------------------------------------------------------------ */
.btn { border-radius: 999px; padding: 15px 32px; font-weight: 700; }
.btn--sm { padding: 11px 24px; font-size: 14px; }
.btn--lg { padding: 18px 42px; font-size: 16.5px; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.45); }
.btn--accent:hover { transform: translateY(-2px); }
.btn--outline { border-width: 2px; }
.btn--outline:hover { transform: translateY(-2px); }

/* 32.4 — Header & navigation polish --------------------------------------------------- */
.site-header__inner { min-height: 74px; }
.nav-menu > li > a { position: relative; }
.nav-menu > li > a::after {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 12px;
        height: 2px;
        border-radius: 2px;
        background: var(--si-primary);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.28s var(--si-ease);
}
.nav-menu > li > a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after,
.nav-menu .current-menu-ancestor > a::after { transform: scaleX(1); }
.site-header__cta { border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45); }
.site-header__cta:hover { transform: translateY(-2px); }
.topbar { font-weight: 600; }

/* 32.5 — Hero v2 ---------------------------------------------------------------------- */
.hero__title { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.hero__subtitle { font-size: 19px; max-width: 58ch; }
.hero__kicker {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 9px 20px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.28);
        backdrop-filter: blur(6px);
        font-family: var(--si-font-head);
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: 0.15em;
        text-transform: uppercase;
}
.hero__kicker span:first-child, .hero__kicker span:last-child { display: none; }
.hero__media-img { border-radius: var(--si-radius-xl); }
.hero__media-chip {
        background: #fff;
        color: var(--si-dark);
        border-radius: 999px;
        padding: 12px 20px;
        font-weight: 800;
        font-size: 14px;
        box-shadow: var(--si-shadow-card-hover);
}
.hero__media-chip .si-icon { color: var(--si-accent); }

/* 32.6 — Impact stats v2 --------------------------------------------------------------- */
.stat__number { font-size: clamp(42px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; margin-top: 12px; }
.stat { position: relative; padding: 6px 28px; }
.stat + .stat::before {
        content: "";
        position: absolute;
        left: 0;
        top: 14%;
        bottom: 14%;
        width: 1px;
        background: rgba(255, 255, 255, 0.28);
}
.stats-band--light .stat + .stat::before { background: var(--si-border); }

/* 32.7 — Programme cards v2 ------------------------------------------------------------- */
.program-card {
        background: #fff;
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius-card);
        overflow: hidden;
        box-shadow: var(--si-shadow-card);
        position: relative;
        display: flex;
        flex-direction: column;
        transition: transform 0.35s var(--si-ease), box-shadow 0.35s var(--si-ease);
}
.program-card::after {
        content: "";
        position: absolute;
        left: 0; right: 0; top: 0;
        height: 4px;
        background: var(--si-primary);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s var(--si-ease);
        z-index: 2;
}
.program-card:hover::after { transform: scaleX(1); }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--si-shadow-card-hover); }
.program-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--si-primary-soft); }
.program-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--si-ease); }
.program-card:hover .program-card__img { transform: scale(1.06); }
.program-card__icon {
        width: 68px;
        height: 68px;
        margin: 40px auto 0;
        border-radius: 20px;
        display: grid;
        place-items: center;
        background: #fff;
        color: var(--si-primary-dark);
        box-shadow: var(--si-shadow-card);
        position: relative;
        z-index: 1;
}
.program-card__icon .si-icon { width: 32px; height: 32px; }
.program-card__chip {
        position: absolute;
        top: 14px;
        left: 14px;
        background: rgba(255, 255, 255, 0.95);
        color: var(--si-dark);
        padding: 7px 14px;
        border-radius: 999px;
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        box-shadow: var(--si-shadow-pop);
}
.program-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.program-card__title { font-size: 20.5px; margin: 0; }
.program-card__text { font-size: 15.5px; margin: 0 0 8px; }
.program-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--si-ink, #006DA6); }
.program-card:hover .program-card__more .si-icon { transform: translateX(4px); }

/* 32.8 — Donation campaigns (v8) -------------------------------------------------------- */
.section--campaigns { background: var(--si-alt); }

/* Featured appeal banner: split, dark, editorial. */
.campaign-feature {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        background: #1C325D;
        border-radius: var(--si-radius-xl);
        overflow: hidden;
        box-shadow: var(--si-shadow-card-hover);
}
.campaign-feature__media { position: relative; min-height: 400px; }
.campaign-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign-feature__img--empty { background: rgba(255, 255, 255, 0.08); }
.campaign-feature__pct {
        position: absolute;
        left: 24px;
        bottom: 24px;
        display: inline-flex;
        align-items: baseline;
        gap: 8px;
        background: #fff;
        color: var(--si-dark);
        border-radius: 16px;
        padding: 12px 18px;
        box-shadow: var(--si-shadow-card-hover);
        font-family: var(--si-font-head);
        font-size: 13px;
        font-weight: 700;
}
.campaign-feature__pct strong { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--si-primary-dark); font-variant-numeric: tabular-nums; }
.campaign-feature__flag {
        position: absolute;
        top: 20px;
        right: 20px;
        background: var(--si-accent);
        color: #fff;
        padding: 8px 16px;
        border-radius: 999px;
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        box-shadow: var(--si-shadow-pop);
}
.campaign-feature__body { padding: clamp(28px, 4vw, 54px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.campaign-feature__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.campaign-feature__title { color: #fff; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 0; }
.campaign-feature__text { color: rgba(255, 255, 255, 0.78); font-size: 16.5px; line-height: 1.7; margin: 0; }

/* Flat animated progress bars (width driven by --pct; animates on reveal). */
.c-progress { width: 100%; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.c-progress__fill {
        display: block;
        height: 100%;
        width: var(--pct, 0%);
        border-radius: 999px;
        background: var(--si-primary);
        transition: width 1.4s var(--si-ease) 0.25s;
}
.c-progress--sm { height: 10px; background: var(--si-track); }
.reveal-pending .c-progress__fill, .reveal-pending .alloc__fill, .reveal-pending .cta__progress-fill { width: 0 !important; transition: none; }

/* Raised / goal / donors stat row. */
.c-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 0; width: 100%; }
.c-stats__item { flex: 1 1 auto; padding: 4px 26px 4px 0; min-width: 0; }
.c-stats__item + .c-stats__item { border-left: 1px solid rgba(255, 255, 255, 0.18); padding-left: 26px; }
.c-stats__item dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.6); margin: 0; }
.c-stats__item dd { margin: 4px 0 0; font-family: var(--si-font-head); font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.campaign-feature__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.campaign-feature .link-more { color: rgba(255, 255, 255, 0.85); }
.campaign-feature .link-more:hover { color: #fff; }

/* Campaign cards grid. */
.campaign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.campaign-card {
        background: #fff;
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius-card);
        overflow: hidden;
        box-shadow: var(--si-shadow-card);
        display: flex;
        flex-direction: column;
        transition: transform 0.35s var(--si-ease), box-shadow 0.35s var(--si-ease);
}
.campaign-card:hover { transform: translateY(-6px); box-shadow: var(--si-shadow-card-hover); }
.campaign-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--si-primary-soft); }
.campaign-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--si-ease); }
.campaign-card:hover .campaign-card__img { transform: scale(1.06); }
.campaign-card__img--empty { background: var(--si-primary-soft); }
.campaign-card__chip {
        position: absolute;
        top: 14px;
        left: 14px;
        background: rgba(255, 255, 255, 0.95);
        color: var(--si-dark);
        padding: 6px 13px;
        border-radius: 999px;
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        box-shadow: var(--si-shadow-pop);
}
.campaign-card__flag {
        position: absolute;
        top: 14px;
        right: 14px;
        background: var(--si-accent);
        color: #fff;
        padding: 6px 13px;
        border-radius: 999px;
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        box-shadow: var(--si-shadow-pop);
}
.campaign-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.campaign-card__title { font-size: 20px; margin: 0; }
.campaign-card__title a { color: inherit; }
.campaign-card__title a:hover { color: var(--si-primary-dark); }
.campaign-card__text { font-size: 15px; line-height: 1.65; margin: 0; }
.campaign-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13.5px; color: var(--si-body); margin: 0; }
.campaign-card__meta strong { color: var(--si-dark); font-weight: 800; font-variant-numeric: tabular-nums; }
.campaign-card__donors { display: inline-flex; align-items: center; gap: 5px; color: var(--si-accent); font-weight: 700; }
.campaign-card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* "Give where it's needed most" promo card — solid brand block. */
.campaign-card--promo { background: var(--si-primary); border: none; }
.campaign-card__promo-inner { padding: 40px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: 1; }
.campaign-card--promo .campaign-card__title { color: #fff; font-size: 22px; }
.campaign-card--promo .campaign-card__text { color: rgba(255, 255, 255, 0.85); }
.campaign-card--promo .btn--ghost { border-color: rgba(255, 255, 255, 0.7); margin-top: auto; }
.campaign-card__promo-icon {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
}
.campaign-card__promo-icon .si-icon { width: 28px; height: 28px; }
.campaigns-note { text-align: center; font-size: 13.5px; color: var(--si-body); opacity: 0.85; margin: 26px 0 0; }

/* 32.9 — Donate page v2 ----------------------------------------------------------------- */
.page-hero--donate { border-bottom: 4px solid var(--si-accent); }

.donate-impact { padding: 56px 0 0; }
.donate-impact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.impact-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        background: #fff;
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius-card);
        box-shadow: var(--si-shadow-card);
        padding: 26px 24px 24px;
        color: inherit;
        transition: transform 0.3s var(--si-ease), box-shadow 0.3s var(--si-ease), border-color 0.3s;
}
.impact-card:hover { transform: translateY(-5px); box-shadow: var(--si-shadow-card-hover); border-color: var(--si-primary); color: inherit; }
.impact-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: var(--si-primary-soft);
        color: var(--si-primary-dark);
        margin-bottom: 6px;
}
.impact-card__icon .si-icon { width: 22px; height: 22px; }
.impact-card__amount { font-family: var(--si-font-head); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--si-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.impact-card__text { font-size: 14.5px; line-height: 1.55; color: var(--si-body); }
.impact-card__cta { display: inline-flex; align-items: center; gap: 7px; font-family: var(--si-font-head); font-size: 13.5px; font-weight: 800; color: var(--si-primary-dark); margin-top: 8px; }
.impact-card:hover .impact-card__cta .si-icon { transform: translateX(3px); }
.impact-card__cta .si-icon { transition: transform 0.25s var(--si-ease); }

.donate-page { padding: 48px 0 88px; }
.donate-page__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.donate-page__facts { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.donate-page__facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; color: var(--si-body); }
.donate-page__facts .si-icon { color: var(--si-primary-dark); margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }

/* Floating form panel with secure header. */
.donate-form-card {
        background: #fff;
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius-xl);
        box-shadow: var(--si-shadow-card-hover);
        overflow: hidden;
}
.donate-page__aside { position: sticky; top: calc(var(--si-header-h, 76px) + 24px); }
.donate-form-card__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: var(--si-dark);
        color: #fff;
        padding: 16px 26px;
        font-family: var(--si-font-head);
        font-weight: 800;
        font-size: 15.5px;
}
.donate-form-card__secure { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.donate-form-card__body { padding: 26px; }
.donate-form-card__note { padding: 0 26px 22px; margin: 0; font-size: 13.5px; color: var(--si-body); }
.donate-form-card--fallback .donate-form-card__fallback-title { margin-top: 0; }
.donate-form-card--fallback .donate-form-card__fallback-btn { margin-bottom: 0; }

/* Where-your-money-goes transparency card. */
.alloc-card {
        background: #fff;
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius-card);
        box-shadow: var(--si-shadow-card);
        overflow: hidden;
        margin: 28px 0;
}
.alloc-card__img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.alloc-card__body { padding: 28px; }
.alloc-card__title { font-size: 21px; margin: 0 0 20px; }
.alloc { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.alloc__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label pct" "bar bar"; gap: 8px 14px; }
.alloc__label { grid-area: label; font-size: 14.5px; font-weight: 700; color: var(--si-dark); }
.alloc__pct { grid-area: pct; font-family: var(--si-font-head); font-weight: 800; color: var(--si-primary-dark); font-variant-numeric: tabular-nums; }
.alloc__bar { grid-area: bar; height: 10px; border-radius: 999px; background: var(--si-track); overflow: hidden; }
.alloc__fill { display: block; height: 100%; width: var(--pct, 0%); border-radius: 999px; background: var(--si-primary); transition: width 1.4s var(--si-ease) 0.25s; }
.alloc__note { font-size: 13px; color: var(--si-body); opacity: 0.8; margin: 18px 0 0; }
.donate-page__contact { margin-top: 26px; }

.donate-faq { margin-top: 72px; max-width: 820px; margin-left: auto; margin-right: auto; }
.donate-faq__title { text-align: center; font-size: clamp(24px, 3vw, 32px); margin-bottom: 32px; }

/* 32.10 — Donation CTA: split layout (live stack) ---------------------------------------- */
.cta--split { background: var(--si-dark); }
.cta--split .cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.cta--split .cta__copy { color: #fff; }
.cta__kicker--light {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 8px 18px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-family: var(--si-font-head);
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        margin-bottom: 20px;
}
.cta__kicker--light::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--si-accent); }
.cta--split .cta__title { color: #fff; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; }
.cta--split .cta__text { color: rgba(255, 255, 255, 0.78); font-size: 17px; }
.cta__trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.cta__trust li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.cta__trust .si-icon { color: var(--si-primary); margin-top: 4px; flex-shrink: 0; }
.cta__trust--center { justify-content: center; justify-items: center; grid-auto-flow: column; gap: 10px 26px; margin-top: 26px; }
.cta--split .cta__note { color: rgba(255, 255, 255, 0.6); font-size: 13.5px; margin-top: 18px; }
.cta__panel {
        background: #fff;
        border-radius: var(--si-radius-xl);
        box-shadow: var(--si-shadow-card-hover);
        overflow: hidden;
}
.cta__panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 15px 26px;
        font-family: var(--si-font-head);
        font-weight: 800;
        font-size: 14.5px;
        color: var(--si-dark);
        border-bottom: 1px solid var(--si-border);
}
.cta__panel-head .si-icon { color: var(--si-primary-dark); }
.cta__panel-head-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #1e9e57; }
.cta__panel-head-live span { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.22); }
.cta--split .si-donate-card { padding: 26px; }
.cta__panel-note { padding: 0 26px 20px; margin: 0; font-size: 13px; color: var(--si-body); }

/* 32.11 — News, gallery, locations, testimonials, about polish --------------------------- */
.news-card {
        background: #fff;
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius-card);
        overflow: hidden;
        box-shadow: var(--si-shadow-card);
        transition: transform 0.35s var(--si-ease), box-shadow 0.35s var(--si-ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--si-shadow-card-hover); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--si-ease); }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { padding: 24px 24px 26px; }
.news-card__title { font-size: 19.5px; margin: 0 0 10px; }
.news-card__title a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color 0.3s var(--si-ease); }
.news-card__title a:hover { text-decoration-color: currentColor; }
.news-card__excerpt { font-size: 15px; }
.news-card__placeholder { background: var(--si-primary-soft); }

.gallery-item { border-radius: 16px; overflow: hidden; }
.gallery-item__veil { background: rgba(22, 20, 26, 0.38); transition: opacity 0.3s; }

.location-card {
        background: #fff;
        border: 1px solid var(--si-border);
        border-radius: var(--si-radius-card);
        box-shadow: var(--si-shadow-card);
        padding: 28px 26px;
        transition: transform 0.3s var(--si-ease), box-shadow 0.3s var(--si-ease);
}
.location-card:hover { transform: translateY(-5px); box-shadow: var(--si-shadow-card-hover); }
.location-card__pin {
        width: 50px;
        height: 50px;
        border-radius: 15px;
        display: grid;
        place-items: center;
        background: var(--si-primary-soft);
        color: var(--si-primary-dark);
}
.location-card__pin .si-icon { width: 24px; height: 24px; }
.location-card__tag { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--si-accent); }
.location-card__name { font-size: 19px; }

.testi-slide__quote-icon { color: var(--si-primary-soft); }
.testi-slide__quote-icon .si-icon { width: 44px; height: 44px; }
.testi-slide__avatar--initials { background: var(--si-primary-soft); color: var(--si-primary-dark); font-weight: 800; }
.about-media__badge { background: #fff; color: var(--si-dark); border-radius: 18px; box-shadow: var(--si-shadow-card-hover); }
.about-media__badge-num { color: var(--si-primary-dark); }
.about-checklist .si-icon, .about-checklist li::marker { color: var(--si-primary-dark); }

/* Footer polish. */
.footer-brand__name { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.social-links a {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        display: inline-grid;
        place-items: center;
        background: rgba(255, 255, 255, 0.08);
        transition: background-color 0.25s, transform 0.25s var(--si-ease);
}
.social-links a:hover { background: var(--si-primary); transform: translateY(-3px); }
.footer-col__title { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }

/* 32.12 — Forms & WooCommerce harmony ------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], input[type="password"], textarea, select {
        border-radius: 12px;
        border: 1.5px solid var(--si-border);
        padding: 12px 16px;
        font-family: var(--si-font-body);
        font-size: 15.5px;
        transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--si-primary); box-shadow: 0 0 0 3px var(--si-primary-soft); }
.woocommerce .button, .wcdp-form .button, .wcdp-submit {
        border-radius: 999px !important;
        font-weight: 700 !important;
        font-family: var(--si-font-head) !important;
        transition: transform 0.22s var(--si-ease), background-color 0.22s, box-shadow 0.22s;
}
.woocommerce .button:hover, .wcdp-form .button:hover, .wcdp-submit:hover { transform: translateY(-2px); }

/* 32.13 — Dark mode counterparts ------------------------------------------------------------ */
[data-si-theme="dark"] {
        --si-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45), 0 12px 32px -14px rgba(0, 0, 0, 0.55);
        --si-shadow-card-hover: 0 2px 6px rgba(0, 0, 0, 0.5), 0 28px 56px -18px rgba(0, 0, 0, 0.65);
        --si-track: rgba(255, 255, 255, 0.12);
}
[data-si-theme="dark"] .program-card,
[data-si-theme="dark"] .campaign-card,
[data-si-theme="dark"] .news-card,
[data-si-theme="dark"] .location-card,
[data-si-theme="dark"] .impact-card,
[data-si-theme="dark"] .alloc-card,
[data-si-theme="dark"] .donate-form-card,
[data-si-theme="dark"] .cta__panel {
        background: var(--si-card, #1d1b22);
        border-color: rgba(255, 255, 255, 0.09);
}
[data-si-theme="dark"] .program-card__chip,
[data-si-theme="dark"] .campaign-card__chip,
[data-si-theme="dark"] .campaign-feature__pct,
[data-si-theme="dark"] .si-chip--tint {
        background: rgba(30, 28, 34, 0.95);
        color: #fff;
}
[data-si-theme="dark"] .impact-card__amount,
[data-si-theme="dark"] .impact-card__icon,
[data-si-theme="dark"] .alloc__label,
[data-si-theme="dark"] .campaign-card__meta strong,
[data-si-theme="dark"] .donate-form-card__head,
[data-si-theme="dark"] .cta__panel-head,
[data-si-theme="dark"] .cta__panel-head .si-icon { color: #fff; }
[data-si-theme="dark"] .campaign-feature { background: #211f26; }
[data-si-theme="dark"] .donate-form-card__body,
[data-si-theme="dark"] .alloc-card__body { color: var(--si-body); }
[data-si-theme="dark"] .impact-card__text,
[data-si-theme="dark"] .campaign-card__text,
[data-si-theme="dark"] .donate-form-card__note,
[data-si-theme="dark"] .cta__panel-note { color: var(--si-body); }
[data-si-theme="dark"] .donate-form-card__body,
[data-si-theme="dark"] .cta--split .si-donate-card { color: var(--si-body); }
[data-si-theme="dark"] .donate-page__facts .si-icon,
[data-si-theme="dark"] .alloc__pct,
[data-si-theme="dark"] .impact-card__cta,
[data-si-theme="dark"] .link-more { color: var(--si-primary); }
[data-si-theme="dark"] .cta__panel-head { border-bottom-color: rgba(255, 255, 255, 0.09); }
[data-si-theme="dark"] .section--campaigns { background: transparent; }

/* 32.14 — Responsive for all v8 components --------------------------------------------------- */
@media (max-width: 1100px) {
        .campaign-grid { grid-template-columns: repeat(2, 1fr); }
        .donate-impact__grid { grid-template-columns: repeat(2, 1fr); }
        .donate-page__grid { gap: 40px; }
}
@media (max-width: 900px) {
        .campaign-feature { grid-template-columns: 1fr; }
        .campaign-feature__media { min-height: 300px; }
        .cta--split .cta__grid { grid-template-columns: 1fr; }
        .donate-page__aside { position: static; }
        .stat + .stat::before { display: none; }
        .stats-grid { gap: 28px; }
}
@media (max-width: 760px) {
        .section-head { margin-bottom: 42px; }
        .campaign-grid { grid-template-columns: 1fr; }
        .donate-impact__grid { grid-template-columns: 1fr; }
        .stat { padding: 4px 10px; }
        .cta__trust--center { grid-auto-flow: row; justify-items: start; }
        .c-stats__item { padding-right: 16px; }
        .c-stats__item + .c-stats__item { padding-left: 16px; }
}
@media (max-width: 560px) {
        .impact-card { padding: 22px 20px; }
        .campaign-feature__pct { left: 16px; bottom: 16px; }
        .donate-page { padding: 36px 0 64px; }
        .donate-form-card__body { padding: 20px 16px; }
        .cta--split .si-donate-card { padding: 20px 16px; }
        .alloc-card__body { padding: 22px 18px; }
}

/* 32.15 — Reduced motion for v8 components ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
        .campaign-card, .program-card, .news-card, .impact-card, .location-card,
        .c-progress__fill, .alloc__fill, .btn, .site-header__cta { transition: none !important; }
        .program-card:hover .program-card__img,
        .campaign-card:hover .campaign-card__img,
        .news-card:hover .news-card__media img { transform: none !important; }
}

/* ============================================================================================
   33. CONTENT PAGES v2 (v9.1) — breathing room + modern editorial prose
   Fixes: content flush against hero/footer (no margins), plain AI-look typography,
   bare inline images, cramped lists. Applies to pages and posts.
   ============================================================================================ */

/* 33.1 — Real vertical rhythm around page/post content -------------------------------------- */
.single-page .container--narrow,
.single-post .container--narrow {
        padding-top: clamp(48px, 7vw, 88px);
        padding-bottom: clamp(60px, 9vw, 112px);
}

/* 33.2 — Page hero: lead line + refined spacing ---------------------------------------------- */
/* v13.5 — hero is fully LEFT-aligned so title, breadcrumbs and lead share one
   edge with the page content below (centered text over left crumbs read as
   misaligned sections). */
.page-hero__title { max-width: 860px; margin-left: 0; margin-right: 0; }
.page-hero__lead {
        margin: 16px 0 0;
        max-width: 720px;
        font-size: 1.08rem;
        line-height: 1.65;
        color: rgba(255, 255, 255, 0.85);
}
.page-hero .si-breadcrumbs { margin-bottom: 16px; }
.page-hero--media .page-hero__lead { text-shadow: 0 1px 2px rgba(28, 50, 93, 0.4); }

/* 33.3 — Editorial prose: sections with accent rules ------------------------------------------ */
.prose > * + * { margin-top: 1.3em; }
.prose h2, .prose h3, .prose h4 {
        color: var(--si-dark);
        line-height: 1.25;
        letter-spacing: -0.01em;
        scroll-margin-top: calc(var(--si-header-h, 76px) + 20px);
}
.prose h2 {
        position: relative;
        font-size: 1.7rem;
        margin-top: 2.2em;
        padding-top: 26px;
        border-top: 1px solid var(--si-border);
}
.prose h2::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 0;
        width: 64px;
        height: 3px;
        background: var(--si-primary);
}
.prose h3 { font-size: 1.3rem; margin-top: 1.9em; }
.prose h4 { font-size: 1.12rem; margin-top: 1.7em; }

/* Opening paragraph reads as a lead */
.prose > p:first-child {
        font-size: 1.15em;
        line-height: 1.7;
        color: var(--si-dark);
}

/* 33.4 — Lists with designed markers ----------------------------------------------------------- */
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 30px; }
.prose ul > li + li { margin-top: 0.62em; }
.prose ul > li::before {
        content: "";
        position: absolute;
        left: 5px;
        top: 0.58em;
        width: 9px;
        height: 9px;
        border-radius: 3px;
        background: var(--si-primary);
}
.prose ol { padding-left: 1.5em; }
.prose ol > li + li { margin-top: 0.62em; }
.prose ol > li::marker { color: var(--si-primary-dark); font-weight: 700; }
.prose li > strong, .prose strong { color: var(--si-dark); }

/* 33.5 — Inline images & captions (demo figures) ------------------------------------------------ */
.prose .wp-block-image { margin: 2.2em 0; }
.prose .wp-block-image img {
        width: 100%;
        height: auto;
        border-radius: var(--si-radius-xl, 24px);
        box-shadow: var(--si-shadow);
        display: block;
}
.prose figcaption,
.prose .wp-element-caption {
        margin-top: 12px;
        text-align: center;
        font-size: 13px;
        line-height: 1.5;
        color: var(--si-body);
}

/* 33.6 — Quotes & call-outs ---------------------------------------------------------------------- */
.prose blockquote {
        border: 1px solid var(--si-border);
        border-left: 4px solid var(--si-primary);
        background: var(--si-card);
        box-shadow: var(--si-shadow-sm);
        border-radius: var(--si-radius);
        padding: 26px 30px;
        margin: 1.8em 0;
        font-style: normal;
}
.prose blockquote p { color: var(--si-dark); font-size: 1.05em; line-height: 1.7; }
.prose blockquote p + p { margin-top: 0.8em; }

/* 33.7 — Links, rules, misc ----------------------------------------------------------------------- */
.prose a {
        color: var(--si-primary-dark);
        text-decoration: underline;
        text-decoration-thickness: 1.5px;
        text-underline-offset: 3px;
}
.prose a:hover { color: var(--si-primary); }
.prose hr { border: 0; height: 1px; background: var(--si-border); margin: 2.6em 0; }
.prose code {
        background: var(--si-alt);
        border: 1px solid var(--si-border);
        border-radius: 6px;
        padding: 2px 7px;
        font-size: 0.9em;
}

/* 33.8 — Dark mode counterparts -------------------------------------------------------------------- */
[data-si-theme="dark"] .prose > p:first-child { color: var(--si-dark); }
[data-si-theme="dark"] .prose li > strong, [data-si-theme="dark"] .prose strong { color: var(--si-dark); }
[data-si-theme="dark"] .prose blockquote p { color: var(--si-dark); }
[data-si-theme="dark"] .prose ol > li::marker { color: var(--si-primary); }

/* 33.9 — Responsive --------------------------------------------------------------------------------- */
@media (max-width: 760px) {
        .single-page .container--narrow { padding-top: 40px; padding-bottom: 68px; }
        .prose { font-size: 16.5px; }
        .prose h2 { font-size: 1.45rem; padding-top: 20px; }
        .prose h3 { font-size: 1.2rem; }
        .prose ul > li { padding-left: 26px; }
        .prose blockquote { padding: 20px 20px; }
        .page-hero { padding: 64px 0; }
        .page-hero--media { padding: 110px 0; }
}

/* 33.10 — Reduced motion safe (no animated additions here) ------------------------------------------ */

/* ============================================================================================
   34. SINGLE POST v2 + COMMENTS v2 (v10) — editorial header, bounded media overlap,
   card navigation, author panel, elegant comment cards and respond form.
   ============================================================================================ */

/* 34.1 — Wide container (used by the post media card) ------------------------------------------ */
.container--wide { max-width: 1160px; }

/* 34.2 — Post hero ------------------------------------------------------------------------------ */
.post-hero {
        position: relative;
        isolation: isolate;
        background: #0F2C3F;
        color: #fff;
        padding: clamp(48px, 7vw, 84px) 0 clamp(108px, 12vw, 150px);
        overflow: hidden;
}
.post-hero .si-breadcrumbs { margin-bottom: 26px; }
.post-hero__inner { text-align: left; max-width: 920px; }
.post-hero__kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #fff;
        background: var(--si-accent-ink, #C13B57);
        padding: 8px 16px;
        border-radius: 999px;
        text-decoration: none;
        transition: background var(--si-ease, 0.25s ease);
}
.post-hero__kicker:hover { background: #A82F48; color: #fff; }
.post-hero__title {
        font-family: var(--si-font-head);
        font-size: clamp(1.95rem, 4.4vw, 3.1rem);
        line-height: 1.13;
        letter-spacing: -0.02em;
        margin: 18px 0 0;
        color: #fff;
}
.post-hero__meta {
        margin-top: 24px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px 16px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 14.5px;
}
.post-hero__author { display: inline-flex; align-items: center; gap: 11px; }
.post-hero__author img {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.4);
        object-fit: cover;
}
.post-hero__author-name { font-weight: 700; color: #fff; font-family: var(--si-font-head); }
.post-hero__sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); flex: 0 0 auto; }
.post-hero__date { color: rgba(255, 255, 255, 0.78); }
.post-hero__read { display: inline-flex; align-items: center; gap: 7px; }

/* 34.3 — Media card: overlaps the hero by a bounded amount on desktop only ---------------------- */
.post-hero__media {
        margin: clamp(-104px, -8vw, -60px) 0 0;
        position: relative;
        z-index: 2;
        border-radius: var(--si-radius-xl, 24px);
        box-shadow: var(--si-shadow-lg);
        overflow: hidden;
        background: #fff;
}
.post-hero__media img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 8.4;
        object-fit: cover;
}

/* 34.4 — Content column: real air on both sides, no touching ------------------------------------ */
.single-post__layout {
        max-width: 760px;
        margin: 0 auto;
        padding: clamp(46px, 6vw, 78px) 0 clamp(64px, 8vw, 96px);
}

/* 34.5 — Tags & share spacing -------------------------------------------------------------------- */
.single-post__tags { margin-top: 46px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.single-post__tags-label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--si-body);
}
.single-post__tags-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* 34.6 — Post navigation cards -------------------------------------------------------------------- */
.post-nav {
        margin-top: 52px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
}
.post-nav__item {
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: var(--si-card, #fff);
        border: 1px solid var(--si-border);
        border-radius: 18px;
        padding: 22px 26px;
        text-decoration: none;
        box-shadow: var(--si-shadow-sm);
        transition: border-color var(--si-ease, 0.25s ease), transform var(--si-ease, 0.25s ease), box-shadow var(--si-ease, 0.25s ease);
}
.post-nav__item:hover {
        border-color: var(--si-primary);
        transform: translateY(-3px);
        box-shadow: var(--si-shadow);
}
.post-nav__label {
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--si-ink, #006DA6);
}
.post-nav__title {
        font-family: var(--si-font-head);
        font-weight: 700;
        font-size: 1.04rem;
        line-height: 1.4;
        color: var(--si-dark);
}
.post-nav__item--next { text-align: right; align-items: flex-end; }

/* 34.7 — Author box v2 ---------------------------------------------------------------------------- */
.author-box {
        margin-top: 30px;
        display: flex;
        gap: 24px;
        align-items: flex-start;
        background: var(--si-card, #fff);
        border: 1px solid var(--si-border);
        border-radius: 20px;
        padding: 28px 30px;
        box-shadow: var(--si-shadow-sm);
}
.author-box__avatar { flex: 0 0 auto; }
.author-box__avatar img {
        width: 84px;
        height: 84px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--si-primary-soft);
        box-shadow: var(--si-shadow-sm);
}
.author-box__kicker {
        margin: 0;
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--si-ink, #006DA6);
}
.author-box__name {
        margin: 4px 0 0;
        font-family: var(--si-font-head);
        font-size: 1.28rem;
        font-weight: 800;
        color: var(--si-dark);
        letter-spacing: -0.01em;
}
.author-box__bio { margin: 8px 0 0; color: var(--si-body); font-size: 15px; line-height: 1.7; }

/* 34.8 — Comments: head with count chip ------------------------------------------------------------- */
.comments-area { margin-top: 64px; padding-top: 50px; border-top: 1px solid var(--si-border); }
.comments-head { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.comments-title {
        margin: 0;
        font-family: var(--si-font-head);
        font-size: 1.28rem;
        color: var(--si-dark);
        display: inline-flex;
        align-items: center;
        gap: 14px;
}
.comments-title__chip {
        min-width: 46px;
        height: 46px;
        padding: 0 8px;
        border-radius: 999px;
        background: var(--si-btn, #0077B6);
        color: #fff;
        display: grid;
        place-items: center;
        font-weight: 800;
        font-size: 1.05rem;
        font-family: var(--si-font-head);
        box-shadow: 0 8px 20px rgba(0, 167, 228, 0.35);
}
.comments-head__rule { flex: 1; height: 1px; background: var(--si-border); }

/* 34.9 — Comment cards ------------------------------------------------------------------------------ */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 18px; padding-left: 34px; position: relative; }
.comment-list .children::before {
        content: "";
        position: absolute;
        left: 14px;
        top: -4px;
        bottom: 10px;
        width: 2px;
        border-radius: 2px;
        background: var(--si-border);
}
.comment-card__inner {
        display: flex;
        gap: 18px;
        background: var(--si-card, #fff);
        border: 1px solid var(--si-border);
        border-radius: 18px;
        padding: 22px 24px;
        margin-bottom: 18px;
        box-shadow: var(--si-shadow-sm);
        transition: border-color var(--si-ease, 0.25s ease);
}
.comment-card__inner:hover { border-color: rgba(0, 167, 228, 0.45); }
.comment-card--pending .comment-card__inner { border-style: dashed; }
.comment-card__avatar { flex: 0 0 auto; }
.comment-card__avatar img { border-radius: 50%; object-fit: cover; }
.comment-card__main { flex: 1; min-width: 0; }
.comment-card__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comment-card__who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; min-width: 0; }
.comment-card__author { font-family: var(--si-font-head); font-weight: 800; color: var(--si-dark); font-style: normal; }
.comment-card__badge {
        background: var(--si-primary-soft);
        color: var(--si-ink, #006DA6);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 4px 11px;
        border-radius: 999px;
}
.comment-card__time { font-size: 13px; color: var(--si-body); text-decoration: none; }
.comment-card__time:hover { color: var(--si-primary-dark); }
.comment-card__reply a {
        font-family: var(--si-font-head);
        font-size: 12.5px;
        font-weight: 800;
        color: var(--si-primary-dark);
        text-decoration: none;
        border: 1px solid var(--si-border);
        padding: 6px 15px;
        border-radius: 999px;
        transition: all var(--si-ease, 0.25s ease);
}
.comment-card__reply a:hover {
        background: var(--si-primary);
        border-color: var(--si-primary);
        color: #fff;
}
.comment-card__text { margin-top: 9px; }
.comment-card__text p { margin: 0 0 0.6em; color: var(--si-body); line-height: 1.72; }
.comment-card__text p:last-child { margin-bottom: 0; }
.comment-card__edit { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--si-primary-dark); text-decoration: underline; text-underline-offset: 3px; }

/* 34.10 — Respond panel ------------------------------------------------------------------------------ */
.comment-respond {
        margin-top: 38px;
        background: var(--si-alt);
        border: 1px solid var(--si-border);
        border-radius: 22px;
        padding: clamp(24px, 3.4vw, 40px);
}
.comment-reply-title {
        margin: 0 0 6px;
        font-family: var(--si-font-head);
        font-size: 1.28rem;
        color: var(--si-dark);
        letter-spacing: -0.01em;
}
.comment-reply-title #cancel-comment-reply-link {
        margin-left: 12px;
        font-size: 13px;
        font-weight: 700;
        color: var(--si-accent);
        text-decoration: none;
}
.comment-notes { margin: 0 0 18px; font-size: 13.5px; color: var(--si-body); }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form .comment-notes,
.comment-form .comment-form-comment,
.comment-form .form-submit,
.comment-form .comment-form-cookies-consent,
.comment-form .logged-in-as { grid-column: 1 / -1; }
.comment-form label { display: block; font-family: var(--si-font-head); font-weight: 700; font-size: 13.5px; color: var(--si-dark); margin-bottom: 7px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
        width: 100%;
        padding: 14px 17px;
        border: 1px solid var(--si-border);
        border-radius: 12px;
        font-family: inherit;
        font-size: 15px;
        background: #fff;
        color: var(--si-dark);
        transition: border-color var(--si-ease, 0.2s ease), box-shadow var(--si-ease, 0.2s ease);
}
.comment-form input:focus, .comment-form textarea:focus {
        outline: none;
        border-color: var(--si-primary);
        box-shadow: 0 0 0 3px var(--si-primary-soft);
}
.comment-form textarea { resize: vertical; min-height: 150px; }
.comment-form .submit { border: 0; cursor: pointer; justify-self: start; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent input[type="checkbox"] { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--si-primary); }
.comment-form-cookies-consent label { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--si-body); }
.comment-pagination { margin-top: 26px; }

/* 34.11 — Dark-mode counterparts ----------------------------------------------------------------------- */
[data-si-theme="dark"] .post-hero__media { background: var(--si-card, #1C325D); }
[data-si-theme="dark"] .post-nav__item,
[data-si-theme="dark"] .author-box,
[data-si-theme="dark"] .comment-card__inner { background: var(--si-card, #1C325D); }
[data-si-theme="dark"] .post-nav__title,
[data-si-theme="dark"] .author-box__name,
[data-si-theme="dark"] .comment-card__author,
[data-si-theme="dark"] .comments-title,
[data-si-theme="dark"] .comment-reply-title,
[data-si-theme="dark"] .comment-form label { color: var(--si-dark); }
[data-si-theme="dark"] .comments-head__rule,
[data-si-theme="dark"] .comment-list .children::before { background: var(--si-border); }
[data-si-theme="dark"] .comment-respond { background: var(--si-alt); }
[data-si-theme="dark"] .comment-form input[type="text"],
[data-si-theme="dark"] .comment-form input[type="email"],
[data-si-theme="dark"] .comment-form input[type="url"],
[data-si-theme="dark"] .comment-form textarea { background: var(--si-card, #1C325D); }

/* 34.12 — Responsive ------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
        .post-hero { padding-bottom: clamp(56px, 8vw, 84px); }
        .post-hero__media { margin-top: -34px; border-radius: 18px; box-shadow: var(--si-shadow); }
}
@media (max-width: 700px) {
        .post-nav { grid-template-columns: 1fr; }
        .post-nav__item--next { text-align: left; align-items: flex-start; }
        .author-box { flex-direction: column; gap: 16px; padding: 24px; }
        .comment-card__inner { flex-direction: column; gap: 12px; padding: 20px; }
        .comment-list .children { padding-left: 18px; }
        .comment-form { grid-template-columns: 1fr; }
        .single-post__layout { padding-top: 34px; }
        .post-hero__media { margin-top: 0; }
}

/* ============================================================================================
   35. GUTENBERG DESIGN SYSTEM (v10) — modern page conceptions with core blocks.
   Covers the constrained layout, wide/full breakouts, columns, media-text, groups,
   buttons, covers, details/FAQ, spacers, plus the si-* pattern vocabulary the demo
   pages use. Flat colors only — zero gradients.
   ============================================================================================ */

/* 35.1 — Block defaults inside prose: breathing room between every block ------------------- */
.prose > * + * { margin-top: 1.35em; }
.prose > .wp-block-group,
.prose > .wp-block-columns,
.prose > .wp-block-media-text { margin-top: 2.1em; }
.prose > .wp-block-group + .wp-block-group { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }

/* 35.2 — Wide / full breakouts from the 760px column (desktop only) -------------------------- */
.prose > .alignwide, .prose > .alignfull { max-width: none; width: auto; }
@media (min-width: 1140px) {
        .prose > .alignwide {
                width: min(1120px, calc(100vw - 48px));
                margin-left: calc(50% - min(1120px, calc(100vw - 48px)) / 2);
                margin-right: 0;
        }
        .prose > .alignfull {
                width: min(calc(100vw - 48px), 1560px);
                margin-left: calc(50% - min(calc(100vw - 48px), 1560px) / 2);
                margin-right: 0;
        }
}
@media (min-width: 1140px) {
        .single-page .prose > .alignwide {
                width: min(1120px, calc(100vw - 48px));
                margin-left: calc(50% - min(1120px, calc(100vw - 48px)) / 2);
                margin-right: 0;
        }
}

/* 35.3 — Groups: layout-constrained children center themselves -------------------------------- */
.prose .wp-block-group { position: relative; }
.prose .wp-block-group > * + * { margin-top: 1.1em; }
.prose .wp-block-group.is-layout-constrained { display: block; }
.prose .wp-block-group.is-layout-constrained > * { max-width: 100%; margin-left: auto; margin-right: auto; }

/* 35.4 — Columns ------------------------------------------------------------------------------- */
.prose .wp-block-columns { display: flex; gap: clamp(24px, 3.4vw, 44px); }
.prose .wp-block-column { flex: 1; min-width: 0; }
.prose .wp-block-column > *:first-child { margin-top: 0; }
.prose .wp-block-column > * + * { margin-top: 1.1em; }
@media (max-width: 780px) {
        .prose .wp-block-columns { display: block; }
        .prose .wp-block-columns .wp-block-column + .wp-block-column { margin-top: 30px; }
}

/* 35.5 — Photo + text feature rows (si-media) & media-text fallback ----------------- */
.prose .wp-block-columns.si-media {
        background: var(--si-alt);
        border-radius: var(--si-radius-xl, 24px);
        padding: clamp(18px, 2.4vw, 30px);
        box-shadow: var(--si-shadow-sm);
        align-items: center;
}
.prose .wp-block-columns.si-media .wp-block-image { margin: 0; }
.prose .wp-block-columns.si-media .wp-block-image img {
        border-radius: 16px;
        aspect-ratio: 4 / 3;
        object-fit: cover;
}
.prose .wp-block-column .wp-block-image img { border-radius: 16px; }
.prose .wp-block-media-text {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: clamp(22px, 3vw, 40px);
        border-radius: var(--si-radius-xl, 24px);
        background: var(--si-alt);
        padding: clamp(18px, 2.4vw, 30px);
        box-shadow: var(--si-shadow-sm);
}
.prose .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 1fr; }
.prose .wp-block-media-text .wp-block-media-text__media { margin: 0; }
.prose .wp-block-media-text img { border-radius: 16px; width: 100%; height: 100%; object-fit: cover; display: block; }
.prose .wp-block-media-text .wp-block-media-text__content { padding: 10px 6px 10px 4px; }
.prose .wp-block-media-text .wp-block-media-text__content > *:first-child { margin-top: 0; }
.prose .wp-block-media-text .wp-block-media-text__content > * + * { margin-top: 1em; }
@media (max-width: 780px) {
        .prose .wp-block-media-text,
        .prose .wp-block-media-text.has-media-on-the-right { display: block; }
        .prose .wp-block-media-text .wp-block-media-text__media { margin-bottom: 20px; }
        .prose .wp-block-media-text .wp-block-media-text__content { padding: 0; }
}

/* 35.6 — Buttons (pill, harmonized with the theme buttons) ------------------------------------------- */
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.prose .wp-block-button { margin: 0; }
.prose .wp-block-button__link {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        background: var(--si-btn, #0077B6);
        color: #fff;
        border-radius: 999px;
        padding: 14px 30px;
        font-family: var(--si-font-head);
        font-weight: 700;
        font-size: 15.5px;
        line-height: 1.2;
        text-decoration: none;
        box-shadow: 0 10px 26px rgba(0, 167, 228, 0.32);
        transition: transform var(--si-ease, 0.25s ease), background var(--si-ease, 0.25s ease), box-shadow var(--si-ease, 0.25s ease);
}
.prose .wp-block-button__link:hover { background: var(--si-btn-hover, #005F8C); color: #fff; transform: translateY(-2px); }
.prose .wp-block-button.is-style-outline > .wp-block-button__link {
        background: transparent;
        color: var(--si-primary-dark);
        border: 2px solid var(--si-primary);
        box-shadow: none;
}
.prose .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--si-primary-soft); color: var(--si-primary-dark); }
[data-si-theme="dark"] .prose .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--si-primary); }

/* 35.7 — Cover blocks (flat color panels with content) ------------------------------------------------ */
.prose .wp-block-cover {
        border-radius: var(--si-radius-xl, 24px);
        overflow: hidden;
        min-height: 0;
        padding: clamp(28px, 4vw, 56px);
        display: flex;
        align-items: center;
}
.prose .wp-block-cover .wp-block-cover__inner-container { width: 100%; max-width: 900px; margin: 0 auto; }
.prose .wp-block-cover .wp-block-cover__inner-container > *:first-child { margin-top: 0; }
.prose .wp-block-cover .wp-block-cover__inner-container > * + * { margin-top: 1em; }

/* 35.8 — Details / FAQ accordion ------------------------------------------------------------------------ */
.prose details.wp-block-details {
        border: 1px solid var(--si-border);
        border-radius: 14px;
        background: var(--si-card, #fff);
        box-shadow: var(--si-shadow-sm);
        padding: 0;
        margin-top: 0.9em;
        overflow: hidden;
}
.prose details.wp-block-details summary {
        cursor: pointer;
        list-style: none;
        padding: 17px 52px 17px 22px;
        font-family: var(--si-font-head);
        font-weight: 700;
        font-size: 1.02rem;
        color: var(--si-dark);
        position: relative;
}
.prose details.wp-block-details summary::-webkit-details-marker { display: none; }
.prose details.wp-block-details summary::after {
        content: "+";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--si-primary-soft);
        color: var(--si-primary-dark);
        font-weight: 800;
        display: grid;
        place-items: center;
        transition: transform var(--si-ease, 0.2s ease);
}
.prose details.wp-block-details[open] summary::after { content: "\2212"; transform: translateY(-50%) rotate(180deg); }
.prose details.wp-block-details > *:not(summary) { padding-left: 22px; padding-right: 22px; }
.prose details.wp-block-details > *:last-child { padding-bottom: 20px; margin-bottom: 0; }

/* 35.9 — Separator, spacer, embed, table -------------------------------------------------------------------- */
.prose .wp-block-separator { border: 0; height: 1px; background: var(--si-border); margin: 2.6em 0; }
.prose .wp-block-separator.is-style-wide { margin-inline: -20px; }
.prose .wp-block-spacer { clear: both; }
.prose .wp-block-embed__wrapper, .prose .wp-block-embed iframe { max-width: 100%; }
.prose .wp-block-embed { margin: 2em 0; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .wp-block-embed.is-type-video .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.prose .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose .wp-block-table th {
        text-align: left;
        font-family: var(--si-font-head);
        font-size: 13px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--si-primary-dark);
        border-bottom: 2px solid var(--si-primary);
        padding: 12px 14px;
}
.prose .wp-block-table td { border-bottom: 1px solid var(--si-border); padding: 12px 14px; color: var(--si-body); }

/* 35.10 — PATTERN VOCABULARY — si-* classes used by demo pages and block patterns ----------------------------- */

/* Kicker chip inside content */
.prose .si-kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--si-ink, #006DA6);
        background: var(--si-primary-soft);
        padding: 7px 15px;
        border-radius: 999px;
        margin: 0 0 18px;
}
.prose .si-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--si-primary); }

/* Lead paragraph */
.prose .si-lead { font-size: 1.16em; line-height: 1.68; color: var(--si-dark); font-weight: 500; }

/* Colored bands (group backgrounds) */
.prose .si-band {
        border-radius: var(--si-radius-xl, 24px);
        padding: clamp(26px, 3.6vw, 48px);
        box-shadow: var(--si-shadow-sm);
}
.prose .si-band--soft { background: var(--si-primary-soft); }
.prose .si-band--grey { background: var(--si-alt); }
.prose .si-band--primary { background: var(--si-btn, #0077B6); color: #fff; }
.prose .si-band--primary h2, .prose .si-band--primary h3 { color: #fff; }
.prose .si-band--primary p { color: rgba(255, 255, 255, 0.92); }
.prose .si-band--dark { background: #1C325D; color: #fff; }
.prose .si-band--dark h2, .prose .si-band--dark h3 { color: #fff; }
.prose .si-band--dark p { color: rgba(255, 255, 255, 0.85); }
.prose .si-band h2:first-child, .prose .si-band h3:first-child, .prose .si-band p:first-child { margin-top: 0; }

/* Fact numbers row */
.prose .si-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.prose .si-stats > * {
        background: var(--si-card, #fff);
        border: 1px solid var(--si-border);
        border-radius: 18px;
        padding: 26px 20px;
        box-shadow: var(--si-shadow-sm);
}
.prose .si-stats .si-stats__n {
        display: block;
        font-family: var(--si-font-head);
        font-size: clamp(1.9rem, 3.4vw, 2.7rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        color: var(--si-primary-dark);
        font-variant-numeric: tabular-nums;
        line-height: 1.1;
}
.prose .si-stats .si-stats__l { display: block; margin-top: 8px; font-size: 14.5px; color: var(--si-body); line-height: 1.45; }
.prose .si-band--primary .si-stats > *, .prose .si-band--dark .si-stats > * { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); box-shadow: none; }
.prose .si-band--primary .si-stats .si-stats__n, .prose .si-band--dark .si-stats .si-stats__n { color: #fff; }
.prose .si-band--primary .si-stats .si-stats__l, .prose .si-band--dark .si-stats .si-stats__l { color: rgba(255, 255, 255, 0.85); }

/* Feature cards grid */
.prose .si-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
/* v14.5 - the Contact page renders inside the narrow column: force a clean
   2x2 desk grid (auto-fit would orphan the 4th card into a 3+1 wrap). */
.prose .si-cards--4 { grid-template-columns: repeat(2, 1fr); }
.prose .si-cards--4 .si-card { padding: 24px 22px 22px; }
@media (max-width: 700px) { .prose .si-cards--4 { grid-template-columns: 1fr; } }
.prose .section-head { margin-bottom: 44px; }
.prose .si-cards .si-card p { font-size: 14.5px; }
.prose .si-card {
        background: var(--si-card, #fff);
        border: 1px solid var(--si-border);
        border-radius: 18px;
        padding: 26px 26px 24px;
        box-shadow: var(--si-shadow-sm);
        transition: transform var(--si-ease, 0.25s ease), box-shadow var(--si-ease, 0.25s ease), border-color var(--si-ease, 0.25s ease);
}
.prose .si-card:hover { transform: translateY(-4px); box-shadow: var(--si-shadow); border-color: rgba(0, 171, 236, 0.45); }
.prose .si-card__n {
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 13px;
        background: var(--si-primary-soft);
        color: var(--si-ink, #006DA6);
        font-family: var(--si-font-head);
        font-weight: 800;
        font-size: 17px;
        margin-bottom: 14px;
}
.prose .si-card h3, .prose .si-card .si-card__t { font-family: var(--si-font-head); font-size: 1.06rem; font-weight: 800; color: var(--si-dark); margin: 0 0 8px; }
.prose .si-card p { margin: 0; font-size: 15px; color: var(--si-body); line-height: 1.65; }

/* Numbered steps */
.prose .si-steps { counter-reset: si-step; display: grid; gap: 14px; }
.prose .si-steps > li, .prose ul.si-steps > li {
        counter-increment: si-step;
        list-style: none;
        position: relative;
        padding: 18px 20px 18px 66px;
        background: var(--si-card, #fff);
        border: 1px solid var(--si-border);
        border-radius: 16px;
        box-shadow: var(--si-shadow-sm);
}
.prose .si-steps > li::before {
        content: counter(si-step);
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--si-primary);
        color: #fff;
        font-family: var(--si-font-head);
        font-weight: 800;
        font-size: 15px;
        display: grid;
        place-items: center;
}

/* Photo duo */
.prose .si-figure-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 2.2em 0; }
.prose .si-figure-duo figure { margin: 0; }
.prose .si-figure-duo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--si-shadow); display: block; aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .prose .si-figure-duo { grid-template-columns: 1fr; } }

/* Quote card with attribution */
.prose .si-quote { position: relative; }
.prose .si-quote figcaption, .prose .si-quote .si-quote__who { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--si-primary-dark); text-align: left; font-style: normal; }

/* CTA band with buttons */
.prose .si-cta {
        background: #1C325D;
        color: #fff;
        border-radius: 28px;
        padding: clamp(26px, 3.2vw, 44px);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        flex-wrap: wrap;
        box-shadow: var(--si-shadow-lg);
}
.prose .si-cta .si-cta__body { flex: 1 1 260px; }
.prose .si-cta h2 { font-family: var(--si-font-head); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: #fff; margin: 0 0 10px; letter-spacing: -0.01em; }
.prose .si-cta p { margin: 0; color: rgba(255, 255, 255, 0.82); line-height: 1.65; }
.prose .si-cta .wp-block-buttons { flex: 0 0 auto; }
[data-si-theme="dark"] .prose .si-cta { background: var(--si-btn, #0077B6); }

/* Checklist */
.prose .si-checklist { list-style: none; padding-left: 0; }
.prose .si-checklist li { position: relative; padding-left: 34px; margin-top: 0.7em; }
.prose .si-checklist li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.14em;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--si-primary-soft);
}
.prose .si-checklist li::after {
        content: "";
        position: absolute;
        left: 6px;
        top: 0.42em;
        width: 9px;
        height: 5px;
        border-left: 2.5px solid var(--si-primary-dark);
        border-bottom: 2.5px solid var(--si-primary-dark);
        transform: rotate(-45deg);
}

/* 35.11 — Dark-mode counterparts -------------------------------------------------------------------------------- */
[data-si-theme="dark"] .prose .si-band--grey { background: var(--si-alt); }
[data-si-theme="dark"] .prose .si-band--soft { background: rgba(0, 167, 228, 0.12); }
[data-si-theme="dark"] .prose .si-stats > *,
[data-si-theme="dark"] .prose .si-card,
[data-si-theme="dark"] .prose .si-steps > li,
[data-si-theme="dark"] .prose details.wp-block-details { background: var(--si-card, #1C325D); }
[data-si-theme="dark"] .prose .si-card h3,
[data-si-theme="dark"] .prose details.wp-block-details summary { color: var(--si-dark); }

/* 35.12 — Responsive -------------------------------------------------------------------------------------------- */
@media (max-width: 760px) {
        .prose > .wp-block-group, .prose > .wp-block-columns, .prose > .wp-block-media-text { margin-top: 1.6em; }
        .prose .si-stats { grid-template-columns: 1fr; }
        .prose .si-cta { flex-direction: column; align-items: flex-start; }
        .prose .post-hero__title { font-size: 1.75rem; }
        .post-hero__kicker { font-size: 12px; padding: 7px 13px; }
        .post-hero__meta { gap: 10px 12px; font-size: 14px; }
        .post-hero__author img { width: 36px; height: 36px; }
}

/* 35.13 — Reduced motion: kill transforms added here ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
        .prose .si-card:hover, .post-nav__item:hover, .prose .wp-block-button__link:hover { transform: none; }
}


/* 36.1 — Alt section background (still used by page templates) */
.section--alt { background: var(--si-alt); }

/* =====================================================================================
   37. BLOCK PAGE CANVAS (v12) — pages designed with Gutenberg blocks
   -------------------------------------------------------------------------------------
   Every demo page (including the three homepage concepts) is real block
   content rendered on a full-width canvas. This section styles the si-*
   block vocabulary outside .prose: full-width bands, cover hero, animated
   counters, news grid, gallery, programme index and allocation bars.
   Flat solid colors only — no gradients anywhere.
   ===================================================================================== */

/* 37.1 — Canvas base -------------------------------------------------------------------------------- */
.si-canvas { width: 100%; overflow-x: clip; padding-block: clamp(44px, 6vw, 72px) clamp(44px, 6vw, 78px); }
.si-canvas > * {
        max-width: var(--si-container, 1200px);
        margin-left: auto;
        margin-right: auto;
        padding-left: clamp(18px, 4vw, 48px);
        padding-right: clamp(18px, 4vw, 48px);
}
/* v13.5 — LAYOUT GUARANTEE: a component's own `margin: 0 0 X` shorthand used to
   zero the horizontal auto-margins and glue whole sections (CTA bands, news grids,
   galleries, step lists) to the LEFT edge while neighbouring sections stayed
   centered — the "sections left and right" report. Horizontal centering of a
   top-level canvas section can no longer be overridden by any component rule. */
.si-canvas > * { margin-left: auto !important; margin-right: auto !important; }
/* v13.5 — vertical rhythm: consecutive top-level sections keep consistent,
   generous breathing room instead of butting against each other. */
.si-canvas > * + * { margin-block-start: clamp(26px, 3.5vw, 44px); }
/* v13.6 — FLUSH FULL-BLEED BANDS. The rhythm rule above also landed on colored
   full-width bands, which have their own huge internal padding — the result
   was a 26–44px strip of page background between every band and the section
   before it. Bands (and any other alignfull block that is not the first
   section) are now flush; the band padding IS the spacing. The :first-child
   negative pull-up for covers/sliders is preserved via :not(:first-child). */
.si-canvas > .si-band,
.si-canvas > .alignfull:not(:first-child) { margin-block: 0 !important; }
/* v14.3 — FLUSH END: a full-bleed band that CLOSES a page must sit flush
   against the footer wave. The old bottom canvas padding left a 100px+ strip
   of empty page-white between the last navy band and the footer — the “white
   empty gap” report. Mirror of the first-child pull-up above. */
.si-canvas > .si-band:last-child,
.si-canvas > .alignfull:last-child { margin-block-end: calc(clamp(44px, 6vw, 78px) * -1) !important; }
/* Pages whose content opens with a full-bleed cover hero must not inherit the
   canvas top padding — pull the cover back up flush under the page hero. */
.si-canvas > .alignfull:first-child,
.si-canvas > .si-cover:first-child,
.si-canvas > .si-hero-slider:first-child { margin-block-start: calc(clamp(44px, 6vw, 72px) * -1); }
.si-canvas > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
/* Concept D's hero slider is rendered by a shortcode block, so it has no
   alignfull class — give the direct-child slider the same full-bleed pass
   (auto margins + no max-width = full width, no negative-margin hack). */
.si-canvas > .si-hero-slider { max-width: none; padding-left: 0; padding-right: 0; }
.si-canvas > .alignwide { max-width: min(1280px, calc(100vw - 32px)); }
.si-canvas .wp-block-group { position: relative; }
.si-canvas .wp-block-group > * + * { margin-top: 1.1em; }
.si-canvas .wp-block-columns { display: flex; gap: clamp(24px, 3.4vw, 44px); }
.si-canvas .wp-block-column { flex: 1; min-width: 0; }
.si-canvas .wp-block-column > *:first-child { margin-top: 0; }
.si-canvas .wp-block-column > * + * { margin-top: 1.1em; }
@media (max-width: 780px) {
        .si-canvas .wp-block-columns { display: block; }
        .si-canvas .wp-block-columns .wp-block-column + .wp-block-column { margin-top: 30px; }
}

/* 37.2 — Full-width colored bands ------------------------------------------------------------------- */
.si-canvas .si-band { padding: clamp(64px, 9vw, 112px) 0; }
.si-canvas .si-band--dark { background: #1C325D; color: #fff; }
/* v14.3 — the “cyan” band carries big white numbers and 15px white labels;
   the bright accent cyan #00ABEC topped out at 2.75:1. The band now uses the
   deep interactive blue so every text on it passes WCAG AA. */
.si-canvas .si-band--cyan { background: var(--si-btn, #0077B6); color: #fff; }
.si-canvas .si-band--red { background: var(--si-donate); color: #fff; }
.si-canvas .si-band--light { background: var(--si-alt); }
.si-canvas .si-band--cream { background: var(--si-cream, #FDF9F3); }
.si-canvas .si-band--dark h1, .si-canvas .si-band--dark h2, .si-canvas .si-band--dark h3,
.si-canvas .si-band--cyan h1, .si-canvas .si-band--cyan h2, .si-canvas .si-band--cyan h3,
.si-canvas .si-band--red h1, .si-canvas .si-band--red h2, .si-canvas .si-band--red h3 { color: #fff; margin-top: 0; }
.si-canvas .si-band--dark p, .si-canvas .si-band--cyan p, .si-canvas .si-band--red p { color: rgba(255, 255, 255, 0.85); }
.si-canvas .si-band .container { max-width: var(--si-container, 1200px); margin-inline: auto; padding-inline: clamp(18px, 4vw, 48px); }

/* 37.3 — Cover hero --------------------------------------------------------------------------------- */
.si-canvas .si-cover { text-align: center; display: flex; align-items: center; }
/* v13.1 — photo-less covers: navy ground so white hero text always reads
   (demo builder adds si-cover--solid; :has() covers covers edited by hand). */
.si-canvas .si-cover--solid,
.si-canvas .si-cover:not(:has(.wp-block-cover__image-background)) { background: var(--si-dark); }
.si-canvas .si-cover .wp-block-cover__inner-container { width: 100%; }
.si-canvas .si-cover .container.si-cover__inner {
        display: grid;
        justify-items: center;
        gap: 4px;
        padding-block: clamp(48px, 9vh, 96px);
        max-width: var(--si-container, 1200px);
        margin-inline: auto;
        padding-inline: clamp(20px, 4vw, 48px);
}
.si-canvas .si-cover .si-cover__title {
        font-family: var(--si-font-head);
        font-size: clamp(2.35rem, 5.6vw, 4.1rem);
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.025em;
        color: #fff;
        max-width: 24ch;
        margin: 12px 0 6px;
}
.si-canvas .si-cover .si-lead { color: rgba(255, 255, 255, 0.9); max-width: 66ch; margin-inline: auto; }
.si-canvas .si-cover .section-head__kicker { color: #fff; background: rgba(255, 255, 255, 0.14); }
.si-canvas .si-cover .section-head__kicker::before { background: var(--si-accent); }
.si-canvas .si-cover .si-btns--center { margin-top: 22px; }

/* 37.4 — Buttons in the canvas ---------------------------------------------------------------------- */
.si-canvas .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.si-canvas .si-btns--center { justify-content: center; }
.si-canvas .wp-block-button { margin: 0; }
.si-canvas .wp-block-button__link {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        background: var(--si-btn, #0077B6);
        color: #fff;
        border-radius: 999px;
        padding: 14px 30px;
        font-family: var(--si-font-head);
        font-weight: 700;
        font-size: 15.5px;
        line-height: 1.2;
        text-decoration: none;
        box-shadow: 0 10px 26px rgba(0, 167, 228, 0.32);
        transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.si-canvas .wp-block-button__link:hover { background: var(--si-btn-hover, #005F8C); color: #fff; transform: translateY(-2px); }
.si-canvas .wp-block-button.is-style-outline > .wp-block-button__link {
        background: transparent;
        color: var(--si-primary-dark);
        border: 2px solid var(--si-primary);
        box-shadow: none;
}
.si-canvas .si-band--dark .wp-block-button.is-style-outline > .wp-block-button__link,
.si-canvas .si-cover .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.si-canvas .si-band--dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.si-canvas .si-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* 37.5 — Animated counters band ---------------------------------------------------------------------- */
.si-canvas .si-stats--counters {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: clamp(22px, 3vw, 36px);
        text-align: center;
}
.si-canvas .si-stats--counters > * { padding: 6px; }
.si-canvas .si-stats--counters .si-stats__n {
        font-family: var(--si-font-head);
        font-size: clamp(2.4rem, 4.6vw, 3.6rem);
        font-weight: 800;
        letter-spacing: -0.03em;
        color: var(--si-dark);
        font-variant-numeric: tabular-nums;
        line-height: 1.05;
        margin: 0;
}
/* v14.4 — brand signature: a flat coral tick under every counter number. */
.si-canvas .si-stats--counters .si-stats__n::after {
        content: ""; display: block; width: 34px; height: 3px;
        background: var(--si-accent); border-radius: 2px; margin: 12px auto 0;
}
.si-canvas .si-stats--counters .si-stats__l { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--si-muted, #5E6468); }
.si-canvas .si-band--dark .si-stats__n, .si-canvas .si-band--cyan .si-stats__n { color: #fff; }
.si-canvas .si-band--dark .si-stats__l, .si-canvas .si-band--cyan .si-stats__l { color: rgba(255, 255, 255, 0.82); }
@media (max-width: 980px) { .si-canvas .si-stats--counters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .si-canvas .si-stats--counters { grid-template-columns: 1fr; } }

/* 37.6 — News grid (core latest-posts) ----------------------------------------------------------------
   WP 7.x ships a family of compat rules for the legacy columns-N grid:
   1) .wp-block-latest-posts.is-grid:not(.is-layout-grid) { display:flex }
      (0,3,0) — forced our gap-wide flex row into a 2+1 wrap.
   2) .wp-block-latest-posts.columns-N:not(.is-layout-grid) li
      { width: calc(33.333% - .833em) } (0,3,1) + li { margin: 0 1.25em 1.25em 0 }
      — written for the FLEX fallback where % resolves against the whole row.
      Our display:grid override outranks rule 1 but CHANGES what the % in
      rule 2 resolves against: each 1fr TRACK instead of the container, so
      every card rendered 102px wide × 888px tall (a third of its column).
   Counter-measures below: ul.si-news.is-grid re-asserts the grid (0,3,1)
   and the li reset (0,3,2 + !important) neutralizes the fractional widths
   and margins for EVERY columns variant, whatever markup WP emits. */
.si-canvas ul.si-news { list-style: none; margin-block: 0; padding: 0; display: grid; gap: clamp(20px, 2.6vw, 30px); }
.si-canvas ul.si-news.is-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.si-canvas ul.si-news.columns-2.is-grid { grid-template-columns: repeat(2, 1fr); }
.si-canvas ul.si-news.columns-4.is-grid { grid-template-columns: repeat(4, 1fr); }
/* Neutralize WP 7.x fractional item widths + flex-era margins: cards must
   stretch to their grid track. !important — the compat sheet is inline. */
.si-canvas ul.si-news.is-grid > li { width: auto !important; max-width: none !important; margin: 0 !important; }
.si-canvas .si-news li {
        background: var(--si-card, #fff);
        border: 1px solid var(--si-border);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--si-shadow-sm);
        display: flex;
        flex-direction: column;
        padding-bottom: 22px;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.si-canvas .si-news li:hover { transform: translateY(-4px); box-shadow: var(--si-shadow); }
.si-canvas .si-news .wp-block-latest-posts__featured-image { margin: 0; }
.si-canvas .si-news li img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform 0.3s ease; }
.si-canvas .si-news li:hover img { transform: scale(1.04); }
.si-canvas .si-news .wp-block-latest-posts__post-title {
        font-family: var(--si-font-head);
        font-size: 1.1rem;
        font-weight: 800;
        line-height: 1.32;
        margin: 16px 0 6px;
        padding: 0 22px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
}
.si-canvas .si-news .wp-block-latest-posts__post-title a,
.si-canvas .si-news a.wp-block-latest-posts__post-title { color: var(--si-dark); text-decoration: none; }
.si-canvas .si-news .wp-block-latest-posts__post-title a:hover,
.si-canvas .si-news a.wp-block-latest-posts__post-title:hover { color: var(--si-primary-dark); }
.si-canvas .si-news time {
        display: inline-block;
        padding: 0 22px;
        color: var(--si-primary-dark);
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
}
.si-canvas .si-news .wp-block-latest-posts__post-excerpt { padding: 8px 22px 0; margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--si-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1020px) {
        .si-canvas ul.si-news.is-grid, .si-canvas ul.si-news.columns-4.is-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) { .si-canvas ul.si-news.is-grid { grid-template-columns: 1fr; } }

/* 37.7 — Gallery (core gallery + lightbox) --------------------------------------------------------------
   WP 7.1 renders core/gallery as has-nested-images + is-layout-flex and sizes
   each inner figure to a FRACTION of the gallery width (e.g. calc(50% -
   gap/2)) expecting one long flex row. Inside our 3-column grid that rule
   shrinks every image to a third of its cell. The width/max-width reset
   below (with !important — core loads inline) makes each figure fill its
   grid cell; the img rule then crops it to the shared 4/3 ratio. */
.si-canvas .si-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block: 0; }
.si-canvas .si-gallery figure.wp-block-image { width: auto !important; max-width: none !important; margin: 0; flex: none; }
.si-canvas .si-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; cursor: zoom-in; display: block; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.si-canvas .si-gallery img:hover { transform: scale(1.015); box-shadow: var(--si-shadow); }
@media (max-width: 900px) { .si-canvas .si-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .si-canvas .si-gallery { gap: 10px; } }

/* 37.8 — Programmes index ------------------------------------------------------------------------------ */
.si-canvas .si-index { list-style: none; margin-block: 0; padding: 0; }
.si-canvas .si-index li { padding: 18px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.si-canvas .si-index li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.si-canvas .si-index a { color: #fff; font-family: var(--si-font-head); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.32rem); text-decoration: none; transition: color 0.2s ease; }
.si-canvas .si-index a:hover { color: var(--si-primary); }
.si-canvas .si-index .si-index__d { color: rgba(255, 255, 255, 0.68); font-size: 0.95rem; }
.si-canvas .si-band--light .si-index li, .si-canvas .si-band--cream .si-index li { border-color: var(--si-border); }
.si-canvas .si-band--light .si-index a, .si-canvas .si-band--cream .si-index a { color: var(--si-dark); }
.si-canvas .si-band--light .si-index a:hover, .si-canvas .si-band--cream .si-index a:hover { color: var(--si-primary-dark); }
.si-canvas .si-band--light .si-index .si-index__d, .si-canvas .si-band--cream .si-index .si-index__d { color: var(--si-muted); }

/* 37.9 — Allocation bars (wp:html block) ----------------------------------------------------------------- */
.si-canvas .si-alloc { list-style: none; margin-block: 10px 0; padding: 0; display: grid; gap: 18px; }
.si-canvas .si-alloc li { display: grid; grid-template-columns: 1fr minmax(120px, 260px) 54px; align-items: center; gap: 14px; }
.si-canvas .si-alloc__label { color: #fff; font-weight: 600; font-size: 15px; line-height: 1.4; }
.si-canvas .si-alloc__track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.si-canvas .si-alloc__fill { display: block; height: 100%; border-radius: 999px; background: var(--si-primary); }
.si-canvas .si-alloc__pct { color: #fff; font-weight: 800; font-family: var(--si-font-head); text-align: right; font-variant-numeric: tabular-nums; }
.si-canvas .si-band--light .si-alloc__label, .si-canvas .si-band--cream .si-alloc__label { color: var(--si-dark); }
.si-canvas .si-band--light .si-alloc__track, .si-canvas .si-band--cream .si-alloc__track { background: rgba(28, 50, 93, 0.12); }
.si-canvas .si-band--light .si-alloc__pct, .si-canvas .si-band--cream .si-alloc__pct { color: var(--si-dark); }
@media (max-width: 640px) {
        .si-canvas .si-alloc li { grid-template-columns: 1fr 54px; }
        .si-canvas .si-alloc__track { grid-column: 1 / -1; order: 3; }
}

/* 37.10 — Progress fallback (cover hero) ------------------------------------------------------------------- */
.si-progress-fallback { max-width: 540px; margin: 16px auto 4px; display: grid; gap: 10px; }
.si-progress-fallback .c-progress { height: 14px; background: rgba(255, 255, 255, 0.25); }
.si-progress-fallback__meta { color: rgba(255, 255, 255, 0.92); margin: 0; font-size: 14.5px; }

/* 37.11 — Shared block vocabulary in the canvas (kicker, lead, media rows, cards, CTA, FAQ) ----------------- */
.si-canvas p.si-kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: var(--si-font-head);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--si-ink, #006DA6);
        background: var(--si-primary-soft);
        padding: 7px 15px;
        border-radius: 999px;
        margin: 0 0 14px;
}
/* v13.5 — the kicker is a TOP-LEVEL canvas child on demo pages: inline-level
   boxes ignore auto margins (they compute to 0), so the pill used to glue to
   the viewport's left edge while every block-level section stayed centered.
   A fit-content block gets the same starting point as its siblings' content
   edge: the auto-margin offset of the 1200px container + the shared
   canvas padding. */
.si-canvas > p.si-kicker {
        display: block;
        width: fit-content;
        margin-left: calc(max((100% - var(--si-container, 1200px)) / 2, 0px) + clamp(20px, 4vw, 48px)) !important;
        margin-right: auto;
}
.si-canvas .si-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--si-primary); display: inline-block; }
.si-canvas > p.si-kicker::before { margin-right: 8px; }
.si-canvas .si-lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.68; color: var(--si-dark); font-weight: 500; }
.si-canvas .wp-block-columns.si-media {
        background: var(--si-alt);
        border-radius: 24px;
        padding: clamp(18px, 2.4vw, 30px);
        box-shadow: var(--si-shadow-sm);
        align-items: center;
}
.si-canvas .si-media .wp-block-image { margin: 0; }
.si-canvas .si-media .wp-block-image img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.si-canvas .si-media .si-card__n {
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 13px;
        background: var(--si-primary-soft);
        color: var(--si-ink, #006DA6);
        font-family: var(--si-font-head);
        font-weight: 800;
        font-size: 16px;
        margin: 0 0 12px;
}
.si-canvas .si-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
/* v13.5 — count-aware grids (builder emits si-cards--N): a 5-card grid used to
   break 4+1 and strand the last card alone on row two. Every count now gets an
   intentional, fully balanced layout at every breakpoint. */
.si-canvas .si-cards--2 { grid-template-columns: repeat(2, 1fr); }
.si-canvas .si-cards--3 { grid-template-columns: repeat(3, 1fr); }
.si-canvas .si-cards--4 { grid-template-columns: repeat(4, 1fr); }
.si-canvas .si-cards--5 { grid-template-columns: repeat(6, 1fr); }
.si-canvas .si-cards--5 .si-card { grid-column: span 2; }
.si-canvas .si-cards--5 .si-card:nth-child(4),
.si-canvas .si-cards--5 .si-card:nth-child(5) { grid-column: span 3; }
.si-canvas .si-cards--6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) {
        .si-canvas .si-cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
        .si-canvas .si-cards--3, .si-canvas .si-cards--6 { grid-template-columns: repeat(2, 1fr); }
        .si-canvas .si-cards--5 { grid-template-columns: repeat(2, 1fr); }
        .si-canvas .si-cards--5 .si-card { grid-column: auto; }
        /* the nth-child span rules above are MORE specific — reset them explicitly */
        .si-canvas .si-cards--5 .si-card:nth-child(4),
        .si-canvas .si-cards--5 .si-card:nth-child(5) { grid-column: auto; }
        .si-canvas .si-cards--5 .si-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
        .si-canvas .si-cards--2, .si-canvas .si-cards--3, .si-canvas .si-cards--4,
        .si-canvas .si-cards--5, .si-canvas .si-cards--6 { grid-template-columns: 1fr; }
        .si-canvas .si-cards--5 .si-card:nth-child(4),
        .si-canvas .si-cards--5 .si-card:nth-child(5),
        .si-canvas .si-cards--5 .si-card:last-child { grid-column: auto; }
}
/* v13.5 — wide/hero images: cap their height, round the corners and give the
   caption a quiet editorial treatment instead of a raw edge-to-edge dump. */
.si-canvas .wp-block-image.alignwide img,
.si-canvas .wp-block-image.alignfull img { width: 100%; max-height: 74vh; object-fit: cover; }
.si-canvas .wp-block-image.alignwide img { border-radius: 20px; }
.si-canvas .wp-block-image.alignwide figcaption,
.si-canvas .wp-block-image.alignfull figcaption,
.si-canvas .wp-block-image .wp-element-caption { text-align: center; font-size: 13.5px; color: var(--si-muted, #5E6468); margin-top: 12px; }
.si-canvas .si-card {
        background: var(--si-card, #fff);
        border: 1px solid var(--si-border);
        border-radius: 18px;
        padding: 26px 26px 24px;
        box-shadow: var(--si-shadow-sm);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.si-canvas .si-card:hover { transform: translateY(-4px); box-shadow: var(--si-shadow); border-color: rgba(0, 167, 228, 0.4); }
.si-canvas .si-card__n {
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 13px;
        background: var(--si-primary-soft);
        color: var(--si-ink, #006DA6);
        font-family: var(--si-font-head);
        font-weight: 800;
        font-size: 17px;
        margin: 0 0 14px;
}
.si-canvas .si-card h3 { font-family: var(--si-font-head); font-size: 1.06rem; font-weight: 800; color: var(--si-dark); margin: 0 0 8px; }
.si-canvas .si-card p { margin: 0; font-size: 15px; color: var(--si-body); line-height: 1.65; }
.si-canvas .si-cta {
        background: #1C325D;
        color: #fff;
        border-radius: 28px;
        padding: clamp(28px, 4vw, 52px);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        flex-wrap: wrap;
        box-shadow: var(--si-shadow-lg);
        margin-block: clamp(40px, 6vw, 64px) 0;
}
.si-canvas .si-cta .si-cta__body { flex: 1 1 260px; }
.si-canvas .si-cta h2 { font-family: var(--si-font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; margin: 0 0 10px; letter-spacing: -0.01em; }
.si-canvas .si-cta p { margin: 0; color: rgba(255, 255, 255, 0.82); line-height: 1.65; }
.si-canvas .si-cta .wp-block-buttons { flex: 0 0 auto; }
.si-canvas .section-head { max-width: 720px; margin-bottom: clamp(34px, 4.5vw, 56px); }
.si-canvas .section-head__kicker {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-family: var(--si-font-head);
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--si-ink, #006DA6);
        background: var(--si-primary-soft);
        padding: 7px 14px;
        border-radius: 999px;
        margin: 0 0 16px;
}
.si-canvas .section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.si-canvas .section-head__title { font-family: var(--si-font-head); font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--si-dark); }
.si-canvas .section-head__lead { font-size: 18.5px; line-height: 1.65; margin: 0; color: var(--si-body); }
.si-canvas .section-head--light .section-head__title { color: #fff; }
.si-canvas .section-head--light .section-head__kicker { background: rgba(255, 255, 255, 0.14); color: #fff; }
.si-canvas .section-head--light .section-head__lead { color: rgba(255, 255, 255, 0.8); }
.si-canvas details.wp-block-details {
        border: 1px solid var(--si-border);
        border-radius: 14px;
        background: var(--si-card, #fff);
        box-shadow: var(--si-shadow-sm);
        padding: 0;
        margin-top: 0.9em;
        overflow: hidden;
}
.si-canvas details.wp-block-details summary {
        cursor: pointer;
        list-style: none;
        padding: 17px 52px 17px 22px;
        font-family: var(--si-font-head);
        font-weight: 700;
        font-size: 1.02rem;
        color: var(--si-dark);
        position: relative;
}
.si-canvas details.wp-block-details summary::-webkit-details-marker { display: none; }
.si-canvas details.wp-block-details summary::after {
        content: "+";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--si-primary-soft);
        color: var(--si-primary-dark);
        font-weight: 800;
        display: grid;
        place-items: center;
}
.si-canvas details.wp-block-details[open] summary::after { content: "\2212"; transform: translateY(-50%) rotate(180deg); }
.si-canvas details.wp-block-details > *:not(summary) { padding-left: 22px; padding-right: 22px; }
.si-canvas details.wp-block-details > *:last-child { padding-bottom: 20px; margin-bottom: 0; }
.si-canvas .si-checklist { list-style: none; padding-left: 0; }
.si-canvas .si-checklist li { position: relative; padding-left: 34px; margin-top: 0.7em; }
.si-canvas .si-checklist li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.14em;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--si-primary-soft);
}
.si-canvas .si-checklist li::after {
        content: "";
        position: absolute;
        left: 6px;
        top: 0.42em;
        width: 9px;
        height: 5px;
        border-left: 2.5px solid var(--si-primary-dark);
        border-bottom: 2.5px solid var(--si-primary-dark);
        transform: rotate(-45deg);
}
.si-canvas .wp-block-quote {
        border-left: 4px solid var(--si-primary);
        background: var(--si-card, #fff);
        border-radius: 18px;
        box-shadow: var(--si-shadow-sm);
        padding: 26px 28px;
        margin-block: 0;
}
.si-canvas .wp-block-quote p { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.65; color: var(--si-dark); }
.si-canvas .wp-block-quote cite { font-style: normal; font-weight: 700; color: var(--si-ink, #006DA6); font-size: 0.95rem; }

/* 37.12 — Shortcode sections inside the canvas (campaigns, gifts) ------------------------------------------ */
.si-canvas .section--campaigns { padding: 0; }
.si-canvas .donate-impact--embed { padding: 0; }
.si-canvas .donate-impact--embed .container { padding-inline: 0; }

/* 37.13 — Dark-mode counterparts ---------------------------------------------------------------------------- */
[data-si-theme="dark"] .si-canvas .si-band--light { background: #17243f; }
[data-si-theme="dark"] .si-canvas .si-band--cream { background: #101c33; }
[data-si-theme="dark"] .si-canvas .si-band--light .section-head__title,
[data-si-theme="dark"] .si-canvas .si-band--cream .section-head__title,
[data-si-theme="dark"] .si-canvas .si-stats__n { color: #fff; }
[data-si-theme="dark"] .si-canvas .si-card,
[data-si-theme="dark"] .si-canvas .si-news li,
[data-si-theme="dark"] .si-canvas details.wp-block-details,
[data-si-theme="dark"] .si-canvas .wp-block-quote { background: var(--si-card, #1C325D); }
[data-si-theme="dark"] .si-canvas .si-card h3,
[data-si-theme="dark"] .si-canvas .si-news .wp-block-latest-posts__post-title a,
[data-si-theme="dark"] .si-canvas .si-news a.wp-block-latest-posts__post-title,
[data-si-theme="dark"] .si-canvas details.wp-block-details summary,
[data-si-theme="dark"] .si-canvas .wp-block-quote p { color: var(--si-dark); }

/* 37.14 — Reduced motion -------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
        .si-canvas .si-card:hover, .si-canvas .si-news li:hover, .si-canvas .si-gallery img:hover,
        .si-canvas .wp-block-button__link:hover { transform: none; }
}

/* =====================================================================================
    38. v13.0.0 — EVENTS, PROJECTS, LOCATIONS + HERO SLIDER (Concept D)
   -------------------------------------------------------------------------------------
   The map of The Gambia uses the real national boundary (geoBoundaries
   gbOpen ADM0, CC BY 4.0) drawn as inline SVG. Flat solid colors only —
   zero gradients anywhere.
   ===================================================================================== */

/* 38.1 — CPT archive + single heroes ---------------------------------------------------------------- */
.si-cpt-hero { background: #1C325D; color: #fff; padding: clamp(56px, 9vw, 108px) 0 clamp(44px, 7vw, 84px); }
.si-cpt-hero .container { max-width: var(--si-container, 1200px); margin-inline: auto; padding-inline: clamp(18px, 4vw, 48px); }
.si-cpt-hero__kicker {
        display: inline-flex; align-items: center; gap: 8px;
        background: rgba(255, 255, 255, 0.12); color: #fff;
        border-radius: 999px; padding: 7px 16px;
        font-family: var(--si-font-head); font-size: 12px; font-weight: 700;
        letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px;
}
.si-cpt-hero__kicker .si-icon { width: 15px; height: 15px; }
.si-cpt-hero__kicker .si-cpt-hero__sector { background: var(--si-accent-ink, #C13B57); border-radius: 999px; padding: 3px 11px; margin-left: 6px; font-size: 12px; letter-spacing: 0.06em; }
.si-cpt-hero__title {
        font-family: var(--si-font-head); font-weight: 800; color: #fff;
        font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.02em;
        max-width: 26ch; margin: 0 0 16px;
}
.si-cpt-hero__lead { color: rgba(255, 255, 255, 0.85); font-size: clamp(1rem, 1.4vw, 1.13rem); line-height: 1.65; max-width: 68ch; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.si-cpt-hero__lead .si-icon { flex: 0 0 auto; color: var(--si-primary); }
.si-cpt-hero__crumb { color: rgba(255, 255, 255, 0.6); font-size: 14px; margin: 14px 0 0; }

/* 38.2 — Archive bodies + filters -------------------------------------------------------------------- */
.si-cpt-body { padding: clamp(44px, 6.5vw, 84px) 0 clamp(56px, 8vw, 96px); }
.si-cpt-body .container { max-width: var(--si-container, 1200px); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.si-cpt-body .si-loc-section { padding: 0; }
.si-filter {
        display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
        margin: 0 0 34px; padding: 6px;
        background: var(--si-card, #fff); border: 1px solid var(--si-border);
        border-radius: 999px; box-shadow: var(--si-shadow-sm);
        width: fit-content; max-width: 100%;
}
.si-filter__btn {
        appearance: none; border: 0; cursor: pointer;
        background: transparent; color: var(--si-body);
        font-family: var(--si-font-head); font-weight: 700; font-size: 14px;
        padding: 9px 18px; border-radius: 999px;
        transition: background 0.2s ease, color 0.2s ease;
}
.si-filter__btn:hover { background: var(--si-alt); color: var(--si-dark); }
.si-filter__btn.is-active { background: var(--si-btn, #0077B6); color: #fff; }
.si-filter__hint { color: var(--si-muted); font-size: 12.5px; padding-right: 12px; }
.si-filter-empty { grid-column: 1 / -1; color: var(--si-muted); font-size: 15px; padding: 18px 4px; }
.si-empty { background: var(--si-card, #fff); border: 1px dashed var(--si-border); border-radius: 18px; padding: clamp(30px, 5vw, 54px); text-align: center; color: var(--si-muted); font-size: 16px; }

/* 38.3 — Event cards --------------------------------------------------------------------------------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 30px); }
.event-card {
        background: var(--si-card, #fff); border: 1px solid var(--si-border);
        border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
        box-shadow: var(--si-shadow-sm);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--si-shadow); }
.event-card--past { opacity: 0.92; }
.event-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--si-alt); }
.event-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card__img--empty { display: grid; place-items: center; color: var(--si-primary); }
.event-card__img-icon .si-icon { width: 44px; height: 44px; opacity: 0.5; }
.event-card__date {
        position: absolute; left: 14px; bottom: -26px;
        background: var(--si-btn, #0077B6); color: #fff;
        border-radius: 14px; min-width: 58px; padding: 8px 10px 7px;
        text-align: center; font-family: var(--si-font-head);
        box-shadow: 0 10px 22px rgba(0, 90, 130, 0.35);
}
.event-card__date strong { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.event-card__date span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }
.event-card__body { padding: 34px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-card__when { display: flex; align-items: center; gap: 7px; color: var(--si-muted); font-size: 13.5px; font-weight: 600; margin: 0; }
.event-card__when .si-icon { color: var(--si-accent); }
.event-card__time { color: var(--si-muted); }
.event-card__title { font-family: var(--si-font-head); font-size: 19px; font-weight: 800; line-height: 1.3; margin: 0; }
.event-card__title a { color: var(--si-dark); text-decoration: none; }
.event-card__title a:hover { color: var(--si-primary); }
.event-card__excerpt { color: var(--si-body); font-size: 14.5px; line-height: 1.65; margin: 0; }
.event-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.event-card__venue { display: inline-flex; align-items: center; gap: 6px; color: var(--si-muted); font-size: 13px; }
.event-card__venue .si-icon { color: var(--si-primary); }

/* 38.4 — Project cards ------------------------------------------------------------------------------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 30px); }
.project-card {
        background: var(--si-card, #fff); border: 1px solid var(--si-border);
        border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
        box-shadow: var(--si-shadow-sm);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--si-shadow); }
.project-card__media { position: relative; aspect-ratio: 16 / 8.4; background: var(--si-alt); }
.project-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card__img--empty { display: grid; place-items: center; color: var(--si-primary); }
.project-card__status {
        position: absolute; top: 14px; left: 14px;
        display: inline-flex; align-items: center; gap: 7px;
        background: #fff; color: var(--si-dark);
        border-radius: 999px; padding: 6px 14px;
        font-family: var(--si-font-head); font-size: 12px; font-weight: 800;
        letter-spacing: 0.08em; text-transform: uppercase;
}
.project-card__status span { width: 9px; height: 9px; border-radius: 50%; }
.project-card__status--active span { background: #1B9E5C; }
.project-card__status--completed span { background: var(--si-dark); }
.project-card__status--upcoming span { background: #E8A200; }
.project-card__sector {
        position: absolute; right: 14px; top: 14px;
        background: var(--si-dark); color: #fff; border-radius: 999px;
        padding: 6px 13px; font-size: 12px; font-weight: 700;
}
.project-card__body { padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-card__title { font-family: var(--si-font-head); font-size: 20px; font-weight: 800; line-height: 1.3; margin: 0; }
.project-card__title a { color: var(--si-dark); text-decoration: none; }
.project-card__title a:hover { color: var(--si-primary); }
.project-card__text { color: var(--si-body); font-size: 14.5px; line-height: 1.65; margin: 0; }
.project-card__facts { list-style: none; margin: 0 0 4px; padding: 12px 0 0; border-top: 1px solid var(--si-border); display: grid; gap: 8px; }
.project-card__facts li { display: flex; align-items: flex-start; gap: 8px; color: var(--si-body); font-size: 13.5px; line-height: 1.5; }
.project-card__facts .si-icon { flex: 0 0 auto; color: var(--si-primary); margin-top: 2px; }
.project-card .link-more { margin-top: auto; }

/* 38.5 — The map of The Gambia ----------------------------------------------------------------------- */
.si-loc-section { padding: clamp(64px, 9vw, 112px) 0; }
.si-loc-section--light { background: var(--si-alt); }
.si-loc-section--dark { background: #1C325D; color: #fff; }
.si-loc-section--dark .section-head__title { color: #fff; }
.si-loc-section--dark .section-head__lead { color: rgba(255, 255, 255, 0.8); }
.si-loc-section--dark .section-head__kicker { color: #fff; background: rgba(255, 255, 255, 0.14); }
.si-map-wrap { margin: clamp(26px, 4vw, 44px) 0; }
.si-map {
        position: relative; max-width: 1040px; margin-inline: auto;
        padding: clamp(28px, 4.5vw, 52px) clamp(24px, 5vw, 64px) clamp(34px, 5vw, 56px);
        background: var(--si-card, #fff); border: 1px solid var(--si-border);
        border-radius: 26px; box-shadow: var(--si-shadow-sm);
}
.si-loc-section--dark .si-map { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.si-map__svg { display: block; width: 100%; height: auto; }
.si-map__svg path {
        fill: var(--si-alt); stroke: var(--si-primary); stroke-width: 1.6;
        stroke-linejoin: round; vector-effect: non-scaling-stroke;
        transition: fill 0.25s ease;
}
.si-loc-section--dark .si-map__svg path { fill: rgba(255, 255, 255, 0.1); stroke: var(--si-primary); }
.si-map__pin {
        position: absolute; transform: translate(-50%, -100%);
        appearance: none; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 2;
}
.si-map__pin-dot {
        display: block; width: 16px; height: 16px; border-radius: 50% 50% 50% 4px;
        transform: rotate(-45deg);
        background: var(--si-donate, #C13B57); border: 3px solid #fff;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
        transition: transform 0.2s ease, background 0.2s ease;
}
.si-map__pin.is-active .si-map__pin-dot, .si-map__pin:hover .si-map__pin-dot,
.si-map__pin:focus-visible .si-map__pin-dot { transform: rotate(-45deg) scale(1.25); background: var(--si-primary); }
.si-map__pin:focus-visible { outline: 2px solid var(--si-primary); outline-offset: 3px; border-radius: 10px; }
.si-map__pin-tip {
        position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
        background: var(--si-dark); color: #fff; font-family: var(--si-font-head);
        font-size: 12.5px; font-weight: 700; white-space: normal; text-align: center;
        width: max-content; max-width: min(250px, 46vw); line-height: 1.4;
        border-radius: 9px; padding: 5px 11px; opacity: 0; pointer-events: none;
        transition: opacity 0.2s ease;
}
/* Pins near the map edges open their tooltip inward so it never leaves the map. */
.si-map__pin--edge-l .si-map__pin-tip { left: -6px; transform: none; }
.si-map__pin--edge-r .si-map__pin-tip { left: auto; right: -6px; transform: none; }
/* Co-located locations share one pin: each member title gets its own line. */
.si-map__pin-tip-line { display: block; }
.si-map__pin-tip-line + .si-map__pin-tip-line { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.si-map__pin.is-active .si-map__pin-tip, .si-map__pin:hover .si-map__pin-tip,
.si-map__pin:focus-visible .si-map__pin-tip { opacity: 1; }
.si-map__wave {
        position: absolute; left: clamp(18px, 3.5vw, 44px); bottom: clamp(20px, 3.5vw, 40px);
        font-family: var(--si-font-head); font-size: 12px; font-weight: 700;
        letter-spacing: 0.22em; text-transform: uppercase; color: var(--si-muted);
        opacity: 0.65;
}
.si-loc-section--dark .si-map__wave { color: rgba(255, 255, 255, 0.55); }
.si-loc-section__more { text-align: center; margin: clamp(18px, 3vw, 30px) 0 0; }

/* 38.6 — Location cards ------------------------------------------------------------------------------ */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 30px); align-items: stretch; }
.loc-card {
        background: var(--si-card, #fff); border: 1.5px solid var(--si-border);
        border-radius: 20px; padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 12px;
        box-shadow: var(--si-shadow-sm);
        transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.loc-card:hover, .loc-card.is-active { transform: translateY(-5px); border-color: var(--si-primary); box-shadow: var(--si-shadow); }
.loc-card__head { display: flex; align-items: flex-start; gap: 12px; }
.loc-card__marker {
        flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px;
        background: rgba(0, 167, 228, 0.12); color: var(--si-primary);
        display: grid; place-items: center;
}
.loc-card__title { font-family: var(--si-font-head); font-size: 17.5px; font-weight: 800; line-height: 1.3; margin: 0; }
.loc-card__title a { color: var(--si-dark); text-decoration: none; }
.loc-card__title a:hover { color: var(--si-primary); }
.loc-card__kind { display: inline-block; color: var(--si-accent-ink, #C13B57); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.loc-card__text { color: var(--si-body); font-size: 14px; line-height: 1.65; margin: 0; }
.loc-card__facts { list-style: none; margin: 0 0 4px; padding: 12px 0 0; border-top: 1px solid var(--si-border); display: grid; gap: 8px; }
.loc-card__facts li { display: flex; align-items: flex-start; gap: 8px; color: var(--si-body); font-size: 13.5px; line-height: 1.55; }
.loc-card__facts .si-icon { flex: 0 0 auto; color: var(--si-primary); margin-top: 2px; }
.loc-card__facts a { color: var(--si-dark); text-decoration: none; font-weight: 600; }
.loc-card .link-more { margin-top: auto; }

/* 38.7 — Single layouts (events, projects, locations) -------------------------------------------------- */
.si-cpt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(30px, 4.5vw, 56px); align-items: start; }
.si-cpt-main { min-width: 0; }
.si-cpt-main > :first-child { margin-top: 0; }
.si-cpt-side { display: grid; gap: 22px; position: sticky; top: 108px; }
.si-cpt-card {
        background: var(--si-card, #fff); border: 1px solid var(--si-border);
        border-radius: 20px; padding: 24px 22px; display: grid; gap: 14px;
        box-shadow: var(--si-shadow-sm);
}
.si-cpt-card__title { font-family: var(--si-font-head); font-size: 16px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--si-dark); margin: 0; }
.si-cpt-card p { margin: 0; color: var(--si-body); font-size: 14.5px; line-height: 1.65; }
.si-cpt-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.si-cpt-card__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--si-body); font-size: 14.5px; line-height: 1.55; }
.si-cpt-card__list .si-icon { flex: 0 0 auto; color: var(--si-primary); margin-top: 2px; }
.si-cpt-card__list strong { color: var(--si-dark); font-weight: 700; }
.si-cpt-card__list a { color: var(--si-dark); text-decoration: none; font-weight: 600; }
.si-cpt-card__list a:hover { color: var(--si-primary); }
.si-cpt-card__date {
        flex: 0 0 auto; width: 54px; border-radius: 12px; background: var(--si-btn, #0077B6); color: #fff;
        text-align: center; padding: 7px 6px 6px; font-family: var(--si-font-head);
}
.si-cpt-card__date strong { display: block; font-size: 20px; font-weight: 800; line-height: 1; }
.si-cpt-card__date span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.si-cpt-card--accent { background: #1C325D; border-color: #1C325D; }
.si-cpt-card--accent .si-cpt-card__title { color: #fff; }
.si-cpt-card--accent p { color: rgba(255, 255, 255, 0.82); }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* 38.7b — Single event meta strip (v14.4) ---------------------------------------------------------------
   Three flat info tiles pulled up over the navy hero: date · venue · event link.
   Gives the single event an organised, scannable header instead of prose-only. */
.si-event-strip { position: relative; z-index: 2; margin-top: -30px; padding: 0 clamp(18px, 4vw, 48px); }
.si-event-strip__row {
        max-width: var(--si-container, 1200px); margin-inline: auto;
        /* auto-fit: 3 tiles = 3 balanced columns; 2 tiles (no external link)
           still fill the row instead of leaving an empty third column. */
        display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px;
}
.si-event-strip__tile {
        background: var(--si-card, #fff); border: 1px solid var(--si-border);
        border-radius: 16px; box-shadow: var(--si-shadow-sm);
        padding: 15px 18px; display: flex; align-items: center; gap: 13px; min-height: 76px;
}
.si-event-strip__icon {
        flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
        background: var(--si-primary-soft, #E6F6FC); color: var(--si-ink, #006DA6);
        display: grid; place-items: center;
}
.si-event-strip__meta { min-width: 0; }
.si-event-strip__label {
        display: block; font-family: var(--si-font-head); font-size: 11px; font-weight: 800;
        letter-spacing: 0.12em; text-transform: uppercase; color: var(--si-muted, #5E6468); margin: 0 0 2px;
}
.si-event-strip__value { display: block; color: var(--si-dark); font-weight: 700; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.si-event-strip__tile--cta { background: var(--si-dark); border-color: var(--si-dark); }
.si-event-strip__tile--cta .si-event-strip__icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.si-event-strip__tile--cta .si-event-strip__label { color: rgba(255, 255, 255, 0.72); }
.si-event-strip__tile--cta .si-event-strip__value { color: #fff; }
a.si-event-strip__tile--cta { text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.si-event-strip__tile--cta:hover { transform: translateY(-3px); box-shadow: var(--si-shadow); }
a.si-event-strip__tile--cta:hover .si-event-strip__icon { background: var(--si-accent); color: #fff; }
/* Single event rhythm: the layout grid needs its own top padding (the other
   CPT singles sit inside .si-cpt-body; the event template drives it directly). */
.si-cpt-single .si-cpt-layout { padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(48px, 7vw, 84px); }
[data-si-theme="dark"] .si-event-strip__tile { background: var(--si-card); border-color: rgba(255, 255, 255, 0.1); }
[data-si-theme="dark"] .si-event-strip__value { color: var(--si-dark, #F1F4FA); }
[data-si-theme="dark"] .si-event-strip__icon { background: rgba(122, 198, 232, 0.14); color: var(--si-ink, #7CC6E8); }
[data-si-theme="dark"] .si-event-strip__tile--cta { background: #1C325D; border-color: rgba(255, 255, 255, 0.18); }

/* 38.8 — Concept D hero slider ------------------------------------------------------------------------
   v14.4 — client: minimise the slider height. 92vh/860px felt like a wall;
   now a tighter 64vh cinematic band (430–600px) with matched padding. */
.si-canvas--concept-d > .si-hero-slider,
.si-canvas .si-hero-slider { position: relative; overflow: hidden; background: #1C325D; }
.si-hero-slider { position: relative; overflow: hidden; background: #1C325D; outline: none; }
.si-hero-slider__track { display: flex; transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1); }
.si-hero-slide { position: relative; flex: 0 0 100%; min-width: 100%; min-height: clamp(430px, 64vh, 600px); display: flex; align-items: center; }
.si-hero-slide:not(.is-active) { visibility: hidden; transition: visibility 0s 0.7s; }
.si-hero-slide.is-active { visibility: visible; transition-delay: 0s; }
.si-hero-slide__bg { position: absolute; inset: 0; }
.si-hero-slide__bg img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; animation: siHeroZoom 9s ease-out forwards; }
@keyframes siHeroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.si-hero-slide__scrim { position: absolute; inset: 0; background: rgba(28, 50, 93, 0.6); }
.si-hero-slide__inner { position: relative; width: 100%; max-width: var(--si-container, 1200px); margin-inline: auto; padding: clamp(64px, 8vh, 100px) clamp(20px, 4vw, 48px) clamp(92px, 11vh, 128px); }
.si-hero-slide__kicker {
        display: inline-flex; align-items: center; gap: 10px;
        background: rgba(255, 255, 255, 0.14); color: #fff;
        border-radius: 999px; padding: 8px 18px; margin: 0 0 18px;
        font-family: var(--si-font-head); font-size: 12.5px; font-weight: 700;
        letter-spacing: 0.14em; text-transform: uppercase;
}
.si-hero-slide__kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--si-accent); }
.si-hero-slide__title {
        font-family: var(--si-font-head); font-weight: 800; color: #fff;
        font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -0.025em;
        max-width: 22ch; margin: 0 0 18px;
}
.si-hero-slide__text { color: rgba(255, 255, 255, 0.88); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; max-width: 56ch; margin: 0 0 26px; }
.si-hero-slide__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.si-hero-slide .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.si-hero-slide .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.si-hero-slider__controls {
        position: absolute; left: 0; right: 0; bottom: clamp(22px, 4.5vh, 44px);
        display: flex; align-items: center; gap: 20px;
        max-width: var(--si-container, 1200px); margin-inline: auto;
        padding-inline: clamp(20px, 4vw, 48px);
}
.si-hero-slider__nav { display: flex; gap: 10px; }
.si-hero-slider__arrow {
        appearance: none; cursor: pointer;
        width: 46px; height: 46px; border-radius: 50%;
        border: 1.5px solid rgba(255, 255, 255, 0.4); background: rgba(28, 50, 93, 0.35); color: #fff;
        display: grid; place-items: center;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.si-hero-slider__arrow:hover { background: var(--si-btn, #0077B6); border-color: var(--si-btn, #0077B6); transform: translateY(-2px); }
.si-hero-slider__arrow-icon { width: 18px; height: 18px; transform: rotate(-90deg); }
.si-hero-slider__arrow--next .si-hero-slider__arrow-icon { transform: rotate(90deg); }
.si-hero-slider__dots { display: flex; gap: 8px; }
.si-hero-slider__dot {
        appearance: none; border: 0; cursor: pointer; padding: 0;
        width: 9px; height: 9px; border-radius: 999px;
        background: rgba(255, 255, 255, 0.4);
        transition: width 0.25s ease, background 0.25s ease;
}
.si-hero-slider__dot.is-active { width: 30px; background: #fff; }
.si-hero-slider__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.si-hero-slider__count {
        margin-left: auto; color: rgba(255, 255, 255, 0.85);
        font-family: var(--si-font-head); font-size: 14px; font-weight: 700; letter-spacing: 0.18em;
}
.si-hero-slider__scroll { position: absolute; right: clamp(22px, 3.5vw, 46px); bottom: clamp(22px, 4.5vh, 44px); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 999px; display: none; }
.si-hero-slider__scroll span { display: block; width: 4px; height: 8px; border-radius: 999px; background: #fff; margin: 6px auto 0; animation: siScrollHint 1.8s ease-in-out infinite; }
@keyframes siScrollHint { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(9px); opacity: 0.4; } }

/* 38.9 — Responsive ----------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
        .si-cpt-layout { grid-template-columns: minmax(0, 1fr) 300px; }
        .si-cpt-side { position: static; }
}
@media (max-width: 980px) {
        .event-grid { grid-template-columns: repeat(2, 1fr); }
        .loc-grid { grid-template-columns: repeat(2, 1fr); }
        .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
        .si-cpt-layout { display: block; }
        .si-cpt-side { margin-top: 34px; }
        .si-hero-slide__inner { padding-top: 84px; }
        .si-event-strip { margin-top: -22px; }
        .si-event-strip__row { grid-template-columns: 1fr; gap: 10px; }
        .si-hero-slider__count { display: none; }
        .si-hero-slider__scroll { display: none; }
}
@media (max-width: 560px) {
        .event-grid, .loc-grid { grid-template-columns: 1fr; }
        .si-filter { border-radius: 20px; }
        .si-filter__hint { width: 100%; padding-left: 12px; }
        .si-hero-slide { min-height: 420px; }
        .si-hero-slide__title { font-size: clamp(2rem, 8.6vw, 2.5rem); }
        .si-hero-slider__controls { gap: 14px; }
        .si-map { border-radius: 18px; }
        .si-map__pin-tip { display: none; }
}
@media (max-width: 390px) {
        .si-hero-slide__actions .btn { width: 100%; justify-content: center; }
        .si-hero-slider__arrow { width: 40px; height: 40px; }
}

/* 38.10 — Dark mode counterparts ----------------------------------------------------------------------- */
[data-si-theme="dark"] .si-filter { background: var(--si-card); }
[data-si-theme="dark"] .si-filter__btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
[data-si-theme="dark"] .event-card, [data-si-theme="dark"] .project-card, [data-si-theme="dark"] .loc-card,
[data-si-theme="dark"] .si-cpt-card, [data-si-theme="dark"] .si-map { background: var(--si-card); border-color: var(--si-border); }
[data-si-theme="dark"] .event-card__title a, [data-si-theme="dark"] .project-card__title a,
[data-si-theme="dark"] .loc-card__title a, [data-si-theme="dark"] .si-cpt-card__list strong,
[data-si-theme="dark"] .si-cpt-card__list a { color: #fff; }
[data-si-theme="dark"] .loc-card__marker { background: rgba(0, 167, 228, 0.18); }
[data-si-theme="dark"] .project-card__status { background: var(--si-card); color: #fff; }
[data-si-theme="dark"] .si-cpt-card--accent { background: rgba(255, 255, 255, 0.06); border-color: var(--si-border); }
[data-si-theme="dark"] .si-loc-section--light { background: rgba(255, 255, 255, 0.04); }
[data-si-theme="dark"] .si-map__svg path { fill: rgba(255, 255, 255, 0.08); }

/* 38.11 — Reduced motion -------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
        .si-hero-slide__bg img { animation: none; transform: none; }
        .si-hero-slider__track { transition: none; }
        .si-hero-slider__scroll span { animation: none; }
        .event-card, .project-card, .loc-card { transition: none; }
}

/* 38.12 — Shortcode sections on the block canvas (full-bleed) ---------- */
.si-canvas > .si-hero-slider,
.si-canvas > .si-loc-section,
.si-canvas > .si-events-section,
.si-canvas > .si-projects-section { max-width: none; padding-left: 0; padding-right: 0; }
.si-canvas > .si-hero-slider { margin-top: 0; }

/* =====================================================================================
    39. v13.1.0 — Core block mechanics, shipped locally
   -------------------------------------------------------------------------------------
   WordPress normally loads these rules from wp-includes (block library CSS).
   They are repeated here so the demo pages keep rendering correctly even when
   an optimization plugin dequeues the core block styles. Values mirror core.
   ===================================================================================== */
.wp-block-cover { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 430px; width: 100%; box-sizing: border-box; background-size: cover; background-position: center; }
.wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.wp-block-cover__background { position: absolute; inset: 0; line-height: 1; }
.wp-block-cover .wp-block-cover__inner-container { width: 100%; position: relative; z-index: 1; }
.wp-block-cover.alignfull { width: 100%; }
.wp-block-cover.is-light { color: #1C325D; }
.wp-block-cover h1, .wp-block-cover h2 { margin: 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wp-block-buttons > .wp-block-button { margin: 0; }
.wp-block-button__link { display: inline-block; text-decoration: none; box-sizing: border-box; cursor: pointer; border: 0; }
.wp-block-group { box-sizing: border-box; }
.wp-block-group.alignfull { width: 100%; }
.wp-block-image img { height: auto; max-width: 100%; }
.wp-block-image.alignwide, .wp-block-image.alignfull { max-width: 100%; }
.wp-block-quote { box-sizing: border-box; }
.wp-block-details { box-sizing: border-box; }

/* =====================================================================================
    40. v13.2.0 — Resilience hardening
   -------------------------------------------------------------------------------------
   40a repeats the remaining core block mechanics locally so demo pages render
   identically even when wp-block-library CSS is stripped by an optimization
   plugin or a caching layer. 40b styles template classes that had no rules.
   ===================================================================================== */

/* 40a — list mechanics (skips the styled si-checklist / si-steps variants) --------------- */
.wp-block-list:not(.si-checklist):not(.si-steps) { list-style-type: disc; padding-left: 1.4em; margin: 1em 0; }
.wp-block-list:not(.si-checklist):not(.si-steps) li { margin: 0.35em 0; }
.wp-block-list:not(.si-checklist):not(.si-steps) ol,
.wp-block-list:not(.si-checklist):not(.si-steps) ul { padding-left: 1.4em; }
.prose .wp-block-list:not(.si-checklist):not(.si-steps) { padding-left: 1.3em; }
.si-band .wp-block-list, .si-cover .wp-block-list { color: inherit; }

/* 40a — gallery mechanics (galleries without the si-gallery class) -------------------- */
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.wp-block-gallery.blocks-gallery-grid { display: flex; }
.wp-block-gallery .blocks-gallery-item { margin: 0; flex-grow: 1; }
.wp-block-gallery .blocks-gallery-item img { width: 100%; height: auto; display: block; }
.wp-block-gallery.has-nested-images { display: flex; flex-wrap: wrap; }
.wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 1; margin: 0; }
.wp-block-gallery.is-cropped .blocks-gallery-item img,
.wp-block-gallery.is-cropped figure.wp-block-image img { object-fit: cover; }
.wp-block-gallery.columns-2 .blocks-gallery-item { width: calc(50% - 8px); }
.wp-block-gallery.columns-3 .blocks-gallery-item { width: calc(33.33% - 11px); }
.wp-block-gallery.columns-4 .blocks-gallery-item { width: calc(25% - 12px); }

/* 40a — captions ---------------------------------------------------------------------- */
.wp-block-image figcaption,
.wp-block-gallery figcaption,
.wp-element-caption { font-size: 13px; line-height: 1.5; color: var(--si-body, #5E6468); margin-top: 8px; text-align: center; }
.si-band .wp-element-caption, .si-cover .wp-element-caption { color: rgba(255,255,255,.75); }

/* 40a — custom HTML / shortcode blocks: never blow out the canvas ---------------------- */
.wp-block-html iframe, .wp-block-shortcode iframe,
.prose iframe, .si-canvas iframe { max-width: 100%; }

/* 40a — media-text vertical alignment helpers used by the demo markup ------------------ */
.wp-block-media-text.is-vertically-aligned-top { align-items: start; }
.wp-block-media-text.is-vertically-aligned-bottom { align-items: end; }

/* 40b — archive empty states ----------------------------------------------------------- */
.empty-state, .no-results {
        text-align: center; padding: clamp(48px, 8vw, 96px) 24px;
        background: var(--si-alt, #F3F5F8); border-radius: var(--si-radius, 14px);
}
.empty-state h2, .no-results h2 { margin: 0 0 10px; color: var(--si-dark, #1C325D); }
.empty-state p, .no-results p { margin: 0 auto 22px; max-width: 460px; color: var(--si-body, #5E6468); }
.empty-state .search-form, .no-results .search-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 40b — page-split nav (wp_link_pages) -------------------------------------------------- */
.page-links { margin-top: 28px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-links a, .page-links > span {
        display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
        border-radius: 9px; background: var(--si-alt, #F3F5F8); color: var(--si-dark, #1C325D);
        text-decoration: none; font-weight: 700; font-size: 14px;
}
.page-links > .post-page-numbers.current { background: var(--si-primary, #00ABEC); color: #fff; }

/* 40b — layout safety wrappers ---------------------------------------------------------- */
.single-post__body, .listing, .footer-col--brand, .author-box__body { min-width: 0; }
.author-box__avatar { flex: 0 0 auto; }
.si-events-section__more, .si-projects-section__more { margin: 26px 0 0; }
.si-events-section__more a, .si-projects-section__more a { text-decoration: none; }

/* 40b — contact page: info stack + elevated form panel ----------------------------------- */
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-cards__title { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 28px); color: var(--si-dark, #1C325D); }
.contact-form-wrap {
        background: #fff; border: 1px solid var(--si-border, #E3EAF2);
        border-radius: var(--si-radius-large, 24px);
        padding: clamp(26px, 3.4vw, 44px);
        box-shadow: var(--si-shadow, 0 12px 32px rgba(28, 50, 93, 0.12));
}
.contact-form__title { margin: 0 0 8px; color: var(--si-dark, #1C325D); }
.contact-form__note { margin: 0 0 20px; color: var(--si-body, #5E6468); }
@media (max-width: 620px) { .contact-form-wrap { border-radius: var(--si-radius, 14px); } }

/* 40b — CPT hero tone variants (flat solids — no gradients) ------------------------------ */
.si-cpt-hero--event, .si-cpt-hero--location { background-color: #0F2C3F; }
.si-cpt-hero--project { background-color: #1C325D; }

/* 40b — donate form card title (template-donate.php) -------------------------------------- */
.donate-form-card__title { display: block; font-weight: 800; font-size: clamp(19px, 2.2vw, 23px); color: var(--si-dark, #1C325D); }

/* 40a — latest-posts / core button element base (when block CSS is stripped) --------------- */
.wp-block-latest-posts { list-style: none; margin: 0; padding: 0; }
.wp-block-latest-posts > li { margin: 0 0 18px; }
.wp-element-button {
        display: inline-block; cursor: pointer; text-decoration: none; border: 0;
        background: var(--si-primary, #00ABEC); color: #fff;
        padding: 13px 26px; border-radius: var(--si-radius, 14px);
        font-weight: 700; font-family: inherit; font-size: 15px; line-height: 1.2;
}

/* 40a — core cover dim levels (10-point steps) --------------------------------------------- */
/* v14.2 — the 7.1 editor saves a 50-dim cover with the PLAIN has-background-dim
 * class (no -50 suffix): keep the exact same look for both markup generations. */
.wp-block-cover__background.has-background-dim-40 { opacity: 1; background-color: rgba(0, 0, 0, 0.4); }
.wp-block-cover__background.has-background-dim-50,
.wp-block-cover__background.has-background-dim:not([class*="has-background-dim-"]) { opacity: 1; background-color: rgba(0, 0, 0, 0.5); }

/* =====================================================================================
    41. v13.3.0 — Orphan-proofing + canvas completion
   -------------------------------------------------------------------------------------
   41a makes the full-width homepage vocabulary survive even when legacy or
   hand-edited block markup leaves a section as a DIRECT child of .site-main
   (an unbalanced "</div>" can no longer do that — the v13.3 repair pass in
   inc/extras.php prevents it — but these rules are the safety net).
   41b mirrors the .prose pattern vocabulary that was missing under .si-canvas.
   41c completes the local cover-dim ladder so photo covers render their scrim
   at every core dim step even when the block-library CSS is stripped.
   ===================================================================================== */

/* 41a — orphan-proof: direct children of .site-main render like canvas sections ------- */
.site-main > .si-band { padding: clamp(64px, 9vw, 112px) 0; }
.site-main > .si-band--dark { background: #1C325D; color: #fff; }
.site-main > .si-band--cyan { background: var(--si-btn, #0077B6); color: #fff; }
.site-main > .si-band--red { background: var(--si-donate, #C13B57); color: #fff; }
.site-main > .si-band--light { background: var(--si-alt, #F3F5F8); }
.site-main > .si-band--cream { background: var(--si-cream, #FDF9F3); }
.site-main > .si-band--soft { background: var(--si-primary-soft, #E5F6FC); }
.site-main > .si-band--grey { background: var(--si-alt, #F3F5F8); }
.site-main > .si-band--primary { background: var(--si-btn, #0077B6); color: #fff; }
.site-main > .si-band .container { max-width: var(--si-container, 1200px); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.site-main > .si-band--dark h1, .site-main > .si-band--dark h2, .site-main > .si-band--dark h3,
.site-main > .si-band--cyan h1, .site-main > .si-band--cyan h2, .site-main > .si-band--cyan h3,
.site-main > .si-band--red h1, .site-main > .si-band--red h2, .site-main > .si-band--red h3 { color: #fff; margin-top: 0; }
.site-main > .si-band--dark p, .site-main > .si-band--cyan p, .site-main > .si-band--red p { color: rgba(255, 255, 255, 0.85); }
.site-main > .si-cover { position: relative; display: flex; align-items: center; text-align: center; background: var(--si-dark, #1C325D); }
.site-main > .si-cover .container.si-cover__inner { max-width: var(--si-container, 1200px); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); width: 100%; }
.site-main > .si-cover .si-cover__title { font-family: var(--si-font-head, inherit); font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.08; margin: 0 0 18px; }
.site-main > .si-cover .si-lead { color: rgba(255, 255, 255, 0.9); max-width: 66ch; margin-inline: auto; }
.site-main > .si-kicker, .site-main > .container > .si-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--si-font-head, inherit); font-size: 12px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--si-ink, #006DA6); background: var(--si-primary-soft, #E5F6FC); padding: 7px 15px; border-radius: 999px; margin: 0 0 18px; }
.site-main > .si-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--si-primary, #00ABEC); }
.site-main > .si-lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.68; color: var(--si-dark, #1C325D); font-weight: 500; }
.site-main > .section-head, .site-main > .si-band .section-head { display: block; max-width: 720px; margin: 0 auto clamp(30px, 4vw, 54px); }
.site-main > .section-head--center, .site-main > .si-band .section-head--center { text-align: center; }
.site-main > .section-head__kicker { font-family: var(--si-font-head, inherit); font-size: 12.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--si-ink, #006DA6); margin: 0 0 10px; }
.site-main > .section-head--light .section-head__kicker { color: var(--si-accent, #FFB703); }
.site-main > .section-head__title { font-family: var(--si-font-head, inherit); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; color: var(--si-dark, #1C325D); margin: 0 0 14px; line-height: 1.14; }
.site-main > .section-head--light .section-head__title { color: #fff; }
.site-main > .section-head__lead { font-size: 1.05rem; line-height: 1.65; color: var(--si-body, #5E6468); margin: 0 auto; max-width: 62ch; }
.site-main > .section-head--light .section-head__lead { color: rgba(255, 255, 255, 0.82); }
.site-main > .si-cards, .site-main > .si-band .si-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.site-main > .si-card, .site-main > .si-band .si-card { background: var(--si-card, #fff); border: 1px solid var(--si-border, #E3EAF2); border-radius: 18px; padding: 26px 26px 24px; box-shadow: var(--si-shadow-sm, 0 4px 14px rgba(28, 50, 93, 0.08)); }
.site-main > .si-card h3 { font-family: var(--si-font-head, inherit); font-size: 1.06rem; font-weight: 800; color: var(--si-dark, #1C325D); margin: 0 0 8px; }
.site-main > .si-card p { margin: 0; font-size: 15px; color: var(--si-body, #5E6468); line-height: 1.65; }
.site-main > .si-cta, .site-main > .si-band .si-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; background: #1C325D; border-radius: var(--si-radius-xl, 24px); padding: clamp(28px, 4vw, 52px); }
.site-main > .si-cta .si-cta__body { flex: 1 1 260px; }
.site-main > .si-cta h2 { font-family: var(--si-font-head, inherit); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: #fff; margin: 0 0 10px; }
.site-main > .si-cta p { margin: 0; color: rgba(255, 255, 255, 0.82); line-height: 1.65; }
.site-main > .si-stats:not(.si-stats--counters), .site-main > .si-band .si-stats:not(.si-stats--counters) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.site-main > .si-stats:not(.si-stats--counters) > * { background: var(--si-card, #fff); border: 1px solid var(--si-border, #E3EAF2); border-radius: 18px; padding: 26px 20px; }
.site-main > .si-stats:not(.si-stats--counters) .si-stats__n { color: var(--si-primary-dark, #0077B6); }
.site-main > .si-band .si-stats:not(.si-stats--counters) > * { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.site-main > .si-stats .si-stats__n, .site-main > .si-band .si-stats__n { display: block; font-family: var(--si-font-head, inherit); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 0; }
.site-main > .si-stats .si-stats__l, .site-main > .si-band .si-stats__l { display: block; margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, 0.85); line-height: 1.45; }
.site-main > .si-stats:not(.si-stats--counters) .si-stats__l { color: var(--si-body, #5E6468); }
/* orphaned counters keep the 37.5 look */
.site-main > .si-stats--counters, .site-main > .si-band .si-stats--counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3vw, 36px); text-align: center; }
.site-main > .si-band .si-stats--counters > * { padding: 6px; background: transparent; border: 0; }
.site-main > .si-stats--counters .si-stats__n { font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; }
.site-main > .si-band .si-stats--counters .si-stats__n { color: #fff; }
.site-main > .si-stats--counters .si-stats__l { font-size: 15px; color: var(--si-muted, #5E6468); }
.site-main > .si-band .si-stats--counters .si-stats__l { color: rgba(255, 255, 255, 0.82); }
@media (max-width: 980px) { .site-main > .si-stats--counters, .site-main > .si-band .si-stats--counters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .site-main > .si-stats--counters, .site-main > .si-band .si-stats--counters { grid-template-columns: 1fr; } }
.site-main > .si-btns--center, .site-main > .si-band .si-btns--center { justify-content: center; }
.site-main > .si-figure-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 2.2em 0; }
.site-main > .si-figure-duo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; aspect-ratio: 4 / 3; }

/* 41a — orphan-proof responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
        .site-main > .si-stats:not(.si-stats--counters), .site-main > .si-band .si-stats:not(.si-stats--counters) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
        .site-main > .si-figure-duo { grid-template-columns: 1fr; }
        .site-main > .si-cta, .site-main > .si-band .si-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
        .site-main > .si-stats:not(.si-stats--counters), .site-main > .si-band .si-stats:not(.si-stats--counters) { grid-template-columns: 1fr; }
        .site-main > .si-cards, .site-main > .si-band .si-cards { grid-template-columns: 1fr; }
}

/* 41a — dark-mode counterparts for the canvas (mirror of 35.11) --------------------------- */
[data-si-theme="dark"] .si-canvas .si-stats:not(.si-stats--counters) > *,
[data-si-theme="dark"] .si-canvas .si-card,
[data-si-theme="dark"] .si-canvas .si-steps > li,
[data-si-theme="dark"] .si-canvas details.wp-block-details { background: var(--si-card, #1C325D); }
[data-si-theme="dark"] .si-canvas .si-card h3,
[data-si-theme="dark"] .si-canvas details.wp-block-details summary { color: var(--si-dark, #F4F7FB); }

/* 41b — canvas mirrors of the prose pattern vocabulary (were .prose-only) ----------------- */
.si-canvas .si-stats:not(.si-stats--counters) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.si-canvas .si-stats:not(.si-stats--counters) > * { background: var(--si-card, #fff); border: 1px solid var(--si-border, #E3EAF2); border-radius: 18px; padding: 26px 20px; box-shadow: var(--si-shadow-sm, 0 4px 14px rgba(28, 50, 93, 0.08)); }
.si-canvas .si-stats .si-stats__n { display: block; font-family: var(--si-font-head, inherit); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 0; }
.si-canvas .si-stats:not(.si-stats--counters) .si-stats__n { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.02em; color: var(--si-primary-dark, #0077B6); }
.si-canvas .si-stats .si-stats__l { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.45; }
.si-canvas .si-stats:not(.si-stats--counters) .si-stats__l { color: var(--si-body, #5E6468); }
.si-canvas .si-band--primary .si-stats:not(.si-stats--counters) > *, .si-canvas .si-band--dark .si-stats:not(.si-stats--counters) > * { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); box-shadow: none; }
.si-canvas .si-band--primary .si-stats .si-stats__n, .si-canvas .si-band--dark .si-stats .si-stats__n { color: #fff; }
.si-canvas .si-band--primary .si-stats .si-stats__l, .si-canvas .si-band--dark .si-stats .si-stats__l { color: rgba(255, 255, 255, 0.85); }
.si-canvas .si-band--soft { background: var(--si-primary-soft, #E5F6FC); }
.si-canvas .si-band--grey { background: var(--si-alt, #F3F5F8); }
.si-canvas .si-band--primary { background: var(--si-primary, #00ABEC); color: #fff; }
.si-canvas .si-band--primary h2, .si-canvas .si-band--primary h3 { color: #fff; }
.si-canvas .si-band--primary p { color: rgba(255, 255, 255, 0.92); }
.si-canvas .si-band h2:first-child, .si-canvas .si-band h3:first-child, .si-canvas .si-band p:first-child { margin-top: 0; }
.si-canvas .si-steps { counter-reset: si-step; display: grid; gap: 14px; list-style: none; margin-block: 1.4em; padding: 0; }
.si-canvas .si-steps > li, .si-canvas ul.si-steps > li { counter-increment: si-step; list-style: none; position: relative; padding: 18px 20px 18px 66px; background: var(--si-card, #fff); border: 1px solid var(--si-border, #E3EAF2); border-radius: 16px; box-shadow: var(--si-shadow-sm, 0 4px 14px rgba(28, 50, 93, 0.08)); }
.si-canvas .si-steps > li::before { content: counter(si-step); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--si-btn, #0077B6); color: #fff; font-family: var(--si-font-head, inherit); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.si-canvas .si-figure-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-block: 2.2em; }
.si-canvas .si-figure-duo figure { margin: 0; }
.si-canvas .si-figure-duo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--si-shadow, 0 12px 32px rgba(28, 50, 93, 0.12)); display: block; aspect-ratio: 4 / 3; }
.si-canvas .si-quote figcaption, .si-canvas .si-quote .si-quote__who { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--si-ink, #006DA6); text-align: left; font-style: normal; }
@media (max-width: 760px) {
        .si-canvas .si-stats:not(.si-stats--counters) { grid-template-columns: 1fr; }
        .si-canvas .si-figure-duo { grid-template-columns: 1fr; }
}

/* 41c — full local cover-dim ladder (10-point steps, mirrors core) ------------------------ */
.wp-block-cover__background.has-background-dim { opacity: 1; }
.wp-block-cover__background.has-background-dim-10 { opacity: 1; background-color: rgba(0, 0, 0, 0.1); }
.wp-block-cover__background.has-background-dim-20 { opacity: 1; background-color: rgba(0, 0, 0, 0.2); }
.wp-block-cover__background.has-background-dim-30 { opacity: 1; background-color: rgba(0, 0, 0, 0.3); }
.wp-block-cover__background.has-background-dim-60 { opacity: 1; background-color: rgba(0, 0, 0, 0.6); }
.wp-block-cover__background.has-background-dim-70 { opacity: 1; background-color: rgba(0, 0, 0, 0.7); }
.wp-block-cover__background.has-background-dim-80 { opacity: 1; background-color: rgba(0, 0, 0, 0.8); }
.wp-block-cover__background.has-background-dim-90 { opacity: 1; background-color: rgba(0, 0, 0, 0.9); }
.wp-block-cover__background.has-background-dim-100 { opacity: 1; background-color: #000; }

/* ============================================================================================================
 * 42 — v13.6.0 fixes
 * ============================================================================================================ */

/* 42.1 — section-head--light SAFETY GUARD ------------------------------------------------------------------
   The demo builder emitted the white "light" head variant inside LIGHT (grey)
   bands — "Donate / Current appeals" rendered WHITE on GREY and was unreadable.
   Two-part fix: the builder no longer emits --light there (correct content on
   the next import), and this guard repairs ALREADY-IMPORTED pages at render
   time without any re-import: a --light head only keeps its white colors while
   it actually sits on a dark surface (navy/cyan/red band, cover, CPT hero,
   CTA, hero slide, footer) or while dark mode is active. Anywhere else it
   falls back to the exact default (dark) palette. The long :not() chain is
   valid Selectors-4 CSS and adds specificity so it outranks every original
   --light rule regardless of source order. */
.section-head--light:not(.si-band--dark *):not(.si-band--cyan *):not(.si-band--red *):not(.si-band--primary *):not(.si-cover *):not(.si-cpt-hero *):not(.si-cta *):not(.si-hero-slide *):not(.si-footer *):not([data-si-theme="dark"] *) .section-head__title { color: var(--si-dark, #1C325D); }
.section-head--light:not(.si-band--dark *):not(.si-band--cyan *):not(.si-band--red *):not(.si-band--primary *):not(.si-cover *):not(.si-cpt-hero *):not(.si-cta *):not(.si-hero-slide *):not(.si-footer *):not([data-si-theme="dark"] *) .section-head__kicker { color: var(--si-primary, #00ABEC); background: transparent; }
.section-head--light:not(.si-band--dark *):not(.si-band--cyan *):not(.si-band--red *):not(.si-band--primary *):not(.si-cover *):not(.si-cpt-hero *):not(.si-cta *):not(.si-hero-slide *):not(.si-footer *):not([data-si-theme="dark"] *) .section-head__kicker::before { background: var(--si-accent, #FFB703); }
.section-head--light:not(.si-band--dark *):not(.si-band--cyan *):not(.si-band--red *):not(.si-band--primary *):not(.si-cover *):not(.si-cpt-hero *):not(.si-cta *):not(.si-hero-slide *):not(.si-footer *):not([data-si-theme="dark"] *) .section-head__lead { color: var(--si-body, #3E5379); }

/* 42.2 — Impact cards drive the donation form --------------------------------------------------------------
   Clicking "Give this D50" now pre-fills the live Donation Platform amount
   field (JS module in main.js) and pulses the field so the connection is
   visible. Animation is removed under prefers-reduced-motion. */
@keyframes si-amount-flash {
        0% { box-shadow: 0 0 0 0 rgba(0, 167, 228, 0.45); background: rgba(0, 167, 228, 0.08); }
        60% { box-shadow: 0 0 0 10px rgba(0, 167, 228, 0); background: rgba(0, 167, 228, 0.08); }
        100% { box-shadow: 0 0 0 0 rgba(0, 167, 228, 0); background: transparent; }
}
.wcdp-amount.si-amount-flash { animation: si-amount-flash 1.6s ease-out 1; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) {
        .wcdp-amount.si-amount-flash { animation: none; }
}

/* 42.3 — Dark-mode contrast guards (v13.7.0) ---------------------------------------------------------------
   In dark mode the palette variables are REDEFINED on [data-si-theme="dark"]:
   --si-dark becomes near-white #f1f4fa and --si-alt #101b30. Components that
   used a DARK variable as a SURFACE (topbar, donate card head, CTA split,
   project sector chip, map tooltip, contact panel) therefore flipped to LIGHT
   surfaces while keeping their white text — the reported "white text on grey
   background". Every rule below restores the intended dark surface and is
   scoped to [data-si-theme="dark"] so light mode is untouched. Verified live
   with an automated contrast sweep (no remaining text/background ratio < 2.4). */
[data-si-theme="dark"] .topbar { background: #0c1424; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
[data-si-theme="dark"] .skip-link:focus { background: var(--si-card, #152238); }
[data-si-theme="dark"] .screen-reader-text:focus { background-color: var(--si-card, #152238); }
[data-si-theme="dark"] .donate-form-card__head { background: var(--si-card, #152238); border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
[data-si-theme="dark"] .cta--split { background: transparent; }
[data-si-theme="dark"] .project-card__sector { background: rgba(10, 18, 32, 0.88); }
[data-si-theme="dark"] .si-map__pin-tip { background: var(--si-card, #152238); }
[data-si-theme="dark"] .contact-form-wrap { background: var(--si-card, #152238); }
[data-si-theme="dark"] .si-canvas .si-cover:not(:has(.wp-block-cover__image-background)) { background: #0f1b31; }
/* WC Donation Platform: the plugin ships fixed colors (green step labels,
   light coupon panel) that ignore the dark palette and turn near-illegible
   on the dark card. !important is required — plugin styles load after themes. */
[data-si-theme="dark"] .wcdp-header .wcdp-step { color: rgba(255, 255, 255, 0.78) !important; }
[data-si-theme="dark"] .wcdp-header .wcdp-step.is-active,
[data-si-theme="dark"] .wcdp-header .wcdp-step.current { color: var(--si-accent, #FFB703) !important; }
[data-si-theme="dark"] .woocommerce-form-coupon,
[data-si-theme="dark"] .wcdp-coupon-form { background: #0f1b31 !important; border-color: var(--si-border, rgba(255, 255, 255, 0.09)) !important; color: var(--si-dark, #f1f4fa) !important; }

/* =====================================================================================
   42. v14.3 — VISUAL QA PASS — contrast defenses & layout polish
   -------------------------------------------------------------------------------------
   Fixes from the full-site audit (29 rendered page types, desktop + mobile):
   1. Stats/counters that sit on a LIGHT or CREAM band must never inherit the
      white text of their dark neighbours (nested-band legacy content, or an
      editor moving counters between bands) — white on #F3F5F8 measured 1.09:1.
   2. Orphan counters (moved out of a band by hand) must be dark on page-white.
   3. Outline buttons inside the navy si-cta card were cyan-on-navy (3.9:1).
   4. Ghost buttons inside white CPT side-cards were white-on-white (1:1).
   5. The footer-bottom fallback menu must always render in footer ink.
   ===================================================================================== */

/* 42.1 — counters on light/cream grounds stay readable --------------------------------- */
.si-canvas .si-band--light .si-stats--counters .si-stats__n,
.si-canvas .si-band--cream .si-stats--counters .si-stats__n,
.site-main > .si-band--light .si-stats--counters .si-stats__n,
.site-main > .si-band--cream .si-stats--counters .si-stats__n { color: var(--si-primary-dark, #0087B8); }
.si-canvas .si-band--light .si-stats--counters .si-stats__l,
.si-canvas .si-band--cream .si-stats--counters .si-stats__l,
.site-main > .si-band--light .si-stats--counters .si-stats__l,
.site-main > .si-band--cream .si-stats--counters .si-stats__l { color: var(--si-body, #5E6468); }
/* orphan counters OUTSIDE any band: dark numbers on the page background */
.site-main > .si-stats--counters .si-stats__n { color: var(--si-primary-dark, #0087B6); }
.site-main > .si-stats--counters .si-stats__l { color: var(--si-body, #5E6468); }

/* 42.2 — outline button inside the navy si-cta card ------------------------------------ */
.si-canvas .si-cta .wp-block-button.is-style-outline > .wp-block-button__link,
.site-main > .si-cta .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.si-canvas .si-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.site-main > .si-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* 42.3 — ghost buttons on white CPT side-cards ------------------------------------------ */
.si-cpt-card .btn--ghost { background: var(--si-primary-soft, #E5F6FC); border-color: transparent; color: var(--si-ink, #006DA6); backdrop-filter: none; }
.si-cpt-card .btn--ghost:hover { background: var(--si-btn, #0077B6); border-color: var(--si-btn, #0077B6); color: #fff; }

/* 42.4 — footer-bottom menu ink (defensive: covers fallback menus & future classes) ------ */
.footer-bottom .nav-menu a,
.footer-bottom .footer-menu a,
.footer-bottom .footer-legal a,
.footer-bottom ul a { color: var(--si-footer-ink, #ffffff); opacity: 0.78; }
.footer-bottom .nav-menu a:hover,
.footer-bottom .footer-menu a:hover,
.footer-bottom .footer-legal a:hover,
.footer-bottom ul a:hover { opacity: 1; color: #fff; }
.footer-bottom .menu-donate a { opacity: 1; }
/* footer EXPLORE column: sub-menu children rendered at depth 0 would be a
   duplicate — the demo menu builds footer depth 1, but guard the look anyway */
.footer-col .footer-menu ul, .footer-bottom .nav-menu ul { display: none; }

/* 42.5 — kickers on dark bands: white text on the light-blue pill inherited
   from the band's paragraph rule (1.1:1). Dark/cyan/red bands get the same
   translucent-white pill as the cover hero. */
.si-canvas .si-band--dark .section-head__kicker,
.si-canvas .si-band--cyan .section-head__kicker,
.si-canvas .si-band--red .section-head__kicker,
.site-main > .si-band--dark .section-head__kicker,
.site-main > .si-band--cyan .section-head__kicker,
.site-main > .si-band--red .section-head__kicker { color: #fff; background: rgba(255, 255, 255, 0.14); }
.si-canvas .si-band--dark .section-head__kicker::before,
.si-canvas .si-band--cyan .section-head__kicker::before { background: var(--si-accent, #DE5A6C); }

/* 42.6 — ghost button on the light locations section (Concept D “Explore all
   our locations” was white-on-grey, 1.09:1). */
.si-loc-section .btn--ghost { background: var(--si-primary-soft, #E5F6FC); border-color: transparent; color: var(--si-ink, #006DA6); backdrop-filter: none; }
.si-loc-section .btn--ghost:hover { background: var(--si-btn, #0077B6); border-color: var(--si-btn, #0077B6); color: #fff; }

/* 42.7 — dark-mode pink badge text: the deep accent-ink sinks into dark cards */
[data-si-theme="dark"] .loc-card__kind { color: #F08098; }
