/* ============================================================
   HFA Draft 6 (Oct 29 2026) — the palette round. Forked from Draft 5.4's
   d5.css (src/hfa-site-draft-5/, preserved). Layout, type, spacing and
   photo placement are Draft 5.4's, unchanged; only color moved:

   - Every color is a token. css/palettes.css (generated by
     tools/draft6-build/palettes.py) sets the tokens per palette on
     html[data-pal], and grounds every section by its data-s key.
   - Text colors are contextual. --ink, --soft, --label, --line,
     --line-strong, --eyebrow, --link and --well are redefined on each
     ground (the light set on light grounds, the dark set on dark ones), so
     a component reads them and needs no ".g-dark .x" override. Light cards
     on any ground (the widget, Salsa, the modal, Home's campaign cards)
     reset to the light set.
   - Textures and illustrations are masks painted in a palette color
     (--tex-ink, --illo), so each palette sets its own pattern and tone.

   The Draft 5 notes below are kept for the history of the layout.

   HFA Draft 5 (Oct 8 2026) — Evin's Draft 4.2 review applied
   (docs/draft-5-notes-2026-10-08.md), forked from Draft 4.2 (css/d4.css in
   src/hfa-site-draft-4/, preserved). Draft 4 was the register shift from the
   Oct 6 inspiration board: quiet pale grounds, plain photographs, a short
   nav with a drawer, alternating image/text layouts with a lot of air.

   Picks, written straight in (their switches are retired, the losing
   options' CSS, markup and assets gone):
     palette          2 Linen (the only palette)
     labels           ochre: #8C5F00 on light grounds, #E0A83F on dark
     dark texture     contour
     nav              B, modified (A-style middle links)
     home hero        A
     other campaigns  list-detail (rows below the split breakpoint)
     chapter eyebrows label

     card illustrations  Full (v5.1)
     Take Action head    D (v5.1)
     page heads          two, fixed (v5.2): Ranch's dark band over a
                         split; the centered dark head, no image, on
                         Record, About and Take Action (.subhead-d)
     image-and-copy rows text centered on the image (v5.2, the standard)

   No switches are left (v5.2 retired the head switch). The inline script
   in <head> (tools/draft5-build/common.py) still writes any future
   switch onto <html> before first paint.

   v5.1 (Evin's Draft 5 review): head B's text side is on the dark ground;
   the nav's links sit right, beside the buttons; the mosaic loops on its
   own; list rules on light grounds darken (--line-strong).

   v5.2 (Evin's Draft 5.1 review): two fixed page heads; alt rows center
   their text; Ranch's On film is an inset image, without the scroll zoom;
   About's Mission cards are photographs.

   v5.3 (Evin's Draft 5.2 review): splits are 70vh; the nav's links sit
   12px further from the buttons; Home's card links draw out on hover; On
   film zooms on hover; the land split's icons are ochre; Take Action's
   list and detail get more padding; the veal bar works on pale. Second
   pass (Evin's Draft 5.3 review): splits are 60vh minimum; Donate's cards
   share About's photo card (.photo-card); the bar's track is dark behind
   its stripes; kicker icons take the label color.

   Label ochre (v4.2, measured): #8C5F00 is 5.46:1 on white and 4.62:1 on
   pale in Linen. Its hue (~41°) keeps it apart from Linen's persimmon
   buttons (~18°); the two are close in lightness (1.03:1), so the hue does
   the separating. On dark grounds the label goes to #E0A83F (5.68:1 on
   Linen's dark). Olive keeps the neutral on-dark label (#E0A83F is only
   3.2:1 on Linen's olive).

   Type: Newsreader (display) + Public Sans (labels, body). Freight Display
   and Proxima Nova are the intended faces (both in Squarespace's picker);
   they wait on an Adobe Fonts kit.
   ============================================================ */

/* ---------- tokens ----------
   Defaults are Linen (Draft 5.4's palette, palette 0); palettes.css
   overrides every one per palette. Absolute tokens end in -l (for light
   grounds) or -d (for dark ones); the contextual names below them are what
   components use. */
:root {
  --g-white: #FDFCFA; --g-pale: #ECE9E4; --g-dark: #3A3530; --g-olive: #5E5C3C; --g-oat: #E3D9C6;
  --ink-l: #2E2A26; --soft-l: #5E5750; --label-l: #6E665B; --line-l: rgba(46, 42, 38, 0.14); --line-strong-l: rgba(46, 42, 38, 0.26); --eyebrow-l: #8C5F00;
  --ink-d: #F4F2EC; --soft-d: rgba(244, 242, 236, 0.74); --label-d: rgba(244, 242, 236, 0.62); --line-d: rgba(244, 242, 236, 0.22); --eyebrow-d: #E0A83F;
  --action: #B4481A; --action-deep: #973A12; --action-ink: #FFFFFF; --action-soft: #E8875B;
  --sky: #E8DED1; --illo: #938E78; --shade: #2C2824; --scrim: 20, 18, 15; --support: #5E5C3C; --card: var(--g-white);

  /* contextual (light by default) */
  --ink: var(--ink-l); --soft: var(--soft-l); --label: var(--label-l); --line: var(--line-l); --line-strong: var(--line-strong-l);
  --eyebrow: var(--eyebrow-l); --link: var(--action); --link-hover: var(--action-deep); --well: var(--g-pale);
  /* old names, kept for photo overlays and a few fixed light-on-dark spots */
  --on-dark: var(--ink-d); --on-dark-soft: var(--soft-d); --on-dark-label: var(--label-d); --line-light: var(--line-d); --eyebrow-dark: var(--eyebrow-d);
  --radius: 5px;                        /* contained image/video frames (v4.2: from 10px) */

  --serif: "Newsreader", Georgia, serif;
  --sans: "Public Sans", -apple-system, "Helvetica Neue", sans-serif;

  --wide: 1440px;
  --container: 1240px;
  --narrow: 640px;
  --pad: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
  --sec: clamp(88px, 11vw, 168px);    /* section padding: airy on purpose */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 18px;                    /* v4.1: from 19px; the ramp scales with it */
  line-height: 1.65;
  color: var(--ink);
  background: var(--g-white);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.container-wide { max-width: var(--wide); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section[id], [id].story { scroll-margin-top: var(--nav-h); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 18px; z-index: 300; }
.skip-link:focus { left: 0; }
.nowrap { white-space: nowrap; }

/* ---------- grounds and textures (Draft 6) ----------
   Every section carries a data-s key; palettes.css sets its ground's
   variables: --bg, the contextual text set, and the texture (--tex, a mask
   image; --tex-ink, its color; --tex-size; --tex-op). The texture sits on
   a z-index:-1 pseudo-element inside an isolated section, so no child
   needs repositioning (and position:sticky children keep working). White
   grounds never carry a texture (Evin's rule, Oct 7). */
[data-s] { background-color: var(--bg, var(--g-white)); color: var(--ink); }
:where(section, footer)[data-s] { position: relative; isolation: isolate; }
:where(section, footer)[data-s]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--tex-ink, transparent); opacity: var(--tex-op, 0);
  -webkit-mask-image: var(--tex, none); mask-image: var(--tex, none);
  -webkit-mask-size: var(--tex-size, 600px); mask-size: var(--tex-size, 600px);
  -webkit-mask-repeat: var(--tex-repeat, repeat); mask-repeat: var(--tex-repeat, repeat);
  -webkit-mask-position: var(--tex-pos, 0 0); mask-position: var(--tex-pos, 0 0);
}
/* Light cards keep light-ground colors on any ground. */
.widget, .salsa-live, .modal-card, .cb-card, .signup-input {
  --ink: var(--ink-l); --soft: var(--soft-l); --label: var(--label-l); --line: var(--line-l); --line-strong: var(--line-strong-l);
  --eyebrow: var(--eyebrow-l); --link: var(--action); --link-hover: var(--action-deep); --well: var(--g-pale); --icon: var(--label-l);
}
.on-photo {
  --ink: #fff; --soft: rgba(255, 255, 255, 0.9); --label: rgba(255, 255, 255, 0.78); --eyebrow: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.4); --link: var(--action-soft);
}

/* v5.4: What it changed over a Suwanna photo (Evin's pick, after a round
   of switches recorded in decisions.md 2026-10-29): the canyon, slightly
   blurred, under a heavy shade a quarter darker than the dark ground, so
   it lands at the footer's darkness. The contour texture drops out. The bar
   is the eyebrow gold (an achievement, not an alarm), in medium lines. */
.ledger-sec { overflow: hidden; --bar: var(--eyebrow-dark); --bar-line: 3px; --bar-step: 16px; --bar-border: 2px; }
.ledger-sec::before { content: none; }
.ledger-photo { position: absolute; inset: -24px; z-index: -2; background-size: cover; background-position: 50% 50%; filter: blur(2px); }
.ledger-photo.bg-loaded { background-image: url("../img/rec-valley.f1b1d79b89.jpg");
  background-image: image-set(url("../img/r/rec-valley-1600.26040150cf.avif") type("image/avif"), url("../img/r/rec-valley-1600.33096c6335.webp") type("image/webp"), url("../img/rec-valley.f1b1d79b89.jpg") type("image/jpeg")); }   /* blurred and shaded: 1600px is plenty (perf pass) */
.ledger-photo::after { content: ""; position: absolute; inset: 0; background: var(--shade); opacity: 0.74; }

.sec { padding: var(--sec) 0; }
.sec-tight { padding: calc(var(--sec) * 0.6) 0; }
/* v5.3 (second pass): the head's lede, moved to the top of the list section, one centered column in the H3 style (Evin). */
/* v5.3: .head-center (below) resets margin to 0 auto, so the space is set at its specificity. */
.sec-half-top { padding-top: calc(var(--sec) * 0.5 + 20px); }   /* v5.2: Take Action's list (Evin: half). v5.3: +20px (Evin) */

/* ---------- type ----------
   v4.1: body 18px (from 19), the ramp scaled with it; H1 and lead down
   noticeably; stat numerals at H3 size. */
/* Labels: the wide, airy uppercase sans that replaces the mono slug.
   14px stays the floor for small display text. Ochre (Draft 5). */
.label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
  line-height: 1.4;
}

.h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(23px, 2.1vw, 28px);
  font-weight: 500;
  line-height: 1.15;
}
/* Air between an eyebrow (label or kicker) and the heading it introduces,
   on every page (v4.1: on Track Record they touched). */
:is(.label, .kicker, .eyebrow) + :is(.h1, .h2, .h3, h1, h2, h3) { margin-top: 24px; }
.lede { font-size: clamp(18px, 1.45vw, 20px); line-height: 1.55; color: var(--soft); }
.body { color: var(--soft); max-width: 60ch; }
.h1 + .lede, .h2 + .body, .h2 + .lede, .h3 + .body, .body + .body, .lede + .body { margin-top: 20px; }
.center { text-align: center; }
.center .body, .center .lede { margin-left: auto; margin-right: auto; }
.head-center { max-width: 820px; margin: 0 auto; text-align: center; }
.head-center .body, .head-center .lede { margin-left: auto; margin-right: auto; }

.text-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--link);
  padding-bottom: 1px;
}
.text-link:hover { color: var(--link-hover); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn .ph { width: 18px; height: 18px; }
.btn-lg { padding: 19px 34px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-action { background: var(--action); color: var(--action-ink); }
.btn-action:hover { background: var(--action-deep); }
/* Draft 6: one outline button that reads its ground (btn-line-light is an alias). */
.btn-line, .btn-line-light { border-color: color-mix(in srgb, var(--ink) 42%, transparent); color: var(--ink); background: transparent; }
.btn-line:hover, .btn-line-light:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.center .btn-row, .head-center .btn-row { justify-content: center; }
/* Round 8: rows the hover arrow would break are stacked from the start (main.js). */
.btn-row.btn-row-stack { flex-direction: column; align-items: flex-start; }
:is(.center, .head-center) .btn-row.btn-row-stack { align-items: center; }

.ph { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* ---------- media ----------
   Photographs are plain: no frames, no shadows (Evin, Oct 7). A frame clips
   its image so hover zoom and scroll zoom stay inside it. A modest bottom
   gradient appears only where text sits on a photo (.on-photo). v5.2: the
   scroll zooms are gone (Record's Oprah image left with its section; Ranch's
   film zoom was dropped). */
.media { position: relative; overflow: hidden; display: block; background: var(--g-pale); border-radius: var(--radius); }
/* Focal point (v4.1): derivatives are uncropped; the layout crops around
   --focus, set per use in the generator (data-focus). */
.media-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: var(--focus, center);
  transition: transform 0.4s ease-in-out;
}
/* Full-bleed frames stay square (v4.1 default): split image halves. v5.2:
   a split with one photo holds it still, filling the half. */
.split-media .media { border-radius: 0; }
.split-media > .media { height: 100%; }
.media-43 { aspect-ratio: 4 / 3; }
.media-32 { aspect-ratio: 3 / 2; }
.media-45 { aspect-ratio: 4 / 5; }
.media-169 { aspect-ratio: 16 / 9; }
.media-wide { aspect-ratio: 16 / 9; }
/* Captions (v4.1): smaller than body and lighter — the label tone at a
   regular weight, which keeps AA on white and pale. */
.caption, figcaption.caption { margin-top: 10px; font-size: 13px; font-weight: 400; color: var(--label); letter-spacing: 0.02em; }

/* Hover zoom on linked images only — the zoom is the "this is a link" signal.
   JGI's values, verified Oct 6: scale(1.1) over 0.4s ease-in-out. The
   transition sits on every .media-img (above), so nothing jumps (v4.1: the
   Next band did). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.media:hover .media-img, .media-link:hover .media-img,
  a:hover > .media .media-img, a:hover .camp-photo .media-img,
  button:hover .camp-photo .media-img, button.media-link:hover .media-img { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .media-img { transition: none; } }

.on-photo { color: #fff; }
.photo-fade {
  position: absolute; inset: auto 0 0 0; height: 60%;
  background: linear-gradient(180deg, rgba(var(--scrim), 0) 0%, rgba(var(--scrim), 0.62) 100%);
  pointer-events: none;
}

/* ---------- nav ----------
   Farm Sanctuary's arrangement: wordmark, three links, Get Updates + Donate,
   then ••• for the drawer. At the top of the homepage (hero A) it sits
   transparent on the photo; everywhere else it's solid. Scrolling down hides
   it; scrolling up brings the same bar back (POV / Walker Warner). Keyboard
   focus inside it always shows it. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  /* Draft 6: the ground comes from data-s="nav" (v4.1: no bottom border) */
  transition: transform 0.35s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav:focus-within { transform: none; }
.nav-inner {
  max-width: var(--wide); height: 100%; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px;
}
.wm { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; justify-self: start; }
.wm strong { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.02em; }
.wm-dot { font-size: 14px; opacity: 0.6; transform: translateY(-3px); }
.wm-name { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: clamp(15px, 2.25vw, 33px); margin-right: 12px; }   /* v5.1: right, beside the buttons; 25% closer. v5.3: 50% more room before the buttons (24px → 36px; Evin) */
.nav-links a { font-size: 16px; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: currentColor; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-right .btn { padding: 12px 20px; font-size: 15px; }
.nav-more {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: none; color: inherit; cursor: pointer; border-radius: 50%;
}
.nav-more:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

html .nav.is-over-photo[data-s] { background: transparent; --ink: #fff; color: #fff; }

/* Nav B (v4.2, Evin's sketch; the pick in Draft 5, modified): the
   wordmark's name in the serif, in caps, vertically centered on HFA (the
   footer wordmark follows; the drawer's is "HFA" alone); the middle links
   back in nav A's style (Draft 5, Evin); a bold ••• (Phosphor's bold
   weight, Evin's exception to the regular-weight rule); a faint shadow
   under the bar once the page has scrolled. */
.wm { align-items: center; }
.wm-dot { transform: none; }
.wm-name { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
/* v5.1: the name stays beside HFA at every width. Where one line doesn't
   fit, it stacks on two ("Humane Farming / Association") at a smaller size
   and the dot goes (see responsive). The drawer sets it under HFA. */
.wm-name > span { white-space: nowrap; }
.nav-more .ph { width: 34px; height: 34px; }
.nav.is-scrolled:not(.is-hidden):not(.is-over-photo) { box-shadow: 0 2px 14px rgba(var(--scrim), 0.09); }
.nav.is-over-photo .btn-line { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.nav.is-over-photo .btn-line:hover { border-color: #fff; }
.nav.is-over-photo .nav-more:hover { background: rgba(255, 255, 255, 0.12); }
.nav.is-over-photo::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--scrim), 0.42), rgba(var(--scrim), 0));
}

/* ---------- drawer ----------
   Madison Square Park's: the page dims, a dark panel, primary links large and
   centered with dividers, social row. Walker Warner's hierarchy: secondary
   links in a single column at the bottom, also centered. No search. */
.drawer { position: fixed; inset: 0; z-index: 220; }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(15, 14, 12, 0.6); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  display: flex; flex-direction: column;
  padding: 22px 36px 32px;
  overflow-y: auto;
  animation: drawer-in 0.32s cubic-bezier(.16, 1, .3, 1);
}
/* v5.4 (Evin's pick, after a Dark/Olive switch recorded in decisions.md
   2026-10-29): the menu on olive with the speckle, as on the olive tries.
   The panel scrolls, so the texture is fixed to the panel's box. */
/* Draft 6: the ground and texture are the palette's (data-s="drawer"). */
.drawer-panel { isolation: isolate; }
.drawer-panel::before {
  content: ""; position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: -1; pointer-events: none;
  background-color: var(--tex-ink, transparent); opacity: var(--tex-op, 0);
  -webkit-mask: var(--tex, none) var(--tex-repeat, repeat) var(--tex-pos, 0 0) / var(--tex-size, 600px); mask: var(--tex, none) var(--tex-repeat, repeat) var(--tex-pos, 0 0) / var(--tex-size, 600px);
}
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Draft 5: the drawer's wordmark is "HFA" alone, centered over the panel;
   the close button keeps the right edge. */
.drawer-top { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; }
.drawer-top .wm { grid-column: 2; justify-self: center; }
.drawer-top .drawer-close { grid-column: 3; }
.drawer-top .wm strong { font-size: 22px; }
/* v5.1: the name under HFA, centered, wrapping to two lines if it must. */
.wm-below { flex-direction: column; gap: 4px; text-align: center; }
.wm-below .wm-name { font-size: 11px; letter-spacing: 0.14em; line-height: 1.35; white-space: normal; }
.drawer-close {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 50%;
  background: none; color: var(--ink); cursor: pointer;
}
.drawer-close:hover { border-color: var(--ink); }
.drawer-primary { list-style: none; margin-top: 44px; text-align: center; }
.drawer-primary li { border-bottom: 1px solid var(--line); }
.drawer-primary li:first-child { border-top: 1px solid var(--line); }
.drawer-primary a {
  display: block; padding: 17px 0;
  font-family: var(--serif); font-size: 27px; line-height: 1.2;
  text-decoration: none;
}
.drawer-primary a:hover { color: var(--link); }
.drawer-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.drawer-ctas .btn { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
.drawer-bottom { margin-top: auto; padding-top: 48px; text-align: center; }
.drawer-secondary { list-style: none; }
.drawer-secondary a { display: inline-block; padding: 5px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
.drawer-secondary a:hover { color: var(--ink); }
.social { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.social a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--soft);
}
.social a:hover { color: var(--ink); border-color: var(--ink); }
.social .ph { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .drawer-panel { animation: none; } }

/* ---------- the slow-zoom slider (one component, v4.1) ----------
   The home hero, every page head, every split. A 2s crossfade and a 9s
   zoom, 7s per photo. Both are CSS animations, so pausing is one property:
   .is-paused sets animation-play-state on every slide, which freezes a
   crossfade mid-way as well as the zoom; JS stops the clock and resumes it
   with the time that was left. The pause control is visually hidden until
   the slider's region is hovered or the control has keyboard focus (it
   always exists, for WCAG 2.2.2). Reduced motion: the first photo, still,
   and no control (CSS only; the JS runs the same). */
.slider { position: relative; overflow: hidden; background: var(--g-dark); }
.has-slider { position: relative; overflow: hidden; }
.has-slider > .slider { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: var(--focus, center 40%);
  opacity: 0;
}
.slide.is-active, .slide.is-prev { opacity: 1; }
.slide.is-active { z-index: 2; }
.slide.is-prev { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-zooming { animation: slide-zoom 9s linear forwards; }
  .slide.is-entering { animation: slide-in 2s ease-in-out both, slide-zoom 9s linear forwards; }
  @keyframes slide-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }
  @keyframes slide-in { from { opacity: 0; } to { opacity: 1; } }
}
.slider.is-paused .slide { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .slide { opacity: 0; }
  .slide:first-child { opacity: 1; z-index: 3; }
  .slide:not(:first-child) { display: none; }
  .slider-pause { display: none; }
}
/* Round 5 (Evin, 2026-11-20): no circle or border; the bare icon, filled
   white and larger, at 50% until the pointer is on the button itself. A
   soft shadow keeps it readable on pale photos. */
.slider-pause {
  position: absolute; z-index: 4; right: 16px; bottom: 16px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: none; border-radius: 4px; background: none; color: #fff; cursor: pointer;
  opacity: 0.5; transition: opacity 0.2s ease;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
.slider-pause .ph { width: 26px; height: 26px; fill: currentColor; }
.slider-pause:hover, .slider-pause:focus-visible { opacity: 1; }

/* Hero A — full-bleed, full height; heading, paragraph and buttons stacked
   in one container, bottom-left (v4.1). */
.hero-a { position: relative; height: 100vh; height: 100svh; min-height: 600px; margin-top: calc(-1 * var(--nav-h)); }
.hero-a .slider { position: absolute; inset: 0; }
.hero-a .photo-fade { height: 72%; z-index: 3; background: linear-gradient(180deg, rgba(var(--scrim), 0) 0%, rgba(var(--scrim), 0.45) 45%, rgba(var(--scrim), 0.72) 100%); }
.hero-a .slider-pause { right: var(--pad); bottom: clamp(56px, 8vh, 96px); }
.hero-a-inner {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  max-width: var(--wide); margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 8vh, 96px);
  pointer-events: none;
}
.hero-a-stack { max-width: 640px; pointer-events: auto; }
.hero-a .h1 { max-width: 12ch; }
.hero-a .lede { color: rgba(255, 255, 255, 0.9); max-width: 44ch; }
.hero-a .h1 + .lede { margin-top: 18px; }
.hero-a .btn-row { margin-top: 28px; }


/* ---------- page heads (v5.2) ----------
   Two, each page fixed on its own (Evin's Draft 5.1 review; the head switch
   and heads A, B and C are retired):
     .subhead-d — Draft 5's head D without its slider: one centered column
                  on the dark ground (label, H1, an optional lede). Record,
                  About, Take Action; Ranch's band (label and H1 only).
     Ranch      — that band, then a split (.ranch-intro), text left.
   Privacy's head keeps head A's padding (.subhead-a-head) on dark. */
.subhead-a-head { padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 4.5vw, 64px); }
.subhead-d { padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 7vw, 104px); }
.subhead-d .lede { margin-top: 20px; max-width: 46ch; }

/* ---------- layout 1: split (L'Arctique) ----------
   v4.1: image on one side running the slider, text on the other. The image
   half holds still while the text half scrolls. .split-walker is the
   single-idea version: about a screen tall. v4.2: a split is always full
   bleed, divided down the middle (Evin); the inset .split-inline is gone. */
/* The halves sit in their own grid so the sticky slider stops at the split's
   end, not at the section's. */
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* v5.3: 70vh, from a screen tall (Evin). The section is at least 70vh, the
   text centered in it; where the text needs more (Ranch's Wide open
   spaces, Record's boycott at 900px tall), the section grows and the image
   half stretches with it, so no ground shows beside the image. The image no
   longer sticks: at 70vh there's nothing for the text to scroll past. */
/* v5.3, second pass: 60vh minimum (Evin). The generator sets each split
   photo's vertical focus to 50%, so a crop keeps the photo's vertical center. */
.split-grid { min-height: 60vh; min-height: 60svh; }
.split-media { position: relative; }
/* v5.4: 50% more vertical padding (Evin), so long text keeps a buffer from
   the split's edges; the 60vh minimum stands. Then 50px more (Evin), then
   on the viewport's height (Evin), so short windows and small laptops
   don't get the full amount: 158px from about a 1130px-tall window up. */
.split-text { padding: clamp(64px, 14vh, 158px) clamp(28px, 6vw, 104px); display: flex; align-items: center; }
.split-text-inner { max-width: 34em; }
.split.is-flip .split-media { order: 2; }

/* ---------- layout 2: single column (Nakashima) ----------
   Wide image, narrow text. Image width from Walker Warner: well past the
   text column, short of the viewport. */
.single-head { max-width: 820px; margin: 0 auto; text-align: center; padding: 0 var(--pad); box-sizing: content-box; }
.single-media { max-width: 1120px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--pad); box-sizing: content-box; }
.single-text { max-width: 34em; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--pad); box-sizing: content-box; }
.single-text .body { max-width: none; }

/* ---------- layout 3: alternating (De Reus) ----------
   Image and text side by side, sides alternating, lots of air. v5.2: the
   text is centered on its image in every row (Evin: Home's Suwanna Ranch
   row, "the standard for this section type"); the low offset that kept the
   rows from reading as a grid is gone, and with it v5.1's .is-center. */
.alt { display: grid; gap: clamp(96px, 12vw, 180px); }
.alt-row { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.alt-media { grid-column: 1 / span 6; grid-row: 1; }
.alt-text { grid-column: 8 / span 4; grid-row: 1; }
.alt-row.is-flip .alt-media { grid-column: 7 / span 6; }
.alt-row.is-flip .alt-text { grid-column: 2 / span 4; }
.alt-head + .alt { margin-top: clamp(64px, 8vw, 120px); }

/* ---------- illustrations ----------
   One muted tone everywhere (illo-*-muted.png). v4.1: full strength
   everywhere, never under text, with two exceptions —
     cards  — Donate › Other ways to give: Full (v5.1; the full / faint
              switch is retired), heading each card, centered with its
              text. (About's Mission cards are photographs, v5.2.)
     ambient — .illo-amb (the Board sheep) is always faint, at twice
              Draft 4's faint darkness (0.12 → 0.24).
   No component depends on an illustration: new campaigns won't have one.
   The engravings are black-on-alpha masters baked to one color, painted as
   background-images (mask-image stays retired — see Draft 3, 8/29 round 3). */
/* Draft 6: painted as masks in the palette's illustration tone (--illo);
   main.js sets --illo-src from data-bg. */
.illo { background-color: var(--illo); pointer-events: none;
  -webkit-mask: var(--illo-src, none) no-repeat center / contain; mask: var(--illo-src, none) no-repeat center / contain; }

/* panel: the media half of an alt row */
.illo-panel { width: 100%; aspect-ratio: 4 / 3; background-position: center; }

/* card: retired in v5.3 (Donate's cards take photos, as About's did in v5.2). */

/* ambient: atmosphere for a band, behind its content */
.illo-amb { position: absolute; z-index: -1; opacity: 0.24; }

/* ---------- "Since 1985" seal ----------
   Sits across the seam between two light sections. */
.seal {
  position: absolute; z-index: 5; top: 0; transform: translate(-50%, -50%) rotate(15deg);  /* v4.1 */
  width: clamp(112px, 11vw, 148px); aspect-ratio: 1;
  color: var(--ink);
}
.seal svg { width: 100%; height: 100%; display: block; overflow: visible; }
.seal-left { left: max(calc(var(--pad) + 60px), calc((100vw - var(--container)) / 2 + var(--pad) + 60px)); }
.seal-right { left: min(calc(100vw - var(--pad) - 60px), calc((100vw + var(--container)) / 2 - var(--pad) - 60px)); }
.seal text { font-family: var(--sans); font-weight: 600; font-size: 10.5px; letter-spacing: 2.6px; fill: currentColor; }
.seal .seal-hfa { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: 1px; }
.seal .seal-year { font-size: 9px; letter-spacing: 2.4px; }
.seal-flip { transform: translate(-50%, -50%) rotate(-15deg); }   /* About (Draft 5): leans the other way */

/* ---------- stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 5vw, 72px); margin-top: 44px; }
/* v4.1: numerals at H3 size (always smaller than the H2 above), plain
   numbers so they align; labels take the .label treatment (markup adds
   the class). */
.stat-num { font-family: var(--serif); font-size: clamp(23px, 2.1vw, 28px); line-height: 1.1; font-weight: 500; }
.stat-label { margin-top: 8px; }
.stats-center { justify-content: center; text-align: center; }
/* About's in equal columns. v5.2: equal columns, one per stat (--n, from
   the generator), on Ranch too. v5.3: Ranch's H2-size numerals are gone;
   every stat is H3 size (Evin). */
.stats-even { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
/* About's four columns, centered and capped. v5.1: ~25% closer (184px →
   138px of white space between labels at 1440, a 928px row). v5.2: ~40%
   closer again (Evin), measured at 1440 as the white space between
   labels: 141px → 85px (−40%), numerals 169px → 113px. The row alone
   can't get there (below ~780px "refuge acres" wraps), so the row narrows
   to 752px and the column gap drops to 24px (from 72px), above 960px. */
#mission .stats-even { max-width: 928px; margin-left: auto; margin-right: auto; }
@media (min-width: 961px) { #mission .stats-even { max-width: 752px; column-gap: 24px; } }

/* ---------- photo mosaic (Draft 5; v5.1) ----------
   Home › In Our Care and Ranch › Who Lives Here: two full-bleed rows,
   portrait and landscape crops mixed, no text. v5.1 (Evin): the rows loop
   on their own, slowly, row one left and row two right; 5px of white
   between tiles and between the rows; rows 10% taller (170–360px → 187–
   396px). Each track holds its tiles twice, each tile with its 5px gap as
   a right margin, so -50% is exactly one set and the loop has no seam.
   main.js writes --dur from the set's width (a steady speed in px/s at
   every size); 180s stands in without it. The pause control is the
   slider's, shown on hover or focus. Reduced motion: still, no control. */
.mosaic-sec { padding-bottom: 0; }
.mosaic {
  --mh: clamp(187px, 23.1vw, 396px);
  position: relative;
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--g-white);
}
.mosaic-rows { display: grid; row-gap: 5px; overflow: hidden; }
.mosaic-row { overflow: hidden; }
.mosaic-track { display: flex; width: max-content; }
.mosaic-tile { flex: none; height: var(--mh); margin-right: 5px; background-size: cover; background-position: var(--focus, center); background-color: var(--g-pale); }
.mosaic-tile.is-p { aspect-ratio: 4 / 5; }
.mosaic-tile.is-l { aspect-ratio: 3 / 2; }
@media (prefers-reduced-motion: no-preference) {
  .mosaic-track { will-change: transform; animation: mosaic-left var(--dur, 180s) linear infinite; }
  .mosaic-row:last-child .mosaic-track { animation-name: mosaic-right; }
  .mosaic.is-paused .mosaic-track { animation-play-state: paused; }
  @keyframes mosaic-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
  @keyframes mosaic-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
}

/* ---------- signup ----------
   One band (v4.1; tucked is out): plain, on olive, no texture. */
/* Draft 3's horizon engraving (the mountains with the cows), full-width
   behind the whole section, dark ink on the olive. */
.signup { overflow: hidden; }
/* Perf pass (Nov 2026): the 415KB horizon waits until the band nears the
   viewport (main.js adds .bg-loaded); without JS it loads as before. */
html:not(.js) .signup::after, .signup.bg-loaded::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--horizon, #000); opacity: var(--horizon-op, 0.3);
  -webkit-mask: url("../img/footer-horizon-dark.2fbcd32d8e.png") no-repeat center bottom / cover; mask: url("../img/footer-horizon-dark.2fbcd32d8e.png") no-repeat center bottom / cover;
}
/* v4.2: the input and button sit flush, and the input has no border; its
   white fill carries it on the olive. Focus shows as an inset ring. */
.signup-form { display: flex; gap: 0; max-width: 560px; margin: 36px auto 0; }
.signup-input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 17px;
  padding: 14px 16px;
  border: none; border-radius: 2px 0 0 2px;
  background: var(--card); color: var(--ink);
}
.signup-form .btn { border-radius: 0 2px 2px 0; }
.signup-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- footer ---------- */
.footer { padding: 88px 0 40px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer .wm strong { font-size: 30px; }
.footer-tag { margin-top: 14px; color: var(--soft); max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .label { margin-bottom: 8px; }
.footer-col a { color: var(--soft); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 14px; color: var(--label); }
.footer .social { margin-top: 0; }

/* ---------- tags (Support / Oppose) ---------- */
.tag {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 9px; border: 1.5px solid; border-radius: 2px; line-height: 1.4; white-space: nowrap;
}
.tag-support { color: var(--support); border-color: var(--support); }
.tag-oppose { color: var(--link-hover); border-color: var(--link-hover); }   /* Draft 6: the ground's link-hover tone, AA on every light ground */
.on-photo .tag { color: #fff; border-color: rgba(255, 255, 255, 0.75); background: rgba(var(--scrim), 0.2); }

/* ---------- donate widget (ported) ---------- */
.give-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.give-provides { list-style: none; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.give-provides li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 7px 13px;
}
.give-provides .ph { width: 18px; height: 18px; }
.give-mail { margin-top: 32px; font-size: 16px; color: var(--soft); line-height: 1.7; }
.widget { background: var(--card); color: var(--ink); padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.widget-head { margin-bottom: 18px; }
.widget-freq { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.freq-btn { font-family: var(--sans); font-size: 16px; font-weight: 600; padding: 13px 10px; background: transparent; border: none; cursor: pointer; color: var(--soft); }
.freq-btn.is-selected { background: var(--ink); color: var(--g-white); }
.freq-note { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; opacity: 0.75; }
.widget-amounts { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amt-btn { font-family: var(--sans); font-size: 17px; font-weight: 600; padding: 14px 8px; background: transparent; border: 1.5px solid var(--line); border-radius: 2px; cursor: pointer; color: var(--ink); }
.amt-btn:hover { border-color: var(--ink); }
.amt-btn.is-selected { border-color: var(--ink); background: var(--g-pale); }
.widget .btn-block { margin-top: 18px; }
/* Under Continue, one layer (v4.1): the Charity Navigator row (mark and
   four stars, recolored to the palette, no year, no box) and one line. */
.widget-foot { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cn-row { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.cn-mark { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.cn-stars { display: inline-flex; gap: 3px; }
.cn-stars svg { width: 16px; height: 16px; fill: var(--ink); display: block; }   /* neutral: ink, per the palette */
.cn-row:hover .cn-mark { text-decoration: underline; text-underline-offset: 3px; }
.widget-legal { font-size: 13px; color: var(--label); text-align: center; }

/* ---------- campaigns (Draft 5) ----------
   Every campaign is a native <details> row with the campaign's id (works
   without JS; #id opens one), the featured three first, marked "Featured".
   List-detail (the Draft 5 pick) restyles the rows as a list on the left
   with a sticky detail panel on the right; JS moves the selected campaign's
   body into the panel, with its Oppose / Support tag. Below the split
   breakpoint it's rows, opening in place, and an open row shows its tag.
   The list itself carries no tags. v5.1: no "Featured" anywhere, no label
   over the list, and darker rules (--line-strong). */

.camp-list { position: relative; border-top: 1px solid var(--line-strong); }
.camp { border-bottom: 1px solid var(--line-strong); scroll-margin-top: calc(var(--nav-h) + 16px); }
.camp > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 24px; padding: 24px 4px; cursor: pointer; }
.camp > summary::-webkit-details-marker { display: none; }
.camp > summary:hover .camp-title { color: var(--action-deep); }
.camp-title { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.2; transition: color 0.15s ease; }
.camp-head .camp-title { display: block; }
.camp-title .ph { width: 22px; height: 22px; margin-right: 10px; vertical-align: -3px; color: var(--label); }
.camp-bill { display: block; margin-top: 4px; font-size: 15px; color: var(--label); }
.camp-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.camp > summary .camp-tags { display: none; }
.camp-caret { width: 22px; height: 22px; color: var(--label); transition: transform 0.2s ease; }
.camp[open] > summary .camp-caret { transform: rotate(180deg); }
.camp-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding: 4px 4px 44px; }
.camp-body p { font-size: 17px; color: var(--soft); max-width: 58ch; }
.camp-body p + p { margin-top: 14px; }
.camp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.camp-record { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--link); padding-bottom: 2px; }
.camp-share { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--soft); background: none; border: 1px solid var(--line); border-radius: 2px; padding: 8px 14px; cursor: pointer; }
.camp-share:hover { border-color: var(--ink); color: var(--ink); }
.camp-share .ph { width: 18px; height: 18px; }
/* Draft 6.1 (Oct 31): the live Salsa form, restyled with the site's tokens
   (ported from tools/salsa-embed-test/; decisions.md 2026-10-31). The widget
   renders into our DOM, no iframe; Salsa's script replaces the element whose
   id is the tId, so the hook is the .salsa-live wrapper around it, which also
   raises specificity over Salsa's own sli-styles.css (the !importants beat
   its inline-heavy rules). main.js keeps one form on the page at a time. */
/* Oct 31 (Evin): no box of its own; Salsa's content sits straight in the
   campaign's panel (or row), on its ground. */
.salsa-live { color: var(--ink); font-family: var(--sans); }
.salsa-note, .salsa-live .sli-loading-message { font-size: 13px; color: var(--label); font-style: italic; margin: 0; }
.salsa-live .sli-row { margin: 0 !important; max-width: none !important; }
.salsa-live .sli-columns { padding: 0 !important; }
.salsa-live .sli-form .sli-row > .sli-columns > .sli-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 10px; }
.salsa-live .sli-form .sli-row::before, .salsa-live .sli-form .sli-row::after { display: none !important; }   /* Salsa's clearfix would take grid cells */
.salsa-live .sli-form .sli-large-12 { grid-column: span 12; }
.salsa-live .sli-form .sli-large-6 { grid-column: span 6; }
.salsa-live .sli-form .sli-large-4 { grid-column: span 4; }
.salsa-live .sli-form [class*="sli-large-"] { width: auto !important; float: none !important; }
.salsa-live .sli-text, .salsa-live .sli-text * { font-family: var(--sans) !important; color: var(--soft) !important; font-size: 16px !important; line-height: 1.6 !important; background: none !important; }
/* Oct 31 (Evin): Salsa's headline (act name and number) is the panel's
   head: between our H3 and H2 in size, the H2's weight and tracking. Some
   are entered in Salsa as two headings in a row (SAFE: the act, then the
   bills); those run inline so they read as one. */
.salsa-live .sli-text :is(h1, h2, h3, h4, h1 *, h2 *, h3 *, h4 *) { font-family: var(--serif) !important; font-weight: 400 !important; color: var(--ink) !important; font-size: clamp(26px, 2.5vw, 34px) !important; line-height: 1.12 !important; letter-spacing: -0.01em; }
.salsa-live .sli-text :is(h1, h2, h3, h4) { margin: 0 0 20px !important; text-wrap: balance; }
.salsa-live .sli-text :is(h1, h2, h3, h4):has(+ :is(h1, h2, h3, h4)), .salsa-live .sli-text :is(h1, h2, h3, h4) + :is(h1, h2, h3, h4) { display: inline; margin: 0 !important; }
.salsa-live .sli-text :is(h1, h2, h3, h4) + :is(h1, h2, h3, h4)::after { content: ""; display: block; margin-bottom: 20px; }
.salsa-live .sli-text p { margin: 0 0 12px !important; }
.salsa-live .sli-form-field { margin: 0 0 12px; }
/* Oct 31: .sli-form on the label and input rules: each widget injects its
   own <style> (.id_<form> .sli-input, !important) after ours, which tied
   the shorter selectors and won on order. */
.salsa-live .sli-form .sli-label { display: block; font-size: 13px !important; font-weight: 600; letter-spacing: 0.02em; color: var(--label) !important; margin: 0 0 5px; font-family: var(--sans) !important; }
.salsa-live .sli-form .sli-input { width: 100% !important; height: auto !important; box-sizing: border-box; font: inherit !important; font-size: 16px !important; padding: 11px 12px !important; border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent) !important; border-radius: 2px !important; background: var(--card) !important; color: var(--ink) !important; box-shadow: none !important; margin: 0 !important; }   /* --card: each palette's white */
.salsa-live .sli-form .sli-input::placeholder { color: var(--label); opacity: 0.8; }
.salsa-live .sli-form .sli-input:focus { border-color: var(--ink) !important; outline: none; }
.salsa-live .sli-field-error { font-size: 13px; color: var(--action-deep) !important; }
/* Oct 31 (Evin): the letter preview has no box of its own. */
.salsa-live .sli-tl-letter-box { margin-top: 6px; padding: 0; background: none; border: none; font-size: 14px !important; line-height: 1.55; color: var(--soft); max-height: 220px; overflow: auto; }
.salsa-live .sli-tl-letter-box * { font-family: var(--sans) !important; font-size: 14px !important; color: var(--soft) !important; }
/* Oct 31 (Evin): "SUBMIT" shows as "Submit" (lowercase, then the first
   letter up; ::first-letter needs a block, hence not flex). Salsa's text is
   unchanged. */
.salsa-live .sli-button { display: block !important; width: 100%; text-align: center; margin-top: 14px !important; font-family: var(--sans) !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1; padding: 15px 26px !important; border-radius: 2px !important; border: none !important; background: var(--action) !important; color: var(--action-ink) !important; text-transform: lowercase !important; text-decoration: none !important; letter-spacing: 0 !important; }
.salsa-live .sli-button::first-letter { text-transform: uppercase; }
.salsa-live .slt-tl-navigation { display: none !important; }   /* Salsa's empty placeholder under the button */
/* Oct 31 (Evin): the thank-you pane after a submit is left-aligned (Salsa
   centers it with .sli-alignment-CENTER; the share icons are inline-blocks). */
.salsa-live .sli-confirmation-pane, .salsa-live .sli-confirmation-pane * { text-align: left !important; }
/* Its text takes the intro copy's type in place of Salsa's inline Arial. */
.salsa-live .sli-confirmation-pane :is(p, p *) { font-family: var(--sans) !important; color: var(--soft) !important; font-size: 16px !important; line-height: 1.6 !important; }
.salsa-live .sli-confirmation-pane p { margin: 0 0 12px !important; }
.salsa-live .sli-button:hover { background: var(--action-deep) !important; }
.salsa-live .salsa-reload { margin: 0; }
/* Oct 31 (Evin): the form fades in while its container eases to the new
   height (main.js holds the height while it loads; no jump down, then up). */
@keyframes salsa-in { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .salsa-live .sli-content-pane { animation: salsa-in 0.45s ease; }
}
/* ?copy=salsa (the default; Evin's lean): Gail's Salsa copy is the
   campaign's whole head. Oct 31 (Evin): ours steps aside entirely (the
   panel's Oppose / Support tag, H2 and bill, the open row's tag, our
   paragraphs and the record link); only the share button stays above the
   form. Ours comes back if the form fails to load. ?copy=site: our text
   stays and Salsa's intro is hidden. */
[data-copy="salsa"] .camp-detail:not(:has(.salsa-live[data-state="failed"])) .camp-detail-head,
[data-copy="salsa"] .camp[open]:not(:has(.salsa-live[data-state="failed"])) > summary .camp-tags,
[data-copy="salsa"] .camp-body:not(:has(.salsa-live[data-state="failed"])) :is(.camp-text > p, .camp-record) { display: none; }
[data-copy="salsa"] .camp-share { margin-top: 0; }
[data-copy="site"] .salsa-live .sli-content-pane > .sli-row:first-child { display: none; }
.camp-detail { display: none; }

@media (min-width: 961px) {
  .camp-list {
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: clamp(32px, 5vw, 72px); align-items: start; border-top: none;
  }
  .camp { grid-column: 1; border-bottom: 1px solid var(--line-strong); }
  .camp:first-of-type { border-top: 1px solid var(--line-strong); }
  .camp > summary { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 16px 18px 18px; border-left: 3px solid transparent; }
  .camp .camp-title { font-size: 21px; }
  .camp-caret { display: none; }
  .camp.is-selected > summary { border-left-color: var(--link); background: var(--well); }
  .camp.is-selected .camp-title { color: var(--ink); }
  .camp-detail {
    display: block; grid-column: 2; grid-row: 1 / span 20;
    position: sticky; top: calc(var(--nav-h) + 24px);
    padding: clamp(42px, 4.5vw, 60px); background: var(--well); border-radius: var(--radius);   /* v5.3: +50% (Evin) */
  }
  .camp-detail .camp-body { grid-template-columns: 1fr; gap: 28px; padding: 0; margin-top: 18px; }
  [data-copy="salsa"] .camp-detail .camp-body { margin-top: 0; }
  .camp-detail-head .camp-tags { justify-content: flex-start; margin-bottom: 14px; }
  /* v5.2: the title is an H2, without its icon (Evin). */
  .camp-detail-head .camp-bill { margin-top: 12px; }
}
@media (max-width: 960px) {
  .camp[open] > summary .camp-tags { display: flex; }
}


/* Homepage campaigns band (Draft 5): simple cards on the dark ground, each
   with its campaign's icon at the start of the title. v5.1 (Evin): stacked
   in one column, on pale, the bill under the title, no Oppose / Support
   tag; the link to Take Action is a button. */
.cb-grid { margin: 64px auto 0; max-width: 920px; display: grid; gap: 16px; }
.cb-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 28px 32px; background: var(--cb-card, var(--g-pale)); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}
.cb-text { display: flex; flex-direction: column; min-width: 0; }
.cb-card .camp-title { font-family: var(--serif); font-size: clamp(23px, 2.1vw, 28px); font-weight: 500; line-height: 1.15; }
.cb-card .camp-title .ph { width: 26px; height: 26px; margin-right: 10px; vertical-align: -3px; color: var(--label); }
.cb-card .camp-bill { margin-top: 8px; }
.cb-card:hover .camp-title { color: var(--action-deep); }
.card-cta { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; border-bottom: 2px solid var(--action); padding-bottom: 2px; white-space: nowrap; transition: padding-right 0.3s ease; }
/* v5.3: on the card's hover the link's underline runs 20px further right (Evin). */
.cb-card:hover .card-cta, .cb-card:focus-visible .card-cta { padding-right: 20px; }
@media (prefers-reduced-motion: reduce) { .card-cta { transition: none; } }
.cb-more { justify-content: center; margin-top: 44px; }

/* ---------- record ---------- */
.record-list { list-style: none; margin-top: 32px; border-top: 1px solid var(--line-strong); }
/* Draft 5: four single lines, no links (Evin). */
.record-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); color: var(--ink); font-size: 17px; }   /* v5.1: darker rules */
.record-list .ph { color: var(--icon, var(--label)); }
.exhibits { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.exhibit { display: flex; gap: 14px; align-items: flex-start; color: var(--soft); font-size: 17px; }
.exhibit .ph { color: var(--label); margin-top: 2px; }
.pull-quote { margin-top: 40px; font-family: var(--serif); font-size: clamp(23px, 2.3vw, 30px); line-height: 1.3; font-style: italic; }
/* Draft 5: the cite takes the caption style, not label caps (Evin; site-wide). */
.pull-quote cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 400; letter-spacing: 0.02em; color: var(--label); }
.kicker { display: flex; align-items: center; gap: 12px; }
.kicker .ph { color: var(--eyebrow); }   /* v5.3: the label's color (Evin) */
.split .lede { margin-top: 20px; }

/* "Also in the record" (v4.1): portrait frames that run the height of the
   text beside them. */
.alt-row.is-tall { align-items: stretch; }
.alt-row.is-tall .alt-media { grid-column: 1 / span 5; display: flex; }
.alt-row.is-tall .alt-text { grid-column: 7 / span 5; padding-top: 0; align-self: center; }
.alt-row.is-tall.is-flip .alt-media { grid-column: 8 / span 5; }
.alt-row.is-tall.is-flip .alt-text { grid-column: 2 / span 5; }
.alt-row.is-tall .alt-media > .media { flex: 1; min-height: min(44vw, 680px); }
/* v5.1: the book and film covers fill their frames and crop (focus set in
   the generator: the book from the bottom, the film from the top). */

/* Veal figure — the bar, flipped (Evin, Oct 7): 3.4M at the left, 0 at the
   right as the target, so the fill drains toward 0 and what's left is a
   sliver at the right end. One label under it. The HTML is the end state;
   JS plays the drain on reveal; reduced motion shows the end state.
   v4.1: the fill is the action color. Draft 5: a 1px red border (the
   action color) around the track, with the 5px radius (Evin). */
.vealbar-wrap { margin: 64px auto 0; max-width: 980px; }
.vealbar-track {
  position: relative; height: 72px;
  background: repeating-linear-gradient(-45deg, var(--bar, var(--action)) 0 var(--bar-line, 2px), transparent var(--bar-line, 2px) var(--bar-step, 11px));   /* v5.1: the fill's red. v5.4: color and weight on switches */
  border: var(--bar-border, 1px) solid var(--bar, var(--action)); border-radius: var(--radius);
  overflow: hidden;
}
.vealbar-fill { position: absolute; top: 0; bottom: 0; right: 0; width: 3.68%; background: var(--bar, var(--action)); }
.vealbar.is-draining .vealbar-fill { width: 100%; }
.vealbar.is-draining.is-running .vealbar-fill {
  width: 3.68%;
  transition-property: width; transition-duration: 3.2s;
  transition-timing-function: cubic-bezier(.6, 0, .25, 1); transition-delay: 800ms;
}
.vealbar-ticks { position: relative; height: 26px; margin-top: 10px; }
.vealbar-ticks span { position: absolute; top: 0; transform: translateX(-50%); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--label); }
.vealbar-ticks span:first-child { transform: none; }
.vealbar-ticks span:last-child { transform: translateX(-100%); }
.vealbar-label { margin-top: 26px; text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.1vw, 27px); line-height: 1.3; color: var(--ink); }
/* v5.3: the bar's section moves to pale (Evin); these keep it working on dark. */
@media (prefers-reduced-motion: reduce) {
  .vealbar.is-draining .vealbar-fill { width: 3.68%; }
  .vealbar.is-draining.is-running .vealbar-fill { transition: none; }
}

/* ---------- ranch (v4.1) ---------- */
.steps { list-style: none; margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
/* v5.1: How care works is on pale (was dark); the dark-ground colors stay
   for any dark use. */
.step { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step .ph { width: 32px; height: 32px; color: var(--eyebrow); }
.step .h3 { margin-top: 16px; }
.step p { margin-top: 10px; font-size: 16px; color: var(--soft); }
.split-more { margin-top: 56px; }
.split-more .h3:not(:first-child) { margin-top: 40px; }
.split-more .h3 + .body { margin-top: 14px; }
/* v5.1: a Phosphor icon leads each of the land split's H3s. */
.h3-icon .ph { width: 26px; height: 26px; margin-right: 12px; vertical-align: -3px; color: var(--eyebrow); }   /* v5.3: colored, the label ochre (Evin: color the icons) */
/* v5.2: Ranch's head split (Evin's sketch): the H2, the lede and three
   H2-size stats in equal-width columns (labels wrap), text left, the
   slider right. */
.ranch-intro .stats { margin-top: 40px; gap: 28px clamp(20px, 2.5vw, 40px); }
.film-btn { position: relative; display: block; width: 100%; border: none; padding: 0; cursor: pointer; background: none; }
/* Round 6 (Evin, 2026-11-20): like the slideshow buttons, no circle or
   border; the filled play icon in white, larger, at 50% until the film is
   hovered or focused. Round 7: "Grow" chosen, and the icon now moves on
   exactly the photo's zoom timing (.media-img: 0.4s ease-in-out). */
.film-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 120px; height: 120px; display: grid; place-items: center;
  color: #fff; opacity: 1;   /* round 8: full white at rest (Evin) */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.film-play .ph { width: 76px; height: 76px; fill: currentColor; }
.film-btn:is(:hover, :focus-visible) .film-play { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
@media (prefers-reduced-motion: reduce) { .film-play { transition: none; } }
/* On film (v5.2): replaces the map: the head, then the film's image inset
   at the container's width (not full bleed), the play button on it. No
   scroll zoom (dropped) and no hover zoom; the play button lifts. */
.film-inset { margin-top: clamp(48px, 6vw, 80px); }
/* v5.3: the image takes the standard hover zoom (Evin). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .film-inset:hover .media-img { transform: scale(1.1); }
}
.support-grid { align-items: center; }

/* ---------- about ---------- */
.toc { position: sticky; top: var(--nav-h); z-index: 50;   /* v5.4: oat (Evin). Draft 6: the palette grounds it (data-s="about-toc") */
  border-bottom: 1px solid var(--line); transition: top 0.35s ease; }
.nav-gone .toc { top: 0; }
.toc-inner { display: flex; gap: clamp(18px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; padding-top: 16px; padding-bottom: 16px; justify-content: center; }
.toc-inner::-webkit-scrollbar { display: none; }
.toc a { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--label); text-decoration: none; white-space: nowrap; }
.toc a:hover { color: var(--ink); }
.goals { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.goal { padding: 32px 30px; background: var(--well); border-radius: var(--radius); }
.goal p { margin-top: 10px; color: var(--soft); font-size: 17px; }
/* v5.2: photo backgrounds in place of the illustrations (Evin). The text
   sits low and centered over a dark gradient, in white. v5.3 (second
   pass): one component, shared with Donate's Other ways to give. */
.photo-card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(380px, 34vw, 480px);
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: center; background: var(--g-dark);
}
.photo-card-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: var(--focus, center); }
.photo-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--scrim), 0) 25%, rgba(var(--scrim), 0.55) 55%, rgba(var(--scrim), 0.86) 100%);
}
.photo-card.on-photo p { color: rgba(255, 255, 255, 0.9); }   /* beats .goal p and .way p, wherever they sit */
.photo-card .text-link { color: #fff; border-bottom-color: var(--action-soft); }
#mission .stats { margin-top: 72px; }
/* History chapter eyebrows: the label treatment (Draft 5 pick). */
.eyebrow { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.4; color: var(--eyebrow); }
.rosters { position: relative; isolation: isolate; margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); max-width: 980px; margin-left: auto; margin-right: auto; }
/* The Board sheep: faint, off to the right, running past the column (and
   clipped at the section edge, so it never widens the page). */
#people { overflow-x: clip; }
.rosters .illo-amb { right: calc(-34% + 150px); top: -96px; width: clamp(240px, 28vw, 400px); aspect-ratio: 1; background-position: center; }   /* v5.1: 40px up, 150px left (Evin); tablet and phone keep theirs */
.roster ul { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
.roster li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.roster-name { font-family: var(--serif); font-size: 21px; }
.roster-role { color: var(--label); font-size: 15px; text-align: right; }
.fin-cn { margin-top: 28px; display: flex; justify-content: center; }
.cu-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.cu-cover img { width: 100%; height: auto; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.contact-list { list-style: none; margin-top: 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; color: var(--soft); font-size: 17px; }
.contact-list .ph { color: var(--label); margin-top: 3px; }
.contact-label { display: block; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--label); font-weight: 600; }
.contact-note { margin-top: 22px; font-size: 16px; color: var(--soft); }
/* Draft 5: Today is a centered single column; Contact's text is centered
   vertically in its half. */
.split-center .split-text { display: flex; align-items: center; }

/* ---------- donate page (Draft 5) ----------
   Head C, modified per Evin's sketch, and fixed: the centered head, then
   (v5.1: in its own pale section) the illustration (full strength; not a card illustration, so the
   switch leaves it alone) on the left and the widget on the right. */
/* v5.1: the head is dark, with the label and H1 only; the body, the
   illustration and the widget move as they were to a pale section. */
.donate-head { padding: clamp(48px, 6vw, 96px) 0; }
.donate-gift { padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 120px); }
/* v5.2: the body line moves up into the head, under the H1. */
.donate-head .lede { max-width: 46ch; }
.donate-pair {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 6vw, 96px); max-width: 1120px;
}
.donate-illo { width: 100%; aspect-ratio: 1; background-position: center; }
.donate-pair .widget { width: 100%; max-width: 480px; }
.ways .way { text-align: center; }
.ways { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.way { padding: 32px 30px; background: var(--well); border-radius: var(--radius); }
.way p { margin-top: 10px; color: var(--soft); font-size: 17px; }
.ways-legal { margin-top: 48px; text-align: center; font-size: 15px; color: var(--label); }

/* privacy */
.intro-inner { max-width: 34em; margin: 0 auto; padding: 0 var(--pad); box-sizing: content-box; }
.policy h2 { font-family: var(--serif); font-size: 27px; font-weight: 500; margin-top: 48px; }
.policy h2:first-child { margin-top: 0; }
.policy .body { margin-top: 14px; max-width: none; }
.policy .policy-extra { margin-top: 24px; }   /* v5.4: Financials' CN row and 990 button */
.rosters-page { margin-top: 0; }   /* v5.4: Board & Staff page, no section head above */

/* ---------- word-by-word heading reveal (H1 and H2) ----------
   Ported from Draft 3 (the birch-co clip reveal). Each word rises from behind
   an invisible line. The html.js gate prevents a flash of unsplit text; with
   no JS the headings render normally. */
html.js .anim-words { opacity: 0; }
html.js .anim-words.is-split { opacity: 1; }
.anim-words { --word-dur: .8s; --word-step: 140ms; --word-base: 300ms; --word-ease: cubic-bezier(.16, 1, .3, 1); }
.anim-words .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.anim-words .word-in { display: inline-block; }
.anim-words.is-split .word-in { opacity: 0; transform: translateY(118%); }
.anim-words.is-split.is-in .word-in {
  opacity: 1; transform: none;
  transition-property: opacity, transform;
  transition-duration: var(--word-dur);
  transition-timing-function: var(--word-ease);
  transition-delay: calc(var(--word-base) + var(--w) * var(--word-step));
}
@media (prefers-reduced-motion: reduce) {
  html.js .anim-words { opacity: 1; }
  .anim-words.is-split.is-in .word-in, .anim-words.is-split .word-in { opacity: 1; transform: none; transition: none; }
}

/* v5.4: a kicker in a centered head centers too. */
.head-center .kicker { justify-content: center; }
/* Oprah (v5.4): its own band on oat, padded tighter than a section. */
.sec-oprah { padding: clamp(48px, 6vw, 88px) 0; }
.oprah-row .pull-quote { margin-top: 0; font-size: clamp(28px, 3vw, 40px); }

/* ---------- internal palette bar (Draft 6; Evin's, not part of the site) ---------- */
.vbar {
  position: fixed; z-index: 400; left: 12px; bottom: 12px;
  max-width: calc(100vw - 24px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 10px 44px 10px 14px;
  background: #111; color: #eee; font: 500 13px/1.3 var(--sans);
  border-radius: 6px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.vbar-label { font: inherit; font-weight: 700; color: #fff; background: none; border: none; padding: 0; cursor: pointer; }
.vbar-group { display: flex; align-items: center; gap: 4px; }
.vbar-group > span { color: #999; margin-right: 2px; }
.vbar button[data-k] { font: inherit; color: #ddd; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 4px; padding: 3px 8px; cursor: pointer; }
.vbar button[data-k][aria-pressed="true"] { background: #f2f2f2; color: #111; border-color: #f2f2f2; }
.vbar-close { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; background: #2a2a2a; color: #eee; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; line-height: 1; }
.palbar { padding-right: 14px; --ink: #eee; }
.palbar .vbar-label { color: #fff; text-decoration: none; }
.palbar button[data-pal-btn] { font: inherit; min-width: 28px; color: #ddd; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 4px; padding: 3px 7px; cursor: pointer; }
.palbar button[data-pal-btn][aria-pressed="true"] { background: #f2f2f2; color: #111; border-color: #f2f2f2; }
.palbar-name { color: #bbb; }
.palbar button[data-navbar-btn] { font: inherit; color: #ddd; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 4px; padding: 3px 7px; cursor: pointer; }
.palbar button[data-navbar-btn][aria-pressed="true"] { background: #f2f2f2; color: #111; border-color: #f2f2f2; }

/* Draft 6.1: the Top bar switch, Draft 5.4's three options on every
   palette (html[data-navbar]; palettes.css grounds the nav for each).
   White and Olive are plain bars. Clear (v5.4): the page head runs up under
   the nav, which goes transparent over it (main.js sets .is-over-head);
   past the head the bar takes the palette's dark and its texture. */
html[data-navbar="clear"] main > .page-head:first-child {
  margin-top: calc(-1 * var(--nav-h)); border-top: var(--nav-h) solid transparent;
}
html[data-navbar="clear"] main > .page-head:first-child::before { top: calc(-1 * var(--nav-h)); }
html[data-navbar="clear"] .nav.is-over-head:not(.is-over-photo) { background: transparent; box-shadow: none; }
html[data-navbar="clear"] .nav:not(.is-over-photo):not(.is-over-head)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--tex-ink, transparent); opacity: var(--tex-op, 0);
  -webkit-mask-image: var(--tex, none); mask-image: var(--tex, none);
  -webkit-mask-size: var(--tex-size, 600px); mask-size: var(--tex-size, 600px);
  -webkit-mask-repeat: var(--tex-repeat, repeat); mask-repeat: var(--tex-repeat, repeat);
  -webkit-mask-position: var(--tex-pos, 0 0); mask-position: var(--tex-pos, 0 0);
}
html:is([data-navbar="olive"], [data-navbar="clear"]) .nav.is-scrolled:not(.is-hidden):not(.is-over-photo):not(.is-over-head) { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25); }

/* ---------- modals (film + Get Updates, ported) ---------- */
/* Round 6 (Evin): the film opens near full screen: 94vw wide, capped by
   the window's height (room for the Close button above). */
.video-modal { position: fixed; inset: 0; z-index: 240; display: none; align-items: center; justify-content: center; padding: 56px 3vw 24px; background: rgba(15, 14, 12, 0.94); }
.video-modal.is-open { display: flex; }
.video-modal-frame { position: relative; width: min(94vw, calc((100vh - 96px) * 16 / 9)); width: min(94vw, calc((100svh - 96px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.video-modal-frame iframe { border-radius: var(--radius); }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal-close { position: absolute; top: -52px; right: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; background: none; border: none; padding: 8px 2px; cursor: pointer; }
.video-modal-close .ph { width: 20px; height: 20px; }
.modal { position: fixed; inset: 0; z-index: 230; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 14, 12, 0.66); }
.modal.is-open { display: flex; }
.modal-card { position: relative; width: 100%; max-width: 880px; display: grid; grid-template-columns: 0.9fr 1fr; background: var(--card); color: var(--ink);   /* v5.4: oat, then back to white (Evin) */ overflow: hidden; border-radius: var(--radius); }
.modal-photo { background-size: cover; background-position: center; min-height: 440px; }
.modal-body { position: relative; padding: 78px 66px 60px; }   /* v4.1: +50% */
.modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: none; background: none; cursor: pointer; color: var(--soft); border-radius: 50%; }
.modal-close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.modal-title { margin-top: 18px; font-family: var(--serif); font-size: 42px; font-weight: 400; line-height: 1.1; }
.modal-text { margin-top: 14px; font-size: 17px; color: var(--soft); }
.modal-form { margin-top: 26px; }
.modal-input { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 2px; background: var(--card); color: var(--ink); }
.modal-input:focus { border-color: var(--ink); outline: none; }
.modal-form .btn-block { margin-top: 12px; }
.modal-fine { margin-top: 16px; font-size: 13px; color: var(--label); }

/* ---------- responsive ---------- */
/* Nav B's caps name (v5.1): kept at every width. With the links beside the
   buttons, one line fits from ~1150px (measured at 1440: wordmark 385px,
   links 307px, buttons 293px, 24px grid gaps); below 1180px it stacks on
   two lines at 11px and the dot goes, which leaves room down to phones
   (Evin: keep the name at phone size). Was hidden below 1300px. */
@media (max-width: 1179px) {
  .nav .wm { gap: 10px; }
  .nav .wm-dot { display: none; }
  .nav .wm-name { display: flex; flex-direction: column; font-size: 11px; letter-spacing: 0.14em; line-height: 1.3; }
}
@media (max-width: 1100px) {
  .nav-links { gap: 15px; }
  /* Just above the phone breakpoint the right-hand buttons outgrew their
     column and pushed the links 3.5px left of center (961px, Draft 5). */
  .nav-right { gap: 8px; }
  .nav-right .btn { padding-left: 16px; padding-right: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links, .nav-right .btn-line { display: none; }
  .split-grid { grid-template-columns: 1fr; }
  .split-media, .split.is-flip .split-media { position: relative; top: 0; height: 56vh; order: 0; }
  .split-text, .split-walker .split-text { min-height: 0; padding: 64px var(--pad) 80px; }
  .alt-row { grid-template-columns: 1fr; row-gap: 36px; }
  .alt-media, .alt-text, .alt-row.is-flip .alt-media, .alt-row.is-flip .alt-text,
  .alt-row.is-tall .alt-media, .alt-row.is-tall .alt-text,
  .alt-row.is-tall.is-flip .alt-media, .alt-row.is-tall.is-flip .alt-text { grid-column: 1; grid-row: auto; padding-top: 0; }
  .alt-row.is-tall .alt-media > .media { min-height: 0; aspect-ratio: 4 / 5; max-height: 72vh; }
  .alt-row .illo-panel { max-width: 460px; }
  .give-grid, .cu-grid { grid-template-columns: 1fr; }
  .goals, .ways { grid-template-columns: 1fr 1fr; }
  .photo-card { min-height: 360px; }
  #mission .stats-even { grid-template-columns: 1fr 1fr; }
  .donate-pair { grid-template-columns: 1fr; justify-items: center; }
  .donate-illo { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rosters { grid-template-columns: 1fr; }
  .rosters .illo-amb { right: -12%; top: -40px; }
  .camp-body { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav-right .btn-action { padding: 10px 16px; }
  /* v5.1: the stacked name beside HFA at phone size (Evin), tightened to
     fit beside Donate and the ••• at 360px and up. */
  .nav-inner { gap: 16px; }
  .nav .wm { gap: 8px; }
  .nav .wm strong { font-size: 22px; }
  .nav .wm-name { font-size: 10px; letter-spacing: 0.1em; }
  .goals, .ways, .steps { grid-template-columns: 1fr; }
  .ranch-intro .stats-even { grid-template-columns: 1fr 1fr; }   /* v5.2: three won't fit; 2 + 1, still equal */
  .cb-card { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .donate-illo { max-width: 220px; }
  .camp > summary { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 2px; }
  .camp-tags { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .camp-caret { grid-column: 2; grid-row: 1 / span 2; }
  .camp-title { font-size: 22px; }
  .salsa-live .sli-form .sli-large-6, .salsa-live .sli-form .sli-large-4 { grid-column: span 12; }
  .signup-form { flex-direction: column; }
  .signup-input { border-radius: 2px 2px 0 0; }
  .signup-form .btn { border-radius: 0 0 2px 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .modal { align-items: flex-end; padding: 0; }
  /* round 8 (Evin): on phones the page behind Get Updates sits darker, with a slight blur */
  .modal { background: rgba(15, 14, 12, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .modal-card { grid-template-columns: 1fr; max-height: 100vh; overflow-y: auto; }
  .modal-photo { min-height: 0; aspect-ratio: 16 / 7; }
  .modal-body { padding: 48px 33px 42px; }
  .modal-title { font-size: 32px; }
  .rosters .illo-amb { right: -30%; width: 240px; }
  .seal-left { left: calc(var(--pad) + 56px); }
  .seal-right { left: calc(100vw - var(--pad) - 56px); }
}
/* Below 360px there's no room for the name beside Donate and the •••;
   HFA stands alone (v5.1). */
@media (max-width: 359px) {
  .nav .wm-name { display: none; }
}

/* ---------- accessibility fixes (Nov 2026) ----------
   From docs/launch/accessibility-2026-11.md (finding numbers in brackets).
   Kept together as overrides at the end so they merge cleanly; fold them
   into their components in the production build. No palette colors. */

/* [1] Salsa injects `a:focus, [tabindex]:focus { outline: 0 }`, which beats
   the plain :focus-visible ring above, so Take Action lost every link's
   ring once a form loaded. Re-assert it at a higher specificity. */
html body a:focus-visible, html body [tabindex]:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.salsa-live .sli-button:focus-visible { outline: 3px solid var(--link) !important; outline-offset: 3px !important; }

/* [2] Focus not hidden under the fixed top bar (2.4.11): the browser keeps
   a focused element clear of the padding when it scrolls it into view.
   Anchors keep their offset (their scroll-margin moves into the padding);
   About adds its sticky contents bar. */
html { scroll-padding-top: var(--nav-h); }
section[id], [id].story { scroll-margin-top: 0; }
.camp { scroll-margin-top: 16px; }
html:has(.toc) { scroll-padding-top: calc(var(--nav-h) + 56px); }

/* [3] Salsa fields: a 3:1 boundary (was ink at 30%, 2.1:1) and a 3px
   focus edge (border plus ring) instead of a darker 1.5px border. */
.salsa-live .sli-form .sli-input { border-color: color-mix(in srgb, var(--ink) 60%, transparent) !important; }
.salsa-live .sli-form .sli-input:focus { border-color: var(--ink) !important; box-shadow: 0 0 0 1.5px var(--ink) !important; }

/* [4] Home's campaign cards are light cards on the dark band: their ring is
   the card's persimmon, which vanished on the dark. A halo in the card's
   color runs under the ring, so it always sits on the card color. */
.cb-card:focus-visible { box-shadow: 0 0 0 6px var(--cb-card, var(--g-pale)); }

/* [5] Controls on photos (pause buttons, the hero's buttons and links, the
   top bar over Home's hero, photo cards): a white ring over a dark halo
   reads on any photo. */
.slider-pause:focus-visible, .on-photo a:focus-visible, .on-photo button:focus-visible, .nav.is-over-photo :focus-visible {
  outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(var(--scrim), 0.75);
}

/* [7] The top bar over Home's hero photo: white text was 3.5:1 on the
   photo's sky. A deeper, longer shade behind the bar. */
.nav.is-over-photo::before { inset: 0 0 -64px 0; background: linear-gradient(180deg, rgba(var(--scrim), 0.62), rgba(var(--scrim), 0.3) 70%, rgba(var(--scrim), 0)); }

/* [11] Placeholders in the label color (the browser's grey was 4.49:1). */
.signup-input::placeholder, .modal-input::placeholder { color: var(--label); opacity: 1; }

/* [12] Salsa's labels and the loading note at a size older eyes read. */
.salsa-live .sli-form .sli-label { font-size: 15px !important; }
.salsa-note, .salsa-live .sli-loading-message { font-size: 15px; font-style: normal; }

/* [13] Touch screens can't hover: show the pause controls for the moving
   photos. (Reduced motion still removes them; nothing moves there.) */
@media (hover: none) { .slider-pause { opacity: 0.5; } }

/* [14] Targets to 44px without moving the layout. */
.nav-links a { padding: 8.5px 0; }
.nav-right .btn { min-height: 44px; }

.social a { width: 44px; height: 44px; }
.camp-share { padding-top: 12px; padding-bottom: 12px; }
.toc-inner { padding-top: 5.5px; padding-bottom: 5.5px; }   /* the links take the bar's padding: same height */
.toc a { padding: 10.5px 0; }
.toc a:focus-visible { outline-offset: 1px; }   /* inside the scrolling bar's clip */

/* [16] The skip link sits at the window's corner: an inset white ring. */
html body .skip-link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* ---------- Photos as <picture> (perf pass, Nov 2026) ----------
   tools/draft6-build/perf.py writes each photo element (.media-img, .slide,
   .mosaic-tile, .photo-card-bg) with a <picture class="pic"> child instead of
   a background-image. The <img> fills the element and crops exactly as the
   background did: cover, at the element's --focus. The element keeps its own
   background colour as the placeholder. */
.pic, .pic > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pic > img { display: block; object-fit: cover; object-position: var(--focus, center); }
.slide > .pic > img { object-position: var(--focus, center 40%); }
.mosaic-tile { position: relative; }

/* Salsa's State dropdown (Evin, 2026-11-20: in Safari it didn't match the other
   fields). Safari draws a native <select> at its own height and ignores the
   padding, so the native look is turned off and the field gets the inputs'
   line height, padding and border, plus a drawn caret. */
.salsa-live .sli-form select.sli-input, .salsa-live .sli-form select {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  height: auto !important; min-height: 0 !important; line-height: 1.65 !important;
  padding: 11px 40px 11px 12px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 14px 14px !important;
}

/* Palettes 0a and 0b (Evin, 2026-11-20): for red-blind readers Linen's
   persimmon and olive read as one color, so Donate (and Join) get a thin
   light outline wherever they sit on olive: the Olive top bar, the signup,
   the menu. Olive and persimmon themselves are unchanged. */
html:is([data-pal="0a"], [data-pal="0b"]) :is([data-s="signup"], [data-s="drawer"]) .btn-action,
html:is([data-pal="0a"], [data-pal="0b"])[data-navbar="olive"] .nav .btn-action {
  box-shadow: inset 0 0 0 1.5px rgba(244, 242, 236, 0.85);
}

/* Olive steps (Evin, 2026-11-20): the Olive switch on the palette bar
   (js/olive-gate.js) swaps every olive ground for one of three steps
   between Linen's olive (#5E5C3C) and Linen, Tuned's (#434124), evenly
   spaced in OKLCH, or Tuned's itself. White text passes on all of them
   (7.6, 8.5, 9.4, 10.4:1). Meant for palettes 0, 0a and 0b. */
html[data-olive="1"] { --olive-step: #575536; }
html[data-olive="2"] { --olive-step: #504E30; }
html[data-olive="3"] { --olive-step: #49482A; }
html[data-olive="t"] { --olive-step: #434124; }
html[data-olive][data-pal] { --g-olive: var(--olive-step); --support: var(--olive-step); }
html[data-olive][data-pal] :is([data-s="signup"], [data-s="drawer"]),
html[data-olive][data-pal][data-navbar="olive"] [data-s="nav"] { --bg: var(--olive-step); }
.palbar button[data-olive-btn] { font: inherit; color: #ddd; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 4px; padding: 3px 7px; cursor: pointer; }
.palbar button[data-olive-btn][aria-pressed="true"] { background: #f2f2f2; color: #111; border-color: #f2f2f2; }

/* Sanctuary's three figures (Evin, 2026-11-20): labels never wrap; a whole
   figure moves to the next line instead when the column is too narrow. */
.ranch-intro .stats-even { display: flex; flex-wrap: wrap; }
.ranch-intro .stat-label { white-space: nowrap; }
