/* Mildmay Uganda — public site styles, ported from the approved artifact pages.
   Brand colours come from CMS settings as --brand, --accent, --dark, --ground. */

:root { --ink:#13261B; --muted:#4D5F54; --mint:#D3E8DA; --line:#DDEBE1; --font:'Century Gothic','URW Gothic','Didact Gothic',sans-serif; }
html { scroll-behavior:smooth }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto } }
body { margin:0; background:var(--ground); color:var(--ink); font-family:var(--font); font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased }
a { color:var(--brand); text-decoration:none } a:hover { color:var(--dark) }
h1,h2,h3,h4 { margin:0; text-wrap:balance; font-family:var(--font) }
img { max-width:100%; height:auto }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline:2px solid var(--accent); outline-offset:2px }
.skip { position:absolute; left:-999px; top:8px; background:#fff; padding:8px 14px; z-index:100 } .skip:focus { left:8px }

/* ---------- Layout helpers ---------- */
.wrap { max-width:1180px; margin:0 auto; padding-left:max(32px, env(safe-area-inset-left,0px)); padding-right:max(32px, env(safe-area-inset-right,0px)); box-sizing:border-box; width:100% }
.wide { max-width:1320px; margin:0 auto; padding-left:max(32px, env(safe-area-inset-left,0px)); padding-right:max(32px, env(safe-area-inset-right,0px)); box-sizing:border-box; width:100% }
.sec { padding:110px 0 } .bg-white { background:#fff }
.col { display:flex; flex-direction:column } .col-center { display:flex; flex-direction:column; align-items:center }
.row-between { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:16px } .align-end { align-items:flex-end }
.center { text-align:center } .narrow { max-width:820px } .narrow-600{max-width:600px} .narrow-640{max-width:640px} .narrow-660{max-width:660px} .narrow-680{max-width:680px} .narrow-720{max-width:720px} .narrow-820{max-width:820px} .narrow-860{max-width:860px} .narrow-900{max-width:900px}
.flex-560 { flex:1 1 560px; min-width:0 }
.grid-auto { display:grid; gap:22px } .grid-fill { display:grid }
.grid-auto.g-200{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))} .grid-auto.g-220{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))} .grid-auto.g-240{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))} .grid-auto.g-280{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))} .grid-auto.g-300{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.grid-fill.g-250{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))} .grid-fill.g-260{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.gp3{gap:3px} .gp4{gap:4px} .gap-8{gap:8px} .gap-10{gap:10px} .gap-12{gap:12px} .gap-14{gap:14px} .gap-16{gap:16px} .gap-18{gap:18px} .gap-22{gap:22px} .gap-24{gap:24px} .gap-28{gap:28px} .gap-32{gap:32px} .gap-36{gap:36px} .gap-40{gap:40px} .gap-44{gap:44px} .gap-48{gap:48px} .gap-56{gap:56px}
.pt-20{padding-top:20px} .pt-30{padding-top:30px} .pt-90{padding-top:90px} .pb-40{padding-bottom:40px} .pb-80{padding-bottom:80px} .pb-100{padding-bottom:100px} .py-56{padding-top:56px;padding-bottom:56px} .py-80{padding-top:80px;padding-bottom:80px}
.fs-10{font-size:10px} .fs-11{font-size:11px} .fs-12{font-size:12px} .fs-13{font-size:13px} .fs-14{font-size:14px} .fs-15{font-size:15px} .fs-16{font-size:16px} .fs-18{font-size:18px} .fs-19{font-size:19px} .fs-20{font-size:20px} .fs-22{font-size:22px} .fs-24{font-size:24px} .fs-28{font-size:28px} .fs-30{font-size:30px} .fs-40{font-size:40px}
.lh-1{line-height:1} .lh-16{line-height:1.6} .lh-17{line-height:1.7} .fw-700{font-weight:700}
.muted { color:var(--muted) } .c-mint { color:var(--mint) } .tc-brand { color:var(--brand) } .tc-accent { color:var(--accent) }
.up { text-transform:none; letter-spacing:0; font-weight:700 }
.caps { text-transform:uppercase; letter-spacing:.08em }
.big {} .eyebrow { font-size:12px; color:var(--brand) }
.h-30{font-size:30px} .h-32{font-size:32px;line-height:1.3} .h-34{font-size:34px;line-height:1.25} .h-36{font-size:36px;line-height:1.2} .h-38{font-size:38px;line-height:1.2}
.lead { margin:0; font-size:15px; font-weight:700; line-height:1.6 } .body { margin:0; font-size:15px; line-height:1.75; color:var(--muted) }
.hl { color:var(--accent) } .hl.it, .it { font-style:italic }

/* ---------- Buttons ---------- */
.btn-brand,.btn-accent,.btn-dark,.btn-outline { display:inline-block; padding:15px 26px; border-radius:2px; font-size:12px; font-weight:700; align-self:flex-start; border:0; cursor:pointer; font-family:var(--font) }
.btn-brand { background:var(--brand); color:#fff } .btn-brand:hover { background:var(--dark); color:#fff }
.btn-accent { background:var(--accent); color:var(--ink) } .btn-accent:hover { filter:brightness(.95); color:var(--ink) }
.btn-dark { background:#16241C; color:#fff; padding:14px 24px } .btn-dark:hover { color:#fff; background:#000 }
.btn-outline { border:1.5px solid var(--brand); color:var(--brand); padding:13.5px 24px; background:transparent }
.btn-pill { align-self:flex-start; background:var(--brand); color:#fff; padding:13px 26px; border-radius:999px; font-size:15px } .btn-pill:hover { background:var(--dark); color:#fff }
.btn-outline-pill { border:1.5px solid var(--brand); color:var(--brand); padding:13px 26px; border-radius:999px; font-size:15px } .btn-outline-pill:hover { background:var(--brand); color:#fff }

/* ---------- Image placeholders / images ---------- */
.ph { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:rgba(255,255,255,.85); background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.06) 0 2px,transparent 2px 16px); overflow:hidden; max-width:100% }
.ph.has-img { background-image:none } .ph.has-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.ph-cap { font-size:12px; line-height:1.4; background:rgba(6,52,26,.45); color:#fff; padding:5px 12px; border-radius:999px; text-align:center; max-width:85% }
.photo-box { background:#C9DCCF; display:flex; align-items:flex-start; padding:12px; box-sizing:border-box; max-width:100% }
.photo-box span { font-size:12px; color:#2A302C; background:rgba(255,255,255,.9); padding:4px 8px }

/* ---------- Top bar ---------- */
.topbar { background:var(--brand); color:#fff; font-size:13px; position:relative; z-index:30 }
.topbar-in { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; padding-top:8px; padding-bottom:8px }
.topbar-contact { display:flex; flex-wrap:wrap; gap:22px } .topbar-contact > span { display:flex; gap:6px; align-items:center } .topbar .ic { color:var(--accent) }
.topbar-right { display:flex; align-items:center; gap:18px } .topbar-right > a { color:#fff; display:flex } .topbar-right > a:hover { color:var(--accent) }
.dd { position:relative } .dd-menu { display:none; position:absolute; top:100%; z-index:40; background:#fff; box-shadow:0 12px 26px rgba(6,52,26,.2); flex-direction:column; padding:6px 0; border-top:3px solid var(--accent) }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display:flex }
.dd-menu a { color:var(--ink); padding:10px 18px; font-size:var(--dd-size, 14px); white-space:nowrap; text-transform:none; letter-spacing:normal; font-weight:400 } .dd-menu a.on { color:var(--brand) } .dd-menu a:hover { background:#E4F2E9; color:var(--brand) }
.dd.quick { border-left:1px solid rgba(255,255,255,.35); padding-left:16px }
.dd.quick button { background:transparent; border:0; color:#fff; font-family:inherit; font-size:13px; cursor:pointer; padding:8px 0 }
.dd.quick .dd-menu { left:16px; min-width:160px }
.dd-menu.work { left:0; min-width:300px }

/* ---------- Header (inside hero / banner) ---------- */
.site-header { position:relative; z-index:25; width:100% }
.header-in { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; padding-top:var(--hdr-pad, 10px); padding-bottom:var(--hdr-pad, 10px) }
.brand { display:flex; align-items:center; gap:10px; color:#fff } .brand:hover { color:#fff }
.site-header .brand-mark { width:var(--logo-h, 46px); height:var(--logo-h, 46px); font-size:calc(var(--logo-h, 46px) * .45) } .brand-mark { width:46px; height:46px; border-radius:50%; background:#fff; color:var(--brand); display:flex; align-items:center; justify-content:center; font-size:21px; font-weight:700; flex-shrink:0 }
.brand-mark.sm { width:36px; height:36px; font-size:16px }
.brand-name { display:flex; flex-direction:column; line-height:1.1 } .brand-name .up { font-size:18px } .brand-sub { font-size:10px; color:#BFE0CC }
.brand-logo { image-rendering:auto; height:var(--logo-h, 52px); width:auto; max-width:min(320px, 60vw); object-fit:contain; transition:height .25s ease }
.mainnav { display:flex; flex-wrap:wrap; align-items:center; gap:var(--nav-gap, 22px); font-size:var(--nav-size, 14px); font-family:var(--nav-font, inherit); font-weight:var(--nav-weight, 400); text-transform:var(--nav-transform, none); letter-spacing:var(--nav-ls, normal) }
.mainnav > a, .mainnav .dd-trigger { color:var(--nav-color, #fff); padding:6px 0 } button.dd-trigger { background:none; border:0; font:inherit; cursor:pointer; letter-spacing:inherit; text-transform:inherit } .mainnav > a:hover, .mainnav .dd-trigger:hover, .mainnav .on { color:var(--nav-hover, var(--accent)) }
.btn-donate { background:var(--don-bg, var(--accent)); color:var(--don-color, var(--ink)) !important; padding:12px 22px !important; border-radius:var(--don-radius, 2px); font-size:var(--don-size, 12px); font-weight:700; letter-spacing:.06em; text-transform:uppercase } .btn-donate:hover { filter:brightness(1.06) }
.nav-toggle { display:none; background:transparent; border:1px solid rgba(255,255,255,.5); border-radius:6px; width:46px; height:42px; padding:10px; cursor:pointer; flex-direction:column; justify-content:space-between }
.nav-toggle span { display:block; height:2px; background:#fff; border-radius:2px }

/* ---------- Hero ---------- */
.hero { position:relative; color:#fff; min-height:700px; display:flex; flex-direction:column; background:var(--dark) }
.hero-plain { min-height:0 }
/* Slide text position: the page-wide choice (Pages → Home → Hero slider), which a slide can override.
   Corners keep the photo in view; each slide carries pos-* on its text and its background. */
.hero .hero-in { justify-content:flex-end; padding-bottom:86px; max-width:1320px; padding-left:max(32px, env(safe-area-inset-left,0px)); padding-right:max(32px, env(safe-area-inset-right,0px)) }   /* lines up with the logo and Donate button */
.hero-slide.pos-bottom-right, .hero-slide.pos-bottom-left { max-width:min(560px, 100%); gap:14px }
.hero-slide.pos-bottom-right { align-self:flex-end; align-items:flex-end; text-align:right }
.hero-slide.pos-bottom-left { align-self:flex-start; align-items:flex-start; text-align:left }
.hero-slide.pos-center { align-self:center; margin:auto 0; text-align:center }
.hero-slide.pos-bottom-right .hero-title, .hero-slide.pos-bottom-left .hero-title { font-size:44px; line-height:1.1; text-shadow:0 2px 14px rgba(0,0,0,.45) }
.hero-slide.pos-bottom-right p, .hero-slide.pos-bottom-left p { font-size:16px; text-shadow:0 1px 8px rgba(0,0,0,.45) }
.hero-slide.pos-bottom-right .btn-accent { align-self:flex-end } .hero-slide.pos-bottom-left .btn-accent { align-self:flex-start }
/* a soft shade behind the corner the text sits in, instead of darkening the whole photo */
.hero-bg.shaded.pos-bottom-right::after { background:radial-gradient(120% 90% at 100% 100%, rgba(6,40,22,.72) 0, rgba(6,40,22,.35) 45%, rgba(6,40,22,0) 75%) }
.hero-bg.shaded.pos-bottom-left::after { background:radial-gradient(120% 90% at 0 100%, rgba(6,40,22,.72) 0, rgba(6,40,22,.35) 45%, rgba(6,40,22,0) 75%) }
/* Slide controls: a vertical list of numbers at the middle of the left edge; the current slide's
   number is brighter with a line drawn beside it. The pause button (video slides) sits underneath. */
.hero .hero-controls { position:absolute; left:max(32px, calc((100% - 1320px) / 2 + 32px)); top:50%; bottom:auto; transform:translateY(-50%);
  flex-direction:column; align-items:flex-start; gap:26px; padding-top:0; z-index:6 }
.hero .hero-dots { flex-direction:column; gap:22px; padding-top:0 }
.hero .hero-dots button.hero-num { width:auto; height:auto; background:none; border:0; padding:2px 0; display:flex; align-items:center; gap:14px;
  color:rgba(255,255,255,.62); font-family:inherit; font-size:16px; letter-spacing:.06em; line-height:1; cursor:pointer; transition:color .3s; text-shadow:0 1px 6px rgba(0,0,0,.4) }
.hero .hero-dots button.hero-num::after { content:''; display:block; width:0; height:1px; background:#fff; transition:width .45s ease }
.hero .hero-dots button.hero-num:hover { color:#fff }
.hero .hero-dots button.hero-num.on { color:#fff; width:auto; background:none }
.hero .hero-dots button.hero-num.on::after { width:64px }
.hero:has(.hero-dots) .hero-slide.pos-bottom-left { margin-left:140px }   /* text in the left corner starts clear of the numbers */
@media (max-width:700px) {
  /* phones: a small row of numbers at the top-left of the photo, away from the text */
  .hero .hero-controls { left:max(16px, env(safe-area-inset-left,0px)); top:16px; transform:none; flex-direction:row; align-items:center; gap:16px }
  .hero .hero-dots { flex-direction:row; gap:14px } .hero .hero-dots button.hero-num { font-size:13px; gap:8px } .hero .hero-dots button.hero-num.on::after { width:26px }
  .hero:has(.hero-dots) .hero-slide.pos-bottom-left { margin-left:0 }
}
.hero.text-bottom-left .hero-hl { left:auto; right:max(32px, calc((100% - 1180px) / 2 + 32px)) }   /* keep the video highlight out of the text's corner */
@media (max-width:900px) { .hero .hero-in { padding-left:max(16px, env(safe-area-inset-left,0px)); padding-right:max(16px, env(safe-area-inset-right,0px)) } }
@media (max-width:700px) {
  .hero .hero-in { padding-bottom:76px }

  .hero-slide.pos-bottom-right .hero-title, .hero-slide.pos-bottom-left .hero-title { font-size:30px }
  .hero-slide.pos-bottom-right p, .hero-slide.pos-bottom-left p { font-size:14px }
}
/* Slides fill the whole hero behind the transparent menu. The strip behind the logo and menu has its own
   darkness (--menu-shade, 0 = clear, 1 = black; set in the CMS), so the menu stays readable and, when dark,
   the video reads as starting below it. --hdr-h is the menu's height, measured by site.js.
   This layer clips the slides, so the phone menu itself can still open past the bottom of the hero. */
.hero { background:#0B0B0B }
.hero-media { position:absolute; inset:0; overflow:hidden }
.hero-bg { filter:brightness(var(--hero-bright, 1)) }
.hero-menu-shade { position:absolute; left:0; right:0; top:0; height:var(--hdr-h, 92px); background:rgba(0,0,0,var(--menu-shade, .35)); z-index:6; pointer-events:none }

.hero-bg { position:absolute; inset:0; opacity:0; transition:opacity .8s ease } .hero-bg.on { opacity:1 }
.hero-cap { position:absolute; left:24px; bottom:22px }
.hero-in { position:relative; flex-grow:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:22px; padding-top:40px; padding-bottom:90px }
.hero-slide { display:flex; flex-direction:column; align-items:center; gap:22px }
.hero-slide .hero-title { margin:0; font-size:62px; line-height:1.08; max-width:900px }
.hero-slide p { margin:0; font-size:17px; color:#E4F2E9; max-width:620px }
.hero-slide .btn-accent { align-self:center; font-size:13px; padding:15px 28px }
.hero-arrow { position:absolute; top:52%; width:44px; height:44px; border:0; background:transparent; color:#fff; font-size:30px; cursor:pointer; z-index:5 } .hero-arrow.prev { left:14px } .hero-arrow.next { right:14px }
.hero-dots { display:flex; gap:8px; padding-top:12px } .hero-dots button { width:18px; height:4px; border:0; padding:0; background:rgba(255,255,255,.45); cursor:pointer } .hero-dots button.on { width:40px; background:var(--accent) }

/* Hero: video slides and text-free slides */
.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block }
.hero-bg { container-type:size }
.hero-yt { position:absolute; inset:0; overflow:hidden; opacity:0; transition:opacity .6s ease; pointer-events:none }
.hero-yt.playing { opacity:1 }
/* 16:9 player scaled to cover the banner; the slight zoom crops YouTube's title bar and logo */
.hero-yt iframe { position:absolute; top:50%; left:50%; width:max(100cqw, 177.78cqh); height:max(100cqh, 56.25cqw); transform:translate(-50%, -50%) scale(1.18); border:0 }
.hero-bg.shaded::after { content:""; position:absolute; inset:0; background:rgba(6,40,22,.4) }
/* Overlay over every slide: darkest under the top bar, fading lighter down the banner (strength set in the CMS) */
.hero-overlay { position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to bottom, rgba(4,30,16,var(--ov-top,.7)) 0, rgba(4,30,16,calc(var(--ov-top,.7) * .75)) 18%, rgba(4,30,16,var(--ov-mid,.38)) 50%, rgba(4,30,16,var(--ov-bot,.25)) 100%) }
/* Key-area highlight while a video plays */
.hero-hl { position:absolute; left:max(32px, calc((100% - 1180px) / 2 + 32px)); bottom:96px; z-index:6; max-width:min(440px, calc(100% - 64px)) }
.hero-hl-card { display:flex; flex-direction:column; gap:4px; padding:14px 18px 14px 20px; border-left:4px solid var(--accent); background:rgba(4,30,16,.55); backdrop-filter:blur(4px); color:#fff; text-decoration:none;
  opacity:0; transform:translateY(10px); transition:opacity .45s ease, transform .45s ease }
.hero-hl-card.show { opacity:1; transform:none }
a.hero-hl-card[href]:not([href="#"]):hover .hero-hl-title { color:var(--accent) }
.hero-hl-card[href="#"] { pointer-events:none }
.hero-hl-kicker { font-size:11px; letter-spacing:.12em; color:var(--accent) }
.hero-hl-title { font-size:22px; line-height:1.2; font-weight:700 }
.hero-hl-sub { font-size:14px; color:#DCEFE3 } .hero-hl-sub:empty { display:none }
.hero-progress { position:absolute; left:0; right:0; bottom:0; height:4px; background:rgba(255,255,255,.18); z-index:6 }
.hero-progress-bar { position:absolute; left:0; top:0; bottom:0; width:0; background:var(--accent); transition:width .25s linear }
.hero-progress-ticks i { position:absolute; top:-3px; width:2px; height:10px; background:#fff; opacity:.75 }
@media (max-width:700px) { .hero-hl { left:16px; right:16px; bottom:84px; max-width:none } .hero-hl-title { font-size:17px } .hero-hl-sub { font-size:13px } }
@media (prefers-reduced-motion:reduce) { .hero-hl-card { transition:none } }
.hero-slide.empty { min-height:1px }
.hero .hero-in:has(.hero-slide.on.empty) { padding-bottom:34px }
.hero-controls { display:flex; align-items:center; gap:16px; padding-top:12px }
.hero-controls .hero-dots { padding-top:0 }
.hero-pause { width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,.6); background:rgba(0,0,0,.25); color:#fff; font-size:11px; line-height:1; cursor:pointer; letter-spacing:-1px }
.hero-pause[aria-pressed="true"] { font-size:13px; letter-spacing:0 }
.hero-pause:focus-visible, .hero-arrow:focus-visible, .hero-dots button:focus-visible { outline:2px solid var(--accent); outline-offset:3px }

/* ---------- Banner (inner pages) ---------- */
.banner { position:relative; color:#fff; display:flex; flex-direction:column; align-items:stretch }
.banner.ph { align-items:stretch; justify-content:flex-start; gap:0 }
.banner-cap { position:absolute; right:24px; bottom:14px; max-width:none }
.banner-in { display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding-top:40px; padding-bottom:56px }
.banner-in h1 { font-size:52px; line-height:1.1 } .banner-in.small h1 { font-size:36px; max-width:900px }
.crumbs { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; font-size:13px; color:#E4F2E9 } .crumbs a { color:var(--accent) }

/* ---------- Split sections with quote card ---------- */
.split { display:flex; flex-wrap:wrap; gap:56px; align-items:center } .split.align-start { align-items:flex-start }
.split-text { flex:1 1 460px; min-width:0; display:flex; flex-direction:column; gap:20px }
.split-media { flex:1 1 440px; min-width:0; position:relative; min-height:480px }
.quote-card { position:absolute; left:0; bottom:-24px; background:var(--dark); color:#fff; box-sizing:border-box; display:flex; flex-direction:column; box-shadow:0 12px 28px rgba(6,52,26,.25) }
.quote-card.sm { width:min(300px,62%); padding:20px 22px; gap:12px } .quote-card.sm p { margin:0; font-size:14px; line-height:1.55; border-left:2px solid var(--accent); padding-left:12px }
.quote-card.sm .who { display:flex; gap:10px; align-items:center; padding-left:14px } .quote-card.sm .nm { display:block; font-size:12px } .quote-card.sm .rl { display:block; font-size:11px; color:#BFE0CC }
.quote-card.dark { background:#16241C; width:70%; padding:32px; gap:20px; box-shadow:none } .quote-card.dark p { margin:0; font-size:18px; line-height:1.5; border-left:2px solid var(--accent); padding-left:18px }
.quote-card.dark .who { display:flex; gap:12px; align-items:center; padding-left:20px } .quote-card.dark .nm { display:block; font-size:14px } .quote-card.dark .rl { display:block; font-size:12px; color:#A9CDB5 }
.aside-col { flex:1 1 360px; min-width:0; display:flex; flex-direction:column; gap:22px }

/* ---------- Home: impact ---------- */
.impact-head { margin-bottom:56px }
@media (max-width:700px) { .impact-head { margin-bottom:32px } }
.hub-circle.has-logo { padding:34px } .hub-logo { max-width:100%; max-height:120px; width:auto; height:auto; object-fit:contain }
.stat-card { background:#fff; padding:40px 26px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; box-shadow:0 10px 30px rgba(6,52,26,.07); border-bottom:3px solid var(--brand) }
.icon-bubble { width:64px; height:64px; border-radius:50%; background:#E4F2E9; color:var(--brand); display:flex; align-items:center; justify-content:center }

/* ---------- Home: group hub ---------- */
.hub-row { display:flex; align-items:center }
.hub-side { flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:56px } .hub-side.left { align-items:flex-end; text-align:right } .hub-side.right { align-items:flex-start; text-align:left }
.hub-item { display:flex; align-items:center; gap:22px } .hub-text { display:flex; flex-direction:column; gap:6px; max-width:260px }
.hub-node { width:170px; height:170px; border-radius:50%; background-color:var(--tint); border:6px solid #fff; box-shadow:0 0 0 2px var(--tint); flex-shrink:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:rgba(255,255,255,.85); overflow:hidden; position:relative; background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.06) 0 2px,transparent 2px 16px) }
.hub-node img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover } .hub-node-cap { font-size:10px; color:#fff; text-align:center; max-width:110px; line-height:1.3 }
.hub-line { width:40px; height:2px } .hub-centre { flex:0 0 auto; padding:24px }
.hub-circle { width:220px; height:220px; border-radius:50%; background:var(--brand); color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:6px; box-shadow:0 0 0 12px #E4F2E9,0 0 0 13px #BFE0CC }
.hub-top { font-size:12px; color:var(--accent); font-weight:700 } .hub-title { font-size:23px; line-height:1.15 } .hub-sub { font-size:12px; color:#E4F2E9 }

/* ---------- Programme cards + carousel ---------- */
.pv { --per:3; overflow:hidden; margin:-20px; padding:20px }
.pt { display:flex; flex-wrap:nowrap; gap:28px; transition:transform .7s cubic-bezier(.22,.7,.2,1); will-change:transform }
.pv:not(.js) { overflow-x:auto; scroll-snap-type:x mandatory } .pv:not(.js) .pc { scroll-snap-align:start }   /* without scripts: scroll sideways */
.pv.js { touch-action:pan-y }
.pc-controls { display:flex; align-items:center; justify-content:center; gap:18px; margin-top:-14px }
.pc-controls[hidden] { display:none }
.pc-arrow { width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:#fff; color:var(--brand); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .2s, color .2s, border-color .2s }
.pc-arrow:hover { background:var(--brand); color:#fff; border-color:var(--brand) }
.pc-dots { display:flex; gap:8px; align-items:center }
.pc-dots button { width:8px; height:8px; border-radius:999px; border:0; padding:0; background:#C9DCCF; cursor:pointer; transition:width .3s, background .3s }
.pc-dots button[aria-current="true"] { width:26px; background:var(--brand) }
.pc-arrow:focus-visible, .pc-dots button:focus-visible { outline:2px solid var(--accent); outline-offset:3px }
.pt .pc { flex:0 0 calc((100% - (var(--per) - 1) * 28px) / var(--per)); max-width:calc((100% - (var(--per) - 1) * 28px) / var(--per)); min-width:0 }
.pc { border-radius:24px; overflow:hidden; background:#fff; box-shadow:0 12px 34px rgba(6,52,26,.09); display:flex; flex-direction:column }
.pc-media { position:relative } .pc-tag { position:absolute; left:18px; top:18px; background:#fff; color:var(--brand); padding:6px 14px; border-radius:999px; font-size:12px; z-index:2 }
.pc-body { padding:28px; display:flex; flex-direction:column; gap:14px; flex-grow:1 } .pc-body h3 { font-size:21px; line-height:1.3 } .pc-body p { margin:0; font-size:15px; line-height:1.6; color:var(--muted); flex-grow:1 }
/* ---------- Logos: automatic white / greyscale versions ---------- */
.logo-white { filter:brightness(0) invert(1) } .logo-grey { filter:grayscale(1) }
.footer-logo { height:48px; width:auto; max-width:240px; object-fit:contain }
/* ---------- Header: white style, sticky, back to top ---------- */
.header-slot { position:relative; z-index:25 }
.site-header.nav-white { background:#fff; box-shadow:0 2px 14px rgba(6,40,22,.08) }
.nav-white .brand, .nav-white .brand:hover { color:var(--dark) } .nav-white .brand-sub { color:var(--muted) }
.nav-white .brand-mark { background:var(--brand); color:#fff }
.nav-white .mainnav > a, .nav-white .mainnav .dd-trigger { color:var(--nav-color, var(--ink)) }
.nav-white .mainnav > a:hover, .nav-white .mainnav .dd-trigger:hover, .nav-white .mainnav .on { color:var(--nav-hover, var(--brand)) }
.nav-white .nav-toggle { border-color:var(--line) } .nav-white .nav-toggle span { background:var(--dark) }
.site-header.stuck { position:fixed; top:0; left:0; right:0; z-index:60; animation:hdr-in .28s ease both }
.site-header.stuck.nav-transparent { background:rgba(10,40,24,.96); box-shadow:0 4px 18px rgba(0,0,0,.18) }
.site-header.stuck.nav-white { box-shadow:0 4px 18px rgba(6,40,22,.14) }
.site-header.stuck .header-in { padding-top:min(var(--hdr-pad, 10px), 8px); padding-bottom:min(var(--hdr-pad, 10px), 8px) }
.site-header.stuck .brand-logo { height:var(--logo-h-stuck, 40px) }
.site-header.stuck .brand-mark { width:var(--logo-h-stuck, 40px); height:var(--logo-h-stuck, 40px); font-size:calc(var(--logo-h-stuck, 40px) * .45) }
@keyframes hdr-in { from { transform:translateY(-100%) } to { transform:none } }
html { scroll-padding-top:var(--sticky-h, 0px) }
.to-top { position:fixed; right:20px; bottom:20px; z-index:55; width:48px; height:48px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 22px rgba(6,40,22,.28); opacity:0; transform:translateY(12px); transition:opacity .25s ease, transform .25s ease, background .2s }
.to-top.show { opacity:1; transform:none } .to-top:hover { background:var(--accent); color:var(--ink) } .to-top[hidden] { display:none }
.to-top:focus-visible { outline:3px solid var(--accent); outline-offset:3px }
@media (prefers-reduced-motion:reduce) { .site-header.stuck { animation:none } .to-top { transition:none } }

@media (max-width:900px) { .pv { margin:-20px -16px; padding:20px 16px } }
@media (max-width:700px) { .pv { --per:1 } }
@media (prefers-reduced-motion:reduce) { html[data-motion="respect"] .lt { animation:none } html[data-motion="respect"] .pt { transition:none } }

/* ---------- Bands ---------- */
.band { position:relative; color:#fff; padding:96px 0 } .band.ph { align-items:stretch; display:block }
.band-in { display:flex; flex-wrap:wrap; gap:40px; align-items:center; justify-content:space-between; position:relative } .band-in h2 { flex:1 1 560px; max-width:720px }
.band-cap { position:absolute; left:24px; bottom:16px; max-width:none } .band-note { position:absolute; left:24px; bottom:16px; font-size:12px; color:#A9CDB5 }
.play { width:96px; height:96px; border-radius:50%; background:#fff; color:var(--brand); display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 12px rgba(255,255,255,.18); flex-shrink:0 } .play.accent { color:var(--accent) }

/* ---------- Events + news ---------- */
.two-col { display:flex; flex-wrap:wrap; gap:56px } .ev-col { flex:1 1 380px; min-width:0; display:flex; flex-direction:column; gap:22px } .news-col { flex:2 1 600px; min-width:0; display:flex; flex-direction:column; gap:22px }
.ev-row { display:flex; gap:18px; align-items:center; color:var(--ink); border-bottom:1px solid var(--line); padding-bottom:18px } .ev-row:hover { color:var(--brand) }
.ev-date { width:70px; height:70px; border-radius:16px; color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; flex-shrink:0; line-height:1.1 } .ev-date .d { font-size:22px } .ev-date .m { font-size:11px }
.ev-text { display:flex; flex-direction:column; gap:4px } .ev-text .t { font-size:18px } .ev-text .v { font-size:14px; color:var(--muted) }
.news-card { color:var(--ink); display:flex; flex-direction:column; gap:14px } .news-card:hover { color:var(--brand) }
.news-media { position:relative } .news-date { position:absolute; left:14px; bottom:14px; background:#fff; border-radius:12px; padding:8px 12px; font-size:13px; color:var(--brand); z-index:2 }
.news-tag { font-size:13px; color:var(--brand) } .news-title { font-size:19px; line-height:1.35; font-weight:400 }
.news-block { display:flex; flex-direction:column; gap:12px }
.event-full { display:flex; flex-direction:column; gap:10px } .ev-body { padding-left:88px } .ev-img { margin-left:88px; width:calc(100% - 88px); max-height:340px; object-fit:cover; border-radius:16px }

/* ---------- Partners marquee ---------- */
.partners { background:#fff; padding:48px 0 }
.lv { overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent) }
.lt { display:flex; flex-wrap:nowrap; gap:56px; width:max-content; animation:lslide 40s linear infinite } .lv:hover .lt { animation-play-state:paused }
.lt .logo { flex:0 0 auto; display:flex; align-items:center } .logo-img { max-height:64px; width:auto; max-width:210px; object-fit:contain }
@keyframes lslide { to { transform:translateX(calc(-50% - 28px)) } }

/* ---------- About page (dark + amber template) ---------- */
.about-page { background:#F5F3EE; color:#1A1F1C }
.checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding-top:4px } .checks > span { display:flex; gap:10px; align-items:center; font-size:14px }
.tick { width:22px; height:22px; background:var(--accent); color:#1A1F1C; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0 }
.value-card { background:#fff; padding:40px 28px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; box-shadow:0 10px 30px rgba(22,36,28,.07) }
.group-band { background:var(--accent); color:#1A1F1C } .group-band .row-between { align-items:center }
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)) }
.tile { position:relative; min-height:420px; color:#fff; display:flex; flex-direction:column; justify-content:flex-end; gap:12px; padding:28px; box-sizing:border-box; border-right:1px solid rgba(255,255,255,.08) } .tile:hover { color:#fff; filter:brightness(1.08) }
.tile-cap { position:absolute; left:16px; top:14px; font-size:11px; color:#A9CDB5 } .tile-n { position:absolute; right:22px; top:22px; font-size:48px; color:rgba(255,255,255,.12) }
.tile-role { color:#D3E8DA; letter-spacing:.18em } .tile-name { font-size:20px; line-height:1.25; color:var(--accent) } .tile-text { font-size:13px; line-height:1.6; color:#E6EFE9 } .tile-url { font-size:12px; display:flex; gap:6px }
.counters { background:#16241C; color:#fff; padding:72px 0 }
.leaders-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:22px }
.leader-card { background:#fff; display:grid; grid-template-columns:170px minmax(0,1fr); border-bottom:3px solid var(--accent); margin:0 }
.leader-card.lead { grid-column:1 / -1; grid-template-columns:minmax(220px,300px) minmax(0,1fr) }
.leader-card .lc-photo { background:#C9DCCF; min-height:220px; overflow:hidden }
.leader-card .lc-photo img { width:100%; height:100%; object-fit:cover; object-position:center 20%; display:block }
.leader-card .lc-body { padding:26px 28px; display:flex; flex-direction:column; gap:16px; justify-content:center }
.leader-card .lc-name { font-size:17px; line-height:1.25; margin:0 } .leader-card.lead .lc-name { font-size:22px }
.leader-card .lc-role { letter-spacing:.08em; font-weight:700 }
.leader-card .lc-quote { margin:0; padding:0 0 0 18px; border-left:2px solid var(--line); display:flex; flex-direction:column; gap:8px }
.leader-card .lc-qtitle { margin:0; font-size:15px; font-weight:700; color:var(--ink) }
.leader-card .lc-qtext { margin:0; font-weight:400; font-size:14px; line-height:1.7; color:var(--muted) }
.leader-card.lead .lc-body { padding:40px 44px } .leader-card.lead .lc-qtitle { font-size:19px } .leader-card.lead .lc-qtext { font-size:15.5px; max-width:640px }
.leader-card.lead .lc-quote { position:relative; padding-left:22px; border-left-color:var(--accent) }
@media (max-width:900px) { .leaders-grid { grid-template-columns:minmax(0,1fr) } .leader-card.lead { grid-template-columns:200px minmax(0,1fr) } .leader-card.lead .lc-body { padding:28px } }
@media (max-width:560px) { .leader-card, .leader-card.lead { grid-template-columns:minmax(0,1fr) } .leader-card .lc-photo { aspect-ratio:4/3; min-height:0 } .leader-card .lc-body, .leader-card.lead .lc-body { padding:22px } }
.people-ctas { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:22px } .people-ctas.one { grid-template-columns:minmax(0,1fr) }
.people-cta { background:#fff; border-top:4px solid var(--brand); padding:36px 40px; display:flex; flex-direction:column; justify-content:space-between; gap:28px }
.people-cta + .people-cta { border-top-color:var(--accent) }
.people-cta h3 { line-height:1.2 }
.people-cta-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-top:22px; border-top:1px solid var(--line) }
.people-cta-count { font-size:13px; color:var(--muted) } .people-cta-count strong { font-size:28px; color:var(--brand); font-weight:700; margin-right:4px; vertical-align:-3px }
@media (max-width:800px) { .people-ctas { grid-template-columns:minmax(0,1fr) } .people-cta { padding:28px 24px } }
.board-mini { background:#fff; padding:16px; display:flex; gap:14px; align-items:center }
.band.dark { padding:96px 0 }

/* ---------- Board page ---------- */
.profile-card { background:#fff; display:flex; flex-direction:column; box-shadow:0 10px 30px rgba(22,36,28,.06); border-bottom:3px solid var(--brand) }
.pc-in { padding:20px 22px 24px; display:flex; flex-direction:column; gap:8px; flex-grow:1 }
.leaders-band { background:var(--dark); color:#fff; padding:100px 0 }
.leader-quote { background:#fff; color:#1A1F1C; padding:28px; display:flex; flex-direction:column; gap:16px }
.lq { margin:0; font-size:14px; line-height:1.65; color:var(--muted); border-left:2px solid var(--accent); padding-left:14px }

/* ---------- Inner pages ---------- */
.prose { font-size:16px; line-height:1.75; color:#2A302C } .prose h2,.prose h3,.prose h4 { margin:1.6em 0 .5em; color:var(--ink) } .prose h3 { font-size:22px } .prose p { margin:0 0 1em } .prose ul,.prose ol { padding-left:1.3em; margin:0 0 1em } .prose li { margin-bottom:.4em } .prose img { border-radius:12px } .prose a { text-decoration:underline }
.prose blockquote { margin:1.5em 0; border-left:3px solid var(--accent); padding-left:18px; color:var(--muted) }
.cta-box { background:var(--dark); color:#fff; padding:28px; display:flex; flex-direction:column; gap:14px; border-radius:18px }
.mini-prog { background:var(--ground); border-radius:18px; padding:24px; display:flex; flex-direction:column; gap:10px; color:var(--ink); border-bottom:3px solid var(--tint) } .mini-prog:hover { background:#E4F2E9; color:var(--ink) }
.mp-ic { width:52px; height:52px; border-radius:50%; background:var(--tint); color:#fff; display:flex; align-items:center; justify-content:center }
.chips { display:flex; flex-wrap:wrap; gap:8px } .chips a { padding:8px 16px; border-radius:999px; border:1px solid var(--line); background:#fff; font-size:13px; color:var(--ink) } .chips a.on, .chips a:hover { background:var(--brand); border-color:var(--brand); color:#fff }
.pager { display:flex; gap:8px; justify-content:center } .pager a { min-width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#fff; color:var(--ink) } .pager a.on { background:var(--brand); color:#fff }
.reports-box { background:var(--dark); color:#fff; border-radius:24px; padding:40px; display:flex; flex-wrap:wrap; gap:20px; align-items:center; justify-content:space-between }
.pill-tag { background:#E4F2E9; color:var(--brand); padding:6px 14px; border-radius:999px; font-size:13px } .post-hero { width:100%; border-radius:24px; max-height:520px; object-fit:cover }
.job-card { background:#fff; padding:28px; display:flex; flex-direction:column; gap:12px; box-shadow:0 10px 30px rgba(6,52,26,.06); border-bottom:3px solid var(--brand) }
.job-meta { display:flex; flex-wrap:wrap; gap:8px } .job-meta span { background:#E4F2E9; color:var(--dark); padding:4px 10px; border-radius:999px; font-size:12px }
.job-facts { background:#fff; padding:24px; display:flex; flex-direction:column; gap:14px; border-radius:18px } .job-facts > div { display:flex; flex-direction:column; gap:2px }
.notice { margin:0; padding:14px 18px; border-radius:12px; background:#FFF4D6; color:#5A4300 } .notice.ok { background:#E4F2E9; color:var(--dark) }
.contact-list { display:flex; flex-direction:column; gap:18px; padding-top:8px } .contact-list > div { display:flex; gap:14px; align-items:flex-start; font-size:15px }
.ci { width:44px; height:44px; border-radius:50%; background:#E4F2E9; color:var(--brand); display:flex; align-items:center; justify-content:center; flex-shrink:0 }
.form-card { flex:1 1 440px; min-width:0; background:#fff; padding:36px; border-radius:24px; display:flex; flex-direction:column; gap:18px; box-shadow:0 12px 34px rgba(6,52,26,.08) }
.form-card form { display:flex; flex-direction:column; gap:16px }
.field { display:flex; flex-direction:column; gap:6px } .field label { font-size:14px; font-weight:700 }
.field input, .field textarea { font-family:inherit; font-size:15px; padding:13px 14px; border:1px solid #C9DCCF; border-radius:10px; background:#fff; color:var(--ink) }
.field.bad input, .field.bad textarea { border-color:#B3261E } .err { font-size:13px; color:#B3261E }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden }
.map iframe { display:block; width:100%; height:420px; border:0 }

/* ---------- Footer ---------- */
.site-footer { background:var(--dark); color:#CFE6D8 }
.footer-in { display:flex; flex-direction:column; gap:44px; padding-top:64px; padding-bottom:40px }
.footer-top { display:flex; flex-wrap:wrap; gap:32px; justify-content:space-between; border-bottom:1px solid #1F6B40; padding-bottom:44px }
.footer-h { font-size:16px; color:#fff }
.newsletter { flex:1 1 440px; min-width:0; display:flex; flex-direction:column; gap:14px }
.nl-row { display:flex } .nl-row input { flex:1; min-width:0; padding:14px 16px; border:0; font-family:inherit; font-size:14px }
.nl-row button { padding:14px 22px; border:0; background:var(--accent); color:var(--ink); font-family:inherit; font-size:12px; font-weight:700; cursor:pointer }
.nl-consent { font-size:12px; display:flex; gap:8px; align-items:center } .nl-msg { margin:0; font-size:13px; color:#fff } .nl-msg.error { color:#FFD3D0 }
.connect { flex:1 1 320px; display:flex; flex-direction:column; gap:14px }
.social-circles { display:flex; flex-wrap:wrap; gap:10px } .social-circles a { width:40px; height:40px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center } .social-circles a:hover { background:var(--accent); color:var(--ink) }
.footer-cols { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:32px; font-size:13px }
.fcol { display:flex; flex-direction:column; gap:10px } .fcol a { color:#CFE6D8 } .fcol a:hover { color:var(--accent) } .fcol .accent { color:var(--accent) } .fcol .lh { line-height:1.65 }
.fbrand { display:flex; align-items:center; gap:10px; color:#fff; font-size:15px }
.footer-bottom { background:#06341A; font-size:12px; color:#9FC7AF } .fb-in { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; padding-top:16px; padding-bottom:16px } .legal a { color:#9FC7AF } .legal a:hover { color:#fff }

/* ---------- Responsive ---------- */
@media (max-width:1100px) {
  .nav-toggle { display:flex }
  .mainnav { display:none; width:100%; flex-direction:column; align-items:stretch; gap:0; background:rgba(6,40,22,.96); border-radius:14px; padding:10px 18px }
  .mainnav.open { display:flex; position:absolute; top:100%; left:max(16px, env(safe-area-inset-left,0px)); right:max(16px, env(safe-area-inset-right,0px)); width:auto; z-index:70; max-height:calc(100vh - 140px); overflow-y:auto }
  .header-in { position:relative }
  .mainnav > a, .mainnav .dd-trigger { display:block; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.1) }
  .mainnav .dd-menu { position:static; display:flex; box-shadow:none; background:transparent; border-top:0; padding:0 0 8px 14px; min-width:0 }
  .mainnav .dd-menu a { color:#D3E8DA; padding:8px 0; white-space:normal } .mainnav .dd-menu a:hover { background:transparent; color:var(--accent) }
  .btn-donate { margin-top:12px; text-align:center }
  .nav-white .mainnav { background:#fff; border:1px solid var(--line); box-shadow:0 12px 26px rgba(6,52,26,.12) }
  .nav-white .mainnav > a, .nav-white .mainnav .dd-trigger { border-bottom-color:var(--line) }
  .nav-white .mainnav .dd-menu a { color:var(--muted) } .nav-white .mainnav .dd-menu a:hover { color:var(--brand) }
  .site-header.stuck .mainnav.open { max-height:calc(100vh - 90px); overflow-y:auto }
  .site-header.stuck .brand-logo { max-width:55vw }
}
@media (max-width:900px) {
  .wrap, .wide { padding-left:max(16px, env(safe-area-inset-left,0px)); padding-right:max(16px, env(safe-area-inset-right,0px)) }
  .sec { padding:72px 0 } .big, .h-38, .h-36 { font-size:30px !important } .hero-slide .hero-title { font-size:38px } .banner-in h1 { font-size:36px }
  .hub-row, .hub-item { flex-direction:column } .hub-side.left, .hub-side.right { align-items:center; text-align:center } .hub-line { display:none } .hub-side { gap:36px }
  .split-media { min-height:380px } .quote-card.dark { width:88% } .ev-body { padding-left:0 } .ev-img { margin-left:0; width:100% } .topbar-contact { display:none }
}
@media (max-width:520px) { .topbar-right { gap:12px; flex-wrap:wrap } .checks { grid-template-columns:1fr } .hero { min-height:600px } }
