/* ============================================================
   ACTRA — design tokens & base styles
   ============================================================ */
:root {
  --cream:        #FBF3DE;
  --cream-deep:   #F5E9C8;
  --paper:        #FFFBF0;
  --navy:         #1B3D85;
  --navy-deep:    #142C61;
  --navy-soft:    #2E55A8;
  --orange:       #F36B1F;
  --orange-deep:  #D9551A;
  --peach:        #FCDDC3;
  --peach-soft:   #FBE7D2;
  --sky:          #D6E4F7;
  --sky-deep:     #A7C2EE;
  --green:        #2D7A4E;
  --green-soft:   #DCEFE2;
  --ink:          #1A1C24;
  --ink-soft:     #4B4F5A;
  --rule:         rgba(27,61,133,0.14);
  --rule-soft:    rgba(27,61,133,0.08);

  --font-serif:   'Lora', 'Source Serif 4', Georgia, serif;
  --font-sans:    'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,44,97,0.05), 0 4px 14px rgba(20,44,97,0.06);
  --shadow-md: 0 4px 10px rgba(20,44,97,0.07), 0 18px 40px rgba(20,44,97,0.08);

  --page-max: 1280px;
  --page-pad: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }

strong, b { font-weight: 700; color: var(--navy); }
em { font-style: italic; }

::selection { background: var(--orange); color: var(--cream); }

/* ============================================================
   Layout helpers
   ============================================================ */
.page {
  width: 100%;
  overflow-x: clip;
}
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  position: relative;
}
.section {
  padding-top: clamp(72px, 9vw, 140px);
  padding-bottom: clamp(72px, 9vw, 140px);
  position: relative;
}
.section.tight { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.section.cream-deep { background: var(--cream-deep); }
.section.paper { background: var(--paper); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy h1, .section.navy h2, .section.navy h3, .section.navy h4 { color: var(--cream); }
.section.navy a { color: var(--peach); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--peach);
  color: var(--orange-deep);
}
.pill.navy { background: var(--sky); color: var(--navy); }
.pill.green { background: var(--green-soft); color: var(--green); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(243,107,31,0.6);
}
.btn.primary:hover { background: var(--orange-deep); transform: translateY(-1px); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--rule);
}
.btn.ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.navy {
  background: var(--navy);
  color: #fff;
}
.btn.navy:hover { background: var(--navy-deep); color: #fff; }

.btn .arrow {
  display: inline-block;
  transition: transform .18s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,243,222,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px var(--page-pad);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav .brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-weight: 800; letter-spacing: 0.04em; color: var(--navy); }
.nav .brand-logo { height: 44px; width: auto; display: block; }
.nav .brand-mark { width: 36px; height: 36px; }
.nav .brand-word { font-size: 20px; line-height: 1; }
.nav .brand-sub { font-size: 11px; font-family: var(--font-serif); font-style: italic; color: var(--orange); letter-spacing: 0.01em; margin-top: 2px; font-weight: 500; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--navy); }
.nav .donate-cta {
  padding: 10px 18px;
  font-size: 14px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--navy);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 3px;
  background: var(--paper);
}
.lang-switch a, .lang-switch span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  line-height: 1;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch .is-active { background: var(--navy); color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(80px, 10vw, 160px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero h1 .accent { color: var(--orange); font-style: italic; font-weight: 700; }
.hero .lede {
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-photo-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-photo-frame .ph {
  width: 100%;
  height: 100%;
}
.hero-photo-frame .badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--cream);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 280px;
}
.hero-photo-frame .badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  position: relative;
}
.hero-photo-frame .badge .dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: var(--green); opacity: .25; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .25; }
  50% { transform: scale(1.6); opacity: 0; }
}
.hero-photo-frame .badge .text { font-size: 13px; line-height: 1.35; color: var(--ink); }
.hero-photo-frame .badge .text b { color: var(--navy); }

/* Photo placeholder */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(27,61,133,0.04) 0 10px,
      rgba(27,61,133,0.08) 10px 20px
    ),
    linear-gradient(135deg, var(--sky), var(--peach));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.ph.cool {
  background:
    repeating-linear-gradient(135deg, rgba(27,61,133,0.05) 0 10px, rgba(27,61,133,0.1) 10px 20px),
    linear-gradient(135deg, #C7D9F2, #E8EFFA);
}
.ph.warm {
  background:
    repeating-linear-gradient(135deg, rgba(243,107,31,0.07) 0 10px, rgba(243,107,31,0.14) 10px 20px),
    linear-gradient(135deg, #FCD9BB, #FBE7D2);
}
.ph.has-img {
  background: var(--cream-deep);
  padding: 0;
  width: 100%;
  height: 100%;
}
.ph.has-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ph .ph-label {
  background: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

/* ============================================================
   Curriculum
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.skill-card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.skill-card .skill-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--peach);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.skill-card h4 {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 8px;
}
.skill-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   Cost-effectiveness
   ============================================================ */
.cost-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 32px;
}
.cost-bigfig {
  background: var(--orange);
  color: #fff;
  border-radius: 28px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(243,107,31,0.5);
}
.cost-bigfig .cost-mult {
  font-family: var(--font-serif);
  font-size: clamp(96px, 11vw, 168px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.cost-bigfig .cost-mult .x { font-size: 0.65em; vertical-align: 0.1em; }
.cost-bigfig .cost-sub {
  font-size: 18px;
  margin-top: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.cost-breakdown {
  margin-top: 36px;
  background: rgba(255,255,255,0.16);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 13px;
}
.cost-breakdown .cb { color: #fff; }
.cost-breakdown .cb .cb-pct { font-family: var(--font-serif); font-size: 26px; font-weight: 700; line-height: 1; }
.cost-breakdown .cb .cb-label { margin-top: 6px; opacity: 0.85; font-size: 12px; }

.cost-trend {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1px solid var(--rule-soft);
}
.cost-trend h4 { font-size: 18px; margin-bottom: 8px; }
.cost-trend .ct-sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }

/* ============================================================
   Roadmap
   ============================================================ */
.year-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
}
.year-card .year-tag {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.year-card h3 { font-size: 26px; margin-bottom: 18px; }
.year-card .y-check {
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.year-card .y-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.year-card .y-list li {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}
.year-card .y-list li::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--orange);
  margin-top: 9px;
  flex-shrink: 0;
}
.year-card.future { background: var(--navy); color: #fff; border-color: var(--navy); }
.year-card.future .year-tag { color: var(--peach); }
.year-card.future h3 { color: #fff; }
.year-card.future .y-list li { color: rgba(255,255,255,0.85); }
.year-card.future .y-list li::before { background: var(--peach); }
.year-card.future .y-check { background: rgba(255,255,255,0.18); color: #fff; }

/* ============================================================
   Endorsements
   ============================================================ */
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
  max-width: 980px;
}
.endorse-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.endorse-card .e-logo {
  height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.endorse-card .e-logo small { font-size: 11px; color: var(--ink-soft); display: block; font-weight: 400; font-family: var(--font-sans); margin-top: 2px; }
.endorse-card .e-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--navy);
  margin: 0;
}
.endorse-card .e-attr {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: auto;
}

/* ============================================================
   Team
   ============================================================ */
.team-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.member {
  text-align: center;
}
.member .photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.member .photo .ph { width: 100%; height: 100%; }
.member .name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 19px;
}
.member .role {
  font-size: 12px;
  color: var(--orange);
  margin-top: 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.member .bio {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.5;
}

/* ============================================================
   Advisors
   ============================================================ */
.advisors-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}
.advisor-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 18px;
  border: 1px solid var(--rule-soft);
}
.advisor-row .photo {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.advisor-row .photo .ph { width: 100%; height: 100%; }
.advisor-row .ad-name { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 17px; margin: 4px 0 4px; }
.advisor-row .ad-bio { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

/* ============================================================
   Funding
   ============================================================ */
.funding-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
/* Allow grid items to shrink below the min-content width imposed by the
   nowrap fund-row fills — otherwise the .reveal grid items expand past the
   viewport on mobile. */
.funding-grid > * { min-width: 0; }
.funding-bars {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.fund-callout {
  background: var(--orange);
  color: #fff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 28px 56px -28px rgba(243,107,31,0.5);
}
.fund-callout h3 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.fund-callout p { color: rgba(255,255,255,0.92); margin: 0 0 22px; font-size: 15px; }
.fund-callout .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.fund-callout .btn.ghost:hover { background: #fff; color: var(--orange); border-color: #fff; }
/* Primary inside the orange callout flips to white-on-navy so it doesn't
   disappear into the callout background. */
.fund-callout .btn.primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.35);
}
.fund-callout .btn.primary:hover {
  background: var(--cream);
  color: var(--navy);
}

/* ============================================================
   Pilot Bar Chart
   ============================================================ */
.evidence-chart {
  margin-top: 48px;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1px solid var(--rule-soft);
}
.evidence-chart .ec-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 18px; }
.evidence-chart h4 { color: var(--navy); }
.evidence-chart .ec-legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-soft); }
.evidence-chart .ec-legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.evidence-chart .bar-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
}
.bar-pair {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}
.bar-pair .bp-label { color: var(--navy); font-weight: 600; }
.bar-pair .bp-track {
  position: relative;
  height: 34px;
  background: linear-gradient(to right, transparent 50%, rgba(27,61,133,0.04) 50%);
  border-radius: 4px;
}
.bar-pair .bp-zero { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 1.5px; background: var(--navy-deep); opacity: .25; }
.bar-pair .bp-bar { position: absolute; top: 4px; bottom: 4px; border-radius: 3px; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.bar-pair .bp-bar.b1 { background: var(--navy); height: 11px; top: 6px; }
.bar-pair .bp-bar.b1.faint { background: var(--sky-deep); }
.bar-pair .bp-bar.b2 { background: var(--orange); height: 11px; top: 19px; }
.bar-pair .bp-bar.b2.faint { background: var(--peach); }
.bar-pair .bp-val { position: absolute; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   Contact / footer
   ============================================================ */
.contact-card {
  background: var(--navy);
  border-radius: 32px;
  padding: clamp(48px, 6vw, 80px);
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--orange);
  border-radius: 50%;
  bottom: -150px;
  right: -150px;
  opacity: 0.4;
}
.contact-card h2 { color: #fff; font-size: clamp(34px, 4vw, 52px); }
.contact-card p { color: rgba(255,255,255,0.85); margin: 16px 0 28px; max-width: 50ch; }
.contact-card .ctc-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-form {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.14);
}
.contact-form label { display: block; font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--orange); background: rgba(255,255,255,0.12); }
.contact-form textarea { resize: vertical; min-height: 88px; }
.contact-form .submit { width: 100%; justify-content: center; }
.contact-form .sent {
  text-align: center;
  padding: 32px 16px;
  color: #fff;
}
.contact-form .sent .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px var(--page-pad) 36px;
}
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer h5 { color: #fff; font-family: var(--font-sans); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: rgba(255,255,255,0.75); font-size: 14px; }
.footer ul a:hover { color: var(--orange); }
.footer .legal { max-width: var(--page-max); margin: 36px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12.5px; }

/* ============================================================
   Reveal animation
   ============================================================ */
/* Hidden only once Base.astro's head script has marked the page .js — so the
   content is fully visible with JavaScript off, and .reveal-failsafe (added
   by the same script after 3s) shows everything if script.js never runs. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.in,
.reveal-failsafe .reveal {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Advisor profile links (team.html)
   ============================================================ */
.ad-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange);
  transition: color 0.2s ease;
}
.ad-link:hover { color: var(--orange-deep); }
.ad-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.ad-link:hover .arrow { transform: translateX(2px); }
/* Pending: keep markup, hide until ACTRA supplies the URL */
.ad-link.is-pending { display: none; }

/* ============================================================
   Cover — full-screen problem statement (home only)
   ============================================================ */
.cover {
  /* At least one viewport tall on initial load — but `min-height` (not `height`)
     so the cover can grow when content needs more room (e.g. narrow widths where
     the H1 wraps to more lines). Otherwise content gets clipped by the
     decorative `overflow: hidden`. Fallback to vh, then dvh on modern browsers
     to handle mobile address-bar dynamics. 84px accounts for the sticky nav. */
  min-height: calc(100vh - 84px);
  min-height: calc(100dvh - 84px);
  /* Photograph background. The source image is pre-darkened with a navy gradient
     so the overlay can stay light — just enough to anchor the cream text on the
     left side. */
  background:
    linear-gradient(100deg, rgba(20, 44, 97, 0.78) 0%, rgba(20, 44, 97, 0.55) 45%, rgba(20, 44, 97, 0.35) 100%),
    url('images/hero-background.jpg') center/cover no-repeat;
  background-color: var(--navy); /* fallback for browsers that fail to load the image */
  color: var(--cream);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cover-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 80px var(--page-pad) 56px;
  position: relative;
  width: 100%;
}
.cover-eyebrow {
  /* Reads as the opening of the H1 sentence ("We're transforming / Violence
     in Latin America into...") — sized to lead into the headline without
     competing with it. */
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.cover-eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--orange);
}
.cover h1 {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 20ch;
}
.cover h1 .accent {
  color: var(--orange);
  font-style: italic;
}
.cover .cover-tagline {
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 3px solid var(--orange);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.3vw, 22px);
  color: var(--cream);
  line-height: 1.5;
  max-width: 56ch;
  background: rgba(255, 255, 255, 0.03);
}
.cover-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cover-cta:hover {
  background: var(--orange-deep);
  color: #fff;
  transform: translateY(-1px);
}
.cover-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cover-scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.35);
  animation: coverScrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes coverScrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (max-width: 700px) {
  .cover-inner { padding: 64px var(--page-pad) 40px; }
  .cover h1 { font-size: clamp(36px, 9vw, 56px); }
  .cover .cover-tagline { margin-top: 28px; padding: 18px 20px; }
}

/* ============================================================
   Responsive
   ============================================================ */
/* evidence.html — Two RCT cards side-by-side at desktop */
.rct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* support.html — Two budget breakdown cards (2026 / 2027) at desktop */
.budget-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1024px) {
  .hero-grid, .cost-hero, .funding-grid, .team-intro, .contact-card {
    grid-template-columns: 1fr;
  }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .endorse-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .advisors-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .lang-switch { margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 12px var(--page-pad) 20px;
    border-bottom: 1px solid var(--rule);
    gap: 4px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    margin-left: 0;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 17px;
    color: var(--navy);
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav-links li:last-child a { border-bottom: 0; }
}
@media (max-width: 640px) {
  /* Tighten the nav so the donate CTA + hamburger don't overflow the viewport
     at small mobile widths (~375px). Drops the italic "Acción Transformadora"
     subtitle and the donate arrow icon, shrinks paddings + gaps. */
  .nav-inner { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .nav .brand-sub { display: none; }
  .nav .brand-mark, .nav .brand svg { width: 32px; height: 32px; }
  .nav .brand-logo { height: 36px; }
  .nav .brand-word { font-size: 17px; }
  .nav .donate-cta { padding: 8px 12px; font-size: 13px; gap: 4px; }
  .nav .donate-cta svg { display: none; }
  .lang-switch { font-size: 12px; padding: 2px; }
  .nav-toggle { width: 40px; height: 40px; margin-left: 0; }

  .skills-grid, .endorse-grid, .team-grid, .footer-inner,
  .rct-grid, .budget-cards { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .bar-pair { grid-template-columns: 100px 1fr; }
}

/* ============================================================
   Multi-page additions
   ============================================================ */
.nav-links a.is-active { color: var(--orange); }
.nav-links a.is-active::after {
  content: ''; display: block; height: 2px; background: var(--orange);
  margin-top: 4px; border-radius: 2px;
}

/* Page header (non-home pages) */
.page-header {
  padding-top: clamp(96px, 14vh, 168px);
  padding-bottom: clamp(48px, 7vh, 88px);
}
.page-header h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  max-width: 18ch;
}
.page-header .lede {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-soft);
  line-height: 1.55;
}
/* Page header with a side image (partners, reports) — reuses .hero-grid */
.page-header .hero-photo-frame { aspect-ratio: 1 / 1; }

/* Home: CTA */
.home-cta {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 80px);
}
.home-cta .pill { color: #fff; }

/* Photo banner */
.photo-banner {
  width: 100%;
  overflow: hidden;
  background: var(--cream);
}
.photo-banner img {
  display: block;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  height: clamp(180px, 28vw, 360px);
  object-fit: cover;
  object-position: center 35%;
}

/* Newsletter signup */
.newsletter {
  background: var(--cream-deep);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.newsletter h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.newsletter p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.newsletter form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 13px 20px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.newsletter input[type="email"]:focus { border-color: var(--orange); }
.newsletter .nl-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.newsletter .nl-sent {
  background: var(--green-soft);
  color: var(--green);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14.5px;
}
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; } }

/* ============================================================
   Reports & Transparency
   ============================================================ */
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.report-card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.report-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.report-card.featured h3, .report-card.featured h4 { color: #fff; }
.report-card.featured p { color: rgba(255,255,255,0.85); }
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.report-card.featured:hover { border-color: var(--navy); }
.report-card h4 { font-size: 20px; color: var(--navy); }
.report-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.report-card .rc-soon {
  align-self: flex-start;
  background: var(--peach);
  color: var(--orange-deep);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 800px) {
  .report-grid { grid-template-columns: 1fr; }
  .report-card.featured { grid-template-columns: 1fr; }
}

/* De-emphasised legal/financial filings */
.filings {
  margin-top: 16px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  background: rgba(27,61,133,0.02);
  overflow: hidden;
}
.filings summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.filings summary::-webkit-details-marker { display: none; }
.filings summary .chev { transition: transform .2s ease; flex-shrink: 0; }
.filings[open] summary .chev { transform: rotate(180deg); }
.filings .filings-body { padding: 0 24px 8px; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.doc-list li .doc-name { color: var(--navy); font-weight: 500; }
.doc-list li .doc-status { font-size: 12px; color: var(--ink-soft); font-style: italic; white-space: nowrap; }
.doc-list li .doc-status.ready { color: var(--green); font-style: normal; font-weight: 600; }

/* Gated resource (curriculum download behind newsletter sign-up) */
.resource-gate {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--peach-soft);
  border: 1px solid var(--peach);
  border-radius: 20px;
  padding: 32px 34px;
}
.resource-gate h3 { font-size: clamp(20px, 2.4vw, 26px); color: var(--navy); margin: 12px 0 10px; }
.resource-gate .rg-info p { color: var(--ink-soft); margin: 0; font-size: 15px; line-height: 1.55; max-width: 42ch; }
.rg-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rg-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 13px 20px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.rg-form input[type="email"]:focus { border-color: var(--orange); }
.rg-note { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 0; flex-basis: 100%; }
.gate-unlocked { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.resource-gate [hidden] { display: none !important; }
.gate-unlocked .rg-alt { font-size: 13.5px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.gate-unlocked .rg-alt:hover { color: var(--orange); border-color: var(--orange); }
.rg-thanks { color: var(--green); font-style: normal; font-weight: 500; }
@media (max-width: 760px) { .resource-gate { grid-template-columns: 1fr; gap: 20px; padding: 24px; } }

/* Theory of Change diagram — ported "Refined logic model" (scoped to .toc-fig) */
.toc-fig {
  /* Scoped evidence-strength hues (sienna/clay) stay local; brand tokens now
     match the global palette instead of the old ported-artifact values. */
  --navy:#1B3D85; --navy-deep:#142C61; --orange:#F36B1F; --sienna:#bb4d1a;
  --clay:#d98b4a; --cream:#f8ead0; --cream-soft:#fdf4e3; --card:#fffdf9;
  --line:#e8dcc4; --ink:#36383f; --ink-soft:#7a7264; --wire:#1B3D85; --board:#eceae4;
  margin: 36px 0 0;
}
.toc-fig .frame { background: var(--cream-soft); border: 1px solid #e6dcc8; border-radius: 22px; padding: 30px 34px; box-shadow: inset 0 1px 0 #fff, 0 18px 46px -28px rgba(40,30,10,0.35); }
.toc-fig .toc-fit { overflow-x: auto; overflow-y: hidden; }
.toc-fig .toc-sizer { position: relative; margin: 0 auto; }
.toc-fig .toc { position: relative; transform-origin: top left; font-family: var(--font-sans); }
.toc-fig .toc .wires { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: visible; }
.toc-fig .node { position: absolute; z-index: 2; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 14px 14px 13px; box-shadow: 0 10px 22px -18px rgba(40,30,10,0.5); }
.toc-fig .node .num { position: absolute; top: -13px; left: -11px; width: 27px; height: 27px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; border: 2.5px solid var(--cream-soft); box-shadow: 0 2px 6px rgba(40,30,10,0.28); }
.toc-fig .ev-strong .num { background: var(--sienna); }
.toc-fig .ev-medium .num { background: var(--orange); }
.toc-fig .ev-mixed .num { background: var(--card); color: var(--clay); border: 2px solid var(--clay); box-shadow: 0 2px 6px rgba(40,30,10,0.18); }
.toc-fig .node .txt { font-size: 14.5px; line-height: 1.34; color: var(--ink); }
.toc-fig .node .txt b { color: var(--navy); font-weight: 700; }
.toc-fig .node .txt em { font-style: italic; color: var(--sienna); font-weight: 500; }
.toc-fig .node .metric { display: inline-block; margin-top: 9px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--navy); background: #eef1f8; border: 1px solid #dde3f1; border-radius: 6px; padding: 2px 7px; }
.toc-fig .node::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: transparent; }
.toc-fig .ev-strong::before { background: var(--sienna); }
.toc-fig .ev-medium::before { background: var(--orange); }
.toc-fig .ev-mixed::before { background: var(--clay); }
.toc-fig .ev-potent .num { background: var(--navy); }
.toc-fig .ev-potent::before { background: var(--navy); }
.toc-fig .ev-potent { background: #f4f6fb; border-color: #dbe2f1; }
.toc-fig .ev-potent .txt b { color: var(--navy); }
.toc-fig .phase { position: absolute; z-index: 2; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.toc-fig .phase .ph-num { font-family: var(--font-serif); font-weight: 600; font-size: 15px; color: var(--orange); font-style: italic; letter-spacing: 0; text-transform: none; }
.toc-fig .band { position: absolute; z-index: 0; top: 0; bottom: 0; border-radius: 16px; }
.toc-fig .node.goal { background: var(--navy); border-color: var(--navy); }
.toc-fig .node.goal .txt { color: #fff; font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 1.25; }
.toc-fig .node.goal .txt em { color: var(--orange); font-style: italic; }
.toc-fig .node.goal::before { display: none; }
.toc-fig .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 26px; padding-top: 20px; border-top: 1px solid #e6dcc8; }
.toc-fig .legend .li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #54565d; font-weight: 600; }
.toc-fig .legend .sw { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; }
.toc-fig .sw.strong { background: var(--sienna); }
.toc-fig .sw.medium { background: var(--orange); }
.toc-fig .sw.mixed { background: var(--card); border: 2px solid var(--clay); }
.toc-fig .sw.potent { background: var(--navy); }
.toc-fig .legend .note { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); font-style: italic; }
.toc-fig.is-es .node .txt { font-size: 13.5px; line-height: 1.28; }
@media (max-width: 700px) { .toc-fig .legend .note { margin-left: 0; flex-basis: 100%; } }

/* Theory of Change — detailed dossier page */
.dossier-step { padding: 34px 0; border-top: 1px solid var(--rule); }
.dossier-step:first-of-type { border-top: none; padding-top: 8px; }
.dossier-step .ds-head { display: flex; gap: 14px; align-items: baseline; }
.dossier-step .dn { flex: 0 0 auto; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.dossier-step h3 { font-size: clamp(19px, 2.2vw, 25px); color: var(--navy); margin: 0; line-height: 1.2; }
.dossier-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; margin-top: 16px; padding-left: 48px; }
.dossier-evidence p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin: 0 0 12px; }
.dossier-evidence p:last-child { margin-bottom: 0; }
.dossier-evidence .sub { display: block; font-weight: 700; color: var(--navy); font-size: 12.5px; letter-spacing: 0.03em; text-transform: uppercase; margin: 4px 0 6px; }
.dossier-mel { background: var(--sky); border: 1px solid var(--sky-deep); border-radius: 14px; padding: 18px 20px; align-self: start; }
.dossier-mel h5 { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.dossier-mel ul { margin: 0; padding-left: 18px; }
.dossier-mel li { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 7px; }
.dossier-mel li:last-child { margin-bottom: 0; }
.dossier-mel.note-only { background: var(--cream-deep); border-color: var(--rule-soft); }
.dossier-mel.note-only p { margin: 0; font-size: 12.5px; color: var(--ink-soft); font-style: italic; }
.dossier-extended { margin-top: 10px; border: 1px solid var(--rule); border-radius: 16px; padding: 4px 26px; background: var(--paper); }
.dossier-extended > summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 26px); color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dossier-extended > summary::-webkit-details-marker { display: none; }
.dossier-extended > summary .chev { transition: transform .2s ease; flex: 0 0 auto; }
.dossier-extended[open] > summary .chev { transform: rotate(180deg); }
@media (max-width: 820px) { .dossier-grid { grid-template-columns: 1fr; gap: 18px; padding-left: 0; } }

/* ============================================================
   Jul 9 restructure — nav dropdowns, pillars, roadmap, pathway,
   claims, external cost-effectiveness, ways to support
   ============================================================ */

/* Nav hover dropdowns (desktop) */
.nav-links li { position: relative; }
.nav-sub {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 190px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 60;
}
.nav-links .has-sub:hover .nav-sub,
.nav-links .has-sub:focus-within .nav-sub { display: block; }
.nav-links .has-sub > a { padding-bottom: 14px; margin-bottom: -14px; } /* hover bridge to the panel */
.nav-sub li { width: 100%; }
.nav-sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-sub a:hover { background: var(--cream-deep); color: var(--navy); }

/* Landing — pillar signpost cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.pillar-card h3 { font-size: 21px; line-height: 1.25; color: var(--navy); margin-bottom: 12px; }
.pillar-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 18px; }
.pillar-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pillar-card:hover .pillar-link { color: var(--orange-deep); }
.pillar-card:hover .pillar-link .arrow { transform: translateX(3px); }
.pillar-link .arrow { transition: transform 0.18s ease; }

/* Landing — progress cards */
.progress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 44px;
  max-width: 980px;
}
.progress-card {
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.progress-card h4 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.progress-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 16px; }
.progress-card .ad-link { margin-top: auto; }
/* Landing — labelled logo rows */
.logo-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--rule-soft);
}
.logo-row:last-child { border-bottom: 1px solid var(--rule-soft); }
.logo-row-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.logo-row-items { display: flex; align-items: baseline; gap: 16px 36px; flex-wrap: wrap; }
.logo-row-items span {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
  opacity: 0.7;
  white-space: nowrap;
}

/* Strategy — roadmap theory of change */
.roadmap-flow {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.roadmap-flow::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--rule);
}
.roadmap-step {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 14px 0;
}
.roadmap-step .rs-num {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--cream-deep);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.roadmap-step p {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  flex: 1;
  align-self: center;
}
.roadmap-step p b { color: var(--navy); }
.roadmap-step.goal .rs-num { background: var(--navy); }
.roadmap-step.goal p { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,0.88); }
.roadmap-step.goal p b { color: #fff; }

/* Alliances — worked examples */
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.example-card {
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.example-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; line-height: 1.25; }
.example-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 16px; }
.example-card .ad-link { margin-top: auto; }

/* Evidence — claims-first layout */
.claim-list {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
}
.claim-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.claim-row:last-child { border-bottom: 1px solid var(--rule); }
.claim-row h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.22;
  color: var(--navy);
  margin: 0 0 8px;
  max-width: 26ch;
}
.claim-row p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; max-width: 62ch; }
.claim-row .ad-link { flex: 0 0 auto; white-space: nowrap; }

/* Evidence — cost-effectiveness subheads + external estimates */
.ce-subhead {
  margin-top: 40px;
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-family: var(--font-sans);
  font-weight: 700;
}
.external-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  margin-top: 28px;
  align-items: stretch;
}
.idb-chart {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.idb-chart h4 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
/* Grid, not flex: every label shares one row, so one- and two-line labels
   leave all bars on the same baseline. */
.idb-bars {
  display: grid;
  grid-template-rows: 1fr auto;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 24px;
  min-height: 240px;
}
.idb-bar { display: contents; }
.idb-bar .ib-fill {
  align-self: end;
  justify-self: center;
  width: 100%;
  max-width: 48px;
  background: var(--navy-soft);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
}
.idb-bar.highlight .ib-fill { background: var(--orange); }
.idb-bar .ib-label {
  font-size: 10.5px;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}
.idb-bar.highlight .ib-label { color: var(--orange-deep); }
.idb-note { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-soft); font-style: italic; }
.hli-callout {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 30px;
  color: rgba(255,255,255,0.85);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hli-callout h4 { color: #fff; font-size: 20px; margin: 14px 0 4px; }
.hli-callout .hli-fig {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 68px);
  line-height: 1;
  color: var(--peach);
  margin-top: 14px;
}
.hli-callout .hli-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; }
.hli-callout p { font-size: 14px; line-height: 1.6; margin: 18px 0; }
.hli-callout .ad-link { color: var(--peach); margin-top: auto; }
.hli-pill {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

/* Support — three ways to support */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.way-card {
  height: 100%;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.way-card .way-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.way-card h3 { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.way-card ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.way-card ul li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.way-card ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 8px;
  flex-shrink: 0;
}
.way-card ul li b { color: var(--navy); }
.way-card .ad-link { margin-top: auto; }

/* Support — HLI strip under the budget cards */
.hli-strip {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hli-strip p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; flex: 1; min-width: 240px; }
.hli-strip p b { color: var(--navy); }

/* Responsive for the new components */
@media (max-width: 1024px) {
  .pillar-grid, .progress-grid, .example-grid, .ways-grid { grid-template-columns: 1fr; }
  .external-grid { grid-template-columns: 1fr; }
  .claim-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* Mobile nav: show dropdown links inline in the slide-down panel */
  .nav-sub {
    display: block;
    position: static;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 4px 18px;
  }
  .nav-links .has-sub > a { padding-bottom: 14px; margin-bottom: 0; }
  .nav-sub a { border-bottom: 0 !important; padding: 8px 4px; font-size: 14.5px; color: var(--ink-soft); }
}
@media (max-width: 640px) {
  .idb-bars { column-gap: 8px; }
  .idb-bar .ib-label { font-size: 9px; }
}

/* ============================================================
   v3 holistic pass — one label device, one section header, one
   quote treatment, one accent class. Legacy names are aliased so
   the ES mirror keeps rendering until it is rebuilt.
   ============================================================ */

/* Label device (.tag going forward) */
.tag, .report-card .rc-tag, .claim-src {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.advisor-row .ad-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.tag em { font-style: italic; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: none; }
.tag.navy { color: var(--navy); }

/* Split section header: eyebrow + h2 left, lede right */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px 72px;
  align-items: end;
}
.section-head h2 { margin-top: 18px; max-width: 22ch; }
.section-head .sh-lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  padding-bottom: 6px;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head .sh-lede { padding-bottom: 0; }
}

/* Accent word inside headings (replaces inline color spans) */
.h-accent { color: var(--orange); }
.section.navy .h-accent, .home-cta .h-accent { color: var(--peach); }

/* Pull quote — the single testimonial device, one per page max */
.pull-quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.35;
  color: var(--navy);
}
.pull-quote blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 72px;
  line-height: 0.5;
  color: var(--orange);
  margin-bottom: 20px;
}
.pull-quote footer {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Home — editorial problem statement (replaces the 3-card grid) */
.stat-statement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 48px;
}
.stat-statement .ss-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(110px, 15vw, 200px);
  line-height: 0.8;
  color: var(--orange);
  letter-spacing: -0.04em;
}
.stat-statement .ss-lead {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 16px;
  max-width: 30ch;
  text-wrap: balance;
}
.stat-statement .ss-support {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
  max-width: 58ch;
}
@media (max-width: 760px) {
  .stat-statement { grid-template-columns: 1fr; gap: 20px; }
}

/* Alliances — conversation ledger (six steps in one panel; deliberately
   unlike Strategy's vertical roadmap) */
.ledger {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  counter-reset: ledger;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ledger li {
  counter-increment: ledger;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 22px 28px;
}
.ledger li + li { border-top: 1px solid var(--rule-soft); }
.ledger li::before {
  content: counter(ledger, decimal-leading-zero);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 15px;
  color: var(--orange);
  font-weight: 500;
}
.ledger p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.ledger p b { color: var(--navy); }
@media (max-width: 640px) { .ledger li { grid-template-columns: 44px 1fr; padding: 18px 20px; } }

/* Evidence — chapter nav chips under the page header */
.chapter-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.chapter-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper);
  transition: border-color .15s ease, color .15s ease;
}
.chapter-nav a:hover { border-color: var(--orange); color: var(--orange-deep); }
.chapter-nav a .cn-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--orange);
}

/* Closing CTA band — one per page, centered */
.closer { text-align: center; max-width: 680px; margin: 0 auto; }
.closer h2 { font-size: clamp(28px, 3.4vw, 44px); }
.closer p { color: var(--ink-soft); margin: 16px auto 28px; max-width: 52ch; }
.closer .closer-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Sept 2026 revision round — shared pieces
   ========================================================================== */

/* Visible keyboard focus everywhere (brief §9), incl. the nav dropdowns. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Document buttons in their "Coming soon" state (brief §2.5). */
.is-soon {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}
.btn.is-soon { background: transparent; color: var(--ink-soft); border: 1px dashed var(--rule); box-shadow: none; }
.ad-link.is-soon { color: var(--ink-soft); }
.footer-soon { opacity: 0.7; cursor: default; }
.footer-soon em { font-style: normal; font-size: 0.85em; }

/* Colombian Law 1581 notice + consent lines under every personal-data field. */
.data-notice { margin-top: 12px; font-size: 12px; line-height: 1.55; color: var(--ink-soft); text-align: left; }
.data-notice p { margin: 0 0 6px; max-width: 70ch; }
.data-notice .dn-consent { font-size: 12.5px; }
.data-notice.on-dark { color: rgba(255,255,255,0.78); }

/* Forms with their own display rule would ignore [hidden] (see lessons.md). */
form[hidden], .gate-locked[hidden], .gate-unlocked[hidden], [data-form-status][hidden] { display: none !important; }

/* Form submission status line (replaces the old fake success states). */
.form-status { margin-top: 10px; font-size: 13.5px; }
.form-status.is-error { color: #B3261E; }
.on-dark .form-status.is-error, .form-status.on-dark.is-error { color: var(--peach); }

/* --- Landing (IndexPage) additions --- */
/* Hero: a candid program photo as a real <img> (so it has alt text), not the
   old pre-darkened background. The gradient only anchors the headline on the
   left; the right of the photo stays clear and bright. */
.cover.has-photo { background: var(--navy); }
.cover.has-photo .cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  z-index: 0;
}
.cover.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, rgba(20, 44, 97, 0.88) 0%, rgba(20, 44, 97, 0.76) 44%, rgba(20, 44, 97, 0.32) 72%, rgba(20, 44, 97, 0.1) 100%);
}
.cover.has-photo .cover-inner { z-index: 2; }
.cover .cover-tagline strong { font-style: normal; font-weight: 700; color: #fff; }
@media (max-width: 900px) {
  .cover.has-photo::before {
    background: linear-gradient(180deg, rgba(20, 44, 97, 0.62) 0%, rgba(20, 44, 97, 0.8) 55%, rgba(20, 44, 97, 0.88) 100%);
  }
}

/* The problem: three equal white boxes, each with its source line. */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.problem-grid > .reveal { display: flex; }
.problem-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.problem-box .pb-body {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.45;
  color: var(--navy);
  margin: 0 0 20px;
}
.problem-box .pb-source {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* Participant quote: the single .pull-quote, paired with a program photo. */
.quote-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.quote-block .qb-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
}
.quote-block .qb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.quote-block .pull-quote { margin: 0; text-align: left; max-width: 34ch; }
@media (max-width: 800px) {
  .quote-block { grid-template-columns: 1fr; }
  .quote-block .pull-quote { max-width: none; }
}

/* Institutions and partners: three centred categories; logo or wordmark. */
.inst-head { text-align: center; }
.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.inst-group {
  text-align: center;
  padding: 28px 22px;
  border-top: 2px solid var(--orange);
}
.inst-title {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.inst-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.inst-logo { display: block; max-height: 48px; max-width: 180px; width: auto; height: auto; margin: 0 auto; }
.inst-wordmark {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
.inst-wordmark small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}
.inst-endorse { margin-top: clamp(56px, 8vw, 96px); text-align: center; }
.inst-endorse h2 { margin-inline: auto; }
.inst-endorse-lede { max-width: 62ch; margin: 16px auto 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.inst-endorse .endorse-grid { margin-inline: auto; text-align: left; }
/* An odd last endorsement sits centred under the two columns, not stranded left. */
@media (min-width: 641px) {
  .endorse-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 22px) / 2);
  }
}
@media (max-width: 860px) {
  .inst-grid { grid-template-columns: 1fr; }
}

/* Newsletter: status line and Law 1581 notice span the form's full width. */
.newsletter form .form-status,
.newsletter form .data-notice { flex-basis: 100%; }
/* `.newsletter p` (15.5px) would otherwise out-rank the notice's own size. */
.newsletter .data-notice p { font-size: 12px; color: var(--ink-soft); }
.newsletter .data-notice .dn-consent { font-size: 12.5px; }
.newsletter .form-status { margin: 0; font-size: 13.5px; }

/* Partnership CTA: the longer two-line heading needs room above the body. */
#lets-talk .home-cta h2 { margin-bottom: 18px; }

/* --- Strategy additions --- */
/* Theory of change steps: a title line above each step's copy. */
.roadmap-step .rs-title { display: block; margin-bottom: 4px; }
/* Five skill cards, all the same size: every card fills its grid cell, so a
   row shares one height. Tablet: 3 + 2 centred on a 6-column track rather
   than 2 + 2 + an orphan. */
.skills-grid > .reveal > .skill-card { height: 100%; }
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(6, 1fr); }
  .skills-grid > * { grid-column: span 2; }
  .skills-grid > :nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 640px) {
  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid > *, .skills-grid > :nth-child(4) { grid-column: auto; }
}
/* Curriculum gate: status line and data notice take full rows in the form. */
.rg-form .form-status, .rg-form .data-notice { flex-basis: 100%; margin-top: 0; }

/* --- Partnerships additions --- */
/* Phases reuse the .ledger step sequence; each step now carries a title. */
.phase-ledger h3 { font-size: clamp(19px, 2vw, 22px); color: var(--navy); line-height: 1.25; margin: 0 0 6px; }
/* What ACTRA brings — four compact .example-cards */
.bring-grid { grid-template-columns: repeat(4, 1fr); margin-top: 32px; }
.bring-grid .example-card { padding: 22px; }
.bring-grid .example-card h3 { font-size: 17px; margin-bottom: 8px; }
.bring-grid .example-card p { margin: 0; }
/* Partnerships in action — project cards with status tag and partner slot */
.in-action-grid { grid-template-columns: repeat(2, 1fr); }
.in-action-grid abbr { text-decoration: none; cursor: help; }
.partner-logos { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 10px; }
.partner-logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.partner-logos li span { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--navy); opacity: 0.8; }
.partner-logos li img { display: block; max-height: 36px; max-width: 140px; width: auto; }
@media (max-width: 1024px) {
  .bring-grid { grid-template-columns: repeat(2, 1fr); }
  .in-action-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bring-grid { grid-template-columns: 1fr; }
}

/* --- Evidence additions --- */
/* Section intros that aren't in a .section-head */
.ev-lede { max-width: 68ch; color: var(--ink-soft); font-size: 16px; line-height: 1.6; margin: 18px 0 0; }
.ev-lede b { color: var(--navy); }

/* Evidence from related programs — expandable study list (mirrors .filings) */
.study-list { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.filings.study { margin-top: 0; background: var(--paper); }
.filings.study summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  color: var(--navy);
}
.filings.study summary .claim-src { grid-column: 1; margin-bottom: 6px; }
.filings.study summary h3 { grid-column: 1; margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.25; color: var(--navy); }
.filings.study summary .chev { grid-column: 2; grid-row: 1 / span 2; color: var(--orange); }
.filings.study summary:hover h3 { color: var(--orange-deep); }
.study-body { padding: 0 24px 22px; }
.study-body p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 68ch; }

/* The five skills — equal-height cards with a research-basis footer */
.ev-skills > div { display: flex; }
.ev-skills .skill-card { cursor: default; display: flex; flex-direction: column; width: 100%; }
.ev-skills .skill-card .skill-basis {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.ev-skills .skill-card > p:not(.skill-basis) { margin-bottom: 16px; }
.skill-basis span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* Pilot results chart. Bar positions/widths are inline data computed in the
   template from the effect sizes; everything else is here. */
.pilot-chart { margin: 48px 0 0; }
.pilot-chart .pc-note { font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; max-width: 64ch; line-height: 1.5; }
.pc-legends { display: flex; flex-direction: column; gap: 8px; }
.pilot-chart .ec-legend { flex-wrap: wrap; row-gap: 6px; }
.pilot-chart .ec-legend .sw.p1 { background: var(--navy); }
.pilot-chart .ec-legend .sw.p2 { background: var(--orange); }
.pilot-chart .ec-legend .sw.k-sig { background: var(--ink-soft); }
.pilot-chart .ec-legend .sw.k-marginal { background: repeating-linear-gradient(135deg, var(--ink-soft) 0 2px, #D9D6CE 2px 4px); }
.pilot-chart .ec-legend .sw.k-ns { background: #E4E1D9; box-shadow: inset 0 0 0 1px var(--ink-soft); }
.pc-rows { margin-top: 28px; display: flex; flex-direction: column; }
.pc-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--rule-soft);
}
/* Outcome groups (early / intermediate / final): a titled, tinted band each,
   title written vertically down the band's left edge. Every outcome row gets
   the same height so single-pilot rows don't render thinner. */
.pc-group {
  display: grid;
  grid-template-columns: 44px 1fr;
  margin-bottom: 8px;
  border-radius: var(--r-md);
}
.pc-group.g1 { background: rgba(214,228,247,0.4); }
.pc-group.g2 { background: rgba(220,239,226,0.6); }
.pc-group.g3 { background: rgba(245,233,200,0.6); }
.pc-group-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: center;
  text-align: center;
  padding: 16px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--navy);
}
.pc-group-rows { padding-right: 16px; min-width: 0; }
.pc-group .pc-row { min-height: 76px; }
.pc-group .pc-row:first-child { border-top: 0; }
.pc-axis-row { margin-left: 44px; padding-right: 16px; border-top: 0; }
.pc-label { color: var(--navy); font-weight: 600; font-size: 14px; line-height: 1.3; }
.pc-lines { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pc-track { position: relative; height: 20px; }
.pc-zero { position: absolute; top: -4px; bottom: -4px; width: 1.5px; margin-left: -0.75px; background: var(--navy-deep); opacity: .3; }
.pc-bar { position: absolute; top: 4px; height: 12px; border-radius: 3px; }
.pc-bar.p1.sig { background: var(--navy); }
.pc-bar.p1.ns { background: var(--sky); box-shadow: inset 0 0 0 1px var(--sky-deep); }
.pc-bar.p2.sig { background: var(--orange); }
.pc-bar.p2.marginal { background: repeating-linear-gradient(135deg, var(--orange) 0 3px, var(--peach) 3px 6px); }
.pc-bar.p2.ns { background: var(--peach); box-shadow: inset 0 0 0 1px rgba(243,107,31,0.45); }
.pc-val {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.pc-axis-row { padding-top: 8px; }
.pc-axis-row .pc-label { font-size: 11.5px; font-weight: 500; color: var(--ink-soft); }
.pc-axis { position: relative; height: 16px; }
.pc-axis span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pc-caption { margin-top: 18px; font-size: 13px; color: var(--ink-soft); font-style: italic; }
.ev-prose { max-width: 76ch; margin-top: 36px; }
.ev-prose p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.ev-prose .ev-aside {
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--sky-deep);
  background: rgba(214,228,247,0.45);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 14px;
}
@media (max-width: 640px) {
  .pilot-chart { padding: 22px 16px; }
  .pc-row { grid-template-columns: 1fr; gap: 8px; }
  .pc-group { grid-template-columns: 1fr; }
  .pc-group-title { writing-mode: horizontal-tb; transform: none; justify-self: stretch; text-align: left; padding: 12px 12px 0; }
  .pc-group-rows { padding: 0 12px; }
  .pc-group .pc-row { min-height: 0; }
  .pc-axis-row { margin-left: 0; padding-right: 0; }
  .pc-axis-row .pc-label { display: none; }
  .pc-val { font-size: 11.5px; }
}

/* Cost-effectiveness — visible estimate label, column chart, glossary */
.ev-estimate-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.ev-breakdown-label { margin: 28px 0 -12px; font-size: 12px; opacity: 0.85; }
/* Grid, not flex, so every bar sits on one baseline however many lines the
   status label below it wraps to: each column is stack / label / status. */
.ct-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  grid-auto-flow: column;
  column-gap: 16px;
  row-gap: 6px;
  margin-top: 28px;
  padding: 0 4px;
}
.ct-col { display: contents; }
.ct-stack { align-self: end; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ct-amount { font-family: var(--font-serif); font-weight: 700; font-size: 16px; color: var(--navy); }
.ct-bar { width: 100%; max-width: 56px; border-radius: 8px 8px 0 0; background: var(--navy); }
.ct-col.bench .ct-amount { color: var(--ink-soft); }
.ct-col.bench .ct-bar { background: var(--navy-soft); opacity: 0.55; }
.ct-col.proj .ct-amount { color: var(--orange-deep); }
.ct-col.proj .ct-bar { background: repeating-linear-gradient(135deg, var(--orange) 0 4px, var(--peach) 4px 8px); }
.ct-label { font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; }
.ct-status { font-size: 11px; line-height: 1.3; color: var(--ink-soft); text-align: center; align-self: start; }
.ct-foot { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-soft); text-align: center; font-style: italic; }
.ev-glossary { max-width: 76ch; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.ev-glossary b { color: var(--navy); }
.idb-body { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.hli-callout .hli-shallow { margin: 0 0 18px; font-size: 13px; color: rgba(255,255,255,0.7); }
@media (max-width: 1024px) { .external-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  /* The IDB chart's seven labels used to force the page wider than a phone. */
  .idb-chart { padding: 22px 16px; }
  .idb-bars { column-gap: 4px; }
  .idb-bar .ib-label { hyphens: auto; overflow-wrap: anywhere; }
  .ct-cols { column-gap: 8px; }
  .ct-status { font-size: 10.5px; }
  .cost-bigfig { padding: 40px 24px; }
}

/* Technical reports and resources */
.ev-reports { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.ev-reports .report-card .tag { margin-bottom: 0; }
.ev-reports .rc-action { margin-top: auto; padding-top: 8px; }
#methodology .data-notice { flex-basis: 100%; }
#methodology .form-status { flex-basis: 100%; margin-top: 0; }
@media (max-width: 1024px) { .ev-reports { grid-template-columns: 1fr; } }


/* --- About additions --- */
/* "Coming soon" annual-report button on the navy featured card. */
.report-card.featured .btn.is-soon { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.45); opacity: 0.8; }
/* Governance card: the legal-documents disclosure, sized to sit inside a card. */
.report-card .rc-detail { margin-top: 4px; background: var(--cream); }
.report-card .rc-detail summary { padding: 14px 18px; font-size: 13.5px; color: var(--navy); }
.report-card .rc-detail .filings-body { padding: 0 18px 16px; }
.report-card .rc-detail .filings-body p { font-size: 14px; }
/* Legal documents: the Coming soon / Download link sits at the row's end. */
.doc-list li .ad-link { margin-top: 0; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) {
  .doc-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* --- Support additions --- */
/* Funding gap bar — restored from the pre-July static site (styles.css @ 0401c17^). */
.fund-row .fr-head {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 600;
}
.fund-row .fr-head b { color: var(--navy); }
.fund-row .fr-track {
  background: var(--peach-soft);
  border-radius: var(--r-pill);
  height: 28px;
  overflow: hidden;
  display: flex;
}
.fund-row .fr-fill { height: 100%; }
.fund-row .fr-fill.green { background: var(--green); }
.fund-row .fr-fill.orange { background: var(--orange); }
.fund-row .fr-fill.peach { background: var(--peach); }
/* Labels sit in a legend under the track: the $56K segment is ~10% wide, too
   narrow to hold its label at any viewport. */
.fund-row .fr-legend {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}
.fund-row .fr-legend li { display: flex; align-items: center; gap: 8px; }
.fund-row .fr-swatch { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.fund-row .fr-swatch.green { background: var(--green); }
.fund-row .fr-swatch.orange { background: var(--orange); }
.fund-row .fr-swatch.peach { background: var(--peach); }

/* Ways to contribute — one description per card (replaces the old bullet lists). */
.way-card .way-body { font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 18px; }

/* Donation call to action — intro + buttons beside the equivalencies table. */
.donate-cta {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.donate-cta .dc-intro p { max-width: 44ch; }
.donate-cta .dc-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.donate-cta .tier-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.donate-cta .tier-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  padding: 0 14px 10px;
}
.donate-cta .tier-table td {
  padding: 12px 14px;
  background: rgba(255,255,255,0.15);
  border-top: 6px solid var(--orange);
  color: #fff;
  font-weight: 500;
}
.donate-cta .tier-table td:first-child { border-radius: 10px 0 0 10px; }
.donate-cta .tier-table td:last-child { border-radius: 0 10px 10px 0; }
.donate-cta .tier-table .tier-amount {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  width: 1%;
}
.donate-cta .dc-note { margin: 12px 0 0; font-size: 12.5px; color: rgba(255,255,255,0.75); }

/* Contact + newsletter forms — notice and status spacing. */
.contact-form .data-notice { margin: 0 0 16px; }
.contact-card .contact-form .form-status { margin: 10px 0 0; max-width: none; }
body[data-page="support"] #newsletter-form .form-status { flex-basis: 100%; margin: 0; }

@media (max-width: 860px) {
  .donate-cta { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .fund-row .fr-track { height: 22px; }
  .fund-row .fr-legend { font-size: 13.5px; }
  .donate-cta { padding: 26px 22px; }
  .donate-cta .tier-table td { padding: 10px 12px; }
  .fund-row .fr-head { font-size: 12.5px; flex-wrap: wrap; gap: 8px; }
}
