/* ==========================================================================
   Investing for Peace — site styles
   Single stylesheet. Sections: tokens, reset, layout, header/nav, footer,
   components, pages, utilities, responsive.
   ========================================================================== */

/* ---- Design tokens ----------------------------------------------------------
   Official I4P brand palette (the only colours used on the site):
     #003742  dark green   (--teal-900)  header, footer, dark bands
     #246774  green         (--teal-700)  links, quote cards, keyline
     #83CE67  light green   (--green)     accents, primary button, ticks
     #E4EDF0  gray          (--mist)      light section bands
     #FF5B04  orange        (--orange)    eyebrow labels, keylines
     #FFFFFF  white         (--paper)
   Brand fonts are Palatino Linotype (titles) + Aptos (body); the web build
   uses Source Serif 4 + Inter as the closest free stand-ins, with the brand
   fonts named as the next fallback for visitors who have them installed.
   -------------------------------------------------------------------------- */
:root {
  --teal-900: #003742;   /* brand dark green — header, footer, dark bands */
  --teal-800: #0e4b57;   /* derived — dark button hover only */
  --teal-700: #246774;   /* brand green — links, quote cards, keylines */
  --teal-600: #246774;   /* quote cards (= brand green) */
  --green:    #83ce67;   /* brand light green — accents, primary button */
  --green-700:#5aa53f;   /* derived — link hover, small green marks */
  --orange:   #ff5b04;   /* brand orange — eyebrow labels, keylines */
  --blue:     #246774;   /* keyline (= brand green; kept name for legacy class) */

  --ink:   #12333b;      /* headings — near dark green */
  --body:  #374f54;      /* body copy */
  --muted: #63787c;      /* captions, meta */
  --paper: #ffffff;      /* brand white */
  --mist:  #e4edf0;      /* brand gray — light bands */
  --mist-2:#eef4f6;      /* derived — a hair lighter than --mist */
  --line:  #cfdde1;      /* hairlines */

  --measure: 70ch;       /* running-prose width — consistent across pages */
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 55, 66, .12);
  --shadow-sm: 0 4px 14px rgba(0, 55, 66, .09);

  --sans: "Inter", "Aptos", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --nav-h: 104px;   /* fixed header height (fits the vertical logo lock-up) */
}
@media (max-width: 720px) { :root { --nav-h: 76px; } }

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.16; font-weight: 600; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 1.7rem + 3.1vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.1vw, 2.7rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin: .3em 0; }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---- Layout primitives ------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(48px, 7vw, 88px); }
/* so anchor links (e.g. Governance -> a Team section) clear the sticky header */
:where(section, [id]) { scroll-margin-top: calc(var(--nav-h) + 18px); }
.section--mist { background: var(--mist); }
.section--paper { background: var(--paper); }
.section--tint { background: var(--mist-2); }
.section--dark { background: var(--teal-900); color: #dcebe9; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #bfe0c9; }

.prose { max-width: var(--measure); }
.prose--wide { max-width: var(--measure); }
.lede { font-size: 1.16rem; color: var(--ink); }
.eyebrow {
  font-family: var(--sans); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .8rem; color: var(--orange); margin: 0 0 1rem;
}
.section--dark .eyebrow { color: #ff8a4d; }

/* text + aside split (body column left, quote card right) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
/* aside top-aligns with the eyebrow / section title at the top of the text column */
.split__aside { position: sticky; top: calc(var(--nav-h) + 20px); margin-top: 0; }

/* ---- Header / navigation --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--teal-900);
  color: #fff;
}
/* fixed height so the bar never changes size between pages */
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; text-decoration: none; flex: none; line-height: 0; }
/* explicit width AND height on both lock-ups so the box never resizes between
   the pre-CSS paint and styled paint (this was the header "jump") */
.brand__logo { display: block; }
.brand__logo--v { width: 67px; height: 76px; }          /* vertical lock-up — desktop */
.brand__logo--h { display: none; width: 120px; height: 34px; }  /* horizontal — small screens */
@media (max-width: 720px) {
  .brand__logo--v { display: none; }
  .brand__logo--h { display: block; }
}

.nav { display: flex; align-items: center; }
.nav__list { display: flex; flex-wrap: nowrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: block; padding: 10px 10px; border-radius: 8px;
  color: #cfe3e0; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__link[aria-current="page"] { color: #fff; }
/* underline is absolutely positioned so it never changes the link's box size */
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--green);
}

.nav-toggle {
  display: none;
  appearance: none; border: 0; background: rgba(255,255,255,.10); color: #fff;
  width: 46px; height: 42px; border-radius: 9px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Collapse the bar once the eight titles no longer fit comfortably */
@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--teal-900);
    border-top: 1px solid rgba(255, 255, 255, .10);
    max-height: 0; overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav.nav--open { max-height: min(80vh, 34rem); overflow: auto; box-shadow: var(--shadow); }
  .nav__list { flex-direction: column; gap: 0; padding: 8px clamp(18px, 5vw, 40px) 20px; }
  .nav__link { padding: 13px 8px; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--green); }
}

/* ---- Footer --------------------------------------------------------- */
.site-footer {
  background: var(--teal-900); color: #a9c4c0; padding-block: 54px 28px; font-size: .95rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.site-footer a { color: #cfe3df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-sub { color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding-top: 12px; }
.footer-grid {
  display: grid; gap: 26px 36px;
  grid-template-columns: 1.7fr 0.9fr 1.1fr 1.15fr;
  align-items: start;
}
.site-footer h2 {
  color: #fff; font-family: var(--sans); font-weight: 700; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .1em; font-size: .72rem;
  margin: 0 0 9px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; padding: 3px 0; line-height: 1.35; }
.footer-brand__logo { display: block; height: 36px; width: auto; margin: 0 0 14px; }
.footer-brand p { max-width: 30ch; margin: 0; line-height: 1.5; color: #9fbdb9; }
.footer-legal {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .13);
  display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .82rem; color: #86a7a2;
}

/* ---- Hero ---------------------------------------------------------- */
.hero { position: relative; background: var(--teal-900); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  will-change: opacity, transform;
}
/* crossfade between hero images (JS toggles .is-active) */
.hero__media img { opacity: 0; transition: opacity 1.8s ease; }
.hero__media img:only-child,
.hero__media img.is-active { opacity: 1; }

/* slow "Ken Burns" drift on the rotating homepage hero — a gentle, cinematic
   push while each aerial is on screen. Three directions so it never repeats. */
@keyframes kb-1 { from { transform: scale(1.06) translate(0, 0); }        to { transform: scale(1.16) translate(-1.6%, -1.1%); } }
@keyframes kb-2 { from { transform: scale(1.15) translate(1.4%, 1%); }    to { transform: scale(1.06) translate(0, 0); } }
@keyframes kb-3 { from { transform: scale(1.06) translate(1.2%, -0.6%); } to { transform: scale(1.16) translate(-1.2%, 1.2%); } }
.hero__media[data-hero-rotate] img.is-active { animation: kb-1 13s ease-out both; }
.hero__media[data-hero-rotate] img.is-active:nth-of-type(3n+2) { animation-name: kb-2; }
.hero__media[data-hero-rotate] img.is-active:nth-of-type(3n) { animation-name: kb-3; }

@media (prefers-reduced-motion: reduce) {
  .hero__media img { transition: none; transform: none; animation: none !important; }
  .hero__media img:not(.is-active):not(:only-child) { opacity: 0; }
}
/* Light overlay: a soft wash behind the left-hand text that fades to near-clear
   across the centre and right of the photo. Text legibility comes from this
   left gradient plus a text-shadow — no full-frame darkening. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(99deg,
      rgba(0,32,40,.72) 0%, rgba(0,34,42,.52) 30%, rgba(0,38,46,.24) 50%,
      rgba(0,42,50,.06) 68%, rgba(0,45,54,0) 84%),
    linear-gradient(0deg, rgba(0,32,40,.26) 0%, rgba(0,40,48,0) 38%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 138px); }
.hero .eyebrow,
.hero h1,
.hero__lede { text-shadow: 0 1px 2px rgba(0,22,28,.45), 0 3px 26px rgba(0,22,28,.6); }
.hero h1 { color: #fff; max-width: 26ch; }
/* sub-title set as a pulled idea: brand serif, green rule at the left */
.hero__lede {
  font-family: var(--serif); font-size: 1.32rem; line-height: 1.5;
  max-width: 46ch; color: #f4faf7;
  border-left: 3px solid var(--green); padding-left: 20px;
}
.hero--compact .hero__inner { padding-block: clamp(52px, 8vw, 88px); }

/* photo banner heroes — one consistent band height across every page, with the
   text vertically centred so a short or long sub-title doesn't change it */
.hero--banner { min-height: clamp(420px, 48vw, 560px); }
.hero--banner .hero__inner {
  min-height: inherit;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(44px, 5vw, 64px);
}

/* small credit line in the corner of a hero photo (updated per slide by site.js
   on rotating heroes) */
.hero__cap {
  position: absolute; right: clamp(14px, 3vw, 28px); bottom: 12px; z-index: 1;
  margin: 0; font-family: var(--sans); font-size: .72rem; letter-spacing: .015em;
  color: #eef4f5; text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.55);
}

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--green); color: #0c2b12; }
.btn--primary:hover { background: #8cc94d; color: #0c2b12; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.btn--dark { background: var(--teal-800); color: #fff; }
.btn--dark:hover { background: var(--teal-700); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5rem; }

/* ---- Quote card --------------------------------------------------- */
.quote-card {
  margin: 0;
  background: var(--teal-600); color: #fff; border-radius: var(--radius);
  padding: 24px 28px 26px; box-shadow: var(--shadow-sm);
}
.quote-card::before {
  content: "\201C"; display: block;
  font-family: var(--serif); font-weight: 600; font-size: 3.2rem; line-height: .55;
  color: var(--green); margin-bottom: .3rem;
}
.split__aside > :first-child { margin-top: 0; }
.quote-card p { font-family: var(--serif); font-size: 1.16rem; font-style: normal; line-height: 1.5; margin-bottom: 1rem; }
.quote-card cite { font-style: normal; font-size: .9rem; line-height: 1.5; color: #d9efe9; display: block; }
/* "plain" variant — a note, not a quotation: no card fill, green rule, serif */
.quote-card--plain {
  background: none; color: var(--body); border: 0;
  border-left: 4px solid var(--green); border-radius: 0;
  box-shadow: none; padding: 6px 0 6px 22px;
}
.quote-card--plain::before { display: none; }
.quote-card--plain p { font-family: var(--serif); font-size: 1.16rem; color: var(--ink); }
.quote-card--plain p:last-child { margin-bottom: 0; }
.quote-card--plain cite { color: var(--muted); }

/* ---- Media feature (e.g. a podcast/press mention) — photo + player ---- */
.media-feature {
  display: grid; grid-template-columns: 1fr 132px; gap: 28px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.media-feature__photo {
  width: 132px; height: 132px; border-radius: var(--radius-sm); object-fit: cover;
  filter: grayscale(1);
}
.media-feature__body audio { width: 100%; display: block; height: 34px; margin: 14px 0 10px; }
.media-feature__credit { font-size: .85rem; color: var(--muted); margin: 0; }
.media-feature--no-photo { grid-template-columns: 1fr; }
@media (max-width: 620px) {
  .media-feature { grid-template-columns: 1fr; }
  .media-feature__photo { width: 84px; height: 84px; }
}

blockquote.pull {
  margin: 2rem 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--green);
  font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--ink);
}
blockquote.pull cite { display: block; margin-top: .6rem; font-family: var(--sans); font-size: .9rem; font-style: normal; color: var(--muted); }

/* ---- Cards / pillars -------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

/* numbered lesson card */
.card--num h3 { display: flex; gap: .55em; align-items: baseline; }
.lesson-num { font-family: var(--serif); font-weight: 600; color: var(--green-700); font-size: 1.15rem; flex: none; }

.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--muted); }
.pillar--orange { border-top-color: var(--orange); }
.pillar--blue   { border-top-color: var(--blue); }
.pillar--green  { border-top-color: var(--green); }
.pillar h3 { font-family: var(--sans); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat-row--2 { grid-template-columns: repeat(2, 1fr); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); color: var(--teal-700); line-height: 1.05; }
.stat span { display: block; margin-top: .5rem; font-size: .98rem; color: var(--body); max-width: 30ch; }
.ref-note { font-size: .85rem; color: var(--muted); max-width: var(--measure); }
@media (max-width: 720px) { .stat-row, .stat-row--2 { grid-template-columns: 1fr; gap: 20px; } }

/* disclosure (collapsible list) */
.disclose { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); overflow: hidden; }
.disclose > summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--ink); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::after { content: "+"; color: var(--teal-700); font-weight: 700; font-size: 1.15rem; line-height: 1; flex: none; }
.disclose[open] > summary::after { content: "\2013"; }
.disclose[open] > summary { border-bottom: 1px solid var(--line); }
.disclose .country-list { padding: 18px; margin: 0; }

/* ---- Figures / imagery ---------------------------------------- */
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure figcaption { padding: 12px 16px; font-size: .85rem; color: var(--muted); }
.figure--bare { box-shadow: none; border: 0; background: none; }
.figure--bare img { border-radius: var(--radius); }
/* a portrait headshot: keep it tall, don't crop it into the wide default ratio */
.figure--portrait img { aspect-ratio: 4 / 5; filter: grayscale(1); }
/* a map or diagram: show the whole image, never crop it */
.figure--map { overflow: visible; }
.figure--map img { aspect-ratio: auto; object-fit: contain; width: auto; max-width: 100%; max-height: 640px; margin-inline: auto; }

.media-band {
  max-width: var(--container); margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.media-band figure { position: relative; margin: 0; }
.media-band img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }

/* small "where this is" label, bottom-right corner of a photo */
.photo-cap {
  position: absolute; right: 10px; bottom: 8px;
  margin: 0; font-size: .7rem; letter-spacing: .015em; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 12px rgba(0,0,0,.55);
}

/* ---- Logo wall — 3 on top, 2 (centred) below ------------------- */
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.logo-wall figure {
  margin: 0; flex: 0 1 calc((100% - 36px) / 3);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px 14px; display: grid; place-items: center; min-height: 132px;
}
.logo-wall img { max-height: 96px; max-width: 100%; width: auto; object-fit: contain; }
.logo-wall img[src*="afdb"] { max-height: 108px; }   /* compact circular mark — give it room */
.logo-wall figcaption { margin-top: 12px; font-size: .78rem; color: var(--muted); text-align: center; }
@media (max-width: 720px) { .logo-wall figure { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 460px) { .logo-wall figure { flex-basis: 100%; } }

/* ---- Team --------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bio { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.bio > summary {
  list-style: none; cursor: pointer; display: block;
}
.bio > summary::-webkit-details-marker { display: none; }
.bio__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #fff; filter: grayscale(1); }
.bio__id { padding: 14px 16px 16px; position: relative; }
.bio__id h3 { margin: 0; font-size: 1.04rem; }
.bio__role { color: var(--teal-700); font-weight: 500; font-size: .88rem; line-height: 1.35; }
.bio__place { color: var(--muted); font-size: .84rem; }
.bio__toggle {
  display: inline-block; margin-top: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: var(--green-700); text-transform: uppercase;
}
.bio[open] .bio__toggle-open { display: none; }
.bio__toggle-close { display: none; }
.bio[open] .bio__toggle-close { display: inline; }
.bio__body { padding: 4px 18px 20px; border-top: 1px solid var(--line); }
.bio__body p { font-size: .95rem; }
.bio__body p:first-child { margin-top: 1rem; }
.bio__body a.linkedin { font-weight: 700; font-size: .9rem; }

/* Open bio: take the full row and lay photo + text side by side for readability */
.bio[open] { grid-column: 1 / -1; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.bio[open] > summary { display: block; }
.bio[open] .bio__photo { aspect-ratio: 3 / 4; }
.bio[open] .bio__body { border-top: 0; border-left: 1px solid var(--line); }
.bio[open] .bio__body p { max-width: 70ch; }
/* close control pinned to the open card's top-right, clear of the text */
.bio[open] .bio__id { position: static; }
.bio[open] .bio__toggle {
  position: absolute; top: 12px; right: 14px; margin: 0; z-index: 2;
  background: var(--paper); padding: 5px 10px; border-radius: 6px; box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) {
  .bio[open] { grid-template-columns: 1fr; }
  .bio[open] .bio__photo { aspect-ratio: 4 / 5; }
  .bio[open] .bio__body { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---- Definition rows (governance / contact) --------------- */
.deflist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.deflist > div { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 800; color: var(--ink); }
.deflist dd { margin: 0; }

/* ---- News / resource lists ------------------------------- */
.news-list { display: grid; gap: 18px; }
.news-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.news-item__meta { margin: 0 0 .5rem; }
.news-item__meta time { color: var(--orange); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.news-item h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--teal-700); }
.news-item p { margin-bottom: .5rem; max-width: 70ch; }

/* Article pages */
.article blockquote.pull { margin: 1.6rem 0; }
.article ul { max-width: 68ch; }
.article-pager { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .92rem; }
.article-pager span { flex: 1 1 240px; }

/* Country list — tidy columns, hairline between rows */
.country-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  columns: 190px 3; column-gap: 34px;
}
.country-list li {
  break-inside: avoid; padding: 7px 0 7px 1.3em; position: relative;
  font-size: .92rem; color: var(--ink); border-bottom: 1px solid var(--line);
}
.country-list li::before { content: ""; position: absolute; left: 0; top: 1em; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }

.ref-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.ref-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.ref-list .ref-meta { display: block; margin-top: 4px; font-size: .88rem; color: var(--muted); }

.tab-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tab-nav a { padding: 10px 16px; text-decoration: none; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; }
.tab-nav a:hover { color: var(--ink); }
.tab-nav a[aria-current="true"] { color: var(--teal-700); border-bottom-color: var(--green); }

/* ---- Diagram (governance capital flow) ------------------ */
.flow { display: grid; gap: 14px; max-width: 760px; }
.flow__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.flow__row--2 { grid-template-columns: repeat(2, 1fr); }
.flow__node {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 17px; box-shadow: var(--shadow-sm);
}
.flow__node b { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.02rem; margin-bottom: 3px; }
.flow__node span { font-size: .84rem; color: var(--muted); }
.flow__tag { display: block; margin-top: 8px; font-size: .74rem; font-weight: 600; color: var(--green-700); }
.flow__node.is-key { background: var(--teal-900); color: #dfeeeb; border-color: var(--teal-900); }
.flow__node.is-key b { color: #fff; }
.flow__node.is-key span { color: #b9d7d3; }
.flow__node--wide { grid-column: 1 / -1; }
.flow__arrow { text-align: center; color: var(--muted); font-size: .8rem; }
.flow__arrow::before { content: "\2193"; display: block; font-size: 1.15rem; color: var(--green-700); line-height: 1; margin-bottom: 2px; }
.flow__link { text-align: center; font-size: .78rem; color: var(--teal-700); font-weight: 600; padding: 2px 0; }
.flow__aside {
  margin: 16px 0 0; padding: 12px 16px; max-width: 760px;
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  font-size: .85rem; color: var(--muted);
}

/* ---- Utilities ---------------------------------------- */
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 1.7em; margin: .55em 0; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 1.1em; height: 1.1em;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/78% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/78% no-repeat;
}
.section--dark .tick-list li::before { background: var(--green); }

.callout {
  background: var(--mist-2); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius-sm); padding: 18px 22px;
}

/* ---- Video embed --------------------------------------- */
.video-embed {
  max-width: 900px; margin: 28px auto 0;
  border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.video-embed video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* ---- Responsive ------------------------------------- */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 36px; }
  .footer-brand { grid-column: 1 / -1; max-width: 42ch; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; margin-top: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .flow__row, .flow__row--2 { grid-template-columns: 1fr; }
  .deflist > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 760px) {
  /* text spans the full width on phones, so a gentle top-to-bottom wash
     (still light up top) reads better than the desktop side-gradient */
  .hero::after {
    background: linear-gradient(180deg,
      rgba(0,32,40,.24) 0%, rgba(0,32,40,.28) 45%, rgba(0,34,42,.52) 100%);
  }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.95rem; line-height: 1.16; }
  h2 { font-size: 1.55rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  /* keep team photos in 2 columns down to phones so portraits don't balloon */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .media-band { grid-template-columns: 1fr; gap: 10px; }
  .media-band img { aspect-ratio: 16 / 10; }
  .hero__inner { padding-block: clamp(40px, 10vw, 60px); }
  .hero h1 { font-size: 1.72rem; max-width: none; }
  .hero__lede { font-size: 1.08rem; max-width: none; }
  .container { padding-inline: 20px; }
  /* full-width stacked buttons read better than uneven wrapped pills */
  .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { justify-content: center; padding: 13px 20px; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 1.58rem; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---- Print — keep it legible on paper ------------------- */
@media print {
  .site-header, .site-footer, .hero__media, .hero::after,
  .nav-toggle, .skip-link, .article-pager { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark { background: #fff !important; color: #000 !important; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero .eyebrow, .hero__lede { color: #000 !important; text-shadow: none !important; }
  a { color: #000; }
}
