@charset "utf-8";
/* ============================================================
   NATIONAL WILDFIRE ALLIANCE — "The Field Record"

   Light ground. The palette is sampled from the organization's own
   logo: forest green #27581B, with the accent set to #A95526. The
   photography is documentary and imperfect and it leads; the interface
   frames it and otherwise stays out of the way.

   The accent works two ways and never three: as text on light (5.01:1)
   and as a field under WHITE text (5.23:1). Dark ink on it fails at
   3.43:1, and it fails on the forest bands at 2.62:1 — those use
   --ember-light. That restriction is load-bearing, not incidental.
   ============================================================ */

@layer tokens, base, layout, components, utilities;

/* ---------- Fonts: self-hosted, subset, no third-party request ---------- */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-italic-var.woff2") format("woff2-variations");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@layer tokens {
  :root {
    /* --- Ground --- */
    --canvas: #FBFAF8;
    --surface: #FFFFFF;
    --sand: #F2EFE9;
    --sand-2: #E7E2D8;

    /* --- Ink --- */
    --ink: #16180F;
    --ink-2: #2E3327;
    --slate: #4A5245;
    --muted: #5F6759;

    /* --- Brand: sampled from the logo --- */
    --forest: #27581B;
    --forest-deep: #173410;
    --forest-mid: #33702A;
    --forest-wash: #EAF0E5;

    /* --- Action ---
       #A95526 is dark enough to work as TEXT on light (5.01:1) and as a field
       under WHITE text (5.23:1). That is the inverse of the previous bright
       orange, which could only ever be a field with dark ink on it.
       It is too dark for the forest bands (2.62:1), so --ember-light carries
       the accent on every dark ground. */
    --ember: #A95526;
    --ember-hover: #8E4620;
    --ember-light: #D98A55;
    --ember-ink: var(--ember);
    --ember-wash: #FDEDE2;

    /* --- Lines --- */
    --line: #DBD6CB;
    --line-strong: #8A8375;

    /* --- Semantic --- */
    --text: var(--ink);
    --text-2: var(--ink-2);
    --text-muted: var(--muted);
    --text-on-dark: #F4F6F0;
    --text-muted-on-dark: #BFC9B7;
    --bg: var(--canvas);
    --focus: var(--ember-ink);
    --focus-on-dark: var(--ember-light);

    /* --- Type --- */
    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-ui: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-read: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Display sizes are fluid; reading sizes are fixed. */
    --fs-3xs: 0.6875rem;
    --fs-2xs: 0.75rem;
    --fs-xs: 0.8125rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.0625rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
    --fs-3xl: clamp(2rem, 1.4rem + 2.6vw, 3rem);
    --fs-4xl: clamp(2.5rem, 1.5rem + 4.4vw, 4.5rem);
    --fs-5xl: clamp(3rem, 1.4rem + 6.6vw, 6rem);

    --lh-tight: 1.02;
    --lh-snug: 1.12;
    --lh-normal: 1.45;
    --lh-read: 1.62;

    --ls-mega: -0.03em;
    --ls-tight: -0.018em;
    --ls-normal: 0;
    --ls-caps: 0.1em;

    /* --- Space --- */
    --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
    --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.5rem;   --sp-8: 3rem;
    --sp-9: 4rem;     --sp-10: 5rem;    --sp-11: 6.5rem;  --sp-12: 8rem;

    /* --- Layout --- */
    --container: 1280px;
    --container-wide: 1560px;
    /* Line-length caps are switched off at the client's direction. Restore a
       ch value here (e.g. 66ch) to bring the typographic measure back. */
    --measure: none;
    --measure-short: none;
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --header-h: 76px;

    /* --- Radius --- */
    --r-none: 0;
    --r-sm: 3px;
    --r-md: 6px;
    --r-lg: 14px;
    --r-pill: 999px;

    /* --- Elevation. Warm-tinted, never neutral grey. --- */
    --shadow-sm: 0 1px 2px rgba(22, 24, 15, .05), 0 2px 6px rgba(22, 24, 15, .04);
    --shadow-md: 0 4px 10px rgba(22, 24, 15, .06), 0 12px 28px rgba(22, 24, 15, .07);
    --shadow-lg: 0 10px 24px rgba(22, 24, 15, .08), 0 28px 60px rgba(22, 24, 15, .10);

    /* --- Motion --- */
    --dur-fast: 130ms;
    --dur-base: 240ms;
    --dur-slow: 520ms;
    --ease: cubic-bezier(.22, .68, .28, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --focus-ring: 3px solid var(--focus);
    --focus-offset: 2px;
  }
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--sp-5));
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
    font-synthesis-weight: none;
    overflow-wrap: break-word;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-snug);
    margin: 0;
    text-wrap: balance;
  }

  a { color: var(--ember-ink); text-underline-offset: .16em; text-decoration-thickness: 1px; }
  a:hover { color: var(--forest); }

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

  img, svg, video { max-width: 100%; }
  img, video { height: auto; display: block; }

  code, kbd, samp { font-family: var(--font-mono); font-size: .9em; }
  ul, ol { margin: 0; padding: 0; }
  button { font: inherit; color: inherit; }
  hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-8) 0; }

  ::selection { background: var(--ember); color: #fff; }

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

@layer layout {
  .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
  .container--wide { max-width: var(--container-wide); }
  .container--narrow { max-width: 940px; }

  .section { padding-block: var(--sp-10); }
  .section--tight { padding-block: var(--sp-8); }
  .section--loose { padding-block: var(--sp-11); }
  .section--sand { background: var(--sand); }
  .section--forest { background: var(--forest-deep); color: var(--text-on-dark); }

  /* Section heads: an eyebrow rule, a heading, and an optional aside link. */
  .section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--sp-5);
    flex-wrap: wrap;
    margin-bottom: var(--sp-7);
  }
  .section__head h2 { font-size: var(--fs-2xl); }
  .section__head p { margin: .5rem 0 0; color: var(--text-muted); font-size: var(--fs-md); }
  .section--forest .section__head p { color: var(--text-muted-on-dark); }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-ui);
    font-size: var(--fs-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--forest);
    margin-bottom: var(--sp-3);
  }
  .eyebrow::before {
    content: "";
    width: 26px;
    height: 3px;
    background: var(--ember);
    border-radius: 2px;
  }
  .eyebrow--on-dark { color: var(--text-on-dark); }

  .grid { display: grid; gap: var(--sp-5); }
  .grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
  .grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
  .grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }

  .grid--split   { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--sp-8); }
  .grid--sidebar { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: var(--sp-8); }
  .grid--pair    { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-8); }
  .grid--quadish { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @media (max-width: 900px) { .grid--quadish { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .grid--profile { grid-template-columns: 200px minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
  @media (max-width: 900px) {
    .grid--split, .grid--sidebar { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  }
  @media (max-width: 700px) { .grid--pair { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 560px) {
    .grid--quadish { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @media (max-width: 900px) { .grid--quadish { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .grid--profile { grid-template-columns: minmax(0, 1fr); }
    .grid--profile .portrait { max-width: 200px; }
  }

  /* Interior page header */
  .page-head { padding-block: var(--sp-9) var(--sp-7); }
  /* A light band for the odds and ends that sit directly under a page hero. */
  .page-intro { padding-block: var(--sp-6); }
  .page-intro > *:first-child { margin-top: 0; }
  .page-head h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
  .page-head .deck {
    font-family: var(--font-read);
    font-size: var(--fs-lg);
    line-height: var(--lh-read);
    color: var(--text-2);
    margin: var(--sp-5) 0 0;
  }
  .page-head .crumbs { margin-bottom: var(--sp-5); }

  .article-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: var(--sp-9);
    align-items: start;
    padding-block: var(--sp-7) var(--sp-11);
  }
  .article-shell--wide { grid-template-columns: minmax(0, 1fr); }
  .article-shell > .rail {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
  }

  .index-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: var(--sp-8);
    align-items: start;
    padding-block: var(--sp-7) var(--sp-11);
  }
  .index-shell > .filters { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }

  @media (max-width: 960px) {
    .article-shell, .index-shell { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
    .article-shell > .rail, .index-shell > .filters { position: static; }
    .article-shell > .rail { order: -1; }
  }
}

@layer components {
  /* ============================================================
     SKIP LINK
     ============================================================ */
  .skip {
    position: absolute;
    left: var(--sp-4);
    top: 0;
    z-index: 200;
    transform: translateY(-130%);
    background: var(--forest-deep);
    color: var(--text-on-dark);
    padding: .8rem 1.2rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 var(--r-md) var(--r-md);
    transition: transform var(--dur-fast) var(--ease);
  }
  .skip:focus { transform: translateY(0); color: var(--text-on-dark); }

  /* ============================================================
     BUTTONS
     Orange is a field, never text: --ink sits on it at 6.34:1.
     ============================================================ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-ui);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
    padding: .85rem 1.5rem;
    min-height: 46px;
    border: 2px solid transparent;
    border-radius: var(--r-pill);
    cursor: pointer;
    text-decoration: none;
    background: none;
    white-space: nowrap;
    transition: background var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease);
  }
  .btn:active { transform: translateY(1px); }

  .btn--primary { background: var(--ember); color: #fff; border-color: var(--ember); }
  .btn--primary:hover { background: var(--ember-hover); border-color: var(--ember-hover); color: #fff; box-shadow: var(--shadow-md); }

  .btn--forest { background: var(--forest); color: #fff; border-color: var(--forest); }
  .btn--forest:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; box-shadow: var(--shadow-md); }

  .btn--outline { background: transparent; color: var(--forest); border-color: var(--forest); }
  .btn--outline:hover { background: var(--forest); color: #fff; }

  .btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
  .btn--ghost:hover { background: var(--sand); color: var(--ink); border-color: var(--ink-2); }

  .btn--on-dark { background: var(--canvas); color: var(--forest-deep); border-color: var(--canvas); }
  .btn--on-dark:hover { background: var(--ember); border-color: var(--ember); color: #fff; }

  .btn--outline-dark { background: transparent; color: var(--text-on-dark); border-color: rgba(244, 246, 240, .45); }
  .btn--outline-dark:hover { background: rgba(244, 246, 240, .12); border-color: var(--text-on-dark); color: var(--text-on-dark); }

  .btn--sm { font-size: var(--fs-xs); padding: .55rem 1rem; min-height: 38px; }
  @media (max-width: 420px) {
    .btn { white-space: normal; text-align: center; }
  }
  .btn--lg { font-size: var(--fs-md); padding: 1.05rem 2.1rem; min-height: 56px; }
  .btn--block { width: 100%; }
  .btn--start { justify-content: flex-start; }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
  .btn--loading { position: relative; color: transparent !important; }
  .btn--loading::after {
    content: "";
    position: absolute;
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .btn-icon {
    display: inline-grid;
    place-items: center;
    width: 46px; height: 46px;
    border: 2px solid transparent;
    border-radius: var(--r-pill);
    background: none;
    color: var(--ink-2);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  }
  .btn-icon:hover { background: var(--sand); color: var(--forest); }

  /* ============================================================
     LINKS
     ============================================================ */
  .link { color: var(--ember-ink); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
  .link:hover { color: var(--forest); text-decoration-thickness: 2px; }

  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-ui);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--forest);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
  }
  .link-arrow::after {
    content: "";
    width: 18px; height: 8px;
    background: currentColor;
    clip-path: polygon(0 40%, 62% 40%, 62% 0, 100% 50%, 62% 100%, 62% 60%, 0 60%);
    transition: transform var(--dur-base) var(--ease);
  }
  .link-arrow:hover { color: var(--ember-ink); }
  .link-arrow:hover::after { transform: translateX(5px); }
  .link-arrow--on-dark { color: var(--text-on-dark); }
  .link-arrow--on-dark:hover { color: var(--ember-light); }

  /* ============================================================
     BADGES / TAGS / CHIPS
     ============================================================ */
  .badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-ui);
    font-size: var(--fs-3xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .34rem .62rem;
    border-radius: var(--r-sm);
    line-height: 1.2;
  }
  .badge--investigation { background: var(--ember-wash); color: var(--ember-ink); }
  .badge--policy { background: var(--sand-2); color: var(--ink-2); }
  .badge--data { background: var(--forest-wash); color: var(--forest); }
  .badge--report { background: #FBF1D8; color: #7A5200; }
  .badge--on-dark { background: rgba(244, 246, 240, .16); color: var(--text-on-dark); }
  .badge--solid { background: var(--ember); color: #fff; }

  .tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: var(--fs-2xs);
    font-weight: 600;
    padding: .34rem .7rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    color: var(--ink-2);
    background: transparent;
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  }
  a.tag:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
  .tag--static { pointer-events: none; }
  .tag[aria-current="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }

  .chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: var(--fs-2xs);
    font-weight: 600;
    padding: .4rem .5rem .4rem .8rem;
    border-radius: var(--r-pill);
    background: var(--forest);
    color: #fff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
  }
  .chip:hover { background: var(--forest-deep); color: #fff; }
  .chip .x { font-size: 15px; line-height: 1; padding: .1rem .25rem; border-radius: 50%; }
  .chip:hover .x { background: rgba(255, 255, 255, .22); }
  .chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

  /* ============================================================
     META
     ============================================================ */
  .meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    color: var(--text-muted);
  }
  .meta > * { display: inline-flex; align-items: center; gap: .35rem; }
  .meta .sep { color: var(--line-strong); }
  .meta a { color: var(--text-muted); text-underline-offset: .2em; }
  .meta a:hover { color: var(--ember-ink); }
  .meta--end { justify-content: flex-end; }
  .meta--on-dark { color: var(--text-muted-on-dark); }
  .meta--on-dark a { color: var(--text-muted-on-dark); }

  /* ============================================================
     MEDIA — the photography leads, so its frame is quiet
     ============================================================ */
  .media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--sand-2); }
  .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .media--4x3 { aspect-ratio: 4 / 3; }
  .media--16x9 { aspect-ratio: 16 / 9; }
  .media--3x2 { aspect-ratio: 3 / 2; }
  .media--square { aspect-ratio: 1 / 1; }
  .media--tall { aspect-ratio: 4 / 5; }

  /* A restrained scrim so display type stays legible over a photograph. */
  .media--scrim::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 16, 6, .18) 0%, rgba(9, 16, 6, .58) 62%, rgba(9, 16, 6, .82) 100%);
  }
  .media__zoom img { transition: transform var(--dur-slow) var(--ease-out); }
  a:hover .media__zoom img, .card:hover .media__zoom img { transform: scale(1.04); }

  .credit {
    font-family: var(--font-mono);
    font-size: var(--fs-3xs);
    color: var(--text-muted);
    margin-top: .55rem;
    display: block;
  }
  .credit--on-dark { color: var(--text-muted-on-dark); }

  /* ============================================================
     CARDS
     ============================================================ */
  .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--dur-base) var(--ease),
                box-shadow var(--dur-base) var(--ease),
                transform var(--dur-base) var(--ease);
  }
  .card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .card:focus-within { border-color: var(--forest); box-shadow: var(--shadow-md); }
  .card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
  /* Cards that hold their content directly still need the body's padding. */
  .card:not(:has(> .card__body)) { padding: var(--sp-5); gap: var(--sp-3); }
  .card:not(:has(> .card__body)) > .badge,
  .card:not(:has(> .card__body)) > .link-arrow,
  .card:not(:has(> .card__body)) > .btn { align-self: flex-start; }
  .card h3 { font-size: var(--fs-lg); line-height: 1.22; }
  .card h3 a { color: var(--ink); text-decoration: none; }
  .card h3 a:hover { color: var(--forest); }
  .card p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); line-height: var(--lh-normal); }
  .card__meta { margin-top: auto; padding-top: var(--sp-2); }
  .card .badge { align-self: flex-start; }

  .card--feature h3 { font-size: var(--fs-2xl); }
  /* Same cap as the article hero: the lead card announces the story, it does
     not need to fill the viewport to do it. */
  .card--feature .media { max-height: 52vh; }
  .card--feature .card__body { padding: var(--sp-6); gap: var(--sp-4); }
  .card--feature p { font-size: var(--fs-md); }
  .card--flat { box-shadow: none; }
  .card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }
  .card--dark { background: var(--forest-deep); border-color: rgba(244, 246, 240, .16); }
  .card--dark h3 a { color: var(--text-on-dark); }
  .card--dark h3 a:hover { color: var(--ember-light); }
  .card--dark p { color: var(--text-muted-on-dark); }

  /* Program card: the forest rule ties it to the brand. */
  .card--program { border-top: 4px solid var(--forest); }
  .card--program:nth-child(2n) { border-top-color: var(--ember); }

  /* ============================================================
     PRIORITY — numbered because the four priorities are a ranked ask
     ============================================================ */
  .priority {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-4);
    padding: var(--sp-5) 0;
    border-top: 1px solid var(--line);
  }
  .priority__num {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--ember-ink);
    line-height: 1.6;
  }
  .priority h3 { font-size: var(--fs-lg); margin-bottom: .45rem; }
  .priority p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
  .section--forest .priority { border-top-color: rgba(244, 246, 240, .2); }
  .section--forest .priority__num { color: var(--ember-light); }
  .section--forest .priority p { color: var(--text-muted-on-dark); }

  /* ============================================================
     RESEARCH ROW
     ============================================================ */
  .row-research {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: var(--sp-5);
    padding: var(--sp-5) 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
  }
  .row-research__thumb { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); }
  .row-research__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .row-research__body { min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
  .row-research__badges { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
  .row-research h3 { font-size: var(--fs-xl); margin: 0; line-height: 1.2; }
  .row-research h3 a { color: var(--ink); text-decoration: none; }
  .row-research h3 a:hover { color: var(--forest); }
  .row-research p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
  .row-research__aside { text-align: right; white-space: nowrap; }
  .row-research--noimg { grid-template-columns: minmax(0, 1fr) auto; }
  @media (max-width: 760px) {
    .row-research { grid-template-columns: 84px minmax(0, 1fr); }
    .row-research__aside { grid-column: 2; text-align: left; }
    .row-research .meta--end { justify-content: flex-start; }
    .row-research--noimg { grid-template-columns: minmax(0, 1fr); }
    .row-research--noimg .row-research__aside { grid-column: 1; }
  }

  /* ============================================================
     RESOURCE CARD
     ============================================================ */
  .resource {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  }
  .resource:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
  .resource h3 { font-size: var(--fs-md); line-height: 1.25; }
  .resource h3 a { color: var(--ink); text-decoration: none; }
  .resource h3 a:hover { color: var(--forest); }
  .resource p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
  .resource > .badge { align-self: flex-start; }
  .resource__foot {
    margin-top: auto;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
  }
  .resource__size { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-muted); }
  .resource--featured { border-top: 4px solid var(--ember); }

  /* ============================================================
     STATS
     ============================================================ */
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
  .stat { padding: var(--sp-6) var(--sp-5); background: var(--surface); }
  .stat__num {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.25rem);
    font-weight: 800;
    font-stretch: 88%;
    line-height: .95;
    letter-spacing: var(--ls-mega);
    color: var(--forest);
    display: block;
    font-variant-numeric: tabular-nums;
  }
  .stat__label { display: block; margin-top: .7rem; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
  .stat__src { display: block; margin-top: .35rem; font-size: var(--fs-2xs); color: var(--text-muted); font-family: var(--font-mono); }
  .stat__src a { color: var(--text-muted); }
  .stat__src a:hover { color: var(--ember-ink); }
  .stats--on-dark { background: rgba(244, 246, 240, .18); }
  .stats--on-dark .stat { background: var(--forest-deep); }
  .stats--on-dark .stat__num { color: var(--ember-light); }
  .stats--on-dark .stat__label { color: var(--text-on-dark); }
  .stats--on-dark .stat__src, .stats--on-dark .stat__src a { color: var(--text-muted-on-dark); }

  /* ============================================================
     CALLOUTS
     ============================================================ */
  .callout {
    border: 1px solid var(--sand-2);
    background: var(--ember-wash);
    padding: var(--sp-5) var(--sp-6);
    border-radius: var(--r-lg);
  }
  .callout__title {
    font-family: var(--font-ui);
    font-size: var(--fs-2xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--ember-ink);
    margin: 0 0 var(--sp-4);
  }
  .callout ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .7rem; }
  .callout li { font-family: var(--font-read); font-size: var(--fs-md); line-height: var(--lh-read); color: var(--ink); }
  .callout p:not(.callout__title) { margin: 0; font-family: var(--font-read); font-size: var(--fs-md); line-height: var(--lh-read); }
  .callout--info { background: var(--forest-wash); }
  .callout--info .callout__title { color: var(--forest); }
  .callout--advisory { background: #FBF5E4; }
  .callout--advisory .callout__title { color: #7A5200; }

  /* ============================================================
     QUOTES
     ============================================================ */
  .pullquote {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: var(--ls-tight);
    margin: var(--sp-8) 0;
    padding: var(--sp-5) 0;
    border-top: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
    color: var(--forest-deep);
  }
  blockquote.quote {
    margin: var(--sp-7) 0;
    padding: var(--sp-5) var(--sp-6);
    background: var(--sand);
    border-radius: var(--r-lg);
    font-family: var(--font-read);
    font-size: var(--fs-md);
    font-style: italic;
    color: var(--ink-2);
  }
  blockquote.quote p { margin: 0 0 var(--sp-3); }
  blockquote.quote cite {
    display: block;
    margin-top: var(--sp-3);
    font-family: var(--font-ui);
    font-style: normal;
    font-size: var(--fs-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--text-muted);
  }

  /* ============================================================
     FIGURE
     ============================================================ */
  figure.fig { margin: var(--sp-7) 0; }
  figure.fig img, figure.fig .ph { width: 100%; border-radius: var(--r-lg); }
  figure.fig figcaption {
    margin-top: .8rem;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: var(--lh-normal);
  }
  figure.fig figcaption b { color: var(--ink-2); font-weight: 700; }

  .ph {
    background: var(--sand-2);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    text-align: center;
    padding: var(--sp-5);
    border-radius: var(--r-lg);
  }

  /* ============================================================
     TABLE
     ============================================================ */
  .table-scroll { overflow-x: auto; margin: var(--sp-7) 0; border-radius: var(--r-lg); border: 1px solid var(--line); }
  .table-scroll:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
  table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
  table.data caption {
    text-align: left;
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--text-muted);
    padding: var(--sp-4) var(--sp-5) .6rem;
    font-weight: 700;
  }
  table.data th, table.data td { text-align: left; padding: .85rem var(--sp-5); border-bottom: 1px solid var(--line); }
  table.data thead th {
    background: var(--sand);
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-2);
    font-weight: 700;
  }
  table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
  table.data tbody tr:hover { background: var(--forest-wash); }
  table.data td.num, table.data th.num { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }

  /* ============================================================
     CITATIONS
     ============================================================ */
  ol.citations { counter-reset: c; list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
  ol.citations li {
    counter-increment: c;
    position: relative;
    padding: .8rem 0 .8rem 2.4rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
  }
  ol.citations li::before {
    content: counter(c);
    position: absolute;
    left: 0;
    top: .85rem;
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    font-weight: 700;
    color: #fff;
    background: var(--forest);
    border-radius: var(--r-sm);
    width: 1.6rem;
    text-align: center;
    line-height: 1.5;
  }
  ol.citations li:target { background: var(--ember-wash); }
  ol.citations b { color: var(--ink); font-weight: 700; }

  /* ============================================================
     FORMS
     ============================================================ */
  .field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: var(--sp-5); }
  .field label { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
  .field .hint { font-size: var(--fs-xs); color: var(--text-muted); }
  .field .req { color: var(--ember-ink); }

  .input, .select, .textarea {
    font-family: var(--font-ui);
    font-size: var(--fs-base);
    color: var(--ink);
    background: var(--surface);
    border: 2px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: .75rem .95rem;
    min-height: 48px;
    width: 100%;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  }
  .select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235F6759' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.6rem;
  }
  .textarea { min-height: 140px; resize: vertical; line-height: var(--lh-normal); }
  .input::placeholder, .textarea::placeholder { color: var(--muted); }
  .input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
  .input:focus, .select:focus, .textarea:focus { outline: var(--focus-ring); outline-offset: 1px; border-color: var(--forest); }
  .input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--ember-ink); }
  .input[disabled], .textarea[disabled], .select[disabled] { background: var(--sand); color: var(--muted); cursor: not-allowed; }

  .err { display: flex; gap: .4rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--ember-ink); font-weight: 600; }
  .err::before { content: "✕"; font-weight: 700; }
  .err:empty { display: none; }
  .ok { display: flex; gap: .4rem; font-size: var(--fs-sm); color: var(--forest); font-weight: 600; }
  .ok::before { content: "✓"; font-weight: 700; }

  .check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; line-height: 1.45; padding: .4rem 0; }
  .check input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--forest); flex: none; }

  fieldset.fs { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); margin: 0 0 var(--sp-5); }
  fieldset.fs legend {
    font-size: var(--fs-2xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--ink-2);
    padding: 0 .5rem;
  }

  .form-status { margin-top: var(--sp-4); }
  .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  .nl { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 540px; }
  .nl .input { flex: 1 1 250px; min-width: 0; }
  .nl--on-dark .input { background: rgba(244, 246, 240, .08); border-color: rgba(244, 246, 240, .5); color: var(--text-on-dark); }
  .nl--on-dark .input::placeholder { color: var(--text-muted-on-dark); }
  .nl--on-dark .input:focus { border-color: var(--ember-light); outline-color: var(--ember-light); }

  /* ============================================================
     HEADER
     ============================================================ */
  .hdr {
    background: var(--canvas);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
  }
  .hdr[data-condensed="true"] { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(251, 250, 248, .94); backdrop-filter: saturate(1.4) blur(10px); }
  .hdr__inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: var(--sp-4) var(--gutter);
    display: flex;
    align-items: center;
    gap: var(--sp-6);
  }
  .hdr[data-condensed="true"] .hdr__inner { padding-block: .6rem; }

  .logo { display: flex; align-items: center; text-decoration: none; flex: 0 1 auto; min-width: 0; }
  .logo img { height: 46px; width: auto; }
  .hdr[data-condensed="true"] .logo img { height: 38px; }

  .nav { display: flex; gap: var(--sp-2); margin-left: auto; align-items: center; }
  .nav__item { position: relative; }
  .nav__link {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    padding: .6rem .8rem;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  }
  .nav__link:hover { background: var(--sand); color: var(--forest); }
  .nav__link[aria-current], .nav__link[data-section="true"] { color: var(--forest); font-weight: 700; }
  .caret { width: 9px; height: 6px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform var(--dur-fast) var(--ease); }
  .nav__link[aria-expanded="true"] .caret { transform: rotate(180deg); }

  .nav__menu {
    position: absolute;
    top: calc(100% + .5rem);
    left: -.5rem;
    min-width: 296px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-2);
    list-style: none;
    margin: 0;
    display: none;
    z-index: 110;
  }
  .nav__item:hover > .nav__menu,
  .nav__item:focus-within > .nav__menu,
  .nav__menu[data-open="true"] { display: block; }
  .nav__menu a {
    display: block;
    padding: .65rem .8rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    border-radius: var(--r-md);
    line-height: 1.35;
  }
  .nav__menu a:hover, .nav__menu a:focus-visible { background: var(--forest-wash); color: var(--forest); }
  .nav__menu a[aria-current] { color: var(--forest); }
  .nav__menu-desc { display: block; font-size: var(--fs-2xs); font-weight: 400; color: var(--text-muted); margin-top: .15rem; }

  .nav__toggle { display: none; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--canvas);
    z-index: 150;
    overflow-y: auto;
    padding: var(--sp-4) var(--gutter) var(--sp-9);
    display: none;
  }
  .nav-overlay[data-open="true"] { display: block; }
  .nav-overlay__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
  .nav-overlay__head .logo img { height: 42px; }
  .nav-overlay ul { list-style: none; margin: 0; padding: 0; }
  .nav-overlay__list > ul > li { border-bottom: 1px solid var(--line); }
  .nav-overlay__list > ul > li > a,
  .nav-overlay summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) 0;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    min-height: 46px;
    cursor: pointer;
    list-style: none;
  }
  .nav-overlay summary::-webkit-details-marker { display: none; }
  .nav-overlay summary::after { content: "+"; font-family: var(--font-mono); color: var(--ember-ink); font-size: var(--fs-lg); }
  .nav-overlay details[open] summary::after { content: "−"; }
  .nav-overlay details ul { padding: 0 0 var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: .2rem; }
  .nav-overlay details ul a { display: block; padding: .7rem 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; min-height: 44px; }
  .nav-overlay details ul a:hover { color: var(--forest); }
  .nav-overlay__actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-6); }

  @media (max-width: 1080px) {
    .nav__item, .nav__search { display: none; }
    .nav__toggle { display: inline-grid; }
    .nav { gap: var(--sp-2); }
  }

  /* ============================================================
     BREADCRUMB
     ============================================================ */
  .crumbs { font-size: var(--fs-2xs); font-family: var(--font-mono); color: var(--text-muted); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0; }
  .crumbs a { color: var(--text-muted); text-decoration: none; }
  .crumbs a:hover { color: var(--ember-ink); text-decoration: underline; }
  .crumbs [aria-current] { color: var(--ink-2); }
  /* min-width:0 lets the last crumb — the page title, which can be long —
     shrink and wrap instead of forcing the row wider than the viewport. */
  .crumbs li { display: flex; gap: .5rem; align-items: center; min-width: 0; }
  .crumbs li > span { min-width: 0; overflow-wrap: break-word; }
  .crumbs li + li::before { content: "/"; color: var(--line-strong); }

  /* ============================================================
     TOC
     ============================================================ */
  .toc-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .toc-wrap > summary {
    cursor: pointer;
    padding: var(--sp-4) 0;
    font-family: var(--font-ui);
    font-size: var(--fs-2xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--text-muted);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 46px;
  }
  .toc-wrap > summary::-webkit-details-marker { display: none; }
  .toc-wrap > summary::after { content: "+"; font-family: var(--font-mono); color: var(--ember-ink); font-size: var(--fs-lg); }
  .toc-wrap[open] > summary::after { content: "−"; }
  .toc-wrap > .toc { padding-bottom: var(--sp-4); }
  .toc h2, .toc h4 {
    font-family: var(--font-ui);
    font-size: var(--fs-3xs);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--text-muted);
    margin-bottom: var(--sp-3);
    font-weight: 800;
  }
  .toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
  .toc a {
    font-size: var(--fs-sm);
    color: var(--ink-2);
    text-decoration: none;
    display: block;
    line-height: 1.35;
    padding: .45rem .75rem;
    border-left: 3px solid transparent;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  }
  .toc a:hover { background: var(--sand); color: var(--forest); }
  .toc [aria-current="true"] { color: var(--forest); font-weight: 700; border-left-color: var(--ember); background: var(--forest-wash); }

  @media (min-width: 961px) {
    .toc-wrap { border: 0; }
    @supports selector(::details-content) {
      .toc-wrap > summary { display: none; }
      .toc-wrap::details-content { content-visibility: visible; block-size: auto; }
    }
  }

  /* ============================================================
     PAGINATION
     ============================================================ */
  .pager { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; list-style: none; padding: 0; margin: var(--sp-8) 0 0; }
  .pager a, .pager span {
    min-width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--ink-2);
    padding: 0 .6rem;
  }
  .pager a:hover { border-color: var(--forest); color: var(--forest); background: var(--forest-wash); }
  .pager [aria-current="page"] { background: var(--forest); border-color: var(--forest); color: #fff; font-weight: 700; }
  .pager .gap { border: 0; }

  /* ============================================================
     ACCORDION
     ============================================================ */
  .acc { border-top: 1px solid var(--line); }
  .acc details { border-bottom: 1px solid var(--line); }
  .acc summary {
    cursor: pointer;
    padding: var(--sp-5) 0;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    list-style: none;
    align-items: center;
    min-height: 46px;
  }
  .acc summary::-webkit-details-marker { display: none; }
  .acc summary::after { content: "+"; font-family: var(--font-mono); color: var(--ember-ink); font-size: var(--fs-xl); flex: none; }
  .acc details[open] summary::after { content: "−"; }
  .acc details > div { padding: 0 0 var(--sp-5); font-size: var(--fs-sm); color: var(--text-2); max-width: var(--measure); }
  .acc details > div p { margin: 0 0 var(--sp-3); }
  .acc details > div p:last-child { margin-bottom: 0; }

  /* ============================================================
     EMPTY / SKELETON / TOAST
     ============================================================ */
  .empty { text-align: center; padding: var(--sp-9) var(--sp-5); border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--sand); }
  .empty h2, .empty h3 { font-size: var(--fs-lg); margin-bottom: .6rem; }
  .empty p { margin: 0 auto var(--sp-5); font-size: var(--fs-sm); color: var(--text-2); }

  .skel { background: linear-gradient(90deg, var(--sand) 25%, var(--sand-2) 37%, var(--sand) 63%); background-size: 400% 100%; animation: shim 1.4s ease infinite; border-radius: var(--r-sm); }
  @keyframes shim { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

  .toast {
    position: fixed;
    left: 50%;
    bottom: var(--sp-6);
    transform: translateX(-50%);
    background: var(--forest-deep);
    color: var(--text-on-dark);
    padding: .85rem 1.2rem;
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 300;
  }

  /* ============================================================
     PROSE
     ============================================================ */
  /* The post's own feature image, between the standfirst and the body. It is
     capped: at full column width an uncapped 3:2 runs most of a screen tall and
     pushes the article itself below the fold. */
  .story-hero { margin: var(--sp-7) 0 0; }
  .story-hero .media { border-radius: var(--r-lg); max-height: 62vh; }

  .prose { max-width: var(--measure); font-family: var(--font-read); }
  /* Migrated posts quote bare URLs. `anywhere` — unlike `break-word` — also
     lowers the min-content width, so a long link cannot push the column wider
     than the viewport on a narrow screen. */
  .prose a { overflow-wrap: anywhere; }
  .prose h2 { font-family: var(--font-display); font-size: var(--fs-2xl); margin: var(--sp-8) 0 var(--sp-4); scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }
  .prose h3 { font-family: var(--font-display); font-size: var(--fs-lg); margin: var(--sp-7) 0 var(--sp-3); scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }
  .prose p { margin: 0 0 var(--sp-5); font-size: var(--fs-md); line-height: var(--lh-read); }
  .prose p.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.55; }
  .prose ul, .prose ol { margin: 0 0 var(--sp-5); padding-left: 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
  .prose li { font-size: var(--fs-md); line-height: var(--lh-read); }
  .prose sup a { font-family: var(--font-mono); font-size: .68em; color: var(--ember-ink); text-decoration: none; padding: 0 .12em; font-weight: 700; }
  .prose sup a:hover { text-decoration: underline; }
  .prose > .callout, .prose > figure.fig, .prose > .table-scroll { margin-block: var(--sp-7); }
  .prose a { color: var(--ember-ink); }
  .prose a:hover { color: var(--forest); }

  /* ============================================================
     RAIL
     ============================================================ */
  .rail__actions { display: flex; flex-direction: column; gap: .6rem; }
  .rail__note { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-muted); padding-left: .2rem; }
  .cite-details > summary { list-style: none; }
  .cite-details > summary::-webkit-details-marker { display: none; }
  .cite-details > summary::after { content: "+"; font-family: var(--font-mono); margin-left: auto; }
  .cite-details[open] > summary::after { content: "−"; }
  .cite-box { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sand); padding: var(--sp-4); margin-top: var(--sp-3); font-size: var(--fs-xs); line-height: var(--lh-normal); }
  .cite-box p { margin: 0 0 var(--sp-3); font-family: var(--font-mono); color: var(--ink-2); }

  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: none;
    gap: .5rem;
    padding: .65rem var(--gutter);
    background: rgba(251, 250, 248, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .action-bar .btn { flex: 1; }
  @media (max-width: 960px) {
    .action-bar { display: flex; }
    body.has-action-bar { padding-bottom: 74px; }
  }

  /* ============================================================
     FILTERS
     ============================================================ */
  .filters__group { border-bottom: 1px solid var(--line); padding-bottom: var(--sp-5); margin: 0 0 var(--sp-5); }
  .filters__group legend, .filters__group h3 {
    font-family: var(--font-ui);
    font-size: var(--fs-3xs);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: var(--sp-3);
    padding: 0;
  }
  .filters fieldset { border: 0; padding: 0; }
  .filters__count { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-muted); }
  .filters__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
  .results__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); flex-wrap: wrap; padding-bottom: var(--sp-4); border-bottom: 2px solid var(--ink); margin-bottom: var(--sp-2); }
  .results__count { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink-2); }

  /* ============================================================
     TEAM
     ============================================================ */
  .portrait { aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--sand-2); }
  .portrait img { width: 100%; height: 100%; object-fit: cover; }
  /* Monogram stands in where no real portrait exists — never a stock face. */
  .portrait--monogram {
    display: grid;
    place-items: center;
    background: var(--forest-wash);
    color: var(--forest);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: .02em;
  }
  .member { display: flex; flex-direction: column; gap: var(--sp-3); }
  .member h3 { font-size: var(--fs-md); margin: 0; }
  .member h3 a { color: var(--ink); text-decoration: none; }
  .member h3 a:hover { color: var(--forest); }
  .member__role { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
  .member__tags { display: flex; flex-wrap: wrap; gap: .35rem; }

  .author-bio {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: var(--sp-5);
    align-items: start;
    padding: var(--sp-5);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--sand);
  }
  .author-bio h3 { font-size: var(--fs-md); margin-bottom: .2rem; }
  .author-bio p { margin: .4rem 0 0; font-size: var(--fs-sm); color: var(--text-2); }

  /* ============================================================
     ACTION TILE
     ============================================================ */
  .tile {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-6);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  }
  .tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .tile h3 { font-size: var(--fs-lg); }
  .tile p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
  .tile__effort {
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    color: var(--ember-ink);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
  }
  .tile > .btn, .tile > .link-arrow { align-self: flex-start; margin-top: auto; }

  /* ============================================================
     PRESS STRIP
     ============================================================ */
  .press-strip {
    background: var(--forest-wash);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    display: flex;
    justify-content: space-between;
    gap: var(--sp-5);
    flex-wrap: wrap;
    align-items: center;
  }
  .press-strip h2 { font-size: var(--fs-md); margin-bottom: .35rem; }
  .press-strip p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }

  /* ============================================================
     BARS
     ============================================================ */
  .bars { display: flex; flex-direction: column; gap: var(--sp-4); margin: var(--sp-5) 0; }
  .bar__label { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-sm); margin-bottom: .4rem; }
  .bar__label b { font-family: var(--font-mono); font-weight: 600; color: var(--ink-2); }
  .bar__track { height: 16px; background: var(--sand-2); border-radius: var(--r-pill); overflow: hidden; }
  .bar__fill { height: 100%; background: var(--forest); border-radius: var(--r-pill); }
  .bar--admin .bar__fill { background: var(--forest-mid); }
  .bar--fund .bar__fill { background: var(--ember); }

  /* ============================================================
     HERO — a documentary photograph carries it, full-bleed, with the
     finding set over the image. The scrim is what makes that legible.
     ============================================================ */
  .hero { position: relative; isolation: isolate; background: var(--forest-deep); }
  .hero__media { position: absolute; inset: 0; overflow: hidden; }
  .hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(9, 16, 6, .34) 0%, rgba(9, 16, 6, .40) 40%, rgba(9, 16, 6, .86) 100%),
      linear-gradient(90deg, rgba(9, 16, 6, .72) 0%, rgba(9, 16, 6, .28) 62%, rgba(9, 16, 6, .10) 100%);
  }
  .hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: clamp(3.5rem, 9vh, 6rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
    min-height: clamp(26rem, 66vh, 38rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--text-on-dark);
  }
  .hero__body { max-width: 62rem; }
  .hero h1 {
    font-size: clamp(2.1rem, 1.05rem + 3.3vw, 3.5rem);
    font-weight: 800;
    font-stretch: 88%;
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-mega);
    color: #fff;
    margin: 0 0 var(--sp-5);
    text-shadow: 0 2px 24px rgba(9, 16, 6, .5);
  }
  .hero .deck {
    font-family: var(--font-read);
    font-size: var(--fs-md);
    line-height: 1.55;
    color: #E6EADF;
    margin: 0 0 var(--sp-6);
  }
  .hero__eyebrow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: var(--sp-5); }
  .hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
  .hero__credit {
    position: absolute;
    right: var(--gutter);
    bottom: .6rem;
    margin: 0;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: var(--fs-3xs);
    color: rgba(244, 246, 240, .62);
    text-align: right;
  }
  /* A quiet slow push-in; the photograph is doing the work, not the motion. */
  @media (prefers-reduced-motion: no-preference) {
    .hero__media img { animation: hero-settle 1.6s var(--ease-out) both; }
  }
  @keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }

  /* On narrow screens the credit would sit on top of the primary action. */
  @media (max-width: 720px) {
    .hero__credit { position: static; padding: .5rem var(--gutter) .9rem; text-align: left; max-width: none; background: var(--forest-deep); }
  }

  .hero--compact .hero__inner { min-height: clamp(19rem, 40vh, 25rem); }
  .hero--compact h1 { font-size: var(--fs-3xl); }
  .hero--compact .deck { margin-bottom: 0; }
  .hero--compact .hero__actions { margin-top: var(--sp-6); }
  /* Breadcrumbs sit on the photograph, so they take the on-dark treatment. */
  .hero__crumbs { margin-bottom: var(--sp-4); }
  .hero__crumbs .crumbs,
  .hero__crumbs .crumbs a { color: rgba(244, 246, 240, .82); }
  .hero__crumbs .crumbs a:hover { color: #fff; }
  .hero__crumbs .crumbs [aria-current] { color: #fff; }
  .hero__crumbs .crumbs li + li::before { color: rgba(244, 246, 240, .5); }
  .hero--mission { background: var(--forest-deep); }
  .hero--mission .hero__inner { justify-content: center; }

  /* ============================================================
     SCROLL REVEAL — content is visible by default; the class is only
     added by JS, so nothing depends on script to be readable.
     ============================================================ */
  @media (prefers-reduced-motion: no-preference) {
    .reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); }
    .reveal-ready [data-reveal].is-in {
      opacity: 1;
      transform: none;
      transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    }
    .reveal-ready [data-reveal="1"].is-in { transition-delay: 70ms; }
    .reveal-ready [data-reveal="2"].is-in { transition-delay: 140ms; }
    .reveal-ready [data-reveal="3"].is-in { transition-delay: 210ms; }
  }

  /* Counts up on first view; the final value is in the HTML regardless. */
  .stat__num[data-count] { font-variant-numeric: tabular-nums; }

  /* ============================================================
     DONATE BAND — the site's third job, given a real surface
     ============================================================ */
  /* The band is now a dark orange field, so its text is white — dark ink on
     this orange measures 3.43:1 and fails. */
  .donate-band { background: var(--ember); color: #fff; }
  .donate-band h2 { font-size: var(--fs-3xl); font-weight: 800; font-stretch: 88%; letter-spacing: var(--ls-mega); line-height: var(--lh-snug); color: #fff; }
  .donate-band p { font-family: var(--font-read); font-size: var(--fs-lg); line-height: var(--lh-read); margin: var(--sp-5) 0 var(--sp-6); color: #FBF3EE; }
  .donate-band h3 { color: #fff; }
  .donate-band .btn--forest { background: #fff; border-color: #fff; color: var(--ember); }
  .donate-band .btn--forest:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }
  .donate-band .btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
  .donate-band .btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
  .donate-band a:not(.btn) { color: #fff; }
  .section--forest a:not(.btn):not(.tag):not(.link-arrow) { color: var(--ember-light); }

  /* ============================================================
     GIVE WIDGET — the donation form on /donate/

     Built on real radio inputs so it works with the keyboard, with a
     screen reader, and with JavaScript switched off. The scripted layer
     only relabels the button and reveals the custom-amount field early.
     ============================================================ */
  .give {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: var(--sp-6);
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
  }
  /* Below the sidebar breakpoint the form leads: someone who came here to
     give should not have to scroll past the case for giving to do it. */
  @media (max-width: 900px) {
    .give { position: static; }
    .give-col { order: -1; }
  }
  @media (max-width: 479px) {
    .give { padding: var(--sp-5) var(--sp-4); border-radius: var(--r-md); }
  }
  .give fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); min-width: 0; }
  .give legend {
    font-size: var(--fs-2xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--ink-2);
    padding: 0;
    margin-bottom: var(--sp-3);
  }

  .give__opt { position: relative; }
  .give__opt input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  /* --- Frequency: one pill track, two segments inside it --- */
  .give__freq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--sand);
    border-radius: var(--r-pill);
    padding: 4px;
  }
  .give__freq .give__opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .5rem .75rem;
    text-align: center;
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--ink-2);
    border-radius: var(--r-pill);
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  }
  .give__freq .give__opt input:hover + span { color: var(--ink); }
  .give__freq .give__opt input:focus-visible + span { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
  .give__freq .give__opt input:checked + span { background: var(--forest); color: #fff; }

  /* The chip is the recommendation. It reads on the sand track and on the
     forest pill, so it carries its own ground either way. */
  .give__chip {
    font-size: var(--fs-3xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    background: var(--forest-wash);
    color: var(--forest);
    border-radius: var(--r-pill);
    padding: .2rem .5rem;
    white-space: nowrap;
  }
  @media (max-width: 400px) {
    .give__chip { display: none; }
  }

  /* --- Why this frequency: changes with the toggle, server-rendered both ways --- */
  .give__why {
    margin: var(--sp-4) 0 0;
    background: var(--sand);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    font-family: var(--font-read);
    font-size: var(--fs-sm);
    line-height: var(--lh-read);
    color: var(--ink-2);
  }
  /* Without :has() only the default frequency's line renders — never both,
     never the wrong one. */
  .give__why--alt { display: none; }
  @supports selector(:has(*)) {
    .give:has([value="monthly"]:checked) .give__why--once,
    .give:has([value="once"]:checked) .give__why--monthly { display: none; }
    .give:has([value="monthly"]:checked) .give__why--monthly,
    .give:has([value="once"]:checked) .give__why--once { display: block; }
  }

  /* --- Amounts --- */
  .give__amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
  @media (max-width: 359px) {
    .give__amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .give__amounts .give__opt span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-height: 68px;
    padding: .6rem .4rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--ink);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
  }
  .give__amounts .give__opt small {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--fs-3xs);
    font-weight: 600;
    line-height: 1.3;
    color: var(--muted);
    text-wrap: balance;
  }
  .give__amounts .give__opt input:hover + span { border-color: var(--ink-2); }
  .give__amounts .give__opt input:focus-visible + span { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
  /* Selected is a tint with a strong edge, not a solid fill: the amount stays
     the most legible thing in the tile. The edge measures 4.58:1 on its own
     fill and 5.23:1 on the card, so it carries the state without the text. */
  .give__amounts .give__opt input:checked + span {
    background: var(--ember-wash);
    border-color: var(--ember);
    /* Thickens the edge without changing the box, so the selected state is
       carried by weight as well as by colour. */
    box-shadow: inset 0 0 0 1px var(--ember);
  }
  .give__amounts .give__opt input:checked + span small { color: var(--ink-2); }

  /* The custom field is always present. Where :has() is supported it stays
     out of the way until "Other" is chosen; where it is not, it is simply
     always visible, which is still correct. */
  .give__custom { margin-top: var(--sp-4); }
  .give__custom label { display: block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: .45rem; }
  .give__custom-wrap { position: relative; }
  .give__custom-wrap::before {
    content: "$";
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--muted);
    pointer-events: none;
  }
  .give__custom .input { padding-left: 2.1rem; font-family: var(--font-mono); }
  .give__custom .hint { margin: .45rem 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
  @supports selector(:has(*)) {
    .give:not(:has(#give-amount-other:checked)) .give__custom { display: none; }
    /* The field only appears once "Other" is chosen, so the instruction to
       choose it is only needed in the fallback. */
    .give__custom .hint { display: none; }
  }

  .give__submit { margin-top: var(--sp-2); }
  .give__note {
    margin: var(--sp-4) 0 0;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    display: flex;
    gap: .45rem;
    align-items: flex-start;
    line-height: 1.5;
  }
  .give__note svg { flex: none; margin-top: .1rem; }

  .give__alert {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    background: var(--ember-wash);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-5);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink);
  }
  .give__testmode {
    margin-bottom: var(--sp-5);
    padding: var(--sp-3) var(--sp-4);
    background: #FBF5E4;
    border-radius: var(--r-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: #7A5200;
  }

  /* --- Thank-you receipt --- */
  .receipt {
    background: var(--forest-wash);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    display: grid;
    gap: var(--sp-3);
  }
  .receipt dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem var(--sp-5); margin: 0; }
  .receipt dt { font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--ink-2); align-self: center; }
  .receipt dd { margin: 0; font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 700; color: var(--ink); }

  /* ============================================================
     FOOTER
     ============================================================ */
  .ftr { background: var(--forest-deep); color: var(--text-on-dark); padding: var(--sp-10) 0 var(--sp-5); }
  .section--forest + .ftr { padding-top: 0; }
  .ftr__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: var(--sp-7); }
  .ftr h2 {
    font-family: var(--font-ui);
    font-size: var(--fs-3xs);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--ember-light);
    margin-bottom: var(--sp-4);
    font-weight: 800;
  }
  .ftr ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; font-size: var(--fs-sm); }
  .ftr a:not(.btn) { color: var(--text-on-dark); text-decoration: none; }
  .ftr a:not(.btn):hover { color: var(--ember-light); text-decoration: underline; }
  .ftr__logo { background: rgba(251, 250, 248, .96); border-radius: var(--r-md); padding: .55rem .7rem; display: inline-block; margin-bottom: var(--sp-4); }
  .ftr__logo img { height: 44px; width: auto; }
  .ftr__mission { font-size: var(--fs-sm); color: var(--text-muted-on-dark); margin: 0 0 var(--sp-4); }
  .ftr__legal { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-muted-on-dark); margin: 0; }
  .ftr__base {
    margin-top: var(--sp-8);
    padding-top: var(--sp-5);
    border-top: 1px solid rgba(244, 246, 240, .18);
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    font-size: var(--fs-2xs);
    color: var(--text-muted-on-dark);
    font-family: var(--font-mono);
  }
  .ftr__base ul { flex-direction: row; gap: var(--sp-4); flex-wrap: wrap; }
  .ftr__base a:not(.btn) { color: var(--text-muted-on-dark); }
  @media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }

  .to-top { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-2xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted-on-dark); text-decoration: none; }
  .to-top:hover { color: var(--ember-light); }
}

@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .stack { display: flex; flex-direction: column; }
  .stack-1 { gap: var(--sp-1); } .stack-2 { gap: var(--sp-2); } .stack-3 { gap: var(--sp-3); }
  .stack-4 { gap: var(--sp-4); } .stack-5 { gap: var(--sp-5); } .stack-6 { gap: var(--sp-6); }
  .row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
  .row-2 { gap: var(--sp-2); } .row-3 { gap: var(--sp-3); }
  .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); }
  .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); }
  .mt-8 { margin-top: var(--sp-8); }
  .mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
  .measure { max-width: var(--measure); }
  .measure-short { max-width: var(--measure-short); }
  .text-muted { color: var(--text-muted); }
  .text-sm { font-size: var(--fs-sm); }
  .text-center { text-align: center; }
  .center { margin-inline: auto; }
  .no-list { list-style: none; padding: 0; margin: 0; }
  .full-width { grid-column: 1 / -1; }
  [hidden] { display: none !important; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  @page { margin: 18mm 16mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  .hdr, .ftr, .nav-overlay, .action-bar, .rail__actions, .skip, .toc-wrap,
  .press-strip, .to-top, .filters, .pager, .section--forest, form { display: none !important; }
  .article-shell, .index-shell { display: block; padding: 0; }
  .prose, .measure { max-width: none; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .callout { border: 1pt solid #000; background: none; break-inside: avoid; }
  figure.fig, table.data, .row-research, ol.citations li { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .badge { border: 1pt solid #000; background: none !important; color: #000 !important; }
  table.data thead { display: table-header-group; }
}

@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .card, .resource, .callout, .tile { border: 1px solid CanvasText; }
  .bar__fill { background: Highlight; }
}
