/* ---- 1. Design tokens ---- */
:root {
  /* Brand */
  --mid:         #2a256d;   /* Midnight Blue */
  --mid-deep:    #1d1950;   /* darker midnight for gradients */
  --mid-deeper:  #14113a;
  --gold:        #fdd803;   /* Bright Gold */
  --gold-soft:   #ffe767;
  --fuchsia:     #ec008c;   /* Fuchsia Flame (decorative) */
  --fuchsia-ink: #c4007a;   /* fuchsia for text/buttons on light (>= 4.5:1 white) */
  --pacific:     #39bfd0;   /* Pacific Blue (hover) */
  --cream:       #faf6e4;

  --color-primary:            var(--fuchsia);
  --color-primary-accessible: var(--fuchsia-ink);
  --a11y-accent:              var(--mid);
  --color-secondary:          var(--mid);
  --color-accent:             var(--gold);
  --color-dark:               #14113a;
  --color-light:              var(--cream);
  --color-bg:                 #ffffff;
  --color-text:               #211d40;
  --color-muted:              #5c5878;
  --color-border:             #e7e3d4;

  /* Typography */
  --font-heading: "termina", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-base: 16px;
  --lh-base: 1.65;

  /* Layout */
  --container-max: 1380px;
  --container-pad: 1.35rem;
  --radius: 12px;
  --radius-lg: 22px;
  --page-frame: 0px;
  --page-frame-color: transparent;
  --shadow-card: 0 24px 60px -28px rgba(20, 17, 58, .55);

  --focus-ring: 3px solid var(--fuchsia-ink);

  /* Footer (dark Midnight) */
  --footer-bg:         var(--mid);
  --footer-text:       #ffffff;
  --footer-text-soft:  rgba(255,255,255,0.82);
  --footer-link-hover: var(--pacific);
  --footer-org-accent: var(--gold);
  --footer-rule:       rgba(255,255,255,0.20);
  --footer-donate-bg:  var(--gold);
  --footer-donate-text:var(--mid);
}

/* ---- 2. Minimal reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); -webkit-text-size-adjust: 100%; color-scheme: light only; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Browser force-dark (e.g. Samsung Internet): ship a dark-pref theme so it uses our light styles instead of inverting */
@media (prefers-color-scheme: dark) {
  html { color-scheme: only light; }
  input, textarea, select { background-color: #fff; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: var(--page-frame) solid var(--page-frame-color);
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-accessible); }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* ---- 3. Structural utilities (not visual design) ---- */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-dark); color: #fff; padding: .65rem 1rem;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Progressive enhancement hook (header sets .js on <html>). */
.js [data-js-hidden] { display: none; }

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

/* ---- ACCESSIBILITY: "Display preferences" modes + menu UI ---- */

/* High contrast: dark scheme, forced with !important to beat campaign CSS */
html.a11y-contrast {
  --color-bg: #000000; --color-text: #ffffff; --color-muted: #ffffff;
  --color-border: #ffffff; --color-light: #000000;
  --color-secondary: #000000; --color-dark: #000000;
  --color-primary: #ffff00; --color-primary-accessible: #ffff00; --color-accent: #ffff00;
}
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
/* surfaces -> black (incl. blockquote/figure/list/table/a so cards & whole-card links aren't left light) */
html.a11y-contrast header, html.a11y-contrast main, html.a11y-contrast footer,
html.a11y-contrast section, html.a11y-contrast article, html.a11y-contrast aside,
html.a11y-contrast nav, html.a11y-contrast form, html.a11y-contrast a,
html.a11y-contrast blockquote, html.a11y-contrast figure, html.a11y-contrast ul,
html.a11y-contrast ol, html.a11y-contrast li, html.a11y-contrast dl,
html.a11y-contrast dd, html.a11y-contrast table,
html.a11y-contrast div:not([data-a11y-menu]):not(.a11y__panel) {
  background-color: #000 !important; background-image: none !important;
}
/* text -> white */
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3,
html.a11y-contrast h4, html.a11y-contrast h5, html.a11y-contrast h6,
html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast span,
html.a11y-contrast label, html.a11y-contrast blockquote, html.a11y-contrast figcaption,
html.a11y-contrast td, html.a11y-contrast th, html.a11y-contrast dt, html.a11y-contrast dd,
html.a11y-contrast strong, html.a11y-contrast em, html.a11y-contrast small {
  color: #fff !important;
}
/* links: bright yellow + always underlined */
html.a11y-contrast a, html.a11y-contrast a * { color: #ffff00 !important; text-decoration: underline !important; }
/* buttons: bright yellow with black text (leave the a11y widget controls alone) */
html.a11y-contrast .btn,
html.a11y-contrast button:not(.a11y__toggle):not(.a11y__reset) {
  background: #ffff00 !important; color: #000 !important; border: 2px solid #ffff00 !important;
}
html.a11y-contrast .btn *,
html.a11y-contrast button:not(.a11y__toggle):not(.a11y__reset) * { color: #000 !important; }
html.a11y-contrast :focus-visible { outline: 3px solid #ffff00 !important; outline-offset: 2px; }
/* keep media visible (don't blacken images/video) */
html.a11y-contrast img, html.a11y-contrast picture, html.a11y-contrast video { background: transparent !important; }
/* Menu keeps its normal look under high contrast (higher specificity wins) */
html.a11y-contrast .a11y__toggle { background: var(--a11y-accent) !important; border-color: #fff !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__panel { background: #f3f5f7 !important; color: #1b232b !important; border-color: #c9ced3 !important; }
/* Accent header / footer + circular badge + close */
html.a11y-contrast .a11y[data-a11y-menu] .a11y__panel-head,
html.a11y-contrast .a11y[data-a11y-menu] .a11y__footer { background: var(--a11y-accent) !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__panel-title { color: #fff !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__kbd { background: rgba(255,255,255,.22) !important; color: #fff !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__close { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.55) !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__close svg { color: #fff !important; }
/* Status strip */
html.a11y-contrast .a11y[data-a11y-menu] .a11y__status { background: #eef1f4 !important; border-bottom-color: #d7dde3 !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__status--on .a11y__status-ico { color: #15803d !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__status-count { color: #1b232b !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__status-ico,
html.a11y-contrast .a11y[data-a11y-menu] .a11y__resetall { background: transparent !important; color: var(--a11y-accent) !important; }
/* Sections + rows */
html.a11y-contrast .a11y[data-a11y-menu] .a11y__section-title,
html.a11y-contrast .a11y[data-a11y-menu] .a11y__section-icon,
html.a11y-contrast .a11y[data-a11y-menu] .a11y__row-icon { color: var(--a11y-accent) !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__row-label { color: #1b232b !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__dys-chip { color: var(--a11y-accent) !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__section { border-color: #c9ced3 !important; }
/* Toggle switch */
html.a11y-contrast .a11y[data-a11y-menu] .a11y__sw { background: #c9ced3 !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__sw-input:checked ~ .a11y__sw { background: var(--a11y-accent) !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__sw-knob { background: #fff !important; }
/* Segmented option buttons (off = white; active = accent) */
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg2-opt { background: #fff !important; color: #1b232b !important; border-color: #d3d9df !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg2[data-state="dark"] [data-a11y-cycle-opt="dark"],
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg2[data-state="invert"] [data-a11y-cycle-opt="invert"],
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg2[data-state="low"] [data-a11y-saturate-opt="low"],
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg2[data-state="high"] [data-a11y-saturate-opt="high"],
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg2[data-state="grey"] [data-a11y-saturate-opt="grey"],
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg2[data-state="big"] [data-a11y-cursor-opt="big"],
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg2[data-state="mask"] [data-a11y-cursor-opt="mask"],
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg2[data-state="guide"] [data-a11y-cursor-opt="guide"] { background: var(--a11y-accent) !important; color: #fff !important; border-color: var(--a11y-accent) !important; }
/* Position segmented + hide-for */
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg { background: #fff !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg-opt { color: #1b232b !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__seg-opt:has(input:checked) { background: var(--a11y-accent) !important; color: #fff !important; }
/* Footer bug + Help (accent bar; keep white text, no yellow-link bleed) */
html.a11y-contrast .a11y[data-a11y-menu] .a11y__bug { background: transparent !important; color: #fff !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__bug-by { color: #fff !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__bug-tag { color: rgba(255,255,255,.9) !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__bug-logo,
html.a11y-contrast .a11y[data-a11y-menu] .a11y__bug-logo * { color: #fff !important; fill: #fff !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__bug,
html.a11y-contrast .a11y[data-a11y-menu] .a11y__bug * { text-decoration: none !important; }
/* Neutralize generic high-contrast bleed inside the menu */
html.a11y-contrast .a11y[data-a11y-menu] ul,
html.a11y-contrast .a11y[data-a11y-menu] li,
html.a11y-contrast .a11y[data-a11y-menu] section,
html.a11y-contrast .a11y[data-a11y-menu] div { background-color: transparent !important; }
html.a11y-contrast .a11y[data-a11y-menu] p,
html.a11y-contrast .a11y[data-a11y-menu] span,
html.a11y-contrast .a11y[data-a11y-menu] label,
html.a11y-contrast .a11y[data-a11y-menu] h3 { color: #1b232b !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__section-title,
html.a11y-contrast .a11y[data-a11y-menu] .a11y__section-icon,
html.a11y-contrast .a11y[data-a11y-menu] .a11y__row-icon { color: var(--a11y-accent) !important; }
html.a11y-contrast .a11y[data-a11y-menu] .a11y__panel-title,
html.a11y-contrast .a11y[data-a11y-menu] .a11y__kbd,
html.a11y-contrast .a11y[data-a11y-menu] .a11y__footer .a11y__bug-by { color: #fff !important; }

/* Larger text (rem-based layout scales with it) */
html.a11y-text-lg { --fs-base: 20px; }

/* OpenDyslexic; @font-face only downloads when dyslexia mode applies. To self-host, download woff2 to resources/fonts/ and repoint src. */
@font-face { font-family:'OpenDyslexic'; font-style:normal; font-weight:400; font-display:swap;
  src:url(https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-400-normal.woff2) format('woff2'),
      url(https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-400-normal.woff) format('woff'); }
@font-face { font-family:'OpenDyslexic'; font-style:normal; font-weight:700; font-display:swap;
  src:url(https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-700-normal.woff2) format('woff2'),
      url(https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-700-normal.woff) format('woff'); }
@font-face { font-family:'OpenDyslexic'; font-style:italic; font-weight:400; font-display:swap;
  src:url(https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-400-italic.woff2) format('woff2'),
      url(https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-400-italic.woff) format('woff'); }
@font-face { font-family:'OpenDyslexic'; font-style:italic; font-weight:700; font-display:swap;
  src:url(https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-700-italic.woff2) format('woff2'),
      url(https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-700-italic.woff) format('woff'); }

/* Dyslexia-friendly font + extra spacing */
html.a11y-dyslexia {
  --font-body: "OpenDyslexic", system-ui, sans-serif;
  --font-heading: "OpenDyslexic", system-ui, sans-serif;
  --lh-base: 1.8;
}
html.a11y-dyslexia body { letter-spacing: .02em; word-spacing: .08em; }

/* Reduce motion (overrides regardless of OS setting) */
html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

/* Hide images but keep info: a11y.js adds alt text in .a11y-alt. Decorative bg opts in via [data-decorative-bg]. */
html.a11y-hide-images img,
html.a11y-hide-images picture,
html.a11y-hide-images video,
html.a11y-hide-images svg:not(.a11y__icon) { display: none !important; }
html.a11y-hide-images [data-decorative-bg] { background-image: none !important; }
.a11y-alt {
  display: none;
  font-style: italic;
  color: var(--color-muted);
  border: 1px dashed var(--color-border);
  padding: .4rem .6rem;
}
html.a11y-hide-images .a11y-alt { display: inline-block; }

/* Underline links: thick, offset, currentColor so it stays contrasty */
html.a11y-underline-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 3px !important;
  text-decoration-color: currentColor !important;
  text-underline-offset: 3px !important;
}

/* Text spacing (headings included) */
html.a11y-spacing h1, html.a11y-spacing h2, html.a11y-spacing h3,
html.a11y-spacing h4, html.a11y-spacing h5, html.a11y-spacing h6,
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing a,
html.a11y-spacing span, html.a11y-spacing blockquote, html.a11y-spacing label {
  letter-spacing: .12em !important; word-spacing: .16em !important;
}
/* Line height (headings included; overrides their fixed 1.2) */
html.a11y-line-height { --lh-base: 2; }
html.a11y-line-height p, html.a11y-line-height li, html.a11y-line-height blockquote,
html.a11y-line-height h1, html.a11y-line-height h2, html.a11y-line-height h3,
html.a11y-line-height h4, html.a11y-line-height h5, html.a11y-line-height h6 {
  line-height: 2 !important;
}

/* Invert colors. filter on <html> makes position:fixed resolve against page not viewport (known filter side effect; acceptable for opt-in). */
html.a11y-invert body > :not(.a11y) { filter: invert(1) hue-rotate(180deg); }
/* body bg isn't inverted (menu lives in body), so give it a dark backdrop for readability */
html.a11y-invert body { background: #11151a; }
/* Re-invert real media so photos/logos render normally. Filter the <img>, not <picture> (double-filter = net negative). [data-no-invert] to opt out. */
html.a11y-invert img,
html.a11y-invert video,
html.a11y-invert iframe,
html.a11y-invert [data-no-invert] { filter: invert(1) hue-rotate(180deg) !important; }

/* ---- Menu UI (fixed px so Larger Text can't scale it; isolated from all modes) ---- */
.a11y { position: fixed; bottom: 16px; z-index: 1000; font-size: 16px; pointer-events: none; }
.a11y--bottom-right { right: 16px; }
.a11y--bottom-left  { left: 16px; }
/* wrapper is click-through so footer links underneath aren't blocked */
.a11y__toggle, .a11y__panel { pointer-events: auto; }
.a11y__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  background: var(--a11y-accent); color: #fff; border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.a11y__toggle:hover { background: color-mix(in srgb, var(--a11y-accent) 88%, #000); }
.a11y__btn-icon { width: 26px; height: 26px; }

/* Panel: fixed-height flex column */
.a11y__panel {
  position: fixed; top: 8px; right: 8px; bottom: 8px;
  width: min(376px, calc(100vw - 16px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #f3f5f7; color: #1b232b;
  border-radius: 14px; padding: 0;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  transform-origin: bottom right;
  transition: transform .22s cubic-bezier(.34,1.18,.64,1), opacity .18s ease;
}
.a11y--bottom-left .a11y__panel { left: 8px; right: auto; transform-origin: bottom left; }
.a11y__panel[hidden] { display: none; }
/* Closed state for grow/shrink anim */
.a11y__panel:not(.a11y__panel--open) { opacity: 0; transform: scale(.55); }

/* Header: accent bar with circular badge, title + shortcut, round close */
.a11y__panel-head { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--a11y-accent); color: #fff; }
.a11y__head-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.a11y__panel-title { margin: 0; font-weight: 800; font-size: 22px; line-height: 1.1; color: #fff; font-family: var(--a11y-title-font, inherit); }
.a11y__kbd { align-self: flex-start; font-size: 12px; font-weight: 600; line-height: 1; color: #fff; background: rgba(255,255,255,.22); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
/* touch-primary: no keyboard, hide shortcut hint */
@media (pointer: coarse) { .a11y[data-a11y-menu] .a11y__kbd { display: none; } }
.a11y__close {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); cursor: pointer; line-height: 1;
}
.a11y__close:hover { background: rgba(255,255,255,.16); }
.a11y__close svg { width: 16px; height: 16px; }
/* Focus ring: the menu accent by default; white inside the accent header/footer bars */
.a11y[data-a11y-menu] :focus-visible { outline: 3px solid var(--a11y-accent) !important; outline-offset: 2px !important; }
.a11y[data-a11y-menu] .a11y__panel-head :focus-visible,
.a11y[data-a11y-menu] .a11y__footer :focus-visible { outline-color: #fff !important; }

/* Status strip: adjustments counter + Reset all (accent-tinted via .--on in JS) */
.a11y__status { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 18px; background: #fff; border-bottom: 1px solid #e7ebef; transition: background .15s ease, border-color .15s ease; }
.a11y__status--on { background: color-mix(in srgb, var(--a11y-accent) 8%, #fff); border-bottom-color: color-mix(in srgb, var(--a11y-accent) 14%, #e7ebef); }
.a11y__status-count { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #1b232b; }
.a11y__status-ico { display: inline-flex; color: #9aa2ab; transition: color .15s ease; }
.a11y__status--on .a11y__status-ico { color: #15803d; } /* active = success green, intentionally theme-independent */
.a11y__status-ico svg { width: 20px; height: 20px; }
.a11y__resetall { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; font-size: 14px; color: var(--a11y-accent); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.a11y__resetall svg { width: 18px; height: 18px; }
.a11y__resetall:hover { color: color-mix(in srgb, var(--a11y-accent) 80%, #000); }

/* Scrolling body: positioning context for overscroll shadow + scroll indicator */
.a11y__body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.a11y__body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px;
  background: linear-gradient(to top, rgba(0,0,0,.16), rgba(0,0,0,0));
  opacity: 0; transition: opacity .15s ease; pointer-events: none;
}
.a11y__body.is-over-bottom::after { opacity: 1; }
.a11y__sections { flex: 1 1 auto; min-height: 0; width: 100%; overflow-y: auto; padding: 12px 16px 16px; scrollbar-width: none; }
.a11y__sections::-webkit-scrollbar { width: 0; height: 0; }
/* Custom scroll indicator (visual only) */
.a11y__sb {
  position: absolute; top: 6px; bottom: 6px; right: 5px; width: 6px; display: block;
  border-radius: 999px; background: rgba(0,0,0,.06);
  opacity: 0; transition: opacity .15s ease; pointer-events: none;
}
.a11y__body.is-scrollable .a11y__sb { opacity: 1; }
.a11y__sb-thumb {
  position: absolute; left: 0; right: 0; top: 0; display: block; width: 100%;
  min-height: 24px; border-radius: 999px; background: var(--a11y-accent);
}

/* Sections (Vision / Text & Reading / Navigation & Motion) */
.a11y__section { margin: 0 0 16px; padding: 14px 14px 6px; background: #fff; border: 1px solid #e4e9ee; border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.a11y__section:last-child { margin-bottom: 4px; }
.a11y__section-head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.a11y__section-icon { display: inline-flex; color: var(--a11y-accent); }
.a11y__section-icon svg { width: 22px; height: 22px; }
.a11y__section-title { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--a11y-accent); }

/* Rows */
.a11y__row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-radius: 10px; }
.a11y__row + .a11y__row { border-top: 1px solid #eef1f4; }
.a11y__row--toggle { cursor: pointer; user-select: none; -webkit-user-select: none; }
.a11y__row--toggle:hover { background: color-mix(in srgb, var(--a11y-accent) 5%, #fff); }
.a11y__row--seg { display: block; padding: 12px 4px; }
.a11y__row-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.a11y__row-icon { flex: 0 0 auto; display: inline-flex; color: var(--a11y-accent); }
.a11y__row-icon svg { width: 24px; height: 24px; }
.a11y__row-label { flex: 1 1 auto; font-size: 15px; font-weight: 600; line-height: 1.25; color: #1b232b; }
/* OpenDyslexic "Aa" preview chip (label stays in UI font) */
.a11y__dys-chip { display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: color-mix(in srgb, var(--a11y-accent) 12%, #fff); color: var(--a11y-accent); font-family: "OpenDyslexic", system-ui, sans-serif; font-weight: 700; font-size: 12px; line-height: 1.4; }

/* On/off toggle switch (input is visually hidden; the track/knob follow it) */
.a11y__sw-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.a11y__sw { flex: 0 0 auto; position: relative; width: 46px; height: 26px; border-radius: 999px; background: #c9ced3; transition: background .15s ease; }
.a11y__sw-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s ease; }
.a11y__sw-input:checked ~ .a11y__sw { background: var(--a11y-accent); }
.a11y__sw-input:checked ~ .a11y__sw .a11y__sw-knob { transform: translateX(20px); }
.a11y__sw-input:focus-visible ~ .a11y__sw { outline: 3px solid var(--a11y-accent); outline-offset: 2px; }

/* Segmented multi-option controls (contrast / saturation / cursor); re-click active = off */
.a11y__seg2 { display: flex; gap: 0; }
.a11y__seg2-opt { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; text-align: center; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.15; color: #1b232b; background: #fff; border: 1.5px solid #d3d9df; border-right-width: 0; border-radius: 0; padding: 9px 6px; min-height: 46px; cursor: pointer; transition: background .12s ease, color .12s ease; }
.a11y__seg2-opt:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.a11y__seg2-opt:last-child { border-right-width: 1.5px; border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.a11y__seg2-opt:hover { background: color-mix(in srgb, var(--a11y-accent) 8%, #fff); }
.a11y__seg2-opt:focus-visible { outline: 3px solid var(--a11y-accent); outline-offset: 2px; position: relative; }
/* check marks active option (not colour alone); aria-pressed synced in JS */
.a11y__seg2-opt[aria-pressed="true"]::before { content: "\2713"; margin-right: 5px; font-weight: 900; }
.a11y__seg2[data-state="dark"]   [data-a11y-cycle-opt="dark"],
.a11y__seg2[data-state="invert"] [data-a11y-cycle-opt="invert"],
.a11y__seg2[data-state="low"]    [data-a11y-saturate-opt="low"],
.a11y__seg2[data-state="high"]   [data-a11y-saturate-opt="high"],
.a11y__seg2[data-state="grey"]   [data-a11y-saturate-opt="grey"],
.a11y__seg2[data-state="big"]    [data-a11y-cursor-opt="big"],
.a11y__seg2[data-state="mask"]   [data-a11y-cursor-opt="mask"],
.a11y__seg2[data-state="guide"]  [data-a11y-cursor-opt="guide"] {
  background: var(--a11y-accent); border-color: var(--a11y-accent); color: #fff;
}
/* Menu-position picker - segmented control (radios) */
.a11y__seg { display: flex; gap: 3px; padding: 3px; background: #fff; border: 1px solid #d3d9df; border-radius: 999px; }
.a11y__seg-opt { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 700; padding: 8px 3px; border-radius: 999px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.a11y__seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a11y__seg-opt:has(input:checked) { background: var(--a11y-accent); color: #fff; }
.a11y__seg-opt:has(input:focus-visible) { outline: 3px solid var(--a11y-accent); outline-offset: 2px; }

/* Footer: accent bar with the MDW bug (logo + tagline) and a Help link */
.a11y__footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; background: var(--a11y-accent); }
.a11y__bug { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: #fff; }
.a11y__bug-logo { height: 22px; width: auto; flex: 0 0 auto; color: #fff; }
.a11y__bug-tag { display: flex; flex-direction: column; font-size: 11px; line-height: 1.3; color: rgba(255,255,255,.9); }
.a11y__bug-by { font-weight: 700; color: #fff; }
/* Cursor tools (page-level; toggled on <html> by mdw-a11y.js) */
html.a11y-cursor-big, html.a11y-cursor-big * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6.5 1.4L16 19.5l-2.6 1.1-3.4-7L5 19z' fill='%23fff' stroke='%23111' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important; }
.a11y-guide { position: fixed; left: 0; right: 0; height: 0; border-top: 5px solid var(--a11y-cursor-accent, #1b232b); box-shadow: 0 0 0 1.5px rgba(255,255,255,.75), 0 3px 8px rgba(0,0,0,.4); pointer-events: none; z-index: 999; }
.a11y-mask-panel { position: fixed; left: 0; right: 0; background: rgba(13,18,26,.6); pointer-events: none; z-index: 998; }
.a11y-mask-top { top: 0; box-shadow: inset 0 -3px 0 var(--a11y-cursor-accent, #1b232b); }
.a11y-mask-bottom { bottom: 0; box-shadow: inset 0 3px 0 var(--a11y-cursor-accent, #1b232b); }
/* Saturation: a page filter applied to everything EXCEPT the (isolated) menu */
html.a11y-saturate-low  body > :not(.a11y) { filter: saturate(.5) !important; }
html.a11y-saturate-high body > :not(.a11y) { filter: saturate(1.6) !important; }
html.a11y-saturate-grey body > :not(.a11y) { filter: saturate(0) !important; }
/* ---- MENU ISOLATION: modes must not reach inside the menu ---- */
.a11y[data-a11y-menu], .a11y[data-a11y-menu] * {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  letter-spacing: normal !important; word-spacing: normal !important; line-height: normal !important;
}
.a11y[data-a11y-menu] .a11y__dys-chip { font-family: "OpenDyslexic", system-ui, sans-serif !important; }
.a11y[data-a11y-menu] { filter: none !important; }
/* keep menu icons visible under hide-images */
html.a11y-hide-images .a11y[data-a11y-menu] svg { display: inline-block !important; }

/* ---- r3peat (repeating-content grid; e.g. endorsements) ---- */
.r3peat-group { text-align: center; margin: 2rem 0 1rem; }
.r3peat-grid {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.5rem;
}
.r3peat-card { text-align: center; }
.r3peat-card__fig { margin: 0; }
.r3peat-card__photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto .75rem;
}
.r3peat-card__cap { display: flex; flex-direction: column; gap: .15rem; }
.r3peat-card__name { font-weight: 700; }
.r3peat-card__title { color: var(--color-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.r3peat-card__link { text-decoration: none; color: inherit; }

/* ---- Lengua — floating language picker (default switcher) ---- */
.lengua-fab { position: fixed; bottom: 80px; z-index: 999; font-size: 16px; }
.lengua-fab--right { right: 16px; }
.lengua-fab--left  { left: 16px; }
.lengua-fab--solo  { bottom: 16px; }  /* a11y widget off: nothing below, so sit in the corner */
.lengua-fab__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  background: #316ed2; color: #fff; border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  transition: background .2s ease, transform .2s ease;
}
.lengua-fab__toggle:hover { background: #295db3; transform: translateY(-2px); }
.lengua-fab__toggle:focus-visible { outline: 3px solid #316ed2; outline-offset: 2px; }
.lengua-fab__icon { width: 28px; height: 28px; transform: translateY(1px); }

/* Picker: pointed tag beside the button */
/* Stacks VERTICALLY and stays centred on the button, so it holds any number of
   languages. It was a horizontal row, which worked only because this site has
   two languages and therefore exactly one option to show. Kept in step with the
   kit so a third language doesn't run the tag off the side of the screen. */
.lengua-fab__pop {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: stretch;
  background: #316ed2;
  box-shadow: 0 6px 18px rgba(0,0,0,.26);
  overflow: hidden;   /* let the rounded corners clip the first/last option */
}
.lengua-fab--right .lengua-fab__pop { right: calc(100% + 20px); left: auto; border-radius: 12px 0 0 12px; }
.lengua-fab--left  .lengua-fab__pop { left: calc(100% + 20px); right: auto; border-radius: 0 12px 12px 0; }
.lengua-fab__pop[hidden] { display: none; }
/* Arrow point. Fixed height and centred rather than spanning the tag — with
   more than one row it became a tall spike. */
.lengua-fab__pop::after {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 16px; height: 34px; background: #316ed2;
}
.lengua-fab--right .lengua-fab__pop::after { left: 100%;  clip-path: polygon(0 0, 0 100%, 100% 50%); }
.lengua-fab--left  .lengua-fab__pop::after { right: 100%; clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.lengua-fab__opt {
  display: block; padding: .72rem 1.3rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.08rem;
  letter-spacing: .01em; color: #fff; text-decoration: none; white-space: nowrap;
  text-align: center; transition: background .18s ease;
}
.lengua-fab__opt + .lengua-fab__opt { border-top: 1px solid rgba(255,255,255,.22); }
.lengua-fab__opt:link,
.lengua-fab__opt:visited,
.lengua-fab__opt:hover,
.lengua-fab__opt:focus { color: #fff; text-decoration: none; }
/* Teal on hover, per OPTION. It used to tint the whole tag, which reads as the
   block being the target rather than the language under the cursor. */
.lengua-fab__opt:hover,
.lengua-fab__opt:focus-visible { background: #0fa3b1; }
.lengua-fab__opt[aria-current] { display: none; }   /* the current language isn't an option */

/* Lift floating buttons off the footer at page bottom (body.at-bottom); small screens only */
.a11y__toggle, .lengua-fab { transition: transform .3s ease; }
@media (max-width: 768px) {
  body.at-bottom .a11y__toggle,
  body.at-bottom .lengua-fab { transform: translateY(-90px); }
}

/* ---- SCROLL PERFORMANCE (kit standard) ----
   Keep scroll smooth: no un-throttled scroll handlers (site.js rAF-throttles
   is-scrolled — style off that class); transition only transform/opacity/
   background-color/box-shadow on the header (never `all`, size, or filter);
   no background-attachment:fixed; use backdrop-filter sparingly. */
.site-header {
  /* cheap-only transitions for the scrolled state */
  transition: box-shadow .4s ease, transform .2s ease;
}
/* Baseline scrolled treatment (sites override the look) */
html.is-scrolled .site-header { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }

/* ---- PAGE TRANSITIONS (opt-in via config 'transitions') ----
   Cross-document View Transitions; server adds xt + xt--<style> to <html>.
   Wrapped in prefers-reduced-motion: no-preference. */
@media (prefers-reduced-motion: no-preference) {

  /* Fade (default): sequential, not cross-fade (in delayed by out duration) */
  html.xt--fade::view-transition-old(root) { animation: xt-fade-out .30s ease both; }
  html.xt--fade::view-transition-new(root) { animation: xt-fade-in  .34s ease both; animation-delay: .30s; }
  /* Color faded through between pages (config transitions.fade_color).
     Painted on the transition group so the load gap is always covered. */
  html.xt--fade::view-transition-group(root) { background-color: var(--xt-fade-color, #fff); }

  /* Slide: small horizontal shift */
  html.xt--slide::view-transition-old(root) { animation: xt-slide-out .30s ease both; }
  html.xt--slide::view-transition-new(root) { animation: xt-slide-in  .30s ease both; }

  /* Scale: gentle zoom */
  html.xt--scale::view-transition-old(root) { animation: xt-scale-out .28s ease both; }
  html.xt--scale::view-transition-new(root) { animation: xt-scale-in  .28s ease both; }

  /* Wipe: reveal upward from bottom */
  html.xt--wipe::view-transition-old(root) { animation: xt-fade-out .20s ease both; }
  html.xt--wipe::view-transition-new(root) { animation: xt-wipe-in  .34s cubic-bezier(.4, 0, .2, 1) both; }

  /* Fallback for browsers without View Transitions */
  @supports not (view-transition-name: none) {
    html.xt #main            { animation: xt-fade-in  .30s ease both; }
    html.xt--slide #main     { animation: xt-slide-in .32s ease both; }
    html.xt--scale #main     { animation: xt-scale-in .30s ease both; }
    html.xt--wipe  #main     { animation: xt-wipe-in  .34s cubic-bezier(.4, 0, .2, 1) both; }
  }
}

@keyframes xt-fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes xt-fade-out  { from { opacity: 1; } to { opacity: 0; } }
@keyframes xt-slide-in  { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes xt-slide-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-24px); } }
@keyframes xt-scale-in  { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes xt-scale-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.012); } }
@keyframes xt-wipe-in   { from { clip-path: inset(0 0 100% 0); opacity: .85; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

/* ---- STANDARD MDW FOOTER (global/footer.php) ----
   Fixed structure; rebrand via --footer-* vars. MDW bug (.footer-mdw*) — do not restyle. */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block: clamp(3.25rem, 6vw, 5rem) 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: inline-flex; }
.footer-lead { display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem; }
.footer-logo { height: clamp(104px, 12vw, 136px); width: auto; }
.footer-menus { display: flex; align-items: flex-start; gap: clamp(1.75rem, 4vw, 3.5rem); flex-wrap: wrap; }
.footer-links { list-style: none; padding: 0; margin: 0; text-align: left; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { color: var(--footer-text); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.footer-links a:hover { color: var(--footer-link-hover); text-decoration: none; }
.footer-social { display: flex; gap: 0.85rem; }
.footer-social a { color: var(--footer-text-soft); display: inline-flex; font-size: 24px; line-height: 1; transition: color .15s ease; }
.footer-social a:hover { color: #fff; }
.footer-social svg { height: 1em; width: auto; }

.footer-mid { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.25rem; }
.footer-mid-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.footer-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.footer-addr { font-style: normal; font-family: var(--font-heading); font-weight: 400; line-height: 1.7; color: var(--footer-text); font-size: 1.05rem; }
.footer-org { display: block; color: var(--footer-org-accent); font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.2rem; }
.disclaimer { color: #fff; font-weight: 700; font-size: 1rem; border: 1.5px solid rgba(255,255,255,0.4); border-radius: var(--radius); padding: 0.9rem 1.2rem; max-width: 30rem; }

/* Footer action buttons (scoped to footer) */
.footer-actions .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.0625rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: 0.95rem 1.5rem; min-height: 48px;
  border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.footer-actions .btn:active { transform: translateY(1px); }
.footer-actions .btn--w230 { width: 230px; padding-inline: 0.5rem; line-height: 1.2; }
.footer-actions .btn--ghost-on-dark { background: transparent; color: var(--footer-text); border-color: rgba(255,255,255,0.55); }
.footer-actions .btn--ghost-on-dark:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.footer-actions .btn--donate { background: var(--footer-donate-bg); color: var(--footer-donate-text); border-color: var(--footer-donate-bg); }
.footer-actions .btn--donate:hover { filter: brightness(0.92); color: var(--footer-donate-text); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.85rem; border-top: 1px solid var(--footer-rule); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.footer-contact { color: var(--footer-text); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.footer-contact:hover { color: var(--footer-link-hover); text-decoration: none; }

/* ---------- The MDW bug (agency signature) — do NOT restyle ---------- */
.footer-mdw, .footer-mdw:hover { display: inline-flex; align-items: stretch; background: #000; border-radius: 3px; padding: 0; color: #fff; text-decoration: none; overflow: hidden; }
.footer-mdw__inner { display: inline-flex; align-items: center; padding: 9px 12px; }
.footer-mdw svg { width: 52px; height: auto; display: block; }
.footer-mdw__slot { display: grid; transition: grid-template-columns .45s cubic-bezier(.4,0,.2,1), opacity .35s ease; }
.footer-mdw__clip { overflow: hidden; min-width: 0; display: inline-flex; align-items: center; height: 18px; }
.footer-mdw__logo { grid-template-columns: 1fr; }
.footer-mdw__text { grid-template-columns: 0fr; opacity: 0; }
.footer-mdw__label { font-family: 'Montserrat', var(--font-heading), sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; line-height: 1; white-space: nowrap; color: #fff; padding: 0 3px; }
.footer-mdw__tm { font-size: .62em; vertical-align: .35em; }
.footer-mdw:hover .footer-mdw__logo, .footer-mdw:focus-visible .footer-mdw__logo { grid-template-columns: 0fr; opacity: 0; }
.footer-mdw:hover .footer-mdw__text, .footer-mdw:focus-visible .footer-mdw__text { grid-template-columns: 1fr; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .footer-mdw__slot { transition: opacity .2s ease; } }

@media (max-width: 820px) {
  .footer-top, .footer-mid, .footer-bottom, .footer-lead { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
  .footer-actions { justify-content: center; margin: 0.75rem 0 1.25rem; }
  .footer-menus { flex-direction: column; align-items: center; gap: 1.75rem; }
  .footer-links { text-align: center; }
  .footer-addr { text-align: center; }
  .footer-mid-right { align-items: center; }
}

/* ============================================================
   LAUREN BOOK — campaign design layer
   ============================================================ */

/* ---- Type + base ---- */
body { background: var(--color-bg); color: var(--color-text); font-size: 1.0625rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.01em; color: var(--mid); }
a { color: var(--fuchsia-ink); text-underline-offset: 2px; }
a:hover { color: var(--pacific); }
strong { font-weight: 700; }
::selection { background: var(--gold); color: var(--mid); }

.lb-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-heading); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--fuchsia-ink); margin: 0 0 .6rem;
}
.lb-eyebrow--gold { color: var(--gold); }
.lb-eyebrow--gold.lb-eyebrow { color: #7a6a00; }        /* on cream: accessible */
.section--mid .lb-eyebrow--gold { color: var(--gold); } /* on midnight: bright gold */
.u-nowrap { white-space: nowrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1;
  text-align: center;
  padding: .95rem 1.6rem; border-radius: 8px; border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--donate { background: var(--gold); color: var(--mid); border-color: var(--gold); box-shadow: 0 10px 24px -12px rgba(253,216,3,.9); }
.btn--donate:hover { background: var(--gold-soft); color: var(--mid); border-color: var(--gold-soft); }
.btn--pink { background: var(--fuchsia-ink); color: #fff; border-color: var(--fuchsia-ink); }
.btn--pink:hover { background: var(--pacific); color: var(--mid); border-color: var(--pacific); }
.btn--ghost { background: transparent; color: var(--mid); border-color: var(--mid); }
.btn--ghost:hover { background: var(--mid); color: #fff; }
.btn--light { background: #fff; color: var(--mid); border-color: #fff; }
.btn--light:hover { background: var(--gold); color: var(--mid); border-color: var(--gold); }
.btn--lg { font-size: 1.075rem; padding: 1.1rem 2rem; }
.btn--block { width: 100%; }

/* ---- Header / nav ---- */
/* Transparent header overlaying the hero on every page; fades opaque on scroll */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
}
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--mid) 0%, var(--mid-deep) 100%); opacity: 0; transition: opacity .45s ease; }
html.is-scrolled .site-header::before { opacity: 1; }
html.is-scrolled .site-header { box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); }
/* Header logo: hidden until scroll on home only; stays visible on every other page */
body.home .nav__brand { opacity: 0; pointer-events: none; transition: opacity .4s ease .25s; }
html.is-scrolled body.home .nav__brand { opacity: 1; pointer-events: auto; }
.site-header .nav { display: flex; align-items: center; gap: 1.4rem; min-height: 74px; padding-block: .5rem; position: relative; }
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand-color { height: 40px; width: auto; transform: scale(.85); transform-origin: center; transition: transform .3s ease; }
html.is-scrolled .nav__brand-color { transform: scale(1); transition: transform .5s ease .28s; }
.nav__brand:hover .nav__brand-color, .nav__brand:focus-visible .nav__brand-color { transform: scale(1); }
.nav__links { list-style: none; display: flex; align-items: center; gap: 1.7rem; margin: 0 0 0 auto; padding: 0; }
/* No menu transition while the viewport is being resized (prevents the mobile-menu flash). */
html.is-resizing .nav__links { transition: none !important; }
.nav__links a {
  font-family: var(--font-heading); font-weight: 700; font-size: .74rem; letter-spacing: .09em;
  text-transform: uppercase; color: #fff; text-decoration: none; padding: .35rem 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -7px; height: 8px; width: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='8' viewBox='0 0 15 8'%3E%3Cpath d='M0 4 Q3.75 0 7.5 4 T15 4' fill='none' stroke='%23fdd803' stroke-width='1.8' stroke-linecap='round' shape-rendering='geometricPrecision'/%3E%3C/svg%3E") repeat-x left center;
  background-size: 15px 8px;
  transition: width .3s ease;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--pacific); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { width: 100%; }
.nav__links a[aria-current] { color: var(--pacific); }
/* Mobile-menu-only extras (rendered inside .nav__links; shown in the mobile media query). */
.nav__menu-social, .nav__menu-cta { display: none; }
.nav__social { display: flex; align-items: center; gap: .7rem; }
.nav__social a { color: #fff; display: inline-flex; font-size: 18px; line-height: 1; transition: color .16s ease, transform .16s ease; }
.nav__social a:hover { color: var(--pacific); transform: translateY(-1px); }
.nav__social svg { height: 1em; width: auto; }
.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__cta .btn { padding: .7rem 1.4rem; font-size: .9rem; }
.nav__toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav__toggle-box { display: block; width: 26px; height: 18px; position: relative; }
.nav__toggle-bar { position: absolute; left: 0; width: 100%; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .22s ease, opacity .22s ease, top .22s ease; }
.nav__toggle-bar:nth-child(1) { top: 0; }
.nav__toggle-bar:nth-child(2) { top: 8px; }
.nav__toggle-bar:nth-child(3) { top: 16px; }
body.nav-open .nav__toggle-bar:nth-child(1) { top: 8px; transform: rotate(45deg); }
body.nav-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle-bar:nth-child(3) { top: 8px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .site-header .nav { gap: 10px; }
  /* The toggle stays above the overlay so it remains the close affordance. */
  .nav__toggle { display: block; order: 3; margin-left: 0; position: relative; z-index: 2; }
  .nav__social { display: none; }
  .nav__cta { order: 2; margin-left: auto; }
  /* Full-height mobile menu: midnight-blue → fuchsia gradient with the abstract mark
     masked over it (same treatment as the page hero / follow band). */
  .nav__links {
    order: 4; position: fixed; inset: 0; z-index: 1; margin: 0;
    height: 100vh; height: 100dvh;
    flex-direction: column; align-items: center; justify-content: center; gap: 0;
    padding: 5.5rem 1.35rem 3rem; overflow-y: auto; overflow-x: hidden;
    background: linear-gradient(125deg, var(--mid-deeper) 0%, var(--mid) 44%, #8a1060 76%, var(--fuchsia-ink) 100%);
    box-shadow: 0 20px 30px -16px rgba(0,0,0,.6); display: flex; isolation: isolate;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s ease, visibility 0s .28s;
  }
  /* The artwork is landscape and the menu is portrait, so `cover` would crop it to a
     featureless slice. Lay it out in a landscape box (dimensions swapped) and rotate it 90°
     to fill the panel — the facet shapes stay intact. */
  .nav__links::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    top: 50%; left: 50%;
    width: 100vh; width: 100dvh; height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg) scale(1.04);
    background: url("/mdw/resources/img/Lauren-Book-for-State-Senate-abstract-bg-2.webp") center / cover no-repeat;
    opacity: .55; mix-blend-mode: overlay;
  }
  body.nav-open .nav__links { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .28s ease, visibility 0s 0s; }
  .nav__links li { width: 100%; max-width: 420px; }
  .nav__links a {
    display: block; text-align: center; padding: 1rem .2rem;
    font-size: clamp(1.2rem, 5vw, 1.55rem); letter-spacing: .04em;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }
  .nav__links a::after { display: none; }
  .nav__links a:hover, .nav__links a:focus-visible, .nav__links a[aria-current] { color: var(--gold); }
  /* Global --focus-ring is fuchsia, which disappears against the fuchsia gradient.
     Keep the indicator (a11y) but switch it to gold while the menu is open. */
  body.nav-open .nav__toggle:focus-visible,
  .nav__links a:focus-visible,
  .nav__menu-social a:focus-visible,
  .nav__menu-cta .btn:focus-visible { outline-color: var(--gold); }
  /* Social row + donate button inside the panel */
  .nav__menu-social { display: block; margin-top: 1.6rem; }
  .nav__menu-social__row { display: flex; justify-content: center; gap: .9rem; }
  .nav__menu-social a {
    width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 12px;
    background: rgba(255,255,255,.10); color: #fff; font-size: 22px; line-height: 1;
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }
  .nav__menu-social a:hover, .nav__menu-social a:focus-visible { background: var(--gold); color: var(--mid); transform: translateY(-2px); }
  .nav__menu-social svg { height: 1em; width: auto; }
  .nav__menu-cta { display: block; margin-top: 1.6rem; }
  .nav__menu-cta .btn { width: 100%; }
  .nav__menu-cta .btn--donate,
  .nav__menu-cta .btn--donate:hover,
  .nav__menu-cta .btn--donate:focus-visible { color: var(--mid); }
}
@media (max-width: 420px) { .nav__cta .btn { padding: .6rem 1rem; } .nav__brand-color { height: 26px; } }

/* ---- Sections ---- */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section--cream { background: var(--cream); }
.section--mid { background: linear-gradient(160deg, var(--mid) 0%, var(--mid-deep) 60%, var(--mid-deeper) 100%); color: #fff; }
.section--mid h1, .section--mid h2, .section--mid h3 { color: #fff; }
.section__head { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__title { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; margin: 0; }
.lb-underline { display: block; width: 84px; height: 5px; border-radius: 3px; background: var(--gold); margin: 1rem 0 0; }
.section__head .lb-underline { margin-inline: auto; }

/* ---- Hero ---- */
.lb-hero { position: relative; overflow: hidden; background: var(--mid-deep); color: #fff; isolation: isolate; }
.lb-hero__media { position: absolute; inset: 0; z-index: -3; }
.lb-hero__img-m { display: none; }
.lb-hero__poster, .lb-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.lb-hero__scrim { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(20,17,58,.94) 0%, rgba(29,25,80,.82) 42%, rgba(29,25,80,.55) 100%),
    linear-gradient(0deg, rgba(20,17,58,.9) 0%, rgba(20,17,58,0) 45%);
}
.lb-hero__rays { position: absolute; z-index: -1; top: -18%; right: -8%; width: min(60vw, 720px); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(253,216,3,.32), rgba(253,216,3,.08) 55%, transparent 72%);
  filter: blur(4px); }
.lb-hero__inner { position: relative; display: grid; align-items: center; min-height: clamp(620px, 88vh, 900px); padding-block: clamp(3rem, 7vw, 5.5rem); }
.lb-hero__copy { max-width: 620px; }

/* Traditional split hero: photo left, logo + signup panel right */
.lb-hero--split .lb-hero__media { background: url("/mdw/resources/img/Lauren-Book-for-State-Senate-hero-new2-2400-desktop.webp") 28% center / cover no-repeat; }
.lb-hero--split .lb-hero__scrim { background: linear-gradient(to bottom, transparent 58%, rgba(17,5,57,.55) 82%, #110539 100%); }
.lb-hero--split .lb-hero__inner { grid-template-columns: 1fr 1fr; }
.lb-hero--split .lb-hero__copy { grid-column: 2; justify-self: center; max-width: 420px; }
.lb-hero--split .lb-hero__rays { top: -10%; right: 2%; width: min(40vw, 460px); }
@media (max-width: 860px) {
  /* Mobile hero: dedicated photo on top, copy below (logo overlaps the faded photo). */
  .lb-hero, .lb-hero--split { display: block; min-height: 0; }
  .lb-hero { background: linear-gradient(to bottom, var(--mid-deep) 0%, var(--mid-deep) 66%, #0f0139 100%); }
  .lb-hero__media, .lb-hero__scrim, .lb-hero__rays { display: none; }
  .lb-hero__img-m { display: block; width: 100%; height: clamp(420px, 104vw, 620px);
    object-fit: cover; object-position: 50% 18%;
    -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 64%, transparent 100%); }
  .lb-hero--split .lb-hero__inner { display: block; grid-template-columns: 1fr; min-height: 0; padding-block: 0; }
  .lb-hero--split .lb-hero__copy { grid-column: 1; max-width: none; text-align: center; margin-inline: auto;
    padding-bottom: clamp(4rem, 13vw, 5.5rem); }
  .lb-hero--split .lb-hero__logo { position: relative; z-index: 1; margin-inline: auto; margin-top: clamp(-150px, -34vw, -90px); }
  .lb-hero--split .lb-hero__title { margin-inline: auto; }
  .lb-hero--split .lb-hero__social { justify-content: center; }
  /* The hero form is a max-width:560px block; text-align:center doesn't center the box, so center it explicitly. */
  .lb-hero--split .hero-form { margin-inline: auto; }
}
.lb-hero__logo { display: block; width: min(78%, 420px); height: auto; margin: 0 auto 1.7rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.lb-hero__title { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.12; color: #fff; margin: 0 0 1.6rem; max-width: 30ch; }
.lb-hero__title .hl { color: var(--gold); }

/* Signup form */
.hero-form { background: none; border: 0; border-radius: 0; padding: 0; max-width: 560px; box-shadow: none; }
.hero-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.field-input, .hero-form input, .vol-form input, .vol-form textarea {
  width: 100%; font: inherit; color: var(--color-text); background: #fff;
  border: 1.5px solid transparent; border-radius: 10px; padding: .85rem 1rem;
}
.hero-field { position: relative; display: block; }
.hero-field__ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #7a7694; pointer-events: none; display: inline-flex; }
.hero-field__ico svg { width: 20px; height: 20px; }
.hero-form input { border: 0; border-radius: 8px; padding: .9rem 1rem .9rem 2.4rem; }
.hero-form input::placeholder { color: #6b6784; }
.hero-form input:focus-visible, .vol-form input:focus-visible, .vol-form textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.hero-form .btn { margin-top: 10px; }
.hero-form__consent { font-size: .74rem; line-height: 1.5; color: rgba(255,255,255,.78); margin: .85rem 0 0; }
.hero-form__consent a { color: #fff; text-decoration: underline; }
.hero-form__msg { background: rgba(253,216,3,.16); border: 1px solid var(--gold); color: #fff; border-radius: 8px; padding: .6rem .8rem; margin: 0 0 .8rem; font-size: .9rem; }
.lb-hero__social { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.lb-hero__social span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.lb-hero__social a { color: #fff; display: inline-flex; transition: color .16s ease, transform .16s ease; }
.lb-hero__social a:hover { color: var(--pacific); transform: translateY(-2px); }
.lb-hero__social svg { width: 22px; height: 22px; }

/* ---- Bio card ("Fighting for Florida Families") ---- */
.lb-bioblock { position: relative; background: var(--cream); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.lb-bioblock::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: clamp(300px, 40vh, 480px); background: linear-gradient(to bottom, #110539 0%, #110539 45%, rgba(17,5,57,0) 100%); pointer-events: none; z-index: 0; }
.lb-bio { position: relative; z-index: 1; margin-top: clamp(-5rem, -6vw, -3rem);
  background:
    radial-gradient(115% 115% at 100% 0%, rgba(236,0,140,.11), rgba(236,0,140,0) 42%),
    radial-gradient(115% 115% at 0% 100%, rgba(236,0,140,.11), rgba(236,0,140,0) 42%),
    #fffdf5;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem); box-shadow: var(--shadow-card); border: 1px solid #efe9d4; overflow: hidden; }
.lb-bio .lb-eyebrow { text-transform: none; font-weight: 400; font-size: 1.02rem; letter-spacing: .03em; margin-bottom: .1rem; }
.lb-bio__title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1; margin: 0; text-transform: uppercase; font-weight: 700; }
.lb-bio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; margin-top: 1.8rem; }
.lb-bio__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.lb-bio__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Inset "pip" photo over the lower-right corner */
.lb-bio__photo--inset { position: relative; overflow: visible; border-radius: 0; box-shadow: none; }
/* Fills the cell so the photo matches the text/button block height; the wider export has
   enough edge margin that the side crop no longer clips the kids. */
.lb-bio__photo--inset .lb-bio__photo-main { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.lb-bio__photo .lb-bio__photo-pip {
  position: absolute; right: -4%; bottom: -2%;
  width: 45%; height: auto; aspect-ratio: 16 / 11; object-fit: cover;
  border-radius: calc(var(--radius) * .7);
  box-shadow: 0 16px 36px rgba(20, 16, 45, .40), 0 4px 10px rgba(20, 16, 45, .24);
}
.lb-bio__lede { font-size: 1.2rem; font-weight: 600; color: var(--mid); line-height: 1.45; }
.lb-prose p { margin: 0 0 1rem; color: #3b3760; }
.lb-prose p:last-child { margin-bottom: 0; }

/* ---- Give band ---- */
.lb-give { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 -20px 40px -12px rgba(0,0,0,.35); }
.lb-give__video { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Subtle fuchsia glow anchored to the bottom-left corner (above the video, below the copy). */
.lb-give::after { content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; pointer-events: none;
  width: min(52%, 680px); height: min(78%, 460px);
  background: radial-gradient(ellipse at 0% 100%, rgba(236,0,140,.30) 0%, rgba(236,0,140,.14) 38%, rgba(236,0,140,0) 74%); }
.lb-give__video video { width: 100%; height: 100%; object-fit: cover; opacity: .14; }
.lb-give__inner { max-width: none; text-align: center; }
.lb-give__inner .lb-give__title { margin-inline: auto; }
.lb-give__inner .lb-give__lead { margin-inline: auto; }
.lb-give__inner .lb-amounts { margin-inline: auto; max-width: 960px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lb-give__inner .lb-give__note { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .lb-give__video video { display: none; } }
html.a11y-reduce-motion .lb-give__video video { display: none; }
.lb-give__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.lb-give__title { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.04; margin: 0 0 1rem; }
.lb-give__title .hl { color: var(--gold); }
.lb-give__lead { color: rgba(255,255,255,.85); max-width: 62ch; margin: 0 0 1.6rem; }
.lb-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .7rem; max-width: 460px; }
.lb-amount { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: #fff;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.28); border-radius: 12px; padding: 1rem .6rem;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.lb-amount:hover { background: var(--pacific); color: var(--mid); border-color: var(--pacific); transform: translateY(-2px); }
.lb-amount__sign { font-size: .8em; opacity: .55; transition: opacity .16s ease; }
.lb-amount:hover .lb-amount__sign { opacity: 1; }
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .lb-amount { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(255,255,255,.1); }
}
.lb-amount--any { background: var(--gold); color: var(--mid); border-color: var(--gold); font-size: 1.1rem; }
.lb-amount--any:hover { background: var(--gold-soft); color: var(--mid); border-color: var(--gold-soft); }
.lb-give__note { margin: 1.2rem auto 0; width: fit-content; display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: .5rem 1.1rem; }
.lb-give__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.lb-give__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---- Social bar (straddles bio + issues) ---- */
.lb-socialbar-band { position: relative; z-index: 5; }
.lb-socialbar { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap;
  margin: -2.75rem 0; padding: 1.25rem 2rem; border-radius: 20px;
  background: linear-gradient(160deg, #d1007f 0%, #a30067 100%); color: #fff; }
.lb-socialbar__label { font-family: var(--font-heading); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: clamp(1rem, 2vw, 1.3rem); }
.lb-socialbar__icons { display: inline-flex; gap: .6rem; }
.lb-socialbar__icons a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--fuchsia-ink); font-size: 18px; line-height: 1;
  transition: transform .16s ease, background .16s ease, color .16s ease; }
.lb-socialbar__icons a:hover { transform: translateY(-2px); background: var(--gold); color: var(--mid); }
.lb-socialbar__icons svg { height: 1em; width: auto; }

/* ---- On the Issues (home) ---- */
.lb-issues { position: relative; overflow: hidden; }
.lb-issues::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round' shape-rendering='geometricPrecision'%3E%3Cpath d='M0 10 Q20 2 40 10 T80 10'/%3E%3Cpath d='M0 30 Q20 38 40 30 T80 30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 40px; }
.lb-issues > .container { position: relative; z-index: 1; }
.lb-issues__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.lb-issue { display: flex; flex-direction: column; text-decoration: none; background: #fffdf5;
  color: #3b3760; border-radius: var(--radius); padding: 1.7rem 1.6rem; border: 1px solid #efe9d4;
  box-shadow: 0 22px 44px -26px rgba(0,0,0,.6);
  transition: transform .32s cubic-bezier(.2,.7,.3,1), box-shadow .32s ease, border-color .32s ease; }
.lb-issue:hover { transform: translateY(-11px) scale(1.015); box-shadow: 0 40px 70px -22px rgba(42,37,109,.55); border-color: #f0cfe2; color: #3b3760; }
.lb-issue__ico { width: 90px; height: 90px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); border-radius: 16px; margin-bottom: 1rem;
  transition: transform .32s cubic-bezier(.2,.7,.3,1), box-shadow .32s ease; }
.lb-issue__ico svg { height: 64px; width: auto; color: var(--mid); }
/* Fatten the fine-line icons so they hold up at small sizes (constant on-screen weight). */
.lb-issue__ico svg *, .prio-card__ico svg * {
  stroke: currentColor; stroke-width: 1.1px; vector-effect: non-scaling-stroke;
  paint-order: stroke; stroke-linejoin: round; stroke-linecap: round;
}
.lb-issue:hover .lb-issue__ico { transform: scale(1.06); box-shadow: 0 16px 28px -10px rgba(253,216,3,.55); }
.lb-issue h3 { color: var(--mid); font-size: 1.3rem; margin: 0 0 .5rem; transition: color .24s ease; }
.lb-issue:hover h3 { color: var(--fuchsia-ink); }
.lb-issue p { margin: 0 0 1.2rem; color: #3b3760; font-size: .98rem; }
.lb-issue__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; align-self: flex-end;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--fuchsia-ink);
  background: rgba(236,0,140,.1); border-radius: 999px; padding: .55rem 1.05rem;
  transition: background .24s ease, color .24s ease; }
.lb-issue:hover .lb-issue__more { background: var(--fuchsia-ink); color: #fff; }
.lb-issue__more svg { width: 17px; height: 17px; transition: transform .24s ease; }
.lb-issue:hover .lb-issue__more svg { transform: translateX(4px); }

/* ---- Signup split (footer signup) ---- */
.signup-split { display: grid; grid-template-columns: 1fr 1fr; }
.signup-split__media { background: var(--signup-photo, url("/mdw/resources/img/Lauren-Book-for-State-Senate-footer-1.webp")) center / cover no-repeat; min-height: 100%; }
.signup-split__panel { position: relative; overflow: hidden; color: #fff;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  padding-right: max(clamp(1.5rem, 5vw, 4rem), calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background: linear-gradient(120deg, var(--mid-deeper) 0%, var(--mid-deep) 55%, var(--mid) 100%); }
.signup-split__panel::before { content: ""; position: absolute; z-index: 0; inset: -40%; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='44' viewBox='0 0 90 44'%3E%3Cpath d='M0 22 Q22.5 6 45 22 T90 22' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat; transform: rotate(28deg); opacity: .16;
  -webkit-mask-image: linear-gradient(300deg, #000 8%, transparent 72%);
  mask-image: linear-gradient(300deg, #000 8%, transparent 72%); }
.signup-split__inner { position: relative; z-index: 1; width: 100%; max-width: 460px; }
.signup-split__eyebrow { font-family: var(--font-heading); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .82rem; color: var(--gold); margin: 0 0 .5rem; }
.signup-split__h { font-family: var(--font-heading); color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.06; margin: 0 0 .6rem; }
.signup-split__lead { color: rgba(255,255,255,.85); margin: 0; line-height: 1.55; }
.signup-split .hero-form { margin-top: 1.4rem; max-width: none; }
.signup-split .hero-form input { padding-left: 1rem; }
.signup-split .hero-form__consent a { color: var(--gold); text-decoration: underline; }
.signup-split .hero-form__consent a:hover { color: #fff; }
@media (max-width: 860px) {
  .signup-split { grid-template-columns: 1fr; }
  .signup-split__media { min-height: 280px; }
  .signup-split__inner { max-width: none; }
}

/* ---- Follow band (pre-footer) ---- */
.lb-follow { position: relative; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, #d1007f 0%, #a30067 100%); color: #fff;
  padding-block: clamp(3.5rem, 7vw, 5.5rem); isolation: isolate; }
.lb-follow::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/mdw/resources/img/Lauren-Book-for-State-Senate-abstract-bg.webp") center / cover no-repeat;
  opacity: .55; mix-blend-mode: overlay; pointer-events: none; }
.lb-follow__eyebrow { color: var(--mid); }
.lb-follow__title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; margin: 0 0 .4rem; color: #fff; }
.lb-follow__title .hl { color: var(--gold); }
.lb-follow__sub { letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; color: rgba(255,255,255,.72); margin: 1.4rem 0 1rem; }
.lb-follow__icons { display: inline-flex; gap: 1rem; }
.lb-follow__icons a { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background .18s ease, transform .18s ease, color .18s ease; }
.lb-follow__icons a:hover { background: var(--gold); color: var(--mid); transform: translateY(-3px); }
.lb-follow__icons a { font-size: 24px; line-height: 1; }
.lb-follow__icons svg { height: 1em; width: auto; }

/* ---- Interior page hero ---- */
.page-hero { position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: clamp(340px, 44vh, 560px); padding-block: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(160deg, var(--mid) 0%, var(--mid-deep) 62%, #0f0039 100%); color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/mdw/resources/img/Lauren-Book-for-State-Senate-abstract-bg-2.webp") center / cover no-repeat;
  opacity: .55; mix-blend-mode: overlay; pointer-events: none; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 48%, #0f0039 100%); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; margin: 0; color: #fff; text-transform: uppercase; }
.page-hero__title .hl { color: var(--gold); }
/* Error hero: big status code with the short message right beneath it. */
.page-hero__title .err-code { display: block; }
.page-hero__title .err-sub { display: block; margin-top: .5rem; font-size: clamp(1.25rem, 3vw, 2.1rem); line-height: 1.15; color: #fff; text-transform: none; letter-spacing: normal; }
.page-body { background: var(--cream); }

/* Lead box straddling the hero seam (Meet Lauren) */
.lb-lead { position: relative; z-index: 2; margin-top: clamp(-5.5rem, -8vw, -3.5rem); background: linear-gradient(160deg, var(--mid) 0%, var(--mid-deep) 100%);
  color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.4rem); padding-left: clamp(2.7rem, 5.5vw, 4rem);
  box-shadow: 0 0 36px rgba(236,0,140,.20), 0 18px 50px -22px rgba(0,0,0,.7); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.4; }
.lb-lead::before { content: ""; position: absolute; left: clamp(1.5rem, 3.5vw, 2.4rem); top: clamp(1.4rem, 3.2vw, 2.1rem); bottom: clamp(1.4rem, 3.2vw, 2.1rem);
  width: 4px; border-radius: 3px; background: var(--fuchsia); }

/* ---- Meet Lauren body ---- */
.about-intro { position: relative; background: #0f0039; color: #fff; padding-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: 0; }
.about-intro .about-prose p { color: rgba(255,255,255,.86); }
.about-intro > .container { position: relative; z-index: 2; }
.about-photos.about-photos--straddle { position: relative; z-index: 2; margin-top: 2.4rem; margin-bottom: clamp(-7rem, -13vw, -4.5rem); }
/* Generic straddle slot: the first cream-body block is pulled UP so it overlaps the dark band → cream
   seam (e.g. the first Priorities card, the Volunteer form, the legal sheet). The band keeps a modest
   height regardless of how tall that block is, because the block lives in the cream section. */
.about-more--pull { padding-top: 0; }
.about-more--pull > .container > .about-straddle:first-child { position: relative; z-index: 2; max-width: 1000px; margin-inline: auto; margin-top: clamp(-9rem, -16vw, -6rem); margin-bottom: clamp(2rem, 4vw, 2.8rem); }
/* Priorities: match the straddle card's bottom gap to the list's gap (1.4rem) so the first gap isn't larger. */
.about-more--pull > .container > .about-straddle:first-child:has(.prio-card) { margin-bottom: 1.4rem; }
.about-intro:has(~ .about-more--pull) { padding-bottom: clamp(6.5rem, 13vw, 9rem); }
/* Legal pages: no lead card — pull the white sheet up so it rises well into the purple band. */
.page-legal .about-intro:has(~ .about-more--pull) { padding-bottom: clamp(6rem, 12vw, 8rem); }
.page-legal .about-more--pull > .container > .about-straddle:first-child { margin-top: clamp(-12rem, -22vw, -8rem); }
/* Error pages: no lead card (message is under the code) — compact hero + short purple band. */
.page-error .page-hero { min-height: clamp(240px, 30vh, 340px); }
.page-error .about-intro:has(~ .about-more--pull) { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.page-error .about-more--pull > .container > .about-straddle:first-child { margin-top: clamp(-6rem, -10vw, -4rem); }
/* Lead-only pages (nothing straddling the seam) soft-fade the dark band into the cream body. */
.about-intro:not(:has(.about-photos--straddle)):not(:has(~ .about-more--pull)) { padding-bottom: clamp(3rem, 7vw, 5rem); }
.about-intro:not(:has(.about-photos--straddle)):not(:has(~ .about-more--pull))::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(70px, 11vw, 120px); background: linear-gradient(to bottom, rgba(15,0,57,0), var(--cream)); pointer-events: none; z-index: 1; }
.about-more { position: relative; background: var(--cream); padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.about-more--straddle-body { padding-top: clamp(6rem, 15vw, 9rem); }
.about-more::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(42,37,109,0.08) 1.6px, transparent 1.7px); background-size: 22px 22px; background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 62%); }
.about-more > .container { position: relative; z-index: 1; }
.about-prose { max-width: 880px; margin-inline: auto; }
.about-prose p { font-size: 1.1rem; color: #3b3760; margin: 0 0 1.25rem; }
.about-prose h2 { color: var(--mid); font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.2; margin: 2.4rem 0 .9rem; }
.about-prose h2:first-child { margin-top: 0; }
.about-prose h3 { color: var(--mid); font-size: 1.2rem; margin: 1.8rem 0 .7rem; }
.about-prose ul, .about-prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.about-prose li { font-size: 1.1rem; color: #3b3760; line-height: 1.65; margin: 0 0 .5rem; }
.about-prose li::marker { color: var(--fuchsia); }
.about-prose a:not(.btn) { color: var(--fuchsia-ink); text-decoration: underline; text-underline-offset: 2px; }
.about-prose a:not(.btn):hover { color: var(--mid); }
.about-prose strong { color: var(--mid); }
.about-prose hr { border: 0; border-top: 1px solid rgba(42,37,109,.14); margin: 2.2rem 0; }
.about-prose .legal__updated { color: #6c6790; font-size: .98rem; margin-top: -.3rem; }
.about-prose .legal__disclaimer { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(42,37,109,.14); font-size: .92rem; color: #6c6790; }
/* Light "document sheet" — the straddle card for text pages (legal, errors). Keeps text readable
   where the block overlaps the dark band. */
.doc-sheet { background: #fffdf7; border: 1px solid #efe9d4; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow-card); }
.doc-sheet .about-prose { max-width: none; }
.doc-sheet--center { text-align: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.6rem); margin: 2rem 0; max-width: 980px; margin-inline: auto; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---- Priorities ---- */
.prio-list { display: flex; flex-direction: column; gap: 1.4rem; max-width: 1000px; margin-inline: auto; }
.prio-card { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  background: linear-gradient(160deg, var(--mid) 0%, var(--mid-deep) 100%); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.3rem); box-shadow: var(--shadow-card); scroll-margin-top: 120px; }
.prio-card__ico { width: 96px; height: 96px; border-radius: 50%; background: var(--fuchsia); display: inline-flex; align-items: center; justify-content: center; }
.prio-card__ico svg { height: 58px; width: auto; color: #fff; }
.prio-card p.prio-card__eyebrow { color: var(--gold); font-family: var(--font-heading); font-weight: 700; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; margin: 0; line-height: 1.4; }
.prio-card h2 { color: #fff; font-size: clamp(1.35rem, 2.8vw, 1.9rem); margin: .35rem 0 .9rem; text-transform: uppercase; }
.prio-card__rule { height: 2px; background: rgba(255,255,255,.16); border: 0; margin: 0 0 1rem; }
.prio-card p { margin: 0; color: rgba(255,255,255,.86); line-height: 1.65; }

/* ---- Priorities jump-nav grid (in the dark band; 3 on top, 4 on bottom) ---- */
.prio-band-intro { max-width: 820px; margin: 0 auto clamp(2rem, 4vw, 3rem); font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.05rem, 1.9vw, 1.35rem); line-height: 1.4; color: #fff; text-align: center; }
.prio-nav { max-width: 1000px; margin-inline: auto; display: grid; grid-template-columns: repeat(24, 1fr); gap: clamp(12px, 1.5vw, 18px); }
.prio-nav__card { grid-column: span 6; position: relative; display: flex; flex-direction: column; gap: .9rem; min-height: 148px; padding: 1.3rem 1.3rem 1.2rem; border-radius: 14px; text-decoration: none;
  background: linear-gradient(160deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.03) 100%); border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 44px -28px rgba(0,0,0,.75); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
/* Every box is the same 1/4 width. Top row is 3 boxes, centered (so it's narrower than the row); bottom row is 4 boxes filling the width. */
.prio-nav__card:nth-child(1) { grid-column: 4 / span 6; }
.prio-nav__card:nth-child(2) { grid-column: 10 / span 6; }
.prio-nav__card:nth-child(3) { grid-column: 16 / span 6; }
.prio-nav__card:hover { transform: translateY(-5px); border-color: rgba(236,0,140,.55); box-shadow: 0 0 42px rgba(236,0,140,.28), 0 26px 60px -30px rgba(0,0,0,.85); }
.prio-nav__card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.prio-nav__icon { width: 66px; height: 66px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fuchsia); }
.prio-nav__icon svg { width: 40px; height: auto; color: #fff; }
.prio-nav__title { margin-top: auto; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; font-size: .92rem; line-height: 1.2; color: #fff; padding-right: 2rem; }
.prio-nav__arrow { position: absolute; top: 1rem; right: 1rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: background .2s ease; }
.prio-nav__arrow svg { width: 14px; height: 14px; }
.prio-nav__card:hover .prio-nav__arrow { background: var(--fuchsia); }
@media (max-width: 860px) { .prio-nav { grid-template-columns: 1fr 1fr; } .prio-nav__card:nth-child(n) { grid-column: auto; } }
@media (max-width: 480px) { .prio-nav { grid-template-columns: 1fr; } .prio-nav__card:nth-child(n) { grid-column: auto; } .prio-nav__card { min-height: 0; flex-direction: row; align-items: center; } .prio-nav__title { margin-top: 0; } }

/* ---- Endorsements (r3peat collection) ---- */
/* The coalition lead card is the straddle block here; neutralize the hero-overlap
   margin it uses on the Meet page and give it a gentler pull + a comfortable width. */
/* Endorsements: the white sheet is the straddle block; pull it up into the purple band (which keeps its floating lead card). */
.page-endorsements .about-more--pull > .container > .about-straddle:first-child { max-width: none; margin-top: clamp(-7rem, -13vw, -5rem); }
.end-sheet .end-section { max-width: none; margin-inline: 0; }
.end-empty { text-align: center; color: #6c6790; margin: 0; }
.end-section { max-width: 1060px; margin-inline: auto; }
.end-section + .end-section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.end-group { display: flex; align-items: center; gap: 1rem; margin: 0 0 clamp(1.3rem, 3vw, 1.9rem); font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--mid); font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.1; }
.end-group span { flex: none; }
.end-group::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), rgba(253,216,3,0)); }
.end-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.end-card { margin: 0; }
.end-card__fig { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .85rem; background: #f7f6fd; border: 1px solid rgba(42,37,109,.10); border-radius: var(--radius); padding: 1.3rem 1rem 1.15rem; box-shadow: 0 8px 20px -16px rgba(20,17,58,.45); }
.end-card__imgwrap { display: grid; place-items: center; }
.end-card__img { display: block; }
.end-grid--people .end-card__img { width: clamp(78px, 62%, 112px); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 10px 24px -12px rgba(20,17,58,.5); }
.end-grid--logos .end-card__img { width: clamp(92px, 74%, 132px); aspect-ratio: 1 / 1; object-fit: contain; }
.end-card__cap { display: flex; flex-direction: column; gap: .22rem; margin-top: auto; }
.end-card__name { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--mid); font-size: .82rem; line-height: 1.15; }
.end-card__title { color: #6c6790; font-size: .72rem; line-height: 1.25; }
@media (max-width: 900px) { .end-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .end-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Volunteer form ---- */
.vol-wrap { max-width: 860px; margin-inline: auto; }
.vol-intro { font-size: 1.1rem; color: #3b3760; margin: 0 0 1.8rem; }
.vol-form { background: #fffdf5; border: 1px solid #efe9d4; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-card); }
.vol-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.vol-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.vol-field label, .vol-legend { font-family: var(--font-heading); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mid); }
.vol-field .req { color: var(--fuchsia-ink); }
.vol-form textarea { min-height: 120px; resize: vertical; }
/* The shared field rule uses a transparent border, which vanishes against this cream panel.
   #8f89a8 clears 3:1 against both the panel and the white field (WCAG non-text contrast). */
.vol-form input, .vol-form textarea { border-color: #8f89a8; }
.vol-form input::placeholder, .vol-form textarea::placeholder { color: #6b6784; }
.vol-checks-box { border: 1.5px solid #b5afc9; border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1.3rem; }
.vol-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; margin-top: .9rem; }
.vol-check { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: #3b3760; cursor: pointer; }
.vol-check input { width: 20px; height: 20px; accent-color: var(--fuchsia-ink); flex: 0 0 auto; }
.field-error { color: var(--fuchsia-ink); font-size: .85rem; font-weight: 600; }
.alert { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.2rem; font-weight: 600; }
.alert--err { background: #fdeaf4; border: 1px solid var(--fuchsia); color: #8a0057; }

/* ---- Reveal on scroll ---- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--reveal-delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- Reduced motion / hide-images: drop the hero video, keep poster ---- */
@media (prefers-reduced-motion: reduce) { .lb-hero__video { display: none; } }
html.a11y-reduce-motion .lb-hero__video { display: none; }
html.a11y-hide-images .lb-hero__scrim { background: var(--mid-deep); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .lb-bio__grid, .lb-give__grid { grid-template-columns: 1fr; }
  .lb-give__inner .lb-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; }
  .lb-bio__photo img { aspect-ratio: 16 / 10; height: auto; }
  .lb-bio__photo .lb-bio__photo-pip { width: 40%; }
  .lb-bio { margin-top: clamp(-3.5rem, -9vw, -2rem); }
  .lb-bio .btn--pink { width: 100%; }
  .lb-socialbar-band { background: linear-gradient(to bottom, var(--cream) 50%, var(--mid) 50%); padding-block: clamp(.9rem, 3.5vw, 1.3rem); }
  .lb-socialbar { flex-direction: column; text-align: center; margin: 0; }
  .lb-socialbar__label { text-align: center; }
  .lb-give__media { order: -1; }
  .lb-issues__grid { grid-template-columns: 1fr; }
  .about-photos { grid-template-columns: 1fr; }
  .vol-row { grid-template-columns: 1fr; }
  .vol-checks { grid-template-columns: 1fr; }
  .prio-card { grid-template-columns: 1fr; }
  .prio-card__ico { width: 78px; height: 78px; }
  .prio-card__ico svg { height: 51px; }
}
@media (max-width: 560px) {
  .hero-form__grid { grid-template-columns: 1fr; }
  .lb-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-hero__logo { width: min(88%, 320px); }
}

/* ---- Component + page styles per project below ---- */

/* ---- Red box / Media page (mdw/media.php) ----
   Added 2026-08-12 with the Red Box system. Taken from the kit stylesheet:
   this site already uses the kit's --color-* token names, so the block
   inherits the palette without edits.

   The literal red box: outlined in the accent colour because that is the
   convention these pages follow, and campaigns recognise it on sight. It sits
   inside the legal pages' .doc-sheet, so it needs no surface of its own. */
.redbox {
  max-width: 820px; margin-inline: auto;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius, 8px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.redbox > :first-child { margin-top: 0; }
.redbox > :last-child  { margin-bottom: 0; }
.redbox p { margin: 0 0 1rem; line-height: 1.65; }
.redbox h2, .redbox h3 { margin: 1.75rem 0 .5rem; }
.redbox__updated { color: var(--color-muted); font-style: italic; margin-bottom: .75rem; }

/* [box]…[/box] from the editor. A tinted inset for the part that is
   reference material rather than message — usually key dates. */
.redbox__panel {
  background: color-mix(in srgb, var(--color-primary) 4%, transparent);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.75rem;
}
.redbox__panel > :last-child { margin-bottom: 0; }

/* Ticked list. The rows are talking points a reader scans and picks from, so
   they are separated rather than bulleted. */
.redbox ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.redbox li { position: relative; padding: .75rem 0 .75rem 2.1rem; line-height: 1.6; }
.redbox li + li { border-top: 1px solid var(--color-border); }
.redbox li::before {
  content: "\2713"; position: absolute; left: 0; top: .72rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
  font-size: .72rem; font-weight: 700; line-height: 1;
  display: grid; place-items: center;
}
.redbox ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.redbox ol li { padding: .35rem 0; border-top: 0; }
.redbox ol li::before { content: none; }
.redbox__assets { margin-top: 2rem; }

/* ---- Red box gallery (uploaded photos + video) ----
   A wrapper, not the kit's full-width .redbox-media band: on this site the
   gallery renders INSIDE the cream body's container (subpage-open.php has
   already opened it), so a band with its own background can't be nested there
   cleanly. Spacing does the separating instead. */
.redbox-media__wrap { margin-top: clamp(2rem, 5vw, 3.5rem); }
.redbox-media__kicker {
  margin: 0 0 .35rem;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.redbox-media__h { margin: 0 0 1.75rem; text-align: center; }

.redbox__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.5rem, 1.4vw, 1rem);
  max-width: 1000px;
  margin-inline: auto;
}
.redbox__tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-border);
}
.redbox__tile > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}
@supports not (aspect-ratio: 1 / 1) {
  .redbox__tile > img { height: 260px; object-fit: cover; }
}
a.redbox__tile:hover > img,
a.redbox__tile:focus-visible > img { transform: scale(1.04); }
a.redbox__tile:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}
.redbox__cap {
  margin: .4rem 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--color-muted);
}

/* Videos live below the photo grid, full width WITHIN the gallery's container
   (not the viewport), stacked. A campaign video is the thing people came to
   watch, not a thumbnail to squint at in a square. */
.redbox__videos {
  max-width: 1000px;
  margin-inline: auto;
  margin-top: clamp(1rem, 2.6vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.6vw, 1.75rem);
}
.redbox__videowrap { margin: 0; }
.redbox__video--wide {
  width: 100%;
  height: auto;
  /* Reserve 16:9 before metadata loads so the page doesn't jump; object-fit
     letterboxes anything that isn't 16:9 rather than stretching it. */
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius);
}

@media (max-width: 760px) {
  .redbox__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .redbox__gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .redbox__tile > img { transition: none; }
  a.redbox__tile:hover > img { transform: none; }
}
