/* CeSAHA — Centre for Sustainable Access to Health in Africa
   Brand colours and type live at the top; everything else reuses them. */

:root {
  --clay: #b55b22;        /* primary: header, buttons (deep enough for white text) */
  --clay-dark: #a3561f;
  --clay-soft: #f6e7db;
  --navy: #142c59;        /* headings */
  --navy-dark: #0b1a3a;
  --amber: #f4b13d;       /* accents, hero button */
  --gold: #efb521;
  --teal: #2c9c92;
  --charcoal: #3f434c;    /* body text */
  --muted: #5f646c;
  --sand: #f1ede4;        /* warm section background */
  --cream: #fffcf7;       /* page background */
  --white: #ffffff;
  --line: #e9e2d6;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -18px rgba(20, 44, 89, 0.22);
  --shadow-sm: 0 6px 24px -10px rgba(20, 44, 89, 0.14);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --header-h: 74px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 10px 24px -10px rgba(196, 104, 43, .7); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-accent { background: var(--amber); color: var(--navy-dark); box-shadow: 0 10px 24px -10px rgba(244, 177, 61, .8); }
.btn-accent:hover { background: var(--gold); }
.btn-outline { background: transparent; color: var(--clay-dark); border-color: var(--clay); }
.btn-outline:hover { background: var(--clay); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--clay-soft); color: #8e4a19;
  font-size: 0.76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.eyebrow.light { background: #fff; border: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--clay); color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 30px -22px rgba(0,0,0,.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: #fff; font-weight: 700; padding: 9px 14px; border-radius: 999px; font-size: 1rem; transition: background .15s ease; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.16); text-decoration: none; }
.nav .btn { margin-left: 12px; padding: 10px 22px; background: #fff; color: var(--clay-dark); box-shadow: none; }
.nav .btn:hover { background: var(--amber); color: var(--navy-dark); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; border-radius: 12px; }
.menu-toggle svg { width: 28px; height: 28px; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: var(--clay-dark);
    padding: 12px 16px 20px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(68vh, 640px); display: flex; align-items: center;
  padding: clamp(56px, 7vw, 88px) 0 clamp(80px, 9vw, 120px);
  background: var(--navy-dark) center 22% / cover no-repeat;
  isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,26,58,.72) 0%, rgba(11,26,58,.42) 45%, rgba(11,26,58,.08) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 0;
  background: var(--cream); clip-path: ellipse(60% 100% at 50% 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; font-size: 0.72rem;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 0 1.6em; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: grid; grid-template-columns: repeat(4, auto); gap: 12px; width: fit-content;
}
.hero-stats li {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 12px 18px; min-width: 150px;
}
.hero-stats b { display: block; font-family: var(--font-head); font-size: 1.4rem; line-height: 1.1; color: var(--amber); }
.hero-stats span { font-size: 0.82rem; opacity: .9; }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-stats li { min-width: 0; }
}

/* ---------- Sub-page heroes ---------- */
.page-hero {
  position: relative; color: var(--charcoal); text-align: center;
  padding: clamp(30px, 4vw, 44px) 0;
  background: var(--sand); border-bottom: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: url("/assets/img/arches.png") center / cover no-repeat;
}
.page-hero h1 { color: var(--navy); margin-bottom: .3em; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.page-hero h1::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; margin: 12px auto 0; background: linear-gradient(90deg, var(--clay), var(--amber)); }
.page-hero p { max-width: 680px; margin: 0 auto; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.page-hero.photo { background: var(--navy-dark) center / cover no-repeat; padding: clamp(48px, 7vw, 80px) 0; color: #fff; border: 0; }
.page-hero.photo::before { opacity: 1; background: linear-gradient(180deg, rgba(11,26,58,.25), rgba(11,26,58,.6)); }
.page-hero.photo h1 { color: #fff; }
.page-hero.photo h1::after { background: var(--amber); }
.page-hero.photo p { color: #fff; }

/* ---------- Sections and layout ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.tight { padding: clamp(28px, 4vw, 48px) 0; }
.section.sand { background: var(--sand); }
.section.white { background: #fff; }
.section.navy { background: var(--navy); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; margin: 16px auto 0; background: linear-gradient(90deg, var(--clay), var(--amber)); }
.section-head .lead, .section-head p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split figure { margin: 0; position: relative; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: 16px; }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 20px; background: var(--clay-soft);
}
.card .ico img { width: 46px; height: 46px; object-fit: contain; }
.card .ico svg { width: 34px; height: 34px; color: var(--clay); stroke-width: 1.75; }
.card p:last-child { margin-bottom: 0; }
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .5s ease; }
.card.photo:hover img { transform: scale(1.04); }
.card.photo .body { padding: 24px 26px 28px; }
.card.photo .body h3 { margin-top: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--clay-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4682b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Stats ---------- */
.stats-band { position: relative; background: var(--cream); overflow: hidden; }
.stats-band::before, .stats-band::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 200px; opacity: .8; pointer-events: none;
  background: url("/assets/img/arches.png") left center / cover no-repeat;
}
.stats-band::before { left: 0; }
.stats-band::after { right: 0; background-position: right center; }
@media (max-width: 900px) { .stats-band::before, .stats-band::after { width: 70px; opacity: .45; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 20px 28px; text-align: center; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--clay), var(--amber)); }
.stat b { display: block; font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; color: var(--navy); }
.stat span { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.stat.clay { background: var(--navy); border-color: var(--navy); }
.stat.clay b { color: var(--amber); }
.stat.clay span { color: rgba(255,255,255,.85); }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: center; }
.partners div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px;
  display: flex; align-items: center; justify-content: center; min-height: 100px;
  filter: grayscale(1); opacity: .75; transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.partners div:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.partners img { max-height: 56px; width: auto; object-fit: contain; }
@media (max-width: 900px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .partners { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); text-align: center; transition: transform .25s ease, box-shadow .25s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person img { width: calc(100% - 28px); aspect-ratio: 1; object-fit: cover; object-position: top; margin: 14px auto 0; border-radius: 18px; background: var(--sand); }
.person .body { padding: 22px 22px 26px; }
.person h3 { color: var(--navy); font-size: 1.15rem; margin: 0 0 4px; }
.person .role { color: var(--clay-dark); font-weight: 600; font-size: 0.9rem; margin: 0; }
.person details { margin-top: 14px; text-align: left; }
.person summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  background: var(--clay-soft); color: var(--clay-dark); border-radius: 999px; padding: 8px 16px;
  font-size: 0.85rem; font-weight: 700; margin: 0 auto; transition: background .15s ease, color .15s ease;
}
.person summary:hover, .person details[open] summary { background: var(--clay); color: #fff; }
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: "+"; font-weight: 700; }
.person details[open] summary::after { content: "–"; }
.person details p { margin: 14px 0 0; font-size: 0.95rem; }
.person .creds { display: block; color: var(--muted); font-size: 0.82rem; margin: 4px 0 0; }
.person.compact { display: grid; grid-template-columns: 96px 1fr; text-align: left; align-items: center; gap: 18px; padding: 14px; }
.person.compact img { width: 96px; height: 96px; border-radius: 18px; }
.person.compact .body { padding: 0; }

/* ---------- Programs ---------- */
.program { scroll-margin-top: calc(var(--header-h) + 12px); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 20px; }
.mini-stats div { background: var(--sand); border-radius: var(--radius-sm); padding: 18px 12px; text-align: center; }
.mini-stats b { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--clay-dark); line-height: 1.1; letter-spacing: -0.02em; }
.mini-stats span { font-size: 0.84rem; color: var(--muted); }
.location { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.location h3 { color: var(--navy); font-size: 1.4rem; }
.location .when { display: inline-block; color: var(--clay-dark); background: var(--clay-soft); font-weight: 700; font-size: 0.8rem; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.location-list { display: grid; gap: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.93rem; }
.tags li a { color: var(--navy); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .gal { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery .gal:hover img { transform: scale(1.05); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: 0.85rem; line-height: 1.3; background: linear-gradient(180deg, transparent, rgba(11,26,58,.75)); opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.gallery .gal:hover .cap, .gallery .gal:focus-visible .cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery .cap { opacity: 1; transform: none; } }
.gallery .wide { grid-column: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA ---------- */
.cta {
  position: relative; text-align: center; padding: clamp(64px, 9vw, 110px) 0; color: #fff;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, #1f3f7a); overflow: hidden; isolation: isolate;
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background: url("/assets/img/arches.png") center / cover no-repeat; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { font-size: 1.2rem; max-width: 760px; margin: 0 auto 1.6em; opacity: .9; }
.cta .btn-primary { background: var(--amber); color: var(--navy-dark); }
.cta .btn-primary:hover { background: var(--gold); }

/* ---------- Donate ---------- */
.bank { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.bank h3 { margin-bottom: 16px; }
.bank dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.bank dt { font-weight: 600; color: var(--navy); }
.bank dd { margin: 0; word-break: break-word; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--charcoal); background: #fff;
  border: 1px solid #d9d2c5; border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(196,104,43,.15); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-weight: 500; margin-top: 10px; }
.form-status.ok { color: #1b7a3f; }
.form-status.err { color: #b3261e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--charcoal); font-size: 0.92rem; }
.check input { width: auto; margin-top: 4px; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2 { font-size: 1.35rem; margin: 0; }
.post-card h2 a { color: var(--navy); }
.post-card .meta { color: var(--clay-dark); font-size: 0.82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.post-card p { margin: 0; color: var(--muted); }
.post-card .more { margin-top: auto; padding-top: 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.post-card .more svg { width: 16px; height: 16px; }
.post-hero {
  position: relative; color: var(--charcoal); padding: clamp(32px, 4vw, 48px) 0 0; text-align: center; isolation: isolate; overflow: hidden;
  background: var(--sand);
}
.post-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background: url("/assets/img/arches.png") center / cover no-repeat; }
.post-hero h1 { color: var(--navy); max-width: 820px; margin: 0 auto .4em; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.post-hero .meta { color: var(--clay-dark); font-weight: 600; margin-bottom: 26px; font-size: 0.9rem; }
.post-hero img { width: min(900px, 100% - 32px); margin: 0 auto -90px; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.prose { max-width: 760px; margin: 0 auto; padding-top: 110px; font-size: 1.08rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; box-shadow: var(--shadow-sm); }
.prose blockquote { border-left: 4px solid var(--amber); margin: 1.6em 0; padding: 4px 0 4px 20px; font-style: italic; color: var(--navy); font-size: 1.15rem; }
.prose .tags { margin-top: 30px; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--clay); color: #fff; padding: 64px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a, .site-footer address a { opacity: .9; transition: opacity .15s ease; }
.site-footer li a:hover, .site-footer address a:hover { opacity: 1; }
.site-footer p { opacity: .92; font-size: 0.97rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); align-items: center; justify-content: center; transition: background .15s ease, color .15s ease, transform .15s ease; }
.social a:hover { background: var(--amber); color: var(--navy-dark); text-decoration: none; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.28); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.88rem; opacity: .9; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .person:hover, .post-card:hover { transform: none; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.notfound h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); color: var(--clay); margin-bottom: .1em; }

/* ---------- Polish: floating badges, quote band, marquee, timeline, blog chips ---------- */
.float-badge {
  position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 18px;
  box-shadow: var(--shadow); max-width: calc(100% - 40px); margin: 0;
}
.float-badge b { font-family: var(--font-head); font-size: 1.5rem; color: var(--clay-dark); line-height: 1; white-space: nowrap; }
.float-badge span { font-size: 0.82rem; color: var(--navy); line-height: 1.3; }

.quote-band { background: var(--navy) center 35% / cover no-repeat; color: #fff; text-align: center; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; isolation: isolate; }
.quote-band::before { content: ""; position: absolute; inset: 0; background: rgba(20,44,89,.86); z-index: -1; }
.quote-band blockquote { margin: 0 auto .6em; max-width: 900px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.3; color: var(--amber); letter-spacing: -0.01em; }
.quote-band p { margin: 0 auto; max-width: 640px; opacity: .85; }

.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logo { flex: 0 0 auto; width: 200px; height: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; padding: 18px; transition: transform .25s ease, box-shadow .25s ease; }
.marquee .logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.marquee .logo img { max-height: 54px; max-width: 160px; width: auto; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee { mask-image: none; -webkit-mask-image: none; } }

.timeline { position: relative; display: grid; gap: 26px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--clay), var(--amber)); border-radius: 2px; }
.timeline .location { position: relative; }
.timeline .location::before { content: ""; position: absolute; left: -30px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--clay); }
@media (max-width: 560px) { .timeline { padding-left: 26px; } .timeline .location::before { left: -22px; } }

.post-card .thumb { position: relative; display: block; overflow: hidden; }
.post-card .thumb img { transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .chip { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.94); color: var(--navy); font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ---------- Donorbox embed ---------- */
.donorbox { max-width: 420px; margin: 0 auto; width: 100%; }
.donorbox .frame { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transform: translateZ(0); }
.donorbox iframe { display: block; width: calc(100% + 4px); margin: -2px; border: 0; } /* clips Donorbox's own border */
.donorbox p { text-align: center; }

/* ---------- Map ---------- */
.map-figure { position: relative; margin: 0; max-width: 460px; margin-inline: auto; }
.map-figure::after { display: none; }
.map-figure img { width: 100%; height: auto; box-shadow: none; border-radius: 0; }
.map-pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(244,177,61,.35); }
.map-pin::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; animation: pin 2.2s ease-out infinite; }
@keyframes pin { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-pin::after { animation: none; } }
.map-figure figcaption { text-align: center; margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.map-figure figcaption b { color: var(--clay-dark); }

/* ---------- Accessibility ---------- */
/* Inline arrows inside plain links stay text-sized (buttons set their own size). */
a > svg, p > svg { width: 1em; height: 1em; vertical-align: -0.15em; }
/* Clear focus ring for keyboard users; invisible for mouse clicks. */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .cta :focus-visible, .quote-band :focus-visible { outline-color: #fff; }
.btn:focus-visible { outline-offset: 4px; }
.person summary:focus-visible { outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Programs sticky section menu ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,252,247,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; justify-content: center; padding: 10px 0; overflow-x: auto; }
.subnav a { white-space: nowrap; color: var(--navy); font-weight: 600; font-size: 0.92rem; padding: 8px 16px; border-radius: 999px; border: 1px solid transparent; transition: background .15s ease, color .15s ease; }
.subnav a:hover { background: var(--clay-soft); text-decoration: none; }
.subnav a.active { background: var(--clay); color: #fff; }
.program { scroll-margin-top: calc(var(--header-h) + 70px); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(11,26,58,.9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 96vw; max-height: 82vh; width: auto; height: auto; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; text-align: center; font-size: 0.95rem; max-width: 800px; }
.lightbox .close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox .close:hover { background: var(--amber); color: var(--navy-dark); }
