/* Digital Skills Africa. Design system.
   Palette comes from the logo: lime green #8dc63f and black. Lime fails contrast as text on white,
   so text and buttons on light backgrounds use the deep green; lime is used on dark green and as a field colour with black text. */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #0e140c;
  --ink-soft: #384334;
  --paper: #f5f4ee;
  --white: #fff;
  --line: #d6d5ca;
  --line-strong: #0e140c;
  --green-950: #0f2007;
  --green-900: #17300a;
  --green-700: #2b5a0e;
  --green-600: #3d7a14;
  --lime: #8dc63f;
  --lime-soft: #e8f2d6;
  --error: #a4260c;

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.7rem + 4vw, 4.75rem);

  --gutter: clamp(1rem, 4vw, 2rem);
  --space-section: clamp(3.5rem, 8vw, 6.5rem);
  --measure: 66ch;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: var(--step-0)/1.65 var(--font-body); color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; }
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-700); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-900); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green-900); outline-offset: 3px; border-radius: 1px; }
main:focus { outline: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0 0 0.5em; letter-spacing: 0.002em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 700; line-height: 0.98; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.1; }
h4 { font-size: var(--step-1); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { top: 0.5rem; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.h3 { font-size: var(--step-2); line-height: 1.1; }
.mt { margin-top: 1.25rem; }
.eyebrow { font: 700 0.78rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700); margin: 0 0 1rem; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.fine { font-size: var(--step--1); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.8rem 1.5rem; font: 700 0.95rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn--primary { background: var(--green-700); color: var(--white); }
.btn--primary:hover { background: var(--green-900); color: var(--white); }
.btn--secondary { border-color: currentColor; color: var(--green-900); background: transparent; }
.btn--secondary:hover { background: var(--green-900); color: var(--white); border-color: var(--green-900); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--white); color: var(--ink); }
.btn--light { background: var(--white); color: var(--green-900); }
.btn--light:hover { background: var(--lime); color: var(--ink); }
.btn--outline-light { border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--green-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.arrow-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 1px; }
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { border-bottom-color: var(--green-900); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand__logo { height: 52px; width: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav a, .sub-toggle { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.5rem 0.8rem; font: 700 0.92rem/1 var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.primary-nav a:hover, .sub-toggle:hover { color: var(--green-700); }
.primary-nav a[aria-current="page"], .has-sub.is-current > .sub-toggle { box-shadow: inset 0 -3px 0 var(--lime); }
.nav-login a { border: 2px solid var(--ink); margin-left: 0.5rem; padding-inline: 1.1rem; border-radius: 2px; }
.nav-login a:hover { background: var(--ink); color: var(--white); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 14rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--lime); box-shadow: 0 12px 28px rgba(14, 20, 12, 0.12); display: none !important; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding: 0.4rem 0; }
.sub a { width: 100%; }
.has-sub.open .sub { display: flex !important; }
.menu-toggle { display: none; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.9rem; font: 700 0.9rem var(--font-body); background: var(--white); border: 2px solid var(--ink); border-radius: 2px; cursor: pointer; color: var(--ink); }
.menu-toggle__bars, .menu-toggle__bars::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-toggle__bars::before { content: ""; position: absolute; top: 6px; left: 0; box-shadow: 0 -12px 0 currentColor; }
@media (max-width: 1020px) {
  .js .menu-toggle { display: inline-flex; }
  .js .primary-nav { position: absolute; inset: 100% 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(14, 20, 12, 0.14); display: none; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .js .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .primary-nav a, .sub-toggle { width: 100%; justify-content: space-between; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .primary-nav a[aria-current="page"] { box-shadow: none; color: var(--green-700); }
  .sub { position: static; display: none !important; box-shadow: none; border: 0; border-left: 3px solid var(--lime); margin-left: 0.25rem; padding: 0; }
  .sub a { padding-left: 1rem; }
  .primary-nav .nav-login a { margin: 1rem 0 0; border: 2px solid var(--ink); justify-content: center; }
  .primary-nav .nav-donate a { margin: 0.75rem 0 0; justify-content: center; }
}
@media (max-width: 1020px) { .no-js-hint { display: none; } }

/* Sections */
.section { padding-block: var(--space-section); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--green-900); color: #eef4e4; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink a:not(.btn) { color: var(--lime); }
.section--ink .lead { color: #d5e3c3; }
.section--ink :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }
.section--lime { background: var(--lime); color: var(--ink); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section__head { margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 48rem; }
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(2.75rem, 6vw, 5rem); }
.page-head h1 { max-width: 18ch; margin-bottom: 0.4em; }
.page-head .lead { margin: 0; }

.media { position: relative; overflow: hidden; background: var(--lime-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.r-16x9 { aspect-ratio: 16/9; } .r-3x2 { aspect-ratio: 3/2; } .r-4x3 { aspect-ratio: 4/3; } .r-1x1 { aspect-ratio: 1; } .r-4x5 { aspect-ratio: 4/5; } .r-3x4 { aspect-ratio: 3/4; } .r-2x1 { aspect-ratio: 2/1; }
.caption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.5rem; }
.split { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--wide-text { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } .split--flip > :first-child { order: 2; } }

/* Home hero */
.hero { display: grid; background: var(--green-900); color: var(--white); }
.hero__text { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.hero__text-inner { max-width: 34rem; margin-left: auto; width: 100%; }
@media (min-width: 1200px) { .hero__text { padding-left: calc((100vw - 1200px) / 2 + var(--gutter)); } .hero__text-inner { margin-left: 0; } }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--lime); }
.hero p { color: #e1ebd3; font-size: var(--step-1); line-height: 1.55; }
.hero__media { min-height: 320px; position: relative; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(72vh, 640px); } }
.stats { background: var(--lime); color: var(--ink); }
.stats dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats .stat { padding: clamp(1.4rem, 3vw, 2.2rem) 1rem; border-top: 1px solid rgba(14, 20, 12, 0.35); }
.stats .stat:nth-child(odd) { border-right: 1px solid rgba(14, 20, 12, 0.35); }
.stats .stat:nth-child(-n+2) { border-top: 0; }
.stats dt { order: 2; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.02em; margin-top: 0.4rem; }
.stats dd { order: 1; margin: 0; font: 700 clamp(2.6rem, 6vw, 4.5rem)/0.95 var(--font-display); }
.stat { display: flex; flex-direction: column; }
@media (min-width: 800px) {
  .stats dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats .stat { border-top: 0 !important; border-right: 1px solid rgba(14, 20, 12, 0.35); padding-inline: 1.5rem; }
  .stats .stat:first-child { padding-left: 0; }
  .stats .stat:last-child { border-right: 0; }
}
.stats__note { margin: 0; padding: 0.9rem 0 1.1rem; font-size: var(--step--1); border-top: 1px solid rgba(14, 20, 12, 0.35); }
.stats__note a { color: var(--ink); font-weight: 700; }

/* Donate button: last item in the menu, with a soft, slow glow */
.nav-donate a { background: var(--lime); color: var(--ink); border: 2px solid var(--lime); border-radius: 2px; margin-left: 0.5rem; padding-inline: 1.2rem; gap: 0.5rem; animation: donate-glow 3.2s ease-in-out infinite; transition: background-color 0.15s, border-color 0.15s; }
.nav-donate a:hover, .nav-donate a:focus-visible { background: var(--green-900); border-color: var(--green-900); color: var(--white); animation-play-state: paused; }
.nav-donate a[aria-current="page"] { box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.45); }
.nav-donate .icon { color: var(--green-900); }
.nav-donate a:hover .icon, .nav-donate a:focus-visible .icon { color: var(--lime); }
@keyframes donate-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(141, 198, 63, 0), 0 0 6px 0 rgba(141, 198, 63, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(141, 198, 63, 0.22), 0 0 20px 4px rgba(141, 198, 63, 0.55); }
}

/* Ruled column lists (replaces repeated cards) */
.cols { display: grid; gap: 2.25rem clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 760px) { .cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.col { border-top: 3px solid var(--ink); padding-top: 1rem; }
.col h3 { margin-bottom: 0.4em; }
.col p { color: var(--ink-soft); }
.section--ink .col { border-top-color: var(--lime); }
.section--ink .col p { color: #d5e3c3; }

.numbered { counter-reset: n; display: grid; gap: 0; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--line); font-size: var(--step-1); line-height: 1.4; }
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered li::before { content: counter(n, decimal-leading-zero); font: 700 1.7rem/1 var(--font-display); color: var(--green-700); }
@media (min-width: 860px) { .numbered--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; } .numbered--2 li:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 1.7rem; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 0.85rem; height: 0.5rem; border-left: 3px solid var(--green-700); border-bottom: 3px solid var(--green-700); transform: rotate(-45deg) translateY(-30%); }

/* Why established */
.why { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 760px) { .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.why figure { margin: 0; }
.why h3 { margin-top: 1rem; }

/* Vision and purpose */
.statements { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 860px) { .statements { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.statement p:not(.eyebrow) { font: 600 clamp(1.6rem, 1.1rem + 2vw, 2.5rem)/1.12 var(--font-display); color: var(--white); margin: 0; max-width: 22ch; }
.statement .eyebrow { color: var(--lime); }

/* Logos */
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.logo-grid li { background: var(--white); display: flex; align-items: center; justify-content: center; padding: 1.25rem; aspect-ratio: 3/2; }
.logo-grid img { max-height: 90px; width: auto; max-width: 100%; object-fit: contain; }
.logo-grid--named li { flex-direction: column; gap: 0.6rem; aspect-ratio: auto; min-height: 11rem; }
.logo-grid--named span { font-size: var(--step--1); color: var(--ink-soft); font-weight: 700; }
.logo-grid--named li { position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.logo-grid--named li:hover, .logo-grid--named li:active { transform: scale(1.08); z-index: 2; box-shadow: 0 14px 32px rgba(14, 20, 12, 0.18); }
.logo-grid--named img { transition: transform 0.25s ease; }
.logo-grid--named li:hover img, .logo-grid--named li:active img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .logo-grid--named li, .logo-grid--named img { transition: none; } .logo-grid--named li:hover, .logo-grid--named li:active { transform: none; } .logo-grid--named li:hover img, .logo-grid--named li:active img { transform: none; } }

/* Quotes */
.quotes { display: grid; gap: 3rem; }
@media (min-width: 860px) { .quotes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
blockquote { margin: 0; }
.quote { border-left: 4px solid var(--lime); padding-left: clamp(1rem, 3vw, 1.75rem); }
.quote p { font-size: var(--step-1); line-height: 1.55; }
.mandela { background: var(--lime); color: var(--ink); text-align: left; }
.mandela blockquote p { font: 600 clamp(1.8rem, 1.2rem + 2.5vw, 3rem)/1.12 var(--font-display); max-width: 30ch; margin: 0 0 1rem; }
.mandela cite { font-style: normal; color: var(--ink); font-weight: 700; letter-spacing: 0.06em; }
.mandela cite::before { content: "\2014\00a0"; }
.photo-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 3rem; }
@media (min-width: 760px) { .photo-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Team */
.team-intro-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 760px) { .team-intro-row { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.team-intro-row figure { margin: 0; }
.team-intro-row figcaption { font-size: 0.8rem; line-height: 1.3; margin-top: 0.4rem; font-weight: 700; }
.team-list > li { display: grid; gap: 1.25rem 2.5rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.team-list > li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .team-list > li { grid-template-columns: 240px 1fr; } }
.team-list .media { max-width: 240px; }
.team-list h2 { font-size: var(--step-2); margin-bottom: 0.1em; }
.team-list .role { font: 700 0.78rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 1rem; }
.team-list p { max-width: 68ch; }

/* Academies */
.academy-grid { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 700px) { .academy-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.academy-grid figure { margin: 0; }
.academy-grid h2 { font-size: var(--step-2); margin: 1rem 0 0.15em; }
.place { font: 700 0.78rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-700); margin: 0; }

/* Resources and downloads */
.downloads li { display: grid; gap: 0.5rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); align-items: center; }
.downloads li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .downloads li { grid-template-columns: 1fr auto auto; } }
.downloads h3 { font-size: var(--step-1); margin: 0; font-family: var(--font-body); font-weight: 700; line-height: 1.3; }
.downloads .meta { color: var(--ink-soft); font-size: var(--step--1); }
.downloads .btn { gap: 0.5rem; }
.icon { flex: none; }
.videos { display: grid; gap: 2rem; }
@media (min-width: 760px) { .videos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.videos figure { margin: 0; }
.videos video { width: 100%; aspect-ratio: 16/9; background: #000; }
.videos figcaption { font-weight: 700; margin-top: 0.6rem; }
.lessons { display: grid; gap: 2.25rem 1.5rem; }
@media (min-width: 700px) { .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lessons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lessons figure { margin: 0; }
.lessons video { width: 100%; aspect-ratio: 16/9; background: #000; }
.lessons figcaption { margin-top: 0.6rem; font-weight: 700; display: flex; gap: 0.6rem; align-items: baseline; }
.lessons .no { font: 700 1.4rem/1 var(--font-display); color: var(--green-700); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font: 700 var(--step-1)/1.35 var(--font-body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font: 500 1.9rem/1 var(--font-display); color: var(--green-700); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.4rem; max-width: 64ch; color: var(--ink-soft); }

/* Donate */
.bank { display: grid; gap: 0; max-width: 34rem; margin: 0; }
.bank div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.bank div:last-child { border-bottom: 1px solid var(--line); }
.bank dt { font-weight: 700; }
.bank dd { margin: 0; font-variant-numeric: tabular-nums; }
.amounts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.notice { border-left: 4px solid var(--green-700); background: var(--lime-soft); padding: 1rem 1.25rem; max-width: 62ch; }
.legal { font-size: var(--step--1); color: var(--ink-soft); max-width: 72ch; }

/* Forms */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.form .row { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .form .row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.field .req { color: var(--ink-soft); font-weight: 400; font-size: var(--step--1); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; font: inherit; color: var(--ink); background: var(--white); border: 2px solid #6d7469; border-radius: 2px; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--lime); outline-offset: 0; border-color: var(--green-900); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .err { color: var(--error); font-size: var(--step--1); font-weight: 700; margin: 0.35rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.25rem; border-left: 4px solid var(--green-700); background: var(--lime-soft); }
.form-status[data-state="error"] { border-color: var(--error); background: #fbe9e4; }
.form-status[hidden] { display: none; }

/* Terms */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 0; }
.prose h2.h3 { margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--green-900); color: #dfe9d1; padding-top: clamp(2.5rem, 6vw, 4rem); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { width: 190px; height: auto; margin-bottom: 1rem; }
.footer-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.15rem 1.5rem; }
.footer-links a { display: inline-block; padding: 0.4rem 0; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--lime); text-decoration: underline; }
.footer-label { font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 0.8rem; }
.footer-label--gap { margin-top: 1.5rem; }
.social { display: flex; gap: 0.6rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #5b7a3a; border-radius: 2px; }
.social a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.footer-base { border-top: 1px solid #355224; margin: 2.5rem var(--gutter) 0; padding-block: 1.25rem; font-size: var(--step--1); max-width: calc(1200px - 2 * var(--gutter)); }
.footer-base p { margin: 0; }
@media (min-width: 1200px) { .footer-base { margin-inline: auto; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; animation: none !important; } }
@media print { .site-header, .site-footer, .btn { display: none; } }

/* Navigation without JavaScript and hover support on desktop */
html:not(.js) .sub-toggle svg { display: none; }
html:not(.js) .sub { display: flex !important; position: static; box-shadow: none; border: 0; padding: 0; }
@media (min-width: 1021px) and (hover: hover) { .has-sub:hover .sub { display: flex !important; } }

/* Page-specific helpers */
.media-natural img { width: 100%; height: auto; border: 1px solid var(--line); }
.gap { margin-top: 1.5rem; }
.gap-after { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.numbered--dark li { border-color: #355224; color: #eef4e4; }
.numbered--dark li::before { color: var(--lime); }
.numbered--dark li:last-child { border-bottom-color: #355224; }
@media (min-width: 860px) { .numbered--dark.numbered--2 li:nth-last-child(2) { border-bottom: 1px solid #355224; } }
.numbered--link li { display: block; padding: 0; }
.numbered--link li::before { display: none; }
.numbered--link a { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; font: 600 var(--step-2)/1.1 var(--font-display); color: var(--green-900); text-decoration: none; }
.numbered--link a::after { content: "\2192"; font-family: var(--font-body); color: var(--green-700); }
.numbered--link a:hover { color: var(--green-600); }
.logo-grid--one { grid-template-columns: 1fr; max-width: 14rem; margin-top: 1rem; }
.photo-strip--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }


/* ===================================================== Motion helpers */
.num { font-variant-numeric: tabular-nums; }
.js [data-reveal] .reveal-item { opacity: 0; transform: translateY(14px); }
[data-reveal].is-in .reveal-item { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0s); }

/* ===================================================== Page head with a side graphic (About Us) */
.page-head--aside .page-head__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .page-head--aside .page-head__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; } }
.page-head__aside { display: flex; justify-content: center; }
@media (min-width: 860px) { .page-head__aside { justify-content: flex-end; } }
.mark { width: clamp(180px, 34vw, 340px); height: auto; overflow: visible; animation: mark-float 9s ease-in-out 3s infinite; }
.mark__lines line { stroke: var(--lime); stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark-draw 1.1s cubic-bezier(.4, 0, .2, 1) forwards; }
.mark__nodes circle { fill: var(--lime); transform-box: fill-box; transform-origin: center; opacity: 0; animation: mark-pop 0.5s cubic-bezier(.3, 1.6, .5, 1) forwards, mark-pulse 5s ease-in-out infinite; }
.mark__lines line:nth-child(1) { animation-delay: 0.15s; }
.mark__lines line:nth-child(2) { animation-delay: 0.26s; }
.mark__lines line:nth-child(3) { animation-delay: 0.37s; }
.mark__lines line:nth-child(4) { animation-delay: 0.48s; }
.mark__lines line:nth-child(5) { animation-delay: 0.59s; }
.mark__lines line:nth-child(6) { animation-delay: 0.70s; }
.mark__lines line:nth-child(7) { animation-delay: 0.81s; }
.mark__lines line:nth-child(8) { animation-delay: 0.92s; }
.mark__lines line:nth-child(9) { animation-delay: 1.03s; }
.mark__lines line:nth-child(10) { animation-delay: 1.14s; }
.mark__lines line:nth-child(11) { animation-delay: 1.25s; }
.mark__lines line:nth-child(12) { animation-delay: 1.36s; }
.mark__lines line:nth-child(13) { animation-delay: 1.47s; }
.mark__lines line:nth-child(14) { animation-delay: 1.58s; }
.mark__lines line:nth-child(15) { animation-delay: 1.69s; }
.mark__nodes circle:nth-child(1) { animation-delay: 0.10s, 2.20s; }
.mark__nodes circle:nth-child(2) { animation-delay: 0.19s, 2.55s; }
.mark__nodes circle:nth-child(3) { animation-delay: 0.28s, 2.90s; }
.mark__nodes circle:nth-child(4) { animation-delay: 0.37s, 3.25s; }
.mark__nodes circle:nth-child(5) { animation-delay: 0.46s, 3.60s; }
.mark__nodes circle:nth-child(6) { animation-delay: 0.55s, 3.95s; }
.mark__nodes circle:nth-child(7) { animation-delay: 0.64s, 4.30s; }
.mark__nodes circle:nth-child(8) { animation-delay: 0.73s, 4.65s; }
.mark__nodes circle:nth-child(9) { animation-delay: 0.82s, 5.00s; }
.mark__nodes circle:nth-child(10) { animation-delay: 0.91s, 5.35s; }
.mark__nodes circle:nth-child(11) { animation-delay: 1.00s, 5.70s; }
.mark__nodes circle:nth-child(12) { animation-delay: 1.09s, 6.05s; }
.mark__nodes circle:nth-child(13) { animation-delay: 1.18s, 6.40s; }
.mark__nodes circle:nth-child(14) { animation-delay: 1.27s, 6.75s; }
.mark__nodes circle:nth-child(15) { animation-delay: 1.36s, 7.10s; }
.mark__nodes circle:nth-child(16) { animation-delay: 1.45s, 7.45s; }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes mark-pulse { 0%, 82%, 100% { transform: scale(1); } 91% { transform: scale(1.28); } }
@keyframes mark-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mark__lines line { stroke-dashoffset: 0; } .mark__nodes circle { opacity: 1; } }

/* ===================================================== Curriculum portfolio animation */
.curric { background: var(--green-900); color: #eef4e4; padding: clamp(1.25rem, 3vw, 2.5rem); display: grid; gap: clamp(2rem, 4vw, 3rem); }
.curric h3, .curric h4 { color: var(--white); }
.curric__title { text-align: center; font-size: var(--step-2); margin-bottom: 1.25rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #355224; border: 1px solid #355224; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { background: var(--green-900); padding: 1.5rem 1.1rem 1.6rem; text-align: center; position: relative; }
.tile h4 { color: var(--lime); font-size: var(--step-1); margin: 0.6rem 0 0.35rem; }
.tile p { margin: 0 auto; max-width: 28ch; font-size: var(--step--1); line-height: 1.5; color: #d5e3c3; }
.tile__icon { width: 52px; height: 52px; color: var(--lime); }
.tile__icon * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .curric:not(.is-in) .tile__icon * { stroke-dashoffset: 1; }
.curric.is-in .tile__icon * { transition: stroke-dashoffset 1.2s ease; transition-delay: var(--d, 0s); }
.js .curric:not(.is-in) .tile { opacity: 0; transform: translateY(16px); }
.curric.is-in .tile { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0s); }
.tile:nth-child(1) { --d: 0.10s; }
.tile:nth-child(2) { --d: 0.22s; }
.tile:nth-child(3) { --d: 0.34s; }
.tile:nth-child(4) { --d: 0.46s; }
.tile:nth-child(5) { --d: 0.58s; }
.tile:nth-child(6) { --d: 0.70s; }
.curric.is-in .tile::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--lime); opacity: 0; pointer-events: none; animation: tile-glow 18s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * 12 + 2s); }
@keyframes tile-glow { 0%, 12%, 100% { opacity: 0; } 4%, 8% { opacity: 0.9; } }

.curric__path { display: grid; gap: 1rem; }
@media (min-width: 960px) { .curric__path { grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); } .path__practice, .path__more { grid-column: 1 / -1; } }
.curric__path h3 { font-size: var(--step-2); margin-bottom: 0.2em; }
.curric__path p { color: #d5e3c3; font-size: var(--step--1); }
.curric__path ul { display: grid; gap: 0.3rem; }
.curric__path li { font-size: var(--step--1); line-height: 1.4; padding-left: 0.9rem; position: relative; }
.curric__path li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; background: var(--lime); }
.path__explore { background: #2b5a0e; padding: 1.25rem; }
.path__career { background: #0f2007; border: 1px solid #355224; padding: 1.25rem; }
.path__cols { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 700px) { .path__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .path__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.path__col h4 { color: var(--lime); font-size: var(--step-1); border-bottom: 1px solid #355224; padding-bottom: 0.4rem; margin-bottom: 0.7rem; }
.path__practice { background: var(--lime); color: var(--ink); padding: 1.25rem; display: grid; gap: 0.5rem 2rem; }
.path__practice h3, .path__practice p { color: var(--ink); }
.path__practice ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; }
.path__practice li::before { background: var(--green-900); }
.path__more { border: 1px dashed #5b7a3a; padding: 1.25rem; }
.path__more-cols { display: grid; gap: 1.25rem; margin-top: 0.75rem; }
@media (min-width: 700px) { .path__more-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.path__more h4 { color: var(--lime); font-size: var(--step-0); margin-bottom: 0.4rem; }
.curric__note { margin: 0; text-align: right; font-size: var(--step--1); font-style: italic; color: #d5e3c3; }
.js .curric:not(.is-in) .curric__path > * { opacity: 0; transform: translateY(22px); }
.curric.is-in .curric__path > * { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
.curric.is-in .path__explore { transition-delay: 0.1s; }
.curric.is-in .path__career { transition-delay: 0.35s; }
.curric.is-in .path__practice { transition-delay: 0.6s; }
.curric.is-in .path__more { transition-delay: 0.8s; }
.js .curric:not(.is-in) .path__col li { opacity: 0; }
.curric.is-in .path__col li { opacity: 1; transition: opacity 0.5s ease 1s; }

/* ===================================================== Academies carousel */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; padding-bottom: 0.75rem; overscroll-behavior-x: contain; }
.carousel__slide { flex: 0 0 82%; scroll-snap-align: start; }
@media (min-width: 700px) { .carousel__slide { flex-basis: 56%; } }
@media (min-width: 1000px) { .carousel__slide { flex-basis: calc((100% - 2.5rem) / 2.35); } }
.carousel__slide figure { margin: 0; }
.carousel__slide h2 { font-size: var(--step-2); margin: 1rem 0 0.15em; }
.carousel__bar { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 1rem; align-items: center; margin-top: 1rem; border-top: 3px solid var(--ink); padding-top: 0.9rem; }
.carousel__bar[hidden] { display: none; }
.js .carousel__bar { display: grid; }
.carousel__status { margin: 0; font: 700 var(--step-1)/1 var(--font-display); letter-spacing: 0.04em; }
.carousel__dots { display: none; }
@media (min-width: 500px) { .carousel__dots { display: flex; gap: 0; grid-column: 1; grid-row: 2; } .carousel__status { grid-column: 1; } }
.carousel__dot { width: 28px; height: 28px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.carousel__dot::before { content: ""; position: absolute; inset: 9px; background: #b9bdb1; border-radius: 50%; transition: background-color 0.2s, transform 0.2s; }
.carousel__dot[aria-current="true"]::before { background: var(--green-700); transform: scale(1.35); }
.carousel__buttons { display: flex; gap: 0.5rem; grid-column: 2; grid-row: 1 / span 2; }
.carousel__btn { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 2px; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.carousel__btn:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
html:not(.js) .carousel__bar { display: none; }

/* ===================================================== Donate button check done above; Our Impact dashboard */
.jump { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 20; }
.jump ul { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.jump a { display: block; padding: 0.85rem 0.75rem; font: 700 0.85rem/1 var(--font-body); color: var(--ink); text-decoration: none; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; }
.jump a:hover { color: var(--green-700); box-shadow: inset 0 -3px 0 var(--lime); }
.dash-block { padding-block: clamp(3rem, 7vw, 5.5rem); }
.dash h2 { margin-bottom: 0.3em; }
.dash .lead { margin-bottom: 2rem; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2rem 0 0; border-top: 3px solid var(--ink); }
@media (max-width: 859px) { .kpis--3 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 860px) { .kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; padding: 1.4rem 1.25rem 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .kpi { border-bottom: 0; border-right: 1px solid var(--line); padding-inline: 1.5rem; } .kpi:first-child { padding-left: 0; } .kpi:last-child { border-right: 0; } }
.kpi__num { order: 1; margin: 0; font: 700 clamp(2.8rem, 6vw, 5rem)/0.95 var(--font-display); color: var(--green-700); }
.kpi__label { order: 2; margin-top: 0.5rem; font-weight: 700; font-size: var(--step-0); line-height: 1.3; }
.kpi__note { order: 3; margin: 0.25rem 0 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.45; }
.kpis--dark { border-top-color: var(--lime); }
.kpis--dark .kpi { border-color: #355224; }
.kpis--dark .kpi__num { color: var(--lime); }
.kpis--dark .kpi__note { color: #cfe0b9; }
.kpis--light { border-top-color: var(--ink); }
.kpis--light .kpi { border-color: rgba(14, 20, 12, 0.35); }
.kpis--light .kpi__num { color: var(--ink); }
.kpis--light .kpi__note { color: #25301f; }

.grid { display: grid; gap: 1.5rem; }
.grid--gap { margin-top: 1.5rem; }
@media (min-width: 860px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stack-col { display: grid; gap: 1.5rem; align-content: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 1.25rem 1.25rem 1.4rem; min-width: 0; }
.section--paper .panel { border-color: var(--line); border-top-color: var(--ink); }
.panel h3 { font-size: var(--step-1); margin-bottom: 0.25em; }
.panel__sub { color: var(--ink-soft); font-size: var(--step--1); margin: 0 0 1rem; }
.panel__foot { margin: 1rem 0 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.5; }

.bars { display: grid; gap: 0.7rem; margin-top: 1rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.75rem; align-items: baseline; }
.bars__label { font-size: var(--step--1); font-weight: 700; line-height: 1.3; }
.bars__val { font: 700 1.05rem/1 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bars__val small { font: 400 0.75rem/1 var(--font-body); color: var(--ink-soft); margin-left: 0.25rem; }
.bars__track { grid-column: 1 / -1; grid-row: 2; display: block; height: 10px; background: #eceae0; }
.bars__track svg { display: block; width: 100%; height: 100%; }
.bars__fill { fill: var(--green-700); transform-box: fill-box; transform-origin: left center; }
.bars li:first-child .bars__fill { fill: var(--green-600); }
.js .dash-block:not(.is-in) .bars__fill { transform: scaleX(0); }
.dash-block.is-in .bars__fill { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }

.stack { height: 22px; margin-top: 1rem; background: #eceae0; }
.stack svg { display: block; width: 100%; height: 100%; }
.stack__seg { transform-box: fill-box; transform-origin: left center; }
.stack__seg--1 { fill: var(--green-700); } .stack__seg--2 { fill: var(--lime); } .stack__seg--3 { fill: var(--ink); }
.js .dash-block:not(.is-in) .stack__seg { transform: scaleX(0); }
.dash-block.is-in .stack__seg { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.legend { display: grid; gap: 0.4rem; margin-top: 1rem; }
.legend li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; font-size: var(--step--1); }
.legend strong { font: 700 1.05rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.swatch { width: 12px; height: 12px; display: inline-block; }
.swatch--1 { background: var(--green-700); } .swatch--2 { background: var(--lime); } .swatch--3 { background: var(--ink); }

.donuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.donut { margin: 0; text-align: center; }
.donut__ring { position: relative; width: 100%; max-width: 130px; margin: 0 auto; aspect-ratio: 1; }
.donut svg { width: 100%; height: 100%; display: block; }
.donut__bg { stroke: #eceae0; }
.donut__val { stroke: var(--green-700); }
.js .dash-block:not(.is-in) .donut__val { stroke-dasharray: 0 100; }
.dash-block.is-in .donut__val { transition: stroke-dasharray 1.4s cubic-bezier(.2, .7, .2, 1); }
.donut__num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 1.7rem/1 var(--font-display); }
.donut figcaption { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.35; }

.columns { display: flex; gap: clamp(0.4rem, 1.5vw, 1rem); align-items: flex-end; margin-top: 1.25rem; }
.columns li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.columns__val { font: 700 1.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; margin-bottom: 0.35rem; }
.columns__bar { display: block; height: 150px; background: #eceae0; }
.columns__bar svg { display: block; width: 100%; height: 100%; }
.columns__fill { fill: var(--green-700); transform-box: fill-box; transform-origin: center bottom; }
.is-peak .columns__fill { fill: var(--lime); }
.js .dash-block:not(.is-in) .columns__fill { transform: scaleY(0); }
.dash-block.is-in .columns__fill { transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.columns__label { margin-top: 0.5rem; font-size: 0.72rem; line-height: 1.25; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; margin-top: 2rem; }
.data { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.data caption { text-align: left; font: 700 var(--step-1)/1.2 var(--font-display); color: var(--white); padding-bottom: 0.6rem; }
.data th, .data td { text-align: left; padding: 0.75rem 0.9rem; border-top: 1px solid #355224; }
.data thead th { color: var(--lime); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; border-top: 0; border-bottom: 2px solid var(--lime); }
.data tbody th { color: var(--white); }
.sub-h { margin-top: 2.5rem; font-size: var(--step-2); }
.cards-3 { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards-3 li { border-top: 3px solid var(--lime); padding-top: 1rem; }
.cards-3 h4 { margin: 0 0 0.4em; color: var(--white); font-size: var(--step-1); }
.cards-3 p:not(.eyebrow) { margin: 0; color: #d5e3c3; font-size: var(--step--1); }
.cards-3 .eyebrow { margin-bottom: 0.5rem; }

.timeline { display: grid; gap: 0; margin: 2.5rem 0 1.5rem; border-left: 3px solid var(--lime); }
.timeline li { display: grid; gap: 0.15rem; padding: 0.4rem 0 1.2rem 1.25rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 0.6rem; width: 15px; height: 15px; background: var(--green-700); border: 3px solid var(--white); border-radius: 50%; }
.timeline strong { font: 700 var(--step-2)/1 var(--font-display); color: var(--green-700); }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 0; border-top: 3px solid var(--lime); } .timeline li { padding: 1.4rem 1rem 0 0; } .timeline li::before { left: 0; top: -10px; } }
.js .dash-block:not(.is-in) .timeline li { opacity: 0; }
.dash-block.is-in .timeline li { opacity: 1; transition: opacity 0.6s ease 0.4s; }
.legal { font-size: var(--step--1); color: var(--ink-soft); max-width: 78ch; }

/* ===================================================== Partner logo strip (home) */
.partners-strip { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 0.9rem 0.8rem; }
.partners-strip__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.25rem 1.5rem; margin-bottom: 0.4rem; }
.partners-strip h2 { font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.partners-strip__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 0; }
.marquee-toggle { min-height: 32px; padding: 0 0.7rem; font: 700 0.75rem var(--font-body); background: none; color: var(--ink); border: 2px solid var(--ink); border-radius: 2px; cursor: pointer; }
.marquee-toggle:hover { background: var(--ink); color: var(--white); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track li { flex: none; display: flex; align-items: center; justify-content: center; width: clamp(92px, 14vw, 120px); height: 40px; padding-inline: clamp(0.6rem, 1.4vw, 1rem); }
.marquee__track img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* The logo strip keeps moving for everyone, with a pause button, because the site owner asked for it. */
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: marquee 38s linear infinite !important; } .marquee.is-paused .marquee__track { animation-play-state: paused !important; } }

.section--ink .eyebrow { color: var(--lime); }
.section--lime .eyebrow { color: var(--ink); }

/* Home counters: compact, always four across from small tablets up */
.stats .stat { padding: 0.9rem 0.75rem 1rem; }
.stats dd { font: 700 clamp(1.9rem, 4.2vw, 3rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stats dt { font-size: 0.78rem; line-height: 1.3; margin-top: 0.3rem; }
.stats__note { padding: 0.55rem 0 0.7rem; font-size: 0.8rem; }
@media (min-width: 560px) {
  .stats dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats .stat { border-top: 0 !important; border-right: 1px solid rgba(14, 20, 12, 0.35); padding-inline: 1rem; }
  .stats .stat:first-child { padding-left: 0; }
  .stats .stat:last-child { border-right: 0; }
}
/* Smaller hero heading */
.hero h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem); }
.hero p { font-size: var(--step-0); }
@media (min-width: 900px) { .hero { min-height: min(56vh, 480px); } }

/* ===================================================== Our Footprint (home) */
.footprint__map { max-width: 940px; margin: 0 auto; }
.fp { width: 100%; height: auto; display: block; overflow: visible; }
.fp .mark__nodes circle { fill: var(--lime); }
.fp .mark__lines line { stroke: var(--lime); }
.fp__line { stroke: #fff; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; opacity: 0.9; animation: mark-draw 0.9s ease forwards; }
.fp__pin { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; animation: mark-pop 0.5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.fp__ring { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: fp-ring 2.6s ease-out infinite; }
.fp__label { opacity: 0; animation: fp-fade 0.7s ease forwards; fill: #fff; }
.fp__name { font: 600 30px/1 var(--font-display); letter-spacing: 0.02em; }
.fp__sub { font: 400 17px/1 var(--font-body); fill: #cfe0b9; }
.fp__place--1 > * { animation-delay: 2.9s; } .fp__place--2 > * { animation-delay: 3.2s; } .fp__place--3 > * { animation-delay: 3.5s; } .fp__place--4 > * { animation-delay: 3.8s; }
.fp__place > .fp__ring { animation-delay: 4s; }
.js .footprint:not(.is-in) .fp *, .js .footprint:not(.is-in) .mark__lines line, .js .footprint:not(.is-in) .mark__nodes circle { animation-play-state: paused; }
@keyframes fp-fade { to { opacity: 1; } }
@keyframes fp-ring { 0% { opacity: 0.8; transform: scale(0.4); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .fp__line { stroke-dashoffset: 0; } .fp__pin, .fp__label { opacity: 1; } }
.footprint__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 1.5rem 0; border-top: 1px solid #355224; padding-top: 1.25rem; }
@media (min-width: 760px) { .footprint__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footprint__list li { display: flex; flex-direction: column; gap: 0.15rem; }
.footprint__list strong { font: 600 var(--step-1)/1.1 var(--font-display); color: var(--white); }
.footprint__list span { font-size: var(--step--1); color: #cfe0b9; line-height: 1.4; }
@media (max-width: 560px) { .fp__name { font-size: 44px; } .fp__sub { display: none; } }

/* Our Impact section menu: arrows on small screens show that it scrolls sideways */
.jump__wrap { position: relative; }
.jump__arrow { display: none; }
@media (max-width: 859px) {
  .js .jump__arrow { display: flex; position: absolute; top: 0; bottom: 0; width: 40px; align-items: center; justify-content: center; border: 0; padding: 0; background: var(--white); color: var(--green-900); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 2; }
  .js .jump__arrow--prev { left: 0; box-shadow: 8px 0 8px -6px rgba(14, 20, 12, 0.18); }
  .js .jump__arrow--next { right: 0; box-shadow: -8px 0 8px -6px rgba(14, 20, 12, 0.18); }
  .js .jump.can-prev .jump__arrow--prev, .js .jump.can-next .jump__arrow--next { opacity: 1; pointer-events: auto; }
  .jump__arrow:hover { background: var(--lime); }
  .jump__wrap { padding-inline: 0; }
  .jump__list { padding-inline: 40px; scroll-behavior: smooth; }
}

/* ===================================================== Home page simplification: white, one green band, one lime band */
.stats--ink { background: var(--green-900); color: #eef4e4; }
.stats--ink .stat, .stats--ink .stats__note { border-color: rgba(238, 244, 228, 0.25); }
.stats--ink .stats__note a { color: var(--lime); }
.stats--ink dd { color: var(--white); }
.partners-strip { border-bottom: 0; }

/* About + footprint on white: map recoloured for a light background */
.about-fp .footprint__map { max-width: none; margin: 0; }
.about-fp .fp .mark__nodes circle { fill: var(--green-700); }
.about-fp .fp .mark__lines line { stroke: var(--green-700); }
.about-fp .fp__line { stroke: var(--ink); }
.about-fp .fp__pin { fill: var(--ink); }
.about-fp .fp__ring { stroke: var(--ink); }
.about-fp .fp__label { fill: var(--ink); }
.about-fp__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
@media (min-width: 860px) { .about-fp .split { grid-template-columns: 1fr 1fr; } }

.carousel__more { margin: 1.5rem 0 0; }

.why-lines { display: grid; gap: 1.5rem 2rem; margin: 0 0 clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .why-lines { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why-lines li { border-top: 3px solid var(--ink); padding-top: 0.9rem; }
.why-lines h3 { margin-bottom: 0.35em; }
.why-lines p { margin: 0; color: var(--ink-soft); }
.why-band .statement p:not(.eyebrow) { color: var(--ink); }
.why-band .statement .eyebrow { color: var(--green-700); }
.section--lime .lead { color: var(--ink); }

/* Why we exist: four numbered reasons, then vision and purpose as two quiet cards */
.why-lines { counter-reset: why; display: grid; grid-template-columns: 1fr; gap: 0 2rem; margin: 0 0 clamp(2rem, 5vw, 3rem); padding: 0; list-style: none; }
@media (min-width: 640px) { .why-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .why-lines { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why-lines li { counter-increment: why; border-top: 1px solid var(--line); padding: 1rem 0 1.25rem; }
.why-lines li::before { content: counter(why, decimal-leading-zero); display: block; margin-bottom: 0.5rem; font: 700 0.95rem/1 var(--font-display); color: var(--green-700); letter-spacing: 0.08em; }
.why-lines h3 { margin: 0 0 0.3em; }
.why-lines p { margin: 0; color: var(--ink-soft); }
.vp { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .vp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.vp__card { border: 1px solid var(--line); border-left: 4px solid var(--green-700); padding: 1.25rem 1.5rem 1.4rem; background: var(--white); }
.vp__card h3 { font: 700 0.78rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700); margin: 0 0 0.7rem; }
.vp__card p { margin: 0; font-size: var(--step-1); line-height: 1.4; font-weight: 500; color: var(--ink); max-width: 38ch; }

/* Hero: photo fills the whole hero, with a green wash so the text stays readable */
.hero { position: relative; isolation: isolate; display: block; min-height: clamp(420px, 62vh, 560px); }
.hero__media { position: absolute; inset: 0; min-height: 0; z-index: -2; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 38, 10, 0.92) 0%, rgba(14, 38, 10, 0.78) 45%, rgba(14, 38, 10, 0.35) 100%); }
.hero__text { position: relative; min-height: inherit; padding-inline: var(--gutter); }
.hero__text-inner { margin-inline: auto; max-width: 1200px; }
.hero__text-inner > * { max-width: 36rem; }
@media (min-width: 1200px) { .hero__text { padding-left: var(--gutter); } .hero__text-inner { margin-left: auto; } }
@media (max-width: 899px) { .hero__media::after { background: rgba(14, 38, 10, 0.82); } }
.hero__text { padding-inline: 0; }
.hero__text-inner { padding-inline: var(--gutter); }
@media (min-width: 1200px) { .hero__text { padding-left: 0; } }
/* Why we exist: number sits on the same line as the heading */
.why-lines li { display: grid; grid-template-columns: auto 1fr; column-gap: 0.6rem; align-items: baseline; }
.why-lines li::before { display: inline; margin: 0; grid-column: 1; grid-row: 1; }
.why-lines h3 { grid-column: 2; grid-row: 1; margin: 0; }
.why-lines p { grid-column: 1 / -1; grid-row: 2; margin-top: 0.4rem; }
@media (min-width: 1000px) { .why-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; } }

/* Home carousel: no counter, dots or arrows under the photos (it still autoplays and swipes) */
.carousel--bare .carousel__bar { display: none !important; }
/* Home offerings: buttons line up along the bottom of each column */
[aria-label="Ways to get involved"] .col { display: flex; flex-direction: column; align-items: flex-start; }
[aria-label="Ways to get involved"] .col p { flex: 1; }
/* Academies carousel: no visible scrollbar (swipe, arrows, keyboard and autoplay still work) */
.carousel__track { scrollbar-width: none; -ms-overflow-style: none; }
.carousel__track::-webkit-scrollbar { display: none; height: 0; }

/* Our Academies listing and academy dashboards */
.dkpis { background: var(--green-900); color: #eef4e4; }
.dkpis dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0 1.5rem; }
.dkpi { display: flex; flex-direction: column; padding: 1.3rem 0 1.5rem; }
.dkpi dd { order: 1; margin: 0; white-space: nowrap; font: 700 clamp(2.4rem, 5vw, 3.8rem)/0.95 var(--font-display); color: var(--white); }
.dkpi dt { order: 2; margin-top: 0.5rem; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.02em; color: #d5e3c3; max-width: 18ch; }
@media (min-width: 800px) { .dkpi { padding: 1.9rem 0 2rem; } }
.acad-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .acad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; } }
.acad-card { position: relative; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color 0.15s, box-shadow 0.15s; }
.acad-card:hover { border-color: var(--green-700); box-shadow: 0 6px 22px rgba(14, 20, 12, 0.1); }
.acad-card__body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.acad-card__tag { margin: 0 0 0.5rem; font: 700 0.75rem/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700); }
.acad-card h3 { font-size: var(--step-2); line-height: 1.08; margin: 0 0 0.25rem; }
.acad-card h3 a { color: inherit; text-decoration: none; }
.acad-card h3 a::after { content: ""; position: absolute; inset: 0; }
.acad-card h3 a:focus-visible { outline: none; }
.acad-card:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.acad-card .place { margin: 0 0 1rem; color: var(--ink-soft); }
.acad-card__blurb { margin: 0 0 1rem; max-width: 46ch; }
.acad-card__stats { margin: auto 0 1rem; padding: 0.9rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.acad-card__stats > div { display: flex; flex-direction: column; }
.acad-card__stats dd { order: 1; margin: 0; font: 700 1.7rem/1 var(--font-display); color: var(--ink); }
.acad-card__stats dt { order: 2; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 0.2rem; }
.acad-card__cta { font-weight: 700; color: var(--green-700); }
.acad-card:hover .acad-card__cta { text-decoration: underline; }
.acad-grid--wide { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .acad-card--wide { flex-direction: row; }
  .acad-card--wide .acad-card__media { flex: 0 0 42%; }
  .acad-card--wide .acad-card__body { justify-content: center; }
}
.acad-card__media img { transition: transform 0.4s; }
.acad-card:hover .acad-card__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .acad-card:hover .acad-card__media img { transform: none; } }
.dash-title { margin: 0 0 1.1rem; }
.dash-single { max-width: 1100px; }
.carousel--photos .carousel__slide { flex-basis: 82%; }
@media (min-width: 700px) { .carousel--photos .carousel__slide { flex-basis: 46%; } }
@media (min-width: 1000px) { .carousel--photos .carousel__slide { flex-basis: calc((100% - 2.5rem) / 3.2); } }
.acad-dash { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .acad-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .acad-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-card--wide { grid-column: span 2; } }
@media (min-width: 760px) and (max-width: 1039px) { .dash-card--wide { grid-column: 1 / -1; } }
.dash-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green-700); padding: 1.25rem 1.4rem 1.4rem; }
.dash-card__title { margin: 0 0 0.9rem; font: 700 0.78rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-700); }
.dash-card__big { margin: 0; font: 700 var(--step-2)/1.1 var(--font-display); }
.dash-card__sub { margin: 0.9rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.fields { margin: 0; }
.fields > div { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.fields > div:first-child { padding-top: 0; }
.fields > div:last-child { border-bottom: 0; padding-bottom: 0; }
.fields dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.fields dd { margin: 0.1rem 0 0; font-weight: 700; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0.5rem 0 0.5rem 1.6rem; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.95rem; width: 0.7rem; height: 0.7rem; background: var(--lime); border: 2px solid var(--green-700); }
.bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.bars li { display: grid; grid-template-columns: minmax(6rem, 11rem) 1fr 3rem; gap: 0.75rem; align-items: center; }
@media (max-width: 479px) { .bars li { grid-template-columns: 1fr 3rem; } .bars__label { grid-column: 1 / -1; } }
.bars__label { font-size: var(--step--1); }
.bars__bar { display: block; width: 100%; height: 14px; }
.bars__bg { fill: var(--lime-soft); }
.bars__fill { fill: #9aa890; }
.bars__value { font: 700 1.1rem/1 var(--font-display); text-align: right; }
.bars .is-current .bars__label { font-weight: 700; }
.bars .is-current .bars__fill { fill: var(--green-700); }
.acad-videos { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .acad-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acad-videos video { width: 100%; max-height: 70vh; background: #000; display: block; }
.acad-videos p { margin: 0.5rem 0 0; font-weight: 700; }
.acad-links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }

/* Our Team: photo cards with an expandable bio (no script needed) */
.team-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; } }
.team-card { background: var(--white); border: 1px solid var(--line); border-bottom: 4px solid var(--green-700); }
.team-card__photo { background: var(--lime-soft); }
.team-card__photo img { object-position: 50% 20%; }
.team-card__body { padding: 1.25rem 1.4rem 1.4rem; }
.team-card__role { margin: 0 0 0.45rem; font: 700 0.75rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700); }
.team-card h2 { font-size: var(--step-2); line-height: 1.05; margin: 0 0 0.9rem; }
.team-card__bio summary { list-style: none; cursor: pointer; display: inline-block; font-weight: 700; color: var(--green-700); border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.team-card__bio summary::-webkit-details-marker { display: none; }
.team-card__bio summary:hover { color: var(--ink); }
.team-card__bio summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.team-card__less { display: none; }
.team-card__bio[open] .team-card__less { display: inline; }
.team-card__bio[open] .team-card__more { display: none; }
.team-card__bio p, .team-card__bio blockquote { margin: 1rem 0 0; font-size: var(--step--1); line-height: 1.6; }
.team-card__bio .quote { padding: 0; border: 0; }
