/* =============================================================
   Smile Culture Foundation — Design System
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — signature yellow + white */
  --brand:        #ffd800;   /* signature yellow */
  --brand-deep:   #a07d00;   /* dark gold — readable accent text on white */
  --brand-soft:   #fff6c2;   /* pale yellow tint */
  --teal:         #1c1e26;   /* dark ink — the secondary / high-contrast tone */
  --teal-deep:    #101219;
  --teal-soft:    #f3f1e8;   /* warm light neutral */
  --sun:          #ffd800;   /* yellow accent on dark surfaces */
  --sun-soft:     #fff6c2;

  --ink:          #1c1e26;
  --ink-2:        #3a3d47;
  --muted:        #70727a;
  --line:         #ecebe4;

  --cream:        #ffffff;   /* white page background */
  --paper:        #ffffff;
  --paper-2:      #faf9f3;   /* faint off-white for soft sections */

  /* Typography */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --wrap: 1160px;
  --wrap-narrow: 720px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(34,37,42,.06);
  --shadow:    0 14px 40px -18px rgba(34,37,42,.28);
  --shadow-lg: 0 30px 70px -30px rgba(34,37,42,.35);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { color: var(--ink-2); }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Utilities ---------- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(var(--wrap-narrow), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--section-y); }
/* Safety: prevent grid/flex children with wide min-content (e.g. emails, long words) from forcing horizontal overflow. */
.hero-grid > *, .split > *, .cta-grid > *, .contact-grid > *, .story-card > *, .feat-card > *, .footer-top > *, .stats-inner > *, .pillars > *, .team > *, .blog-grid > * { min-width: 0; }
.footer-links a, .contact-item a, .article-body a { overflow-wrap: anywhere; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-2); }
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .6rem; }
.section-head p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.1;
  padding: .72rem 1.3rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
  box-shadow: 0 10px 22px -14px rgba(184,155,0,.85);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(184,155,0,.9); filter: brightness(.96); }
/* Constrain icons inside buttons so they never balloon. */
.btn > svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.btn--teal { --btn-bg: var(--ink); --btn-fg: #fff; box-shadow: 0 10px 22px -14px rgba(28,30,38,.7); }
.btn--teal:hover { box-shadow: 0 16px 28px -14px rgba(28,30,38,.8); filter: brightness(1.08); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { --btn-fg: var(--ink); border-color: var(--brand); background: var(--brand-soft); filter: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { --btn-fg: var(--ink); }
.btn-arrow { transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* =============================================================
   Header / navigation
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--cream) 96%, transparent); }
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.brand-tag { font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.nav-menu { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: .55rem .85rem; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink);
}
.nav-menu a:hover { color: var(--brand-deep); background: var(--brand-soft); }
.nav-menu .current-menu-item > a, .nav-menu .current_page_item > a { color: var(--brand-deep); }
/* On the front page every "/#section" link resolves to the home URL, so WordPress
   marks them all "current" — neutralise that so the homepage nav stays consistent. */
body.home .nav-menu .current-menu-item > a,
body.home .nav-menu .current_page_item > a { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; }
/* Donate item inside the menu is for the mobile drawer only. */
.menu-item-donate-mobile { display: none; }

/* Mobile nav */
.hamburger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); cursor: pointer; place-items: center; color: var(--ink);
}
.hamburger svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .hamburger { display: grid; }
  .nav-menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--paper); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .35s var(--ease);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  body.nav-open .nav-menu { transform: translateY(0); }
  .nav-menu a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav .btn:not(.hamburger) { display: none; }
  .menu-item-donate-mobile { display: block; }
  .nav-menu .btn-donate-mobile { display: inline-flex; margin-top: .6rem; justify-content: center; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero { position: relative; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: var(--section-y); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 82% 8%, var(--sun-soft), transparent 60%),
    radial-gradient(55% 60% at 8% 90%, var(--teal-soft), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy h1 { margin-top: 1rem; }
.hero-copy h1 .accent {
  color: var(--ink);
  position: relative;
  z-index: 0;
  display: inline-block;
}
.hero-copy h1 .accent::after {
  content: "";
  position: absolute;
  left: -.03em; right: -.03em; bottom: -.04em;
  height: .12em;
  background: var(--brand);
  border-radius: 4px;
  z-index: -1; /* sit behind the text so the 'y' descender draws over it */
}
.hero-copy .lead { margin-top: 1.25rem; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust strong { color: var(--ink); }

.hero-media { position: relative; }
.hero-media .photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/4.4; background: var(--paper-2);
}
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -1.4rem; bottom: 1.6rem; background: var(--paper);
  border-radius: var(--radius); padding: .9rem 1.15rem; box-shadow: var(--shadow); display: flex; gap: .7rem; align-items: center;
  max-width: 240px;
}
.hero-badge .dot { width: 42px; height: 42px; border-radius: 12px; background: var(--sun-soft); display: grid; place-items: center; color: var(--ink); flex: none; }
.hero-badge .dot svg { width: 22px; height: 22px; }
.hero-badge b { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.hero-badge span { font-size: .8rem; color: var(--muted); }
.hero-blob { position: absolute; z-index: -1; width: 120%; top: -8%; right: -18%; color: var(--brand-soft); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; margin-inline: auto; }
  .hero-copy .lead { max-width: none; }
}

/* =============================================================
   Stats bar
   ============================================================= */
.stats { position: relative; z-index: 2; margin-top: calc(-1 * var(--section-y) / 2); }
.stats-inner {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.6rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; box-shadow: var(--shadow-lg);
  background-image: radial-gradient(80% 120% at 100% 0, rgba(244,185,66,.16), transparent 55%);
}
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--sun); line-height: 1; }
.stat span { display: block; margin-top: .5rem; font-size: .9rem; color: rgba(255,255,255,.78); }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
@media (max-width: 720px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
}

/* =============================================================
   Mission pillars
   ============================================================= */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative; overflow: hidden;
}
.pillar::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--accent, var(--brand)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::after { transform: scaleX(1); }
.pillar .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--ink); margin-bottom: 1.1rem; }
.pillar .ic svg { width: 27px; height: 27px; }
.pillar h3 { font-size: 1.22rem; }
.pillar p { margin-top: .55rem; font-size: .96rem; }
.pillar { --accent: var(--brand); }
@media (max-width: 940px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* =============================================================
   About / split feature
   ============================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 5/4.2; }
.split-media .stamp {
  position: absolute; right: -1rem; top: -1rem; background: var(--brand); color: var(--ink); border-radius: var(--radius);
  padding: 1rem 1.2rem; box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 600; line-height: 1.2; max-width: 190px;
}
.split-media .stamp b { display: block; font-size: 1.7rem; }
.split-body h2 { margin-top: .6rem; }
.split-body p { margin-top: 1rem; }
.value-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.value-list li { display: flex; gap: .8rem; align-items: flex-start; }
.value-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; margin-top: 2px; }
.value-list .tick svg { width: 15px; height: 15px; }
.value-list b { font-family: var(--font-head); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media, .split-media { order: -1; }
}

/* =============================================================
   Programs / featured story
   ============================================================= */
.featured { background: var(--paper-2); }
.story-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--paper);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 2.5rem;
}
.story-card .media { position: relative; min-height: 320px; }
.story-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-card .body { padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.story-card .tag { align-self: flex-start; background: var(--brand-soft); color: var(--brand-deep); font-family: var(--font-head); font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .8rem; border-radius: var(--radius-pill); }
.story-card h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-top: 1rem; }
.story-card p { margin-top: 1rem; }
.story-card .meta { color: var(--muted); font-size: .85rem; margin-top: 1.2rem; }
.story-card .btn { margin-top: 1.6rem; align-self: flex-start; }
@media (max-width: 820px) { .story-card { grid-template-columns: 1fr; } .story-card .media { min-height: 240px; } }

/* =============================================================
   Leadership
   ============================================================= */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.member {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.member .photo { aspect-ratio: 4/3.6; overflow: hidden; background: var(--paper-2); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .5s var(--ease); }
.member:hover .photo img { transform: scale(1.05); }
.member .info { padding: 1.3rem 1.4rem 1.5rem; }
.member .role { font-family: var(--font-head); font-weight: 600; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); }
.member h3 { font-size: 1.2rem; margin-top: .35rem; }
.member p { font-size: .92rem; margin-top: .7rem; color: var(--muted); }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* =============================================================
   Get involved CTA band
   ============================================================= */
.cta-band { position: relative; color: #fff; overflow: hidden; }
.cta-band .bg { position: absolute; inset: 0; background: linear-gradient(135deg, #14161d, #22252f 60%, #2b2e39); z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(52% 80% at 85% 15%, rgba(255,216,0,.28), transparent 60%), radial-gradient(46% 70% at 8% 92%, rgba(255,216,0,.16), transparent 60%); }
.cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 1rem; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.involve { display: grid; gap: 1rem; }
.involve .card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 1.3rem 1.4rem; backdrop-filter: blur(4px); }
.involve .card h3 { color: #fff; font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.involve .card p { margin-top: .4rem; font-size: .93rem; }
.involve .card .ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.involve .card .ic svg { width: 19px; height: 19px; }
@media (max-width: 820px) { .cta-grid { grid-template-columns: 1fr; } }

/* =============================================================
   Contact
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.contact-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); display: grid; place-items: center; flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item > div { min-width: 0; }
.contact-item .role { font-size: .78rem; color: var(--muted); }
.contact-item b, .contact-item a { font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); overflow-wrap: anywhere; word-break: break-word; }
.contact-item a:hover { color: var(--brand-deep); }
.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.socials a { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.socials a:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.contact-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.contact-card h3 { color: #fff; }
.contact-card p { color: rgba(255,255,255,.8); margin-top: .8rem; }
.field { display: block; margin-top: 1rem; }
.field span { display: block; font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: .35rem; font-family: var(--font-head); }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font: inherit; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sun); }
.contact-card .btn { margin-top: 1.4rem; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-msg { margin-top: 1rem; font-size: .92rem; min-height: 1em; }
.contact-msg.is-success { color: var(--sun); font-weight: 600; }
.contact-msg.is-error { color: #ffb4a2; font-weight: 600; }
.contact-card .btn.is-loading { opacity: .7; pointer-events: none; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: var(--section-y); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand-name, .site-footer h4 { color: #fff; }
.site-footer .brand img { width: 44px; height: 44px; }
.footer-about { max-width: 34ch; margin-top: 1.1rem; font-size: .95rem; }
.site-footer h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-links a:hover { color: var(--sun); }
.site-footer .socials { margin-top: 1.2rem; }
.site-footer .socials a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.site-footer .socials a:hover { background: var(--brand); color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }

/* =============================================================
   Page banner (interior pages)
   ============================================================= */
.page-banner { position: relative; padding-block: clamp(3rem, 7vw, 5rem); text-align: center; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% -10%, var(--sun-soft), transparent 60%), var(--paper-2); }
.page-banner h1 { margin-top: .6rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.breadcrumbs a { color: var(--teal); }

/* =============================================================
   Blog — index (content-focused, full page)
   ============================================================= */
.blog-featured { margin-top: 3rem; }
.feat-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.feat-card .media { position: relative; min-height: 340px; }
.feat-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-card .media .flag { position: absolute; left: 1.2rem; top: 1.2rem; background: var(--brand); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: .4rem .9rem; border-radius: var(--radius-pill); }
.feat-card .body { padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.feat-card .cats { display: flex; gap: .5rem; flex-wrap: wrap; }
.post-cat { font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: .3rem .7rem; border-radius: var(--radius-pill); }
.feat-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 1rem; }
.feat-card h2 a { color: var(--ink); }
.feat-card h2 a:hover { color: var(--brand-deep); }
.feat-card .excerpt { margin-top: 1rem; }
.post-meta { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .86rem; margin-top: 1.3rem; }
.post-meta .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .85rem; }
.post-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
@media (max-width: 820px) { .feat-card { grid-template-columns: 1fr; } .feat-card .media { min-height: 240px; } }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2.5rem; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .media img { transform: scale(1.06); }
.post-card .media.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--sun-soft)); color: var(--brand-deep); }
.post-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.25rem; margin-top: .8rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand-deep); }
.post-card .excerpt { font-size: .94rem; margin-top: .7rem; color: var(--ink-2); }
.post-card .post-meta { margin-top: auto; padding-top: 1.2rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3.5rem; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-family: var(--font-head); font-weight: 600; color: var(--ink-2); }
.pagination a:hover { border-color: var(--brand); color: var(--brand-deep); }
.pagination .current { background: var(--brand); color: var(--ink); border-color: var(--brand); }

/* =============================================================
   Single post — editorial, content-first
   ============================================================= */
.post-hero { padding-top: clamp(2rem, 5vw, 3rem); }
.post-hero .cats { display: flex; gap: .5rem; justify-content: center; }
.post-hero h1 { max-width: 18ch; margin: 1rem auto 0; text-align: center; font-size: clamp(2rem, 4.5vw, 3.3rem); }
.post-hero .post-meta { justify-content: center; margin-top: 1.6rem; }
.post-figure { margin-top: 2.5rem; }
.post-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 16/8.4; object-fit: cover; }
.post-figure figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .8rem; }

.article-body { margin-top: 3rem; font-size: 1.13rem; line-height: 1.8; }
.article-body > * + * { margin-top: 1.5rem; }
.article-body p { color: var(--ink-2); }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.8rem; }
.article-body h3 { font-size: 1.4rem; margin-top: 2.2rem; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-top: .5rem; color: var(--ink-2); }
.article-body img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-block: 2rem; }
.article-body blockquote {
  border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.6rem; margin-block: 2rem; font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; color: var(--ink);
}
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body figure { margin: 2rem 0; }
.article-body .wp-caption-text, .article-body figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: .6rem; }

.share-row { display: flex; align-items: center; gap: .8rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share-row b { font-family: var(--font-head); }
.share-row a { width: 42px; height: 42px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line); }
.share-row a:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.share-row svg { width: 19px; height: 19px; }

.post-cta { background: var(--paper-2); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); margin-top: 3.5rem; text-align: center; }
.post-cta h3 { font-size: 1.5rem; }
.post-cta p { margin-top: .7rem; max-width: 46ch; margin-inline: auto; }
.post-cta .btn { margin-top: 1.4rem; }

.related { margin-top: var(--section-y); }
.author-box { display: flex; gap: 1.2rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; margin-top: 3rem; }
.author-box .av { width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; flex: none; }
.author-box .role { font-size: .8rem; color: var(--muted); }
.author-box b { font-family: var(--font-head); font-size: 1.1rem; }

/* Comments (kept minimal & content-focused) */
.comments-area { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.comment-list .comment-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.comment-list .comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-respond { margin-top: 2rem; }
.comment-form input, .comment-form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; margin-top: .4rem; background: var(--paper); }
.comment-form p { margin-top: 1rem; }
.comment-form .form-submit .submit { display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 600; padding: .72rem 1.3rem; border-radius: var(--radius-pill); background: var(--brand); color: var(--ink); border: none; cursor: pointer; }

/* No-results */
.no-results { text-align: center; padding-block: 4rem; }

/* =============================================================
   Events
   ============================================================= */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2.5rem; }
.events-grid.is-past { margin-top: 1.5rem; }
@media (max-width: 900px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .events-grid { grid-template-columns: 1fr; } }

.event-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); display: block; }
.event-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.event-card:hover .media img { transform: scale(1.06); }
.event-card .media.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), #fff2b0); color: var(--ink); }
.event-card .media.placeholder svg { width: 46px; height: 46px; }
.event-card.is-past .media img { filter: grayscale(.4); }
.date-badge { position: absolute; left: 1rem; top: 1rem; background: var(--paper); border-radius: 12px; padding: .5rem .7rem; text-align: center; box-shadow: var(--shadow-sm); line-height: 1; min-width: 52px; }
.date-badge b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--ink); }
.date-badge span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-deep); font-weight: 600; margin-top: 2px; }
.past-flag { position: absolute; right: 1rem; top: 1rem; background: rgba(28,30,38,.85); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .7rem; border-radius: var(--radius-pill); }
.event-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.event-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .84rem; }
.event-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.event-meta svg { width: 15px; height: 15px; color: var(--brand-deep); }
.event-meta.center { justify-content: center; margin-top: 1.2rem; font-size: .92rem; }
.event-card h3 { font-size: 1.25rem; margin-top: .7rem; }
.event-card h3 a { color: var(--ink); }
.event-card h3 a:hover { color: var(--brand-deep); }
.event-card .excerpt { font-size: .93rem; margin-top: .6rem; color: var(--ink-2); }
.event-card .btn { margin-top: auto; }
.event-card .goal { margin-top: 1.1rem; }

/* Goal / progress bar */
.goal { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.goal--compact { padding: .85rem .95rem; background: transparent; border: none; }
.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .9rem; color: var(--muted); }
.goal-top .goal-raised strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.goal--compact .goal-top .goal-raised strong { font-size: 1.02rem; }
.progress { height: 12px; background: var(--brand-soft); border-radius: var(--radius-pill); overflow: hidden; margin: .6rem 0 .55rem; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.progress-bar { display: block; height: 100%; width: 0; border-radius: var(--radius-pill); background: linear-gradient(90deg, #f2c200, var(--brand)); transition: width 1.1s var(--ease); box-shadow: 0 0 0 1px rgba(0,0,0,.02); }
.goal-bottom { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.goal-bottom strong { color: var(--ink); font-family: var(--font-head); }

/* Single event layout */
.event-layout { margin-top: 3rem; }
.event-layout.has-aside { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.event-main .article-body { font-size: 1.1rem; line-height: 1.8; }
.event-main .article-body > * + * { margin-top: 1.4rem; }
.event-status { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .85rem; border-radius: var(--radius-pill); margin-bottom: .3rem; }
.event-status.is-upcoming { background: var(--brand); color: var(--ink); }
.event-status.is-past { background: var(--teal-soft); color: var(--muted); }

.event-aside { position: sticky; top: 92px; display: grid; gap: 1.5rem; }
.donate-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.donate-title { font-size: 1.3rem; margin-bottom: 1rem; }
.donate-card .goal { background: var(--paper-2); }
.amount-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.2rem 0 .8rem; }
.amount-chip { font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: .55rem .2rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; transition: all .18s var(--ease); }
.amount-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.amount-chip.is-active { border-color: var(--brand); background: var(--brand); color: var(--ink); }
.field-inline { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: .6rem; }
.field-inline:focus-within { border-color: var(--brand); }
.field-inline .cur { padding: 0 .5rem 0 .9rem; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.field-inline input { flex: 1; border: none; padding: .8rem .9rem .8rem .2rem; font: inherit; background: transparent; outline: none; }
.donate-input { width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; margin-bottom: .6rem; background: var(--paper); }
.donate-input:focus { outline: none; border-color: var(--brand); }
.donate-choose { display: block; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--muted); margin: .4rem 0 .5rem; }
.gateway-choices { display: grid; gap: .5rem; margin-bottom: 1rem; }
.gateway-opt { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease); }
.gateway-opt:hover { border-color: var(--brand); }
.gateway-opt input { accent-color: var(--brand-deep); margin: 0; }
.gateway-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.gateway-opt .gw-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink); flex: none; }
.gateway-opt .gw-ic svg { width: 17px; height: 17px; }
.gateway-opt .gw-label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.donate-email.is-required { border-color: var(--brand); }
.donate-submit { width: 100%; margin-top: .4rem; }
.donate-submit.is-loading { opacity: .7; pointer-events: none; }
.donate-msg { font-size: .9rem; margin-top: .7rem; min-height: 1em; }
.donate-msg.is-success { color: var(--teal); font-weight: 600; }
.donate-msg.is-error { color: #c0392b; font-weight: 600; }
.donate-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; line-height: 1.5; }

.supporters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; }
.supporters h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.supporters-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.supporter { display: flex; align-items: center; gap: .8rem; }
.supporter .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: none; }
.supporter .who { display: flex; flex-direction: column; line-height: 1.2; }
.supporter .who b { font-family: var(--font-head); font-size: .95rem; }
.supporter .who span { font-size: .78rem; color: var(--muted); }
.supporter .amt { margin-left: auto; font-family: var(--font-head); font-weight: 700; color: var(--brand-deep); }
.supporter.is-new { animation: scf-pop .5s var(--ease); }
.supporters-empty { color: var(--muted); font-size: .92rem; }
@keyframes scf-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .event-layout.has-aside { grid-template-columns: 1fr; }
  .event-aside { position: static; }
}

/* =============================================================
   Post media — galleries, slideshow, lightbox
   ============================================================= */
.article-body .wp-block-gallery { gap: .8rem; margin-block: 2rem; }
.article-body .wp-block-image img,
.article-body .wp-block-gallery img { border-radius: var(--radius); }
.scf-zoom { cursor: zoom-in; transition: filter .2s var(--ease); }
.scf-zoom:hover { filter: brightness(.94); }

/* Slideshow (Gallery block with class "slideshow", or [slideshow] shortcode) */
.scf-slideshow { margin-block: 2rem; }
.scf-ss { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--ink); }
.scf-ss-track { display: flex; transition: transform .45s var(--ease); }
.scf-ss-track > * { flex: 0 0 100%; width: 100%; margin: 0; position: relative; }
.scf-ss-track > * img { display: block; width: 100%; height: clamp(240px, 46vw, 560px); object-fit: cover; border-radius: 0; }
.scf-ss-track figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2.4rem 1.2rem .9rem; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
/* Mixed media (video/embeds): letterboxed 16:9 slides */
.scf-ss--mixed .scf-ss-track > * { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--ink); }
.scf-ss--mixed .scf-ss-track img { height: 100%; object-fit: contain; }
.scf-ss--mixed .scf-ss-track .wp-block-embed,
.scf-ss--mixed .scf-ss-track .wp-block-embed__wrapper,
.scf-ss--mixed .scf-ss-track .wp-block-video { width: 100%; height: 100%; margin: 0; }
.scf-ss--mixed .scf-ss-track iframe,
.scf-ss--mixed .scf-ss-track video { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
.scf-ss-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: background .2s var(--ease), transform .2s var(--ease); }
.scf-ss-btn:hover { background: var(--brand); transform: translateY(-50%) scale(1.05); }
.scf-ss-prev { left: .8rem; } .scf-ss-next { right: .8rem; }
.scf-ss-dots { position: absolute; left: 0; right: 0; bottom: .9rem; display: flex; justify-content: center; gap: .4rem; }
.scf-ss-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: background .2s var(--ease), transform .2s var(--ease); }
.scf-ss-dot[aria-current="true"] { background: var(--brand); transform: scale(1.25); }

/* Lightbox */
.scf-lb[hidden] { display: none; }
.scf-lb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: clamp(1rem, 4vw, 3rem); background: rgba(18,20,26,.92); backdrop-filter: blur(4px); animation: scf-fade .2s var(--ease); }
body.scf-lb-open { overflow: hidden; }
.scf-lb-fig { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.scf-lb-fig img { max-width: 100%; max-height: 82vh; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); object-fit: contain; }
.scf-lb-fig figcaption { color: rgba(255,255,255,.85); font-size: .92rem; margin-top: 1rem; text-align: center; max-width: 60ch; }
.scf-lb-close { position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s var(--ease); }
.scf-lb-close:hover { background: var(--brand); color: var(--ink); }
.scf-lb-nav { width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s var(--ease); z-index: 2; }
.scf-lb-nav:hover { background: var(--brand); color: var(--ink); }
.scf-lb-prev { grid-column: 1; } .scf-lb-next { grid-column: 3; }
.scf-lb-count { position: absolute; bottom: 1.1rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-family: var(--font-head); font-size: .9rem; }
@keyframes scf-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .scf-lb { grid-template-columns: 1fr; }
  .scf-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
  .scf-lb-prev { left: .6rem; } .scf-lb-next { right: .6rem; }
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
