/* ==========================================================================
   Loita Elephants — site stylesheet
   Palette: forest green, warm ivory, muted gold, charcoal green
   Type: Newsreader (display + reading), Instrument Sans (interface)
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-var-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #173C2C;
  --forest-deep: #0F2A1E;
  --charcoal: #29352E;
  --moss: #4A6650;
  --ivory: #F5F0E5;
  --paper: #FBF8F1;
  --gold: #B89552;
  --gold-ink: #7A5E28;      /* gold dark enough for text on ivory */
  --gold-light: #D7BC85;    /* gold light enough for text on forest */
  --ink: #1E2822;
  --ink-soft: #4B564F;
  --line: rgba(23, 60, 44, 0.16);
  --line-light: rgba(245, 240, 229, 0.22);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Modular scale, ratio ~1.25 from 18px reading size */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);
  --step-5: clamp(2.6rem, 1.6rem + 4.6vw, 5.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: clamp(3.5rem, 7vw, 6.5rem);
  --wrap: 78rem;
  --measure: 38rem;
  --radius: 3px;
  --header-h: 5.25rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold-ink); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--forest);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-light); color: var(--forest-deep); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--gold); color: var(--forest-deep); padding: 0.75rem 1rem;
  font-weight: 600; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.section { padding-block: var(--space-l); }
.section--tight { padding-block: calc(var(--space-l) * 0.6); }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: var(--ivory); }
.section--charcoal { background: var(--charcoal); color: var(--ivory); }
.section--forest h2, .section--forest h3, .section--forest h4,
.section--charcoal h2, .section--charcoal h3, .section--charcoal h4 { color: var(--ivory); }
.section--forest a:not(.button), .section--charcoal a:not(.button) { color: var(--gold-light); }
.section--forest a:not(.button):hover, .section--charcoal a:not(.button):hover { color: var(--ivory); }
.section--forest .lede, .section--charcoal .lede { color: rgba(245, 240, 229, 0.86); }
.section-head { max-width: 44rem; margin-bottom: var(--space-m); }
.section-head p { color: var(--ink-soft); }
.section--forest .section-head p, .section--charcoal .section-head p { color: rgba(245, 240, 229, 0.8); }

.lede {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--charcoal);
  font-weight: 400;
}
.kicker {
  display: block;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
  margin-bottom: 0.75rem;
}
.section--forest .kicker, .section--charcoal .kicker, .hero .kicker { color: var(--gold-light); }

.grid-2 { display: grid; gap: var(--space-m) clamp(2rem, 5vw, 5rem); }
.grid-3 { display: grid; gap: var(--space-m); }
@media (min-width: 52rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-2--top { align-items: start; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Image + text split, image bleeds to the viewport edge on wide screens */
.split { display: grid; gap: var(--space-m); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); }
  .split--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--reverse .split__media { order: 2; }
  .split__media img { aspect-ratio: 5 / 4; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  font: 600 var(--step--1)/1.2 var(--sans); letter-spacing: 0.01em;
  border: 1.5px solid var(--forest); border-radius: var(--radius);
  background: var(--forest); color: var(--ivory); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--ivory); }
.button--gold { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.button--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--forest-deep); }
.button--ghost { background: transparent; color: var(--forest); }
.button--ghost:hover { background: var(--forest); color: var(--ivory); }
.button--light { background: transparent; border-color: rgba(245,240,229,.7); color: var(--ivory); }
.button--light:hover { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-m); }

.text-link {
  font-weight: 600; font-size: var(--step--1);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px;
}

/* ---------- Header & navigation ----------
   A solid ivory bar: wordmark left, navigation centred, and a full-height
   donation block flush to the right edge. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(23, 60, 44, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(184, 149, 82, 0.05) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 4px;
  border-bottom: 3px solid var(--forest);
  box-shadow: 0 6px 18px -12px rgba(15, 42, 30, 0.35);
}
.site-header__inner { display: flex; align-items: stretch; height: 100%; padding-left: var(--gutter); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--forest); text-decoration: none; flex: none; }
.brand:hover { color: var(--forest); }
.brand__mark { width: 3rem; height: 3rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 0.9; }
.brand__name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.01em; color: var(--forest); }
.brand__name--2 { font-weight: 400; font-style: italic; color: var(--gold-ink); }
.site-footer .brand { color: var(--ivory); }
.site-footer .brand__name { color: var(--ivory); font-size: 1.35rem; }

.nav { display: flex; align-items: stretch; margin-left: auto; margin-right: clamp(0.5rem, 1.5vw, 1.5rem); }
.nav__list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; display: flex; }
.nav__link {
  position: relative; display: flex; align-items: center;
  padding: 0 clamp(0.4rem, 0.75vw, 0.85rem);
  color: var(--charcoal); text-decoration: none;
  font-size: 0.92rem; font-weight: 500; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -3px; height: 3px;
  background: var(--gold); transition: left .2s ease, right .2s ease;
}
.nav__link:hover { color: var(--forest); }
.nav__link:hover::after { left: 0.6rem; right: 0.6rem; }
.nav__link[aria-current="page"] { color: var(--forest); font-weight: 600; }
.nav__link[aria-current="page"]::after { left: 0.6rem; right: 0.6rem; background: var(--gold); }

.header-donate {
  display: flex; align-items: center; justify-content: center; flex: none;
  padding: 0 clamp(1.25rem, 2.2vw, 2.25rem);
  background: var(--forest); color: var(--ivory); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border-left: 3px solid var(--gold);
  transition: background-color .2s ease, color .2s ease;
}
.header-donate:hover, .header-donate[aria-current="page"] { background: var(--gold); color: var(--forest-deep); }
.header-donate__short { display: none; }

.menu-toggle {
  display: none; align-self: center; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.9rem;
  margin: 0 0.75rem 0 auto;
  background: transparent; color: var(--forest); border: 1.5px solid var(--forest);
  border-radius: var(--radius); font: 600 0.9rem var(--sans); cursor: pointer;
}
.menu-toggle__bars { width: 18px; height: 12px; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after, .menu-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle__bars::before { top: 0; } .menu-toggle__bars span { top: 5px; } .menu-toggle__bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 77.99rem) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 3px 0 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--paper); border-bottom: 3px solid var(--forest);
    padding: 0.5rem var(--gutter) 1.5rem; box-shadow: 0 18px 30px -18px rgba(15,42,30,.5);
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav__list { flex-direction: column; }
  .nav__list li { display: block; }
  .nav__link { padding: 0.95rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { bottom: -1px; left: 0; right: auto; width: 0; }
  .nav__link[aria-current="page"]::after, .nav__link:hover::after { left: 0; right: auto; width: 2.5rem; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 34rem) {
  .brand__mark { width: 2.4rem; height: 2.4rem; }
  .brand__name { font-size: 1.25rem; }
  .menu-toggle__label { display: none; }
  .menu-toggle { padding: 0.5rem 0.7rem; margin-right: 0.5rem; }
  .header-donate { padding: 0 1rem; }
  .header-donate__long { display: none; }
  .header-donate__short { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh - var(--header-h)), 58rem); display: flex; align-items: flex-end;
  color: var(--ivory); background: var(--forest-deep);
}
.hero--page { min-height: clamp(26rem, 70svh, 40rem); }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 32, 22, 0.92) 0%, rgba(12, 32, 22, 0.55) 38%, rgba(12, 32, 22, 0.08) 70%),
    linear-gradient(to right, rgba(12, 32, 22, 0.45), rgba(12, 32, 22, 0) 60%);
}
.hero__content { padding-block: 4rem clamp(2.5rem, 7vh, 5rem); }
.hero h1, .hero h2 { color: var(--ivory); max-width: 18ch; }
.hero__lede { font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; max-width: 36rem; color: rgba(245,240,229,.9); margin-top: 1.25rem; }
.hero__credit {
  position: absolute; right: var(--gutter); bottom: 0.75rem; font-size: 0.72rem; color: rgba(245,240,229,.7); max-width: 22rem; text-align: right;
}

/* Signature: the home hero headline set as three stacked commitments */
.hero--home h1 { max-width: none; font-size: clamp(2.5rem, 1.2rem + 5.4vw, 6.25rem); line-height: 0.98; }
.hero--home h1 span { display: block; }
.hero--home h1 span:nth-child(2) { padding-left: clamp(0rem, 6vw, 6rem); }
.hero--home h1 span:nth-child(3) { padding-left: clamp(0rem, 12vw, 12rem); font-style: italic; color: var(--gold-light); }
.hero__maa {
  display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem;
  font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--gold-light);
}
.hero__maa::before { content: ""; width: 2.5rem; height: 1.5px; background: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .hero--home .hero__media img { animation: settle 9s cubic-bezier(.2,.6,.2,1) both; }
  .hero--home h1 span { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .hero--home h1 span:nth-child(2) { animation-delay: .15s; }
  .hero--home h1 span:nth-child(3) { animation-delay: .3s; }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: var(--step--1); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb [aria-current] { color: rgba(245,240,229,.85); }

/* ---------- Prose ---------- */
.prose { font-family: var(--serif); font-size: 1.2rem; line-height: 1.7; max-width: var(--measure); }
.prose h2 { font-size: var(--step-3); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.5em; }
.prose p, .prose li { color: var(--ink); }
.prose blockquote {
  margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--gold);
  font-size: var(--step-1); font-style: italic; color: var(--charcoal);
}
.prose figure { margin: 2.5rem 0; }
.prose--wide-figures figure { margin-inline: calc(-1 * clamp(0rem, 8vw, 8rem)); }
@media (max-width: 60rem) { .prose--wide-figures figure { margin-inline: 0; } }

/* ---------- Figures ---------- */
.figure { margin: 0; }
.figure img { width: 100%; object-fit: cover; }
.figure figcaption, .caption {
  font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.7rem; line-height: 1.5;
  padding-left: 0.9rem; border-left: 2px solid var(--gold);
}
.section--forest .figure figcaption, .section--charcoal .figure figcaption { color: rgba(245,240,229,.75); }
.ratio-wide img { aspect-ratio: 16 / 9; }
.ratio-classic img { aspect-ratio: 3 / 2; }
.ratio-tall img { aspect-ratio: 4 / 5; }

/* Full-bleed photographic band */
.bleed { position: relative; margin: 0; }
.bleed img { width: 100%; height: clamp(18rem, 55vw, 42rem); object-fit: cover; }
.bleed figcaption { position: absolute; left: var(--gutter); bottom: 1rem; max-width: 34rem; color: var(--ivory); font-size: var(--step--1); background: rgba(12,32,22,.72); padding: 0.6rem 0.9rem; border-left: 2px solid var(--gold); }

/* ---------- What's at stake: standing forest vs felled forest ---------- */
.stake { display: grid; gap: 2px; background: var(--forest-deep); }
@media (min-width: 48rem) { .stake { grid-template-columns: 1fr 1fr; } }
.stake__panel { position: relative; margin: 0; color: var(--ivory); }
.stake__panel img { width: 100%; height: clamp(20rem, 42vw, 34rem); object-fit: cover; }
.stake__panel figcaption {
  position: absolute; inset: auto 0 0 0; padding: 4rem clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(12,32,22,.92), rgba(12,32,22,0));
}
.stake__panel h3 { color: var(--ivory); font-size: var(--step-3); margin-bottom: 0.4rem; }
.stake__panel p { margin: 0; max-width: 30rem; color: rgba(245,240,229,.88); }
.stake__panel--loss h3 { color: var(--gold-light); }
.stake__welcome {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 0.6rem !important;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-light) !important;
}
.stake__welcome::before { content: ""; width: 2rem; height: 1.5px; background: var(--gold); }
/* The trees photo is bright: give its caption a taller, deeper shade */
.stake__panel:not(.stake__panel--loss) figcaption {
  padding-top: 8rem;
  background: linear-gradient(to top, rgba(12,32,22,.95) 0%, rgba(12,32,22,.85) 45%, rgba(12,32,22,.45) 75%, rgba(12,32,22,0) 100%);
}
.stake__panel figcaption > * { text-shadow: 0 1px 12px rgba(12,32,22,.6); }

/* ---------- Theme list (three pillars, rule-separated rather than carded) ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { margin: 0; color: var(--ink-soft); }
@media (min-width: 52rem) {
  .pillars { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .pillar { border-bottom: 0; border-top: 2px solid var(--forest); padding: 1.5rem 2rem 0 0; }
}
.section--forest .pillars, .section--forest .pillar { border-color: var(--line-light); }
.section--forest .pillar p { color: rgba(245,240,229,.8); }
@media (min-width: 52rem) { .section--forest .pillar { border-top-color: var(--gold); } }

/* ---------- Data point with provenance ---------- */
.datapoint { border-left: 3px solid var(--gold); padding: 0.25rem 0 0.25rem 1.5rem; }
.datapoint__value { font-family: var(--serif); font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); line-height: 1; color: var(--forest); font-weight: 400; }
.section--forest .datapoint__value { color: var(--ivory); }
.datapoint__label { font-family: var(--serif); font-size: var(--step-1); margin: 0.5rem 0 0.75rem; }
.datapoint__source { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.section--forest .datapoint__source { color: rgba(245,240,229,.75); }

/* ---------- Story cards ---------- */
.stories { display: grid; gap: var(--space-m) clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 40rem) { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .stories--3 { grid-template-columns: repeat(3, 1fr); } }
.story { position: relative; display: flex; flex-direction: column; }
.story__img { overflow: hidden; margin-bottom: 1rem; background: var(--forest); }
.story__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.story:hover .story__img img { transform: scale(1.03); }
.story__meta { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0.4rem; }
.story__meta .tag { color: var(--gold-ink); font-weight: 600; margin-right: 0.6rem; }
.story h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.story h3 a { color: var(--forest); text-decoration: none; }
.story h3 a::after { content: ""; position: absolute; inset: 0; }
.story h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.story p { color: var(--ink-soft); margin: 0; }
.story--feature { grid-column: 1 / -1; }
@media (min-width: 56rem) {
  .story--feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  .story--feature .story__img { margin: 0; }
  .story--feature h3 { font-size: var(--step-4); }
}

/* Story filter */
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-m); }
.filter button {
  min-height: 2.5rem; padding: 0.4rem 1rem; border-radius: 999px; cursor: pointer;
  font: 500 var(--step--1) var(--sans); background: transparent; color: var(--forest); border: 1.5px solid var(--line);
}
.filter button[aria-pressed="true"] { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.filter button:hover { border-color: var(--forest); }
.search-field { margin-bottom: 1rem; max-width: 24rem; }
.empty-state { padding: 2rem 0; color: var(--ink-soft); }

/* ---------- Programme framework (a genuine sequence) ---------- */
.programme { padding-block: var(--space-l); border-top: 1px solid var(--line); }
.programme:first-of-type { border-top: 0; }
.programme__head { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 56rem) { .programme__head { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: end; } }
.programme__head img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
@media (min-width: 70rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding: 1.1rem 0 1.1rem 3rem; border-top: 1px solid var(--line); position: relative; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1.05rem;
  width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--gold);
  display: grid; place-items: center; font: 600 0.85rem var(--sans); color: var(--gold-ink);
}
.steps strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--forest); margin-bottom: 0.2rem; }
.steps span { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Notices ---------- */
.note {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem; font-size: 0.98rem; color: var(--charcoal); border-radius: 0 var(--radius) var(--radius) 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--forest); }
.section--forest .note { background: rgba(255,255,255,.05); border-color: var(--line-light); border-left-color: var(--gold); color: var(--ivory); }
.section--forest .note strong { color: var(--gold-light); }

/* ---------- Publications ---------- */
.pubs { list-style: none; padding: 0; margin: 0; }
.pub { padding: 1.75rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.5rem; margin: 0; }
@media (min-width: 56rem) { .pub { grid-template-columns: 11rem 1fr; gap: 2.5rem; } }
.pub__type { font-size: var(--step--1); font-weight: 600; color: var(--gold-ink); }
.pub__type span { display: block; font-weight: 400; color: var(--ink-soft); }
.pub h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.pub__cite { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0.6rem; }
.pub p { margin-bottom: 0.6rem; max-width: 46rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--serif); font-size: var(--step-1); color: var(--forest); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.7rem; height: 0.7rem;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.5rem; max-width: var(--measure); color: var(--charcoal); }

/* ---------- Definition list / glossary ---------- */
.glossary { display: grid; gap: 0; margin: 0; }
.glossary div { padding: 1rem 0; border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .glossary div { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; } }
.glossary dt { font-family: var(--serif); font-weight: 600; color: var(--forest); font-size: 1.1rem; }
.glossary dd { margin: 0; color: var(--charcoal); }

/* ---------- Ways list (get involved / donate) ---------- */
.ways { display: grid; gap: 0; border-top: 1px solid var(--line); }
.way { display: grid; gap: 0.75rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) { .way { grid-template-columns: 18rem 1fr auto; gap: 3rem; align-items: start; } }
.way h3 { margin: 0; }
.way p { margin: 0; color: var(--charcoal); max-width: 38rem; }
.status {
  display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; margin-top: 0.6rem;
  background: rgba(23,60,44,.08); color: var(--forest);
}
.status--open { background: var(--forest); color: var(--ivory); }
.status--soon { background: rgba(184,149,82,.18); color: var(--gold-ink); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; color: var(--ivory); overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,32,22,.92) 0%, rgba(12,32,22,.7) 50%, rgba(12,32,22,.25) 100%); }
.cta-band .wrap { padding-block: clamp(5rem, 12vw, 9rem); }
.cta-band h2 { color: var(--ivory); max-width: 16ch; }
.cta-band p { max-width: 34rem; font-family: var(--serif); font-size: var(--step-1); color: rgba(245,240,229,.9); }

/* ---------- Quote ---------- */
.pullquote { margin: 0; max-width: 50rem; }
.pullquote p { font-family: var(--serif); font-size: var(--step-3); line-height: 1.3; font-weight: 400; color: inherit; }
.pullquote footer { font-size: var(--step--1); opacity: .8; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--forest); }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid rgba(23,60,44,.3); border-radius: var(--radius);
  padding: 0.75rem 0.9rem; min-height: 3rem;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--forest); }
.field [aria-invalid="true"] { border-color: #A23B2A; }
.field__error { color: #A23B2A; font-size: var(--step--1); font-weight: 600; margin: 0; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--forest); flex: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; }
.form-status:empty { display: none; }
.form-status--ok { background: rgba(23,60,44,.08); border-left: 3px solid var(--forest); color: var(--forest); }
.form-status--error { background: rgba(162,59,42,.08); border-left: 3px solid #A23B2A; color: #7B2B1E; }

/* Contact details */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1.1rem 0; border-top: 1px solid var(--line); margin: 0; }
.contact-list strong { display: block; font-size: var(--step--1); color: var(--gold-ink); margin-bottom: 0.2rem; }
.map { margin: 0; }
.map iframe { width: 100%; height: 22rem; border: 0; display: block; background: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(245,240,229,.82); padding-top: var(--space-l); font-size: 0.95rem; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-top { display: grid; gap: var(--space-m); padding-bottom: var(--space-m); border-bottom: 1px solid var(--line-light); }
@media (min-width: 60rem) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-statement { font-family: var(--serif); font-size: var(--step-1); line-height: 1.45; color: var(--ivory); max-width: 26rem; }
.footer-col h2 { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--gold-light); margin-bottom: 1rem; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; font-size: var(--step--1); color: rgba(245,240,229,.6); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.footer-bottom li { margin: 0; }

/* ---------- Article (story) ---------- */
.article-head { padding-top: var(--space-l); padding-bottom: var(--space-m); }
.article-head h1 { font-size: var(--step-4); max-width: 22ch; }
.article-meta { font-size: var(--step--1); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 1.5rem; }
.article-meta strong { color: var(--forest); font-weight: 600; }
.article-hero { margin: 0 0 var(--space-l); }
.article-hero img { width: 100%; max-height: 42rem; object-fit: cover; }
.article-hero figcaption { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0.75rem auto 0; }
.article-body { padding-bottom: var(--space-l); }
.article-sources { font-family: var(--sans); font-size: var(--step--1); border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.article-sources h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 0.75rem; color: var(--forest); }
.article-sources li { color: var(--ink-soft); }

/* ---------- 404 ---------- */
.notfound { min-height: 70svh; display: flex; align-items: center; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-m { margin-top: var(--space-m); } .mb-m { margin-bottom: var(--space-m); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .menu-toggle, .actions { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; color: #000; background: none; }
  .hero::after, .hero__media { display: none; }
  .hero h1, .hero h2, .hero__lede { color: #000; }
}

/* ---------- Additions ---------- */
.h3 { font-size: var(--step-2); }
.map__placeholder {
  display: grid; place-content: center; justify-items: start; gap: 1rem; min-height: 22rem; padding: 2rem;
  background:
    repeating-radial-gradient(circle at 40% 55%, transparent 0 22px, rgba(23,60,44,.10) 22px 23px),
    var(--paper);
  border: 1px solid var(--line);
}
.map__placeholder p { margin: 0; max-width: 22rem; color: var(--charcoal); }
@media (min-width: 56rem) {
  .programme:nth-of-type(even) .programme__head { grid-template-columns: 7fr 5fr; }
  .programme:nth-of-type(even) .programme__head > img { order: -1; }
}
.cta-band--right .wrap { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.cta-band--right .wrap .actions { justify-content: flex-end; }
.cta-band--right::after { background: linear-gradient(270deg, rgba(12,32,22,.92) 0%, rgba(12,32,22,.7) 50%, rgba(12,32,22,.2) 100%); }
@media (max-width: 47.99rem) {
  .cta-band--right .wrap { align-items: flex-start; text-align: left; }
  .cta-band--right .wrap .actions { justify-content: flex-start; }
  .cta-band::after, .cta-band--right::after { background: rgba(12,32,22,.72); }
}
@media (max-width: 39.99rem) {
  .hero--home h1 span:nth-child(2), .hero--home h1 span:nth-child(3) { padding-left: 0; }
}
.article-head .breadcrumb a, .notfound .breadcrumb a { color: var(--forest); }
.article-head .breadcrumb [aria-current] { color: var(--ink-soft); }
.article-head + .section { padding-top: calc(var(--space-l) * 0.4); }

[hidden] { display: none !important; }
.section--forest .ways, .section--forest .way { border-color: var(--line-light); }
.section--forest .way p { color: rgba(245, 240, 229, 0.85); }
.section--forest .status { background: rgba(245, 240, 229, 0.12); color: var(--ivory); }
.section--forest .status--open { background: var(--gold); color: var(--forest-deep); }
.section--forest .status--soon { background: transparent; border: 1px solid var(--gold-light); color: var(--gold-light); }
@media (min-width: 52rem) { .section--forest .way { grid-template-columns: 14rem 1fr; gap: 1.5rem; } }

/* ---------- Home slideshow ---------- */
.hero--slider { background: var(--forest-deep); }
.slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active img { animation: drift 9s ease-out both; }
}
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero--slider .hero__media { display: none; }
.slide__caption { margin: 0;
  position: absolute; right: calc(var(--gutter) + 3.5rem); bottom: 5.5rem; z-index: 2; max-width: 20rem;
  font-size: 0.8rem; line-height: 1.45; color: rgba(245,240,229,.88); text-align: right;
  padding-right: 0.75rem; border-right: 2px solid var(--gold);
}
.hero--slider .hero__content { padding-bottom: clamp(7rem, 12vh, 9rem); }

.slider-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 3rem; height: 3.5rem; border: 0; cursor: pointer;
  background: rgba(245, 240, 229, 0.92); color: var(--forest);
  display: grid; place-items: center; transition: background-color .2s ease, color .2s ease;
}
.slider-arrow:hover { background: var(--gold); color: var(--forest-deep); }
.slider-arrow--prev { left: 0; }
.slider-arrow--next { right: 0; }
.slider-arrow span { width: 0.7rem; height: 0.7rem; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; }
.slider-arrow--prev span { transform: translateX(2px) rotate(45deg); }
.slider-arrow--next span { transform: translateX(-2px) rotate(-135deg); }

.slider-bar { position: absolute; left: 50%; bottom: 5.5rem; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; }
.slider-dots { display: flex; gap: 0.25rem; }
.slider-dot { width: 2.25rem; height: 1.75rem; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.slider-dot::before { content: ""; position: absolute; left: 0.25rem; right: 0.25rem; top: 50%; height: 3px; background: rgba(245,240,229,.5); transition: background-color .2s ease; }
.slider-dot[aria-current="true"]::before { background: var(--gold); }
.slider-dot:hover::before { background: var(--ivory); }
.slider-pause { width: 1.75rem; height: 1.75rem; border: 1.5px solid rgba(245,240,229,.7); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.slider-pause::before, .slider-pause::after { content: ""; position: absolute; top: 50%; width: 2px; height: 0.6rem; background: var(--ivory); transform: translateY(-50%); }
.slider-pause::before { left: calc(50% - 3px); } .slider-pause::after { left: calc(50% + 1px); }
.slider-pause[aria-pressed="true"]::before { left: calc(50% - 2px); width: 0; height: 0; background: none; border-left: 7px solid var(--ivory); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.slider-pause[aria-pressed="true"]::after { display: none; }

@media (max-width: 47.99rem) {
  .slide__caption { display: none; }
  .slider-arrow { top: auto; bottom: 0; transform: none; width: 2.75rem; height: 2.75rem; }
  .slider-bar { bottom: 0.5rem; }
  .hero--slider .hero__content { padding-bottom: 4.5rem; }
}

/* ---------- Feature cards overlapping the hero ---------- */
.hero-cards { position: relative; z-index: 4; }
.hero-cards__grid { display: grid; gap: 1rem; padding-top: 1.5rem; }
@media (min-width: 52rem) {
  .hero-cards__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); margin-top: -4rem; padding-top: 0; }
}
.hero-card {
  position: relative; background: var(--paper); padding: 1.5rem 1.6rem 1.4rem;
  border-top: 4px solid var(--gold); box-shadow: 0 14px 30px -18px rgba(15, 42, 30, 0.45);
  transition: border-color .2s ease;
}
.hero-card:hover { border-top-color: var(--forest); }
.hero-card__title { font-size: 1.35rem; margin-bottom: 0.4rem; }
.hero-card__title a { color: var(--forest); text-decoration: none; }
.hero-card__title a::after { content: ""; position: absolute; inset: 0; }
.hero-card__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.hero-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.hero-card__more { font-size: 0.82rem; font-weight: 600; color: var(--gold-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.25em; }

/* ---------- About: facts row ---------- */
.facts { display: grid; gap: 0; margin: 1.5rem 0 0; border-top: 2px solid var(--forest); }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 64rem) { .fact { border-bottom: 0; } .fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); } }
.fact dt { order: 2; font-weight: 600; color: var(--forest); font-size: 0.95rem; margin-top: 0.35rem; }
.fact__value { order: 1; margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.1rem); line-height: 1; color: var(--forest); }
.fact__value--text { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-style: italic; color: var(--gold-ink); padding-top: 0.35rem; }
.fact__note { order: 3; margin: 0.25rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.fact-sources { font-size: var(--step--1); color: var(--ink-soft); margin: 1.25rem 0 0; }

/* ---------- Two halves: photo and dark panel ---------- */
.duo { display: grid; background: var(--charcoal); color: var(--ivory); }
@media (min-width: 56rem) { .duo { grid-template-columns: 1fr 1fr; } }
.duo__media { margin: 0; min-height: 20rem; }
.duo__media img { width: 100%; height: 100%; object-fit: cover; }
.duo__body { padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 6vw, 5.5rem); }
.duo__body h2 { color: var(--ivory); }
.duo__body .kicker { color: var(--gold-light); }
.duo__item { border-left: 3px solid var(--gold); padding-left: 1.25rem; margin-bottom: 1.75rem; max-width: 36rem; }
.duo__item h3 { color: var(--gold-light); font-size: 1.3rem; margin-bottom: 0.35rem; }
.duo__item p { margin: 0; color: rgba(245, 240, 229, 0.88); font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; }

/* ---------- About: focus list ---------- */
.focus-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
@media (min-width: 48rem) { .focus-list { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
@media (min-width: 70rem) { .focus-list { grid-template-columns: repeat(3, 1fr); } }
.focus-list li { margin: 0; border-bottom: 1px solid var(--line-light); }
.focus-list a { display: block; padding: 1.4rem 0; text-decoration: none; color: var(--ivory); }
.section--forest .focus-list a { color: var(--ivory); }
.focus-list strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ivory); margin-bottom: 0.3rem; }
.focus-list span { display: block; color: rgba(245, 240, 229, 0.8); font-size: 0.97rem; }
.focus-list a:hover strong { color: var(--gold-light); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.2em; }
/* Overlay lives inside the slide stack so captions can sit above it */
.hero--slider::after { display: none; }
.slides::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(12, 32, 22, 0.88) 0%, rgba(12, 32, 22, 0.5) 38%, rgba(12, 32, 22, 0.08) 70%),
    linear-gradient(to right, rgba(12, 32, 22, 0.5), rgba(12, 32, 22, 0) 60%);
}

/* ---------- Slideshow v2: each slide carries its own message ---------- */
.hero--slider .slides { z-index: 0; }
.slide { display: flex; align-items: flex-end; }
.slide__media { position: absolute; inset: 0; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__content { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), var(--wrap)); padding: 4rem 0 clamp(8rem, 13vh, 10rem); color: var(--ivory); }
.slide__title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5.5rem); color: var(--ivory); margin: 0 0 0.25em; max-width: 14ch;
  text-wrap: balance;
}
.slide__title--main { max-width: none; }
.slide__text { font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; max-width: 36rem; color: rgba(245,240,229,.92); margin: 1rem 0 0; }
.slide__content .actions { margin-top: 1.75rem; }
.slide__content > *:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .slide .slide__content > * { opacity: 0; transform: translateY(1rem); transition: opacity .7s ease, transform .7s ease; }
  .slide.is-active .slide__content > * { opacity: 1; transform: none; }
  .slide.is-active .slide__content > :nth-child(2) { transition-delay: .25s; }
  .slide.is-active .slide__content > :nth-child(3) { transition-delay: .4s; }
  .slide.is-active .slide__content > :nth-child(4) { transition-delay: .55s; }
  .slide.is-active .slide__media img { animation: drift 7s ease-out both; }
  /* The h1 spans keep their own one-time entrance */
  .slide.is-active .slide__title--main span { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
}
@media (prefers-reduced-motion: reduce) { .slide.is-active .slide__media img { animation: none; } }

/* Progress line on the active dot shows when the next slide is coming */
.slider-dot { overflow: hidden; }
.slider-dot::after { content: ""; position: absolute; left: 0.25rem; top: 50%; height: 3px; width: 0; background: var(--ivory); }
.is-playing .slider-dot[aria-current="true"]::after { animation: progress var(--slide-delay, 6s) linear forwards; }
@keyframes progress { to { width: calc(100% - 0.5rem); } }

@media (max-width: 47.99rem) {
  .slide__content { padding-bottom: 4.5rem; }
  .slide__title { font-size: clamp(2.1rem, 1.4rem + 4vw, 3rem); }
  .slide__text { font-size: 1.1rem; }
}

/* ---------- Partners ---------- */
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.partners li { margin: 0; }
.partner__logo, .partner--logo a {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); padding: 1rem 1.5rem;
  width: 15rem; height: 7.5rem;
}
.partner__logo img, .partner--logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.partner--logo a { transition: border-color .2s ease, box-shadow .2s ease; }
.partner--logo a:hover { border-color: var(--gold); box-shadow: 0 10px 24px -16px rgba(15,42,30,.45); }
.partners--detailed { display: grid; gap: 1.5rem; margin-bottom: var(--space-m); }
@media (min-width: 60rem) { .partners--detailed { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.partners--detailed .partner { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; border-top: 2px solid var(--forest); padding-top: 1.5rem; }
@media (max-width: 34rem) { .partners--detailed .partner { grid-template-columns: 1fr; } }
.partners--detailed .partner__logo { width: 12rem; height: 7rem; }
.partner__name { font-size: 1.3rem; margin-bottom: 0.35rem; }
.partners--detailed p { color: var(--charcoal); margin-bottom: 0.6rem; }
.partners-strip { border-top: 1px solid var(--line); }
.partners-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 1.5rem 3rem; }
.partners-strip__title { font-size: var(--step-2); margin: 0; }

/* ==========================================================================
   Donate: focused checkout page
   ========================================================================== */
.page-checkout { background: var(--paper); }
.checkout-header {
  position: sticky; top: 0; z-index: 100; background: var(--ivory);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px -14px rgba(15,42,30,.35);
}
.checkout-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); width: min(100% - 2 * var(--gutter), 90rem); margin-inline: auto; }
.checkout-header__right { display: flex; align-items: center; gap: clamp(0.75rem, 3vw, 2.5rem); }
.checkout-back { font-size: 0.92rem; font-weight: 500; color: var(--charcoal); }
.checkout-summary { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 1.05rem; color: var(--forest); white-space: nowrap; }
.checkout-summary svg { color: var(--gold-ink); flex: none; }
.checkout-summary strong { font-weight: 600; }
@media (max-width: 40rem) {
  .checkout-back { display: none; }
  .checkout-summary span { display: none; }
  .checkout-summary { font-size: 0.95rem; }
}

.give { padding-block: clamp(2.5rem, 6vw, 5rem); }
.give__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); width: min(100% - 2 * var(--gutter), 84rem); }
@media (min-width: 60rem) { .give__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }
.give__intro h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); max-width: 16ch; }
.give__figure { margin: 2rem 0; }
.give__figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.give__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.give__list li { padding: 0.9rem 0 0.9rem 1.75rem; border-bottom: 1px solid var(--line); position: relative; margin: 0; color: var(--charcoal); }
.give__list li::before { content: ""; position: absolute; left: 0.2rem; top: 1.35rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--gold); }
.give__list strong { color: var(--forest); }

.give-card, .faq-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px -28px rgba(15, 42, 30, 0.45);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.give-card { display: grid; gap: 1.4rem; border-top: 5px solid var(--forest); }
.give-card__head h2 { margin-bottom: 0.3rem; }
.give-card .hint { font-size: var(--step--1); color: var(--ink-soft); }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { font-weight: 600; font-size: 0.95rem; color: var(--forest); margin-bottom: 0.6rem; padding: 0; }
.choice .hint { margin: 0.5rem 0 0; }

/* Segmented buttons and amount tiles built from real radio inputs */
.segmented, .amounts { display: grid; gap: 0.5rem; }
.segmented { grid-template-columns: repeat(2, 1fr); }
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.amounts { grid-template-columns: repeat(3, 1fr); }
.segmented input, .amounts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label, .amounts label {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3rem; padding: 0.5rem;
  border: 1.5px solid rgba(23, 60, 44, 0.28); border-radius: 6px; background: #fff; cursor: pointer;
  font-weight: 600; font-size: 0.98rem; color: var(--forest);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.amounts label { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; min-height: 3.4rem; }
.segmented label:hover, .amounts label:hover { border-color: var(--forest); }
.segmented input:checked + label, .amounts input:checked + label { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.segmented input:focus-visible + label, .amounts input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.amount-other { margin-top: 0.75rem; }
.give-card__submit { width: 100%; min-height: 3.5rem; font-size: 1.05rem; }
.give-card__fine { font-size: 0.82rem; color: var(--ink-soft); margin: -0.4rem 0 0; text-align: center; }
@media (max-width: 30rem) {
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .segmented--3 { grid-template-columns: 1fr; }
}

.faq-card { margin-top: 2rem; }
.faq-card h2 { margin-bottom: 0.5rem; }
.faq-card .faq { border-top: 0; }
.faq-card .faq summary { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; padding-block: 1.1rem; }
.faq-card .faq details:last-child { border-bottom: 0; }

/* Confidence row, in the spirit of accreditation badges */
.trust { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); background: var(--ivory); }
.trust__grid { display: grid; gap: 2.5rem; text-align: center; }
@media (min-width: 52rem) { .trust__grid { grid-template-columns: repeat(3, 1fr); } }
.trust__item { display: flex; flex-direction: column; align-items: center; }
.trust__item svg { color: var(--forest); margin-bottom: 0.75rem; }
.trust__logo { height: 56px; width: auto; margin-bottom: 0.75rem; }
.trust__item h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.trust__item p { color: var(--ink-soft); max-width: 22rem; margin: 0; font-size: 0.95rem; }

.checkout-footer { background: var(--forest-deep); color: rgba(245,240,229,.75); font-size: var(--step--1); }
.checkout-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.checkout-footer ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.checkout-footer li { margin: 0; }
.checkout-footer a { color: var(--ivory); }
.checkout-footer a:hover { color: var(--gold-light); }

/* Story cards without photos: each article's photo appears only on the article itself */
.story--text { background: var(--paper); border-top: 4px solid var(--gold); padding: 1.5rem 1.6rem 1.6rem; box-shadow: 0 14px 30px -22px rgba(15, 42, 30, 0.45); transition: border-color .2s ease; }
.story--text:hover { border-top-color: var(--forest); }
.section--paper .story--text { background: #fff; }
.story--text h3 { font-size: 1.45rem; }

/* Official Loita Elephant Project logo */
.brand__logo { display: block; height: 4.1rem; width: auto; max-width: none; }
.brand--footer .brand__logo { height: auto; width: 100%; max-width: 17rem; }
@media (max-width: 60rem) { .brand__logo { height: 3.5rem; } }
@media (max-width: 30rem) { .brand__logo { height: 3.1rem; } }