/* ==========================================================================
   CUAME — Canadians United Against Modern Exclusion
   Design system: civic / institutional. Trilingual (en / fr / zh-Hans).
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --navy-900: #0b1a30;
  --navy-800: #10233f;
  --navy-700: #1b3557;
  --navy-600: #2b4a72;
  --navy-100: #e5ebf3;
  --navy-050: #f2f5f9;

  --red-700: #9d0c24;
  --red-600: #c8102e;
  --red-100: #fbe7ea;

  --paper: #fcfbf9;
  --paper-2: #f4f2ed;
  --white: #ffffff;

  --ink: #14181f;
  --ink-2: #39424f;
  --ink-3: #5e6877;
  --rule: #dedcd4;
  --rule-strong: #c2c1b6;

  /* One type system. Latin faces first, CJK fallbacks after, so a mixed
     paragraph keeps a single visual voice in all three languages. */
  --serif: "Source Serif 4", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Larger, calmer scale — body copy sits at ~18px on desktop. */
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.94rem);
  --step-0:  clamp(1.0625rem, 1.02rem + 0.2vw, 1.15rem);
  --step-1:  clamp(1.25rem, 1.17rem + 0.36vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.36rem + 0.62vw, 1.9rem);
  --step-3:  clamp(1.8rem, 1.58rem + 1vw, 2.4rem);
  --step-4:  clamp(2.1rem, 1.78rem + 1.5vw, 3rem);
  --step-5:  clamp(2.4rem, 1.9rem + 2.3vw, 3.7rem);

  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem; --sp-9: 5.5rem;

  --wrap: 74rem;
  --wrap-narrow: 44rem;
  --measure: 38rem;          /* ~72 characters — the readable line length */
  --radius: 5px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(11,26,48,.06), 0 1px 3px rgba(11,26,48,.05);
  --shadow-md: 0 2px 6px rgba(11,26,48,.07), 0 8px 24px rgba(11,26,48,.08);

  --header-h: 110px;
}

/* Chinese needs a touch more leading and no letter-spacing games. */
html[lang="zh"] {
  --measure: 34rem;
  letter-spacing: 0;
}
html[lang="zh"] body { line-height: 1.9; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4 {
  letter-spacing: 0; line-height: 1.4; font-weight: 700;
}
html[lang="zh"] .eyebrow, html[lang="zh"] .btn, html[lang="zh"] .link-arrow {
  letter-spacing: 0.05em; text-transform: none;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 {
  margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.2;
  letter-spacing: -.012em; color: var(--navy-900); text-wrap: balance;
}
p, ul, ol, figure, blockquote, table { margin: 0 0 1.15em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
a { color: var(--navy-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-600); }
:focus-visible { outline: 3px solid var(--red-600); outline-offset: 2px; border-radius: 2px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-7) 0; }
::selection { background: var(--navy-800); color: #fff; }

/* --- Layout -------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
@media (max-width: 40rem) { .wrap, .wrap-narrow { width: min(100% - 1.75rem, var(--wrap)); } }

.section { padding-block: var(--sp-8); }
.section-lg { padding-block: var(--sp-9); }
.section-tint { background: var(--paper-2); }
.section-navy { background: var(--navy-800); color: #dae3ef; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
@media (max-width: 40rem) {
  .section { padding-block: var(--sp-7); }
  .section-lg { padding-block: var(--sp-8); }
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--navy-900); color: #fff; padding: .75rem 1.25rem; font-weight: 600; }
.skip-link:focus { left: 0; }

/* --- Typography helpers ---------------------------------------------------- */
.eyebrow {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 650;
  letter-spacing: .11em; text-transform: uppercase; color: var(--red-600); margin: 0 0 var(--sp-3);
}
.eyebrow-light { color: #ff8fa0; }
.h-xl { font-size: var(--step-5); }
.h-lg { font-size: var(--step-4); }
.h-md { font-size: var(--step-3); }
.h-sm { font-size: var(--step-2); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 42rem; }
.meta { font-size: var(--step--1); color: var(--ink-3); }
.muted { color: var(--ink-3); }
.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; }

.rule-top { border-top: 3px solid var(--navy-800); padding-top: var(--sp-4); }

/* Long-form reading. Constrained measure is the main readability lever. */
.prose { max-width: var(--measure); font-size: 1.075rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; margin-bottom: .35em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.7em; margin-bottom: .3em; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.35em; color: var(--ink-2); }
.prose li + li { margin-top: .5em; }
/* Reference lists: long bare URLs must wrap instead of overflowing, and read
   as smaller muted footnotes. */
.prose ol.meta { font-size: .92rem; line-height: 1.5; }
.prose ol.meta li { overflow-wrap: anywhere; word-break: break-word; }
.prose ol.meta a { color: var(--navy-700); }
.prose blockquote {
  margin: 1.8em 0; padding: .2em 0 .2em 1.4em; border-left: 3px solid var(--red-600);
  font-family: var(--serif); font-size: var(--step-1); line-height: 1.55; color: var(--navy-800);
}
.prose sup a { text-decoration: none; font-weight: 650; padding: 0 .1em; }

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase; text-align: center;
  padding: .85em 1.5em; border-radius: var(--radius); min-height: 44px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .16s, color .16s, border-color .16s;
}
.btn-primary { background: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-sm { padding: .6em 1.1em; font-size: .82rem; min-height: 40px; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 30rem) { .btn-group .btn { width: 100%; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 650;
  font-size: var(--step--1); letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; color: var(--navy-700); min-height: 32px;
}
.link-arrow::after { content: "\2192"; transition: transform .16s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,251,249,.94); backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--rule);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-logo {
  display: block; height: 92px; width: auto; flex: none;
  object-fit: contain; object-position: left center;
}
.brand-logo--footer { height: 112px; }
.brand-sub { font-size: .66rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); line-height: 1.25; max-width: 14rem; }
@media (max-width: 72rem) { .brand-sub { display: none; } }

.nav { display: flex; align-items: center; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .1rem; }
@media (max-width: 68rem) { .nav { display: none; } }

/* Each item is its own flex box so <button> and <a> triggers share one
   vertical centre — baseline alignment differs between the two elements. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3em; padding: .55rem .65rem;
  border-radius: var(--radius); font-size: .875rem; font-weight: 550; color: var(--ink-2);
  text-decoration: none; white-space: nowrap; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover { color: var(--navy-900); background: var(--navy-050); }
.nav-item.is-active > .nav-link { color: var(--navy-900); font-weight: 650; }
.nav-item.is-active > .nav-link::after {
  content: ""; position: absolute; left: .65rem; right: .65rem; bottom: .1rem; height: 2px; background: var(--red-600);
}
.nav-caret { width: .5em; height: .5em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); flex: none; }

.nav-panel {
  position: absolute; top: calc(100% + .3rem); left: 0; min-width: 15rem;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: .4rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-panel a { display: block; padding: .55rem .7rem; border-radius: var(--radius); font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.nav-panel a:hover { background: var(--navy-050); color: var(--navy-900); }
.nav-panel a[aria-current="page"] { color: var(--navy-900); font-weight: 650; background: var(--navy-050); }

.header-cta { display: flex; align-items: center; gap: var(--sp-3); }
@media (max-width: 68rem) { .header-cta > .btn { display: none; } }

/* Language switcher */
.lang-switch { display: flex; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; flex: none; }
.lang-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer; font-family: var(--sans);
  font-size: .78rem; font-weight: 650; letter-spacing: .04em; color: var(--ink-3);
  padding: .5rem .6rem; min-height: 38px; min-width: 40px;
}
.lang-switch button + button { border-left: 1px solid var(--rule); }
.lang-switch button:hover { background: var(--navy-050); color: var(--navy-900); }
.lang-switch button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius); background: transparent; cursor: pointer; flex: none;
}
@media (max-width: 68rem) { .nav-toggle { display: inline-flex; } }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--navy-900); transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: var(--paper);
  overflow-y: auto; -webkit-overflow-scrolling: touch; padding: var(--sp-4) 0 var(--sp-8);
  transform: translateX(100%); transition: transform .24s ease; visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
body.nav-open { overflow: hidden; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-group { border-bottom: 1px solid var(--rule); }
.mobile-group > button, .mobile-group > a {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; background: none; border: 0; cursor: pointer; text-align: left; text-decoration: none;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy-900); min-height: 56px;
}
.mobile-group > button .nav-caret { transition: transform .2s; }
.mobile-group > button[aria-expanded="true"] .nav-caret { transform: rotate(-135deg) translate(-3px,-3px); }
.mobile-sub { display: none; padding: 0 0 .75rem; }
.mobile-sub.is-open { display: block; }
.mobile-sub a { display: block; padding: .7rem 0 .7rem 1rem; color: var(--ink-2); text-decoration: none; font-size: 1rem; min-height: 44px; border-left: 2px solid var(--rule); }
.mobile-sub a[aria-current="page"] { color: var(--red-600); font-weight: 650; border-left-color: var(--red-600); }
.mobile-nav .btn { width: 100%; margin-top: var(--sp-5); }

/* --- Hero ------------------------------------------------------------------- */
/* The photograph lives in the hero only; the rest of the page is solid paper,
   so nothing peeks through at the bottom of the page or while scrolling. */
body.page-home { background: var(--paper); }
body.page-home .section { background: var(--paper); }
body.page-home .section-tint { background: var(--paper-2); }
body.page-home .section-navy { background: var(--navy-800); }

.hero {
  position: relative; color: #e5ebf4; overflow: hidden; isolation: isolate;
  background: var(--navy-900) url(../img/photos/about-group.jpg) center / cover no-repeat;
}

/* Scrim: keeps the headline readable over the rally photograph. */
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(11,26,48,.82) 4%, rgba(11,26,48,.55) 46%, rgba(11,26,48,.28) 100%),
    linear-gradient(to top, rgba(11,26,48,.72) 0%, rgba(11,26,48,0) 52%);
}

.hero-inner { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero-title { color: #fff; font-size: var(--step-5); max-width: 17ch; }
.hero-title-fr { font-family: var(--sans); font-size: var(--step-1); font-weight: 500; letter-spacing: .02em; color: #9db2ce; margin-top: var(--sp-3); }
.hero-lede { max-width: 46ch; margin-top: var(--sp-5); font-size: var(--step-1); color: #c9d5e5; }
.hero .btn-group { margin-top: var(--sp-6); }

.page-head { background: var(--navy-800); color: #c9d5e5; padding-block: var(--sp-7); }
.page-head h1 { color: #fff; font-size: var(--step-4); max-width: 22ch; }
.page-head .lede { color: #b4c4da; margin-top: var(--sp-4); }
.page-head--tint { background: var(--paper-2); color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.page-head--tint h1 { color: var(--navy-900); }
.page-head--tint .lede { color: var(--ink-2); }

.breadcrumb { font-size: var(--step--1); margin-bottom: var(--sp-4); color: #8aa0be; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .4em; opacity: .5; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-head--tint .breadcrumb { color: var(--ink-3); }
.page-head--tint .breadcrumb a:hover { color: var(--navy-900); }

/* --- Grid & cards ------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
  transition: border-color .16s, box-shadow .16s;
}
.card-link:hover { border-color: var(--navy-600); box-shadow: var(--shadow-md); }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.card-foot { margin-top: auto; padding-top: var(--sp-3); }

/* Numbered commitments */
.pillars { list-style: none; padding: 0; margin: 0; counter-reset: pillar; }
.pillar {
  counter-increment: pillar; display: grid; grid-template-columns: 3rem 1fr; gap: var(--sp-4);
  padding: var(--sp-5) 0; border-top: 1px solid var(--rule);
}
.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar::before { content: counter(pillar, decimal-leading-zero); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--red-600); }
.pillar h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.pillar p { color: var(--ink-2); margin: 0; max-width: 46rem; }
@media (max-width: 34rem) { .pillar { grid-template-columns: 2.25rem 1fr; gap: var(--sp-3); } }

/* Case-study cards */
.study {
  background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy-800);
  border-radius: var(--radius-lg); padding: var(--sp-6); display: flex; flex-direction: column;
}
.study:hover { box-shadow: var(--shadow-md); }
.study h3 { font-size: var(--step-2); margin-bottom: var(--sp-3); }
.study p { color: var(--ink-2); font-size: 1rem; }
.study-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-5); }
@media (max-width: 40rem) { .study { padding: var(--sp-5); } }

/* Split */
.split { display: grid; gap: var(--sp-6); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-7); } }
.split img { border-radius: var(--radius-lg); width: 100%; }
.split-aside { grid-template-columns: 1fr; }
@media (min-width: 62rem) { .split-aside { grid-template-columns: minmax(0,2fr) minmax(0,1fr); align-items: start; gap: var(--sp-7); } }

/* Image tiles */
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 16rem; border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  text-decoration: none; background: var(--navy-800); isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,26,48,.94) 12%, rgba(11,26,48,.58) 58%, rgba(11,26,48,.28) 100%); }
.tile:hover img { transform: scale(1.04); }
.tile-body { padding: var(--sp-5); }
.tile h3 { color: #fff; font-size: var(--step-1); }
.tile p { color: #d3dded; font-size: .95rem; margin-top: var(--sp-2); }
.tile .link-arrow { color: #fff; margin-top: var(--sp-3); }

/* --- Donate band ---------------------------------------------------------------- */
.donate-band {
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(200,16,46,.55) 0%, rgba(200,16,46,0) 58%),
    linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #dbe4f0; padding-block: var(--sp-8);
}
.donate-band-inner { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 56rem) { .donate-band-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-8); } }
.donate-band h2 { color: #fff; font-size: var(--step-3); max-width: 20ch; }
.donate-band-lede { margin-top: var(--sp-4); color: #bfcdde; max-width: 48ch; }
.donate-band-action { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
@media (min-width: 56rem) { .donate-band-action { align-items: flex-end; text-align: right; } }

.btn-donate {
  display: inline-flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: 1.05rem 3rem; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, #e3183a 0%, var(--red-600) 55%, var(--red-700) 100%);
  color: #fff; box-shadow: 0 6px 0 #7d0a1d, 0 14px 30px rgba(200,16,46,.4);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.btn-donate:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 0 #7d0a1d, 0 18px 38px rgba(200,16,46,.5); }
.btn-donate:active { transform: translateY(4px); box-shadow: 0 2px 0 #7d0a1d, 0 8px 18px rgba(200,16,46,.35); }
.btn-donate-label { font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.btn-donate-sub { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.donate-band-note { font-size: var(--step--1); color: #9fb3ce; margin: 0; }
@media (max-width: 30rem) { .btn-donate { width: 100%; padding-inline: 1.5rem; } }

/* --- Timeline (history of exclusion) ------------------------------------------ */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 7.5rem; top: .6rem; bottom: .6rem; width: 2px;
  background: linear-gradient(var(--rule-strong), var(--rule-strong));
}
.tl-item { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--red-600);
  text-align: right; padding-right: var(--sp-5); padding-top: .1rem; line-height: 1.3;
}
.tl-body { padding-left: var(--sp-2); }
.tl-body h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.tl-body p { color: var(--ink-2); margin: 0; max-width: 42rem; }
.tl-item::before {
  content: ""; position: absolute; left: 7.5rem; top: .55rem; width: 13px; height: 13px;
  border-radius: 50%; background: var(--paper-2); border: 3px solid var(--navy-800);
  transform: translateX(-5.5px); z-index: 1;
}
@media (max-width: 46rem) {
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: .35rem; padding-left: 1.9rem; padding-bottom: var(--sp-5); }
  .tl-item::before { left: 6px; top: .45rem; }
  .tl-year { text-align: left; padding-right: 0; font-size: .95rem; }
  .tl-body { padding-left: 0; }
}

/* --- Key-point cards (definition blocks) -------------------------------------- */
.keypoints { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.keypoint { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--sp-5); border-top: 3px solid var(--red-600); }
.keypoint h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.keypoint p { color: var(--ink-2); font-size: 1rem; margin: 0; }

/* --- Tabs & accordions --------------------------------------------------------- */
.tabs { border-bottom: 1px solid var(--rule); display: flex; gap: .25rem; margin-bottom: var(--sp-6); flex-wrap: wrap; }
.tab {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent;
  padding: .8rem 1rem; margin-bottom: -1px; cursor: pointer; min-height: 46px;
  font-family: var(--sans); font-size: .93rem; font-weight: 650; color: var(--ink-3);
}
.tab:hover { color: var(--navy-900); }
.tab[aria-selected="true"] { color: var(--navy-900); border-bottom-color: var(--red-600); }
.tabpanel[hidden] { display: none; }

.accordion { border-top: 1px solid var(--rule); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-trigger {
  display: flex; width: 100%; gap: var(--sp-4); align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0; background: none; border: 0; cursor: pointer; text-align: left; min-height: 56px;
  font-family: var(--serif); font-size: var(--step-1); font-weight: 600; color: var(--navy-900);
}
.acc-icon { flex: none; width: 1.5rem; height: 1.5rem; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--red-600); transform: translate(-50%,-50%); transition: transform .2s, opacity .2s; }
.acc-icon::before { width: 14px; height: 2px; }
.acc-icon::after { width: 2px; height: 14px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.acc-panel { padding: 0 0 var(--sp-5); max-width: 46rem; color: var(--ink-2); }
.acc-panel[hidden] { display: none; }

/* --- Board -------------------------------------------------------------------- */
.people { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.person-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--navy-100); margin-bottom: var(--sp-4); }
.person h3 { font-size: var(--step-1); }
.person .role { font-size: .92rem; color: var(--red-600); font-weight: 650; margin: .15rem 0 0; }
.person .place { font-size: .9rem; color: var(--ink-3); margin: 0; }
.person .bio { font-size: .98rem; color: var(--ink-2); margin-top: var(--sp-3); }

/* --- Release list ------------------------------------------------------------- */
.releases { list-style: none; margin: 0; padding: 0; }
.release { border-top: 1px solid var(--rule); padding: var(--sp-5) 0; display: grid; gap: var(--sp-2); }
.release:last-child { border-bottom: 1px solid var(--rule); }
.release h3 { font-size: var(--step-1); }
.release h3 a { color: inherit; text-decoration: none; }
.release h3 a:hover { color: var(--red-700); text-decoration: underline; text-decoration-color: var(--red-600); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .28em .65em; border-radius: 3px; background: var(--navy-050); color: var(--navy-700); border: 1px solid var(--navy-100);
}
.tag-red { background: var(--red-100); color: var(--red-700); border-color: #f3ccd3; }

/* --- Link lists (resources) ----------------------------------------------------- */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--rule); }
.linklist a {
  display: flex; gap: var(--sp-3); align-items: baseline; justify-content: space-between;
  padding: .95rem .3rem; text-decoration: none; color: var(--ink); min-height: 48px;
}
.linklist a:hover { background: var(--navy-050); color: var(--navy-800); }
.linklist .host { font-size: .8rem; color: var(--ink-3); flex: none; }
@media (max-width: 40rem) { .linklist a { flex-direction: column; gap: .2rem; } }

.resource-search {
  width: 100%; max-width: 30rem; padding: .85rem 1rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--white); min-height: 48px;
}
.resource-search:focus { border-color: var(--navy-600); }

/* --- Documents ------------------------------------------------------------------ */
.doc-row {
  display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap;
  padding: var(--sp-4); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--white);
}
.doc-row + .doc-row { margin-top: var(--sp-3); }
.doc-icon {
  flex: none; width: 2.4rem; height: 2.9rem; border-radius: 3px; background: var(--navy-050);
  border: 1px solid var(--navy-100); display: grid; place-items: center;
  font-size: .6rem; font-weight: 700; letter-spacing: .06em; color: var(--navy-700);
}
.doc-title { font-weight: 650; color: var(--navy-900); flex: 1 1 12rem; }
.doc-row .btn { margin-left: auto; }
@media (max-width: 34rem) { .doc-row .btn { margin-left: 0; width: 100%; } }

/* --- Gallery --------------------------------------------------------------------- */
.gallery { columns: 4 15rem; column-gap: var(--sp-3); }
@media (max-width: 40rem) { .gallery { columns: 2 8rem; column-gap: var(--sp-2); } }
.gallery button { display: block; width: 100%; margin: 0 0 var(--sp-3); padding: 0; border: 0; cursor: zoom-in; background: var(--navy-050); border-radius: var(--radius); overflow: hidden; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .35s, opacity .2s; }
.gallery button:hover img { transform: scale(1.03); opacity: .92; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,16,28,.95); display: grid; place-items: center; padding: var(--sp-5); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(96vw, 1400px); max-height: 86vh; width: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; display: grid; place-items: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: var(--sp-4); right: var(--sp-4); }
.lightbox-prev { left: var(--sp-4); }
.lightbox-next { right: var(--sp-4); }
.lightbox-count { position: absolute; bottom: var(--sp-4); left: 50%; transform: translateX(-50%); color: #9fb3ce; font-size: .88rem; }
@media (max-width: 40rem) { .lightbox-prev { left: .5rem; } .lightbox-next { right: .5rem; } }

/* --- Carousel ---------------------------------------------------------------------- */
.carousel-track { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--sp-2); }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-track img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-lg); }
.carousel-nav { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); justify-content: flex-end; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-strong); background: var(--white); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; color: var(--navy-800); }
.carousel-btn:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* --- Video --------------------------------------------------------------------------- */
.video-card { display: flex; flex-direction: column; gap: var(--sp-3); scroll-margin-top: calc(var(--header-h) + 2rem); }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); border: 1px solid var(--rule); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--navy-900); }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-poster::after {
  content: "\25B6"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 66px; height: 66px; border-radius: 50%; background: var(--red-600); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.4); transition: transform .2s;
}
.video-poster:hover::after { transform: translate(-50%,-50%) scale(1.08); }
.video-card h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 650; line-height: 1.4; }

/* --- Sponsors / pricing ---------------------------------------------------------------- */
.sponsor-tier { border-top: 2px solid var(--navy-800); padding-top: var(--sp-4); margin-top: var(--sp-6); }
.sponsor-tier h3 { font-size: var(--step-1); display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.sponsor-tier .amount { font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--red-600); letter-spacing: .05em; }
.sponsor-list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: .4rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.sponsor-list li { color: var(--ink-2); padding: .25rem 0; }

.infobox { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--red-600); border-radius: var(--radius); padding: var(--sp-5); }
.infobox h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: var(--sp-4); padding: .7rem 0; border-bottom: 1px dashed var(--rule); }
.price-list li:last-child { border-bottom: 0; }
.price-list .amt { font-family: var(--serif); font-weight: 600; color: var(--navy-900); }

.donate-options { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.donate-option { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--sp-5); }
.donate-option h3 { font-size: .95rem; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red-600); margin-bottom: var(--sp-3); }
.donate-option p { font-size: .98rem; color: var(--ink-2); }

.posters { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.poster img { border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.poster h3 { font-size: 1rem; font-family: var(--sans); font-weight: 650; margin: var(--sp-4) 0 var(--sp-3); }

/* --- Newsletter -------------------------------------------------------------------------- */
.subscribe { display: flex; gap: var(--sp-3); flex-wrap: wrap; max-width: 32rem; }
.subscribe input[type="email"] {
  flex: 1 1 14rem; padding: .85rem 1rem; font: inherit; font-size: 1rem; min-height: 48px;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); background: rgba(255,255,255,.07); color: #fff;
}
.subscribe input::placeholder { color: #8ba0bd; }
.subscribe input:focus { border-color: #fff; background: rgba(255,255,255,.12); }
.subscribe-note { font-size: var(--step--1); color: #8ba0bd; margin-top: var(--sp-3); }
@media (max-width: 30rem) { .subscribe .btn { width: 100%; } }

/* --- Case-study card images ---------------------------------------------------------------- */
.study-img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); margin-bottom: var(--sp-4);
  border: 1px solid var(--rule);
}

/* --- Embedded forms ------------------------------------------------------------------------ */
.form-embed {
  border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.form-embed iframe { display: block; width: 100%; height: 1150px; border: 0; }

/* Height is sized to the form's real content (~1210px) so there is no trailing
   whitespace; if the form ever grows (validation errors), it scrolls inside. */
.zeffy-embed {
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: var(--white); box-shadow: var(--shadow-md);
  height: 625px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.zeffy-embed iframe { display: block; width: 100%; height: 625px; border: 0; }
@media (max-width: 40rem) {
  .zeffy-embed, .zeffy-embed iframe { height: 620px; }
}

/* --- PDF share buttons ------------------------------------------------------------------------ */
.share-row { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; }
.share-btn {
  flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--rule-strong); background: var(--white);
  color: var(--navy-800); cursor: pointer; position: relative;
  transition: background-color .16s, color .16s, border-color .16s;
}
.share-btn:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.share-btn svg { width: 15px; height: 15px; }
.share-btn.is-done::after {
  content: attr(data-done); position: absolute; bottom: calc(100% + 7px); left: 50%;
  transform: translateX(-50%); background: var(--navy-900); color: #fff;
  font-size: .74rem; line-height: 1; padding: .35rem .55rem; border-radius: 4px;
  white-space: nowrap; z-index: 5;
}

/* --- Back to top ----------------------------------------------------------------------------- */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule-strong);
  background: var(--white); color: var(--navy-800); box-shadow: var(--shadow-md);
  cursor: pointer; display: grid; place-items: center; font-size: 1.05rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .16s, color .16s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* --- Reading progress (long pages) ----------------------------------------------------------- */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300;
  transform-origin: 0 50%; transform: scaleX(0); background: var(--red-600); pointer-events: none;
}

/* --- Cross-page transitions (progressive enhancement, Chromium) ------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: .18s; }
  ::view-transition-new(root) { animation-duration: .18s; }
}

/* --- Motion ------------------------------------------------------------------------------ */
/* Scroll-reveal + entrance choreography. JS adds .reveal / .in-view; without JS
   (or with prefers-reduced-motion) everything is simply visible. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(16px);
    transition:
      opacity .65s cubic-bezier(.22, .65, .3, 1) var(--reveal-delay, 0s),
      transform .65s cubic-bezier(.22, .65, .3, 1) var(--reveal-delay, 0s);
  }
  .reveal.in-view { opacity: 1; transform: none; }

  /* Hero entrance on page load */
  .hero-inner > * { animation: rise .7s cubic-bezier(.22, .65, .3, 1) both; }
  .hero-inner > :nth-child(2) { animation-delay: .12s; }
  .hero-inner > :nth-child(3) { animation-delay: .24s; }
  .hero-inner > :nth-child(4) { animation-delay: .36s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }

  /* Micro-interactions */
  .card-link, .study, .donate-option, .video-card {
    transition: transform .28s cubic-bezier(.22, .65, .3, 1), box-shadow .28s, border-color .16s;
  }
  .card-link:hover, .study:hover { transform: translateY(-4px); }
  .gallery button { overflow: hidden; }
  .gallery button img { transition: transform .4s cubic-bezier(.22, .65, .3, 1); }
  .gallery button:hover img { transform: scale(1.04); }
  .lightbox img { animation: lb-in .22s ease both; }
  @keyframes lb-in { from { opacity: 0; transform: scale(.985); } }
}

/* --- Footer ------------------------------------------------------------------------------ */
.site-footer { background: var(--navy-900); color: #a6b8d0; padding-block: var(--sp-8) var(--sp-6); }
.footer-top { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 62rem) { .footer-brand { grid-column: span 2; } }
.footer-brand p { color: #91a5c0; max-width: 34ch; margin-top: var(--sp-3); font-size: .97rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a { color: #a6b8d0; text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center;
  font-size: .88rem; color: #8296b2;
}
.social { display: flex; gap: var(--sp-3); }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); color: #cbd8e8; }
.social a:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* --- Language visibility ------------------------------------------------------------------ */
[data-lang] { display: none; }
html[lang="en"] [data-lang~="en"],
html[lang="fr"] [data-lang~="fr"],
html[lang="zh"] [data-lang~="zh"] { display: block; }
html[lang="en"] span[data-lang~="en"],
html[lang="fr"] span[data-lang~="fr"],
html[lang="zh"] span[data-lang~="zh"] { display: inline; }
html[lang="en"] li[data-lang~="en"],
html[lang="fr"] li[data-lang~="fr"],
html[lang="zh"] li[data-lang~="zh"] { display: list-item; }

.translation-note {
  border: 1px solid var(--navy-100); background: var(--navy-050); border-radius: var(--radius);
  padding: var(--sp-4); font-size: .95rem; color: var(--navy-700); margin-bottom: var(--sp-6);
}

/* --- Utility --------------------------------------------------------------------------------- */
.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); }
.mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
.section-head { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: flex-end; justify-content: space-between; margin-bottom: var(--sp-6); }

@media print {
  .site-header, .site-footer, .nav-toggle, .mobile-nav, .btn, .lang-switch { display: none !important; }
  body { background: #fff; color: #000; }
  [data-lang] { display: block !important; }
}
