/* =========================================================================
   Oconee Together — design system
   "A quiet place to find help." Dawn light over the Georgia Piedmont, with
   the precision of an Apple product page.

   This file holds the shared foundation only: tokens, type, base components,
   header, footer, Display & language panel, Quick exit and the motion hooks.
   Page-specific rules live in assets/css/{home,resources,guides,crisis,about}.css
   and illustrations in assets/css/scenery.css.

   Rules of the road for page CSS
   - Always use the tokens below. No hard-coded colors outside scenery.css.
   - Every text color here passes WCAG 2.2 AA (4.5:1 body, 3:1 large/UI) in
     Dawn (light), Night forest (dark) and high contrast.
   - Animate only transform, opacity and filter. Hidden start states only
     under html.js.motion-ok (see "Motion" near the end).

   Contents
     1  Tokens: Dawn (light)          11  Shared content blocks
     2  Tokens: Night forest (dark)   12  Resource card + save button
     3  Tokens: high contrast         13  Header
     4  Base                          14  Mobile menu sheet
     5  Type utilities                15  Footer ("the ground")
     6  Layout utilities              16  Display & language panel
     7  Buttons + links               17  Quick exit
     8  Forms + search                18  Motion engine hooks
     9  Chips + badges                19  Display preferences
    10  Icon button, materials        20  Reduced motion, print
   ========================================================================= */

/* ---------- 1. Tokens: Dawn (light) ---------- */
:root {
  color-scheme: light;

  /* Type */
  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", ui-serif, Georgia, serif;

  /* Color */
  --paper: #F7F6F1;          /* page background, warm morning paper */
  --paper-2: #EFEEE7;        /* quiet sunken bands */
  --surface: #FFFFFF;        /* cards, inputs */
  --surface-2: #FFFFFF;      /* raised controls: segmented thumb, menus */
  --ink: #1B1E1A;            /* headings */
  --text: #2A2E29;           /* body */
  --text-2: #5E635B;         /* secondary text, 5.7:1 on paper */
  --text-3: #8A8F86;         /* decoration, or text >= 24px only */
  --line: rgb(27 30 26 / .10);      /* hairlines */
  --line-2: rgb(27 30 26 / .16);    /* slightly firmer hairlines (secondary buttons, chips) */
  --line-strong: #8A8F86;           /* control borders, 3.3:1 on white */
  --fill: rgb(27 30 26 / .045);     /* hover wash */
  --fill-2: rgb(27 30 26 / .075);   /* segmented-control track, pressed wash */
  --pine: #234D3A;           /* primary buttons + links, white text 9.6:1 */
  --pine-2: #1A3B2C;         /* primary hover */
  --on-pine: #FFFFFF;
  --moss: #3F6B50;           /* eyebrows, accent text, 5.7:1 on paper */
  --sage: #9DB8A3;           /* decoration */
  --lichen: #DCE6D7;         /* soft fills, selected chips */
  --mist: #E9EFE8;           /* soft panels */
  --clay: #A94E2C;           /* Georgia red clay accent text, 5.1:1 on paper */
  --clay-soft: #F9EDE5;      /* "Call to confirm" badge background */
  --sun: #E9B872;            /* decoration: sun, glints */
  --focus: #2C6E4F;          /* 3px focus ring, 2px offset */
  --link: var(--pine);
  --danger: #B3261E;         /* form errors, 6.4:1 on white */
  --switch-off: #8A8F86;     /* iOS switch track when off, 3.3:1 on white */

  /* The ground: footer and other deep color fields */
  --ground: #1E3529;
  --on-ground: #E6EEE7;      /* 11.1:1 on ground */
  --on-ground-2: #A9BBAD;    /* 6.5:1 on ground */
  --ground-line: rgb(230 238 231 / .14);

  /* Materials */
  --glass: rgb(255 255 255 / .62);
  --glass-strong: rgb(247 246 241 / .80);   /* header once scrolled */
  --glass-blur: blur(20px) saturate(1.8);
  --scrim: rgb(16 24 19 / .34);
  --spotlight: rgb(233 184 114 / .16);

  /* Brand mark (the little landscape medallion) */
  --mark-sky: #E9EFE8;
  --mark-far: #9DB8A3;
  --mark-near: #234D3A;
  --mark-leaf: #3F6B50;
  --mark-leaf-2: #234D3A;
  --mark-sun: #E9B872;
  --mark-cut: transparent;   /* turns the sun into a crescent moon at night */
  --mark-ring: transparent;

  /* Depth */
  --shadow-1: 0 1px 2px rgb(20 24 20 / .04), 0 2px 8px rgb(20 24 20 / .04);
  --shadow-2: 0 2px 4px rgb(20 24 20 / .04), 0 12px 32px -8px rgb(20 24 20 / .12);
  --shadow-3: 0 4px 8px rgb(20 24 20 / .05), 0 32px 64px -16px rgb(20 24 20 / .20);

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Layout */
  --wrap: 1200px;
  --wrap-wide: 1440px;
  --wrap-narrow: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 56px;
  --space-section: clamp(96px, 12vw, 168px);      /* home: Apple-scale air */
  --space-section-sm: clamp(56px, 8vw, 104px);    /* inner pages: tighter */
  --measure: 64ch;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);   /* micro-interactions only */
  --dur-1: 160ms;    /* hover */
  --dur-2: 320ms;    /* UI state */
  --dur-3: 720ms;    /* reveal */
  --dur-4: 1200ms;   /* hero entrance */

  /* Stacking. Nothing on a page should go above --z-exit. */
  --z-header: 50;
  --z-scrim: 900;
  --z-dialog: 910;
  --z-exit: 1000;

  /* Legacy aliases (deprecated: use the tokens above) */
  --font-body: var(--font-sans);
  --font-display: var(--font-serif); /* Newsreader headlines; the legible-font setting swaps both */
  --bg: var(--paper);
  --heading: var(--ink);
  --text-muted: var(--text-2);
  --primary: var(--pine);
  --on-primary: var(--on-pine);
}

/* ---------- 2. Tokens: Night forest (dark) ---------- */
/* Follows the device unless the person picks a theme in Display & language.
   The two blocks below must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0D110F;
    --paper-2: #121815;
    --surface: #161D19;
    --surface-2: #27302B;
    --ink: #EEF2EC;
    --text: #D6DDD5;
    --text-2: #9CA79E;
    --text-3: #6E7A71;
    --line: rgb(238 242 236 / .10);
    --line-2: rgb(238 242 236 / .16);
    --line-strong: #6E7A71;
    --fill: rgb(238 242 236 / .05);
    --fill-2: rgb(238 242 236 / .085);
    --pine: #8FC9A3;
    --pine-2: #A6D6B6;
    --on-pine: #0B1A12;
    --moss: #9FD0AE;
    --sage: #5E8A6C;
    --lichen: #1F3127;
    --mist: #141C18;
    --clay: #E99A78;
    --clay-soft: #2E1D15;
    --sun: #F2CF7E;
    --focus: #9FD0AE;
    --danger: #FF9B8F;
    --switch-off: #6E7A71;
    --ground: #0A0E0C;
    --ground-line: rgb(230 238 231 / .10);
    --glass: rgb(22 29 25 / .62);
    --glass-strong: rgb(13 17 15 / .78);
    --scrim: rgb(0 0 0 / .5);
    --spotlight: rgb(159 208 174 / .08);
    --mark-sky: #1C2B23;
    --mark-far: #2E4739;
    --mark-near: #5A8A6C;
    --mark-leaf: #9FD0AE;
    --mark-leaf-2: #9FD0AE;
    --mark-sun: #F2CF7E;
    --mark-cut: #1C2B23;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 2px 8px rgb(0 0 0 / .24);
    --shadow-2: 0 2px 4px rgb(0 0 0 / .3), 0 12px 32px -8px rgb(0 0 0 / .55);
    --shadow-3: 0 4px 8px rgb(0 0 0 / .35), 0 32px 64px -16px rgb(0 0 0 / .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0D110F;
  --paper-2: #121815;
  --surface: #161D19;
  --surface-2: #27302B;
  --ink: #EEF2EC;
  --text: #D6DDD5;
  --text-2: #9CA79E;
  --text-3: #6E7A71;
  --line: rgb(238 242 236 / .10);
  --line-2: rgb(238 242 236 / .16);
  --line-strong: #6E7A71;
  --fill: rgb(238 242 236 / .05);
  --fill-2: rgb(238 242 236 / .085);
  --pine: #8FC9A3;
  --pine-2: #A6D6B6;
  --on-pine: #0B1A12;
  --moss: #9FD0AE;
  --sage: #5E8A6C;
  --lichen: #1F3127;
  --mist: #141C18;
  --clay: #E99A78;
  --clay-soft: #2E1D15;
  --sun: #F2CF7E;
  --focus: #9FD0AE;
  --danger: #FF9B8F;
  --switch-off: #6E7A71;
  --ground: #0A0E0C;
  --ground-line: rgb(230 238 231 / .10);
  --glass: rgb(22 29 25 / .62);
  --glass-strong: rgb(13 17 15 / .78);
  --scrim: rgb(0 0 0 / .5);
  --spotlight: rgb(159 208 174 / .08);
  --mark-sky: #1C2B23;
  --mark-far: #2E4739;
  --mark-near: #5A8A6C;
  --mark-leaf: #9FD0AE;
  --mark-leaf-2: #9FD0AE;
  --mark-sun: #F2CF7E;
  --mark-cut: #1C2B23;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 2px 8px rgb(0 0 0 / .24);
  --shadow-2: 0 2px 4px rgb(0 0 0 / .3), 0 12px 32px -8px rgb(0 0 0 / .55);
  --shadow-3: 0 4px 8px rgb(0 0 0 / .35), 0 32px 64px -16px rgb(0 0 0 / .7);
}

/* ---------- 3. Tokens: high contrast ---------- */
/* Solid black and white, 2px borders, no illustrations, grain, glass or blur. */
:root[data-contrast="high"] {
  --paper: #FFFFFF;
  --paper-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --ink: #000000;
  --text: #000000;
  --text-2: #1F1F1F;
  --text-3: #3D3D3D;
  --line: #000000;
  --line-2: #000000;
  --line-strong: #000000;
  --fill: rgb(0 0 0 / .06);
  --fill-2: rgb(0 0 0 / .1);
  --pine: #0B3D24;
  --pine-2: #000000;
  --on-pine: #FFFFFF;
  --moss: #0B3D24;
  --sage: #000000;
  --lichen: #FFFFFF;
  --mist: #FFFFFF;
  --clay: #7A2A0C;
  --clay-soft: #FFFFFF;
  --sun: #000000;
  --focus: #000000;
  --link: #0B3D24;
  --danger: #8C1D18;
  --switch-off: #4D4D4D;
  --ground: #FFFFFF;
  --on-ground: #000000;
  --on-ground-2: #000000;
  --ground-line: #000000;
  --glass: #FFFFFF;
  --glass-strong: #FFFFFF;
  --scrim: rgb(0 0 0 / .6);
  --spotlight: transparent;
  --mark-sky: #FFFFFF;
  --mark-far: #FFFFFF;
  --mark-near: #000000;
  --mark-leaf: #000000;
  --mark-leaf-2: #000000;
  --mark-sun: #000000;
  --mark-cut: transparent;
  --mark-ring: #000000;
  --shadow-1: none;
  --shadow-2: none;
  --shadow-3: none;
}
:root[data-contrast="high"][data-scheme="dark"] {
  --paper: #000000;
  --paper-2: #000000;
  --surface: #000000;
  --surface-2: #000000;
  --ink: #FFFFFF;
  --text: #FFFFFF;
  --text-2: #F0F0F0;
  --text-3: #D0D0D0;
  --line: #FFFFFF;
  --line-2: #FFFFFF;
  --line-strong: #FFFFFF;
  --fill: rgb(255 255 255 / .1);
  --fill-2: rgb(255 255 255 / .16);
  --pine: #A6F4C2;
  --pine-2: #FFFFFF;
  --on-pine: #000000;
  --moss: #A6F4C2;
  --sage: #FFFFFF;
  --lichen: #000000;
  --mist: #000000;
  --clay: #FFB59A;
  --clay-soft: #000000;
  --sun: #FFFFFF;
  --focus: #FFFFFF;
  --link: #A6F4C2;
  --danger: #FFB4A8;
  --switch-off: #BDBDBD;
  --ground: #000000;
  --on-ground: #FFFFFF;
  --on-ground-2: #FFFFFF;
  --ground-line: #FFFFFF;
  --glass: #000000;
  --glass-strong: #000000;
  --mark-sky: #000000;
  --mark-far: #000000;
  --mark-near: #FFFFFF;
  --mark-leaf: #FFFFFF;
  --mark-leaf-2: #FFFFFF;
  --mark-sun: #FFFFFF;
  --mark-ring: #FFFFFF;
}

/* Easy-to-read font (Atkinson Hyperlegible loads only when chosen) overrides both families */
html[data-font="legible"] {
  --font-sans: "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- 4. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  scroll-padding-top: calc(var(--header-h) + 24px);
  scrollbar-color: color-mix(in srgb, var(--ink) 26%, transparent) transparent;
}
html[data-text="2"] { font-size: 112.5%; }
html[data-text="3"] { font-size: 125%; }
html[data-text="4"] { font-size: 140%; }
html.menu-open, html.dialog-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;           /* 17px, Apple's body size */
  line-height: 1.6;
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
/* Page and section headlines are set in Newsreader; smaller UI headings (h3, h4) stay in Figtree. */
h1, h2 { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 500; }
h1 { font-size: clamp(2.375rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.024em; }
h2 { font-size: clamp(1.625rem, 2.8vw, 2.375rem); line-height: 1.12; letter-spacing: -0.016em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.016em; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
li { text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong, b { font-weight: 600; color: var(--ink); }
small { font-size: .875rem; }
img, svg, video { max-width: 100%; }
svg { flex-shrink: 0; }
hr { height: 1px; margin: 2em 0; border: 0; background: var(--line); }

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-underline-offset: .22em;
  transition: text-decoration-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
a:hover { text-decoration-color: currentColor; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 .4em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: 600 .82em/1.5 var(--font-sans);
  text-align: center;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--sage) 45%, transparent); color: var(--ink); }

/* ---------- 5. Type utilities ---------- */
.display-xl {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(3.125rem, 8.4vw, 7rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.display-l {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.375rem, 5.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: balance;
}
.title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.016em;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  max-width: 40em;
  color: var(--text-2);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
/* Sentence case, accent color. Never all caps. */
.eyebrow {
  display: block;
  margin: 0 0 .6em;
  color: var(--moss);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.small, .meta { font-size: .9375rem; line-height: 1.45; letter-spacing: 0; }
.muted { color: var(--text-2); }
/* Newsreader for running text in quiet moments (home statement, breathing words, pull quote).
   Headlines already use it through --font-display. */
.serif {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.serif em, em.serif, .serif-italic { font-style: italic; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- 6. Layout utilities ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--wrap-wide)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--space-section-sm); }
.measure { max-width: var(--measure); }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: calc(var(--z-exit) + 1);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}
.skip-link:focus { transform: none; box-shadow: var(--shadow-3); }
.skip-link + .skip-link:focus { left: auto; right: 12px; }
/* A list whose rows are divided by hairlines, Apple style */
.hairline-list { margin: 0; padding: 0; list-style: none; }
.hairline-list > li + li { border-top: 1px solid var(--line); }
@media (max-width: 560px) { .hide-sm { display: none !important; } }

/* ---------- 7. Buttons + links ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .9375rem;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn svg { width: 1.125em; height: 1.125em; }
.btn-sm { min-height: 40px; padding: 0 16px; gap: 7px; font-size: .875rem; }
.btn-sm::before { content: ""; position: absolute; inset: -2px 0; } /* 44px tap target */
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary { --btn-bg: var(--pine); --btn-fg: var(--on-pine); }
.btn-primary:hover { --btn-bg: var(--pine-2); }
.btn-secondary { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-2); box-shadow: var(--shadow-1); }
.btn-secondary:hover { --btn-bd: var(--line-strong); }
.btn-ghost { --btn-fg: var(--ink); }
.btn-ghost:hover { --btn-bg: var(--fill-2); }
.btn-text {
  min-height: 44px;
  padding: 0 4px;
  --btn-fg: var(--link);
  border-radius: 8px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-underline-offset: .22em;
}
.btn-text:hover { text-decoration-color: currentColor; }
/* Light-on-dark: for --ground fields, night skies and the .on-ground utility */
.btn-light { --btn-bg: var(--on-ground); --btn-fg: var(--ground); }
.btn-light:hover { --btn-bg: #FFFFFF; }
.btn-outline-light { --btn-bg: rgb(230 238 231 / .06); --btn-fg: var(--on-ground); --btn-bd: rgb(230 238 231 / .5); }
.btn-outline-light:hover { --btn-bg: rgb(230 238 231 / .14); }
/* Frosted: floating controls over illustrations */
.btn-glass {
  --btn-bg: var(--glass);
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* "Learn more ›" style link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  color: var(--link);
  font-weight: 560;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform var(--dur-2) var(--ease-out); }
a.link-arrow:hover, a:hover > .link-arrow { text-decoration: underline; text-underline-offset: .22em; }
a.link-arrow:hover svg, a:hover > .link-arrow svg { transform: translateX(3px); }

/* ---------- 8. Forms + search ---------- */
.field label,
.label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 560;
}
.req { color: var(--clay); }
.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.input::placeholder { color: var(--text-2); opacity: 1; }
.input:hover { border-color: var(--text-2); }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--pine); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
textarea.input { min-height: 136px; line-height: 1.5; resize: vertical; }
select.input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  /* a thin chevron drawn with two gradient strokes (no image files) */
  background-image:
    linear-gradient(45deg, transparent 40%, var(--text-2) 40%, var(--text-2) 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, var(--text-2) 40%, var(--text-2) 60%, transparent 60%);
  background-position: calc(100% - 23px) 55%, calc(100% - 17px) 55%;
  background-size: 6.5px 6.5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.hint { margin: 6px 0 0; color: var(--text-2); font-size: .875rem; line-height: 1.45; }
.form-status {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--lichen);
  color: var(--ink);
  font-size: .9375rem;
}
.form-status.is-error { background: var(--clay-soft); color: var(--clay); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clay) 30%, transparent); }

/* Search field: one pill with icon, input and button. Used on home and resources.
   <form class="search" role="search"> <svg/> <label class="sr-only"/> <input type="search">
   <button class="btn btn-primary"><span class="btn-label">Search</span><svg class="btn-icon"/></button></form>
   Add .search--glass when it floats over an illustration. */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 640px;
  margin: 0;
  padding: 6px 6px 6px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  transition: box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.search > svg { width: 20px; height: 20px; color: var(--text-2); }
.search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.search input::placeholder { color: var(--text-2); opacity: 1; }
.search input::-webkit-search-decoration { -webkit-appearance: none; }
.search .btn { flex: none; min-height: 48px; padding: 0 24px; }
.search .btn-icon { display: none; }
.search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus), var(--shadow-2); }
@supports selector(:has(*)) {
  .search:focus-within { border-color: var(--line-2); box-shadow: var(--shadow-2); }
  .search:has(input:focus-visible) { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus), var(--shadow-2); }
}
.search--glass {
  border-color: color-mix(in srgb, var(--surface) 55%, transparent);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .search--glass { background: var(--surface); }
}
@media (max-width: 480px) {
  .search { padding-left: 16px; }
  .search .btn { width: 48px; padding: 0; }
  .search .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .search .btn-icon { display: block; width: 20px; height: 20px; }
}

/* ---------- 9. Chips + badges ---------- */
/* Filter chip: <button class="chip" aria-pressed="true|false">Food <span class="n">12</span></button> */
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.chip::before { content: ""; position: absolute; inset: -2px 0; }
.chip:hover { border-color: var(--line-strong); }
.chip:active { transform: scale(.97); }
.chip .n { color: var(--text-2); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"], .chip[aria-current="true"], .chip.is-active { border-color: var(--pine); background: var(--pine); color: var(--on-pine); }
.chip[aria-pressed="true"] .n, .chip.is-active .n { color: inherit; opacity: .8; }

/* Toggle chip: <label class="toggle-chip"><input type="checkbox"><span><svg/>Free</span></label> */
.toggle-chip { position: relative; display: inline-flex; -webkit-tap-highlight-color: transparent; }
.toggle-chip input { position: absolute; inset: -2px 0; z-index: 1; width: 100%; height: calc(100% + 4px); margin: 0; opacity: 0; cursor: pointer; }
.toggle-chip > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px 0 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.toggle-chip svg { width: 16px; height: 16px; color: var(--text-2); transition: color var(--dur-1) var(--ease-out); }
.toggle-chip:hover > span { border-color: var(--line-strong); }
.toggle-chip input:checked + span { border-color: var(--pine); background: var(--lichen); color: var(--pine); }
.toggle-chip input:checked + span svg { color: currentColor; }
.toggle-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Badges: small status pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge-247, .badge-soft { background: var(--lichen); color: var(--pine); }
.badge-check { background: var(--clay-soft); color: var(--clay); }   /* "Call to confirm" */
.badge-placeholder { border: 1px dashed var(--line-strong); color: var(--text-2); }
.badge-neutral { background: var(--fill-2); color: var(--text); }

/* ---------- 10. Icon button, materials ---------- */
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.icon-btn:hover { background: var(--fill-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--outline { border: 1px solid var(--line-2); background: var(--surface); }
.icon-btn--glass {
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* Frosted material: header, search over the hero, floating controls, dialog only */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .btn-glass, .icon-btn--glass { background: var(--surface); }
}

/* A deep color field: footer, the 988 card, night panels.
   Re-maps the text tokens so headings, links and focus rings stay readable. */
.on-ground {
  --ink: var(--on-ground);
  --text: var(--on-ground);
  --text-2: var(--on-ground-2);
  --line: var(--ground-line);
  --link: var(--on-ground);
  --focus: var(--on-ground);
  background-color: var(--ground);
  color: var(--on-ground);
}

/* Film grain for large color fields: <div class="grain"> (adds a ::after overlay) */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ---------- 11. Shared content blocks ---------- */
/* Inner page title area. Page CSS adds its scene and spacing. */
.page-head { padding-block: clamp(40px, 7vw, 88px) 0; }
.page-head h1 { margin: 0 0 16px; }
.page-head > p,
.page-head .lead { max-width: 40em; margin: 0; color: var(--text-2); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; letter-spacing: -0.01em; }
.page-head .search { margin-top: 32px; }

/* Inner page hero (Resources, Guides, Get help now, About): a full-bleed
   landscape under the overlay header with the title in the sky, then the
   intro in normal flow just below it. Every inner page uses the same pattern:

   <body data-header="overlay"> …
   <main id="main">
     <div class="page-hero">
       <div class="scene" data-scene="meadow" aria-hidden="true"></div>
       <div class="wrap page-hero-title">
         <p class="eyebrow">Resources</p>
         <h1 class="display-l" id="page-title">…</h1>
       </div>
       <button class="scene-toggle" type="button" data-scene-toggle aria-pressed="false">
         <svg class="i-pause" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-pause"/></svg>
         <svg class="i-play" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-play"/></svg>
         <span class="sr-only" data-scene-toggle-label>Pause animation</span>
       </button>
     </div>
     <div class="wrap page-intro"><p class="lead">…</p> …</div>

   The bottom padding keeps the drawn landscape below the title at any width
   and text size. The scene's land band is 160/440 of its height on phones
   and 160px × (width / 1440) on wide screens. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(32px, 6.5vw, 84px));
  padding-bottom: max(calc(11.2vw + 20px), calc(52px + 5.5rem));
}
.page-hero > .scene { position: absolute; inset: 0; z-index: -1; }
.page-hero-title { position: relative; }
.page-hero-title .eyebrow { margin: 0 0 12px; }
.page-hero-title h1 { max-width: 15ch; margin: 0; }
.page-intro { padding-top: clamp(28px, 4vw, 52px); }
.page-intro > .lead { max-width: 40em; margin: 0; }
html[data-contrast="high"] .page-hero { padding-bottom: clamp(24px, 4vw, 40px); border-bottom: 2px solid var(--line); }

/* Pause/play for a scene's ambient motion (WCAG 2.2.2). scenery.js wires any
   [data-scene-toggle]: it keeps aria-pressed, data-state and the label in sync.
   Hidden when there is nothing to pause (reduced motion, no JS, high contrast). */
.scene-toggle {
  position: absolute;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(12px, 2vw, 20px);
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--ink);
  cursor: pointer;
  opacity: .78;
  transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.scene-toggle:hover { opacity: 1; }
.scene-toggle:active { transform: scale(.94); }
.scene-toggle svg { width: 18px; height: 18px; }
.scene-toggle .i-play,
.scene-toggle[data-state="paused"] .i-pause { display: none; }
.scene-toggle[data-state="paused"] .i-play { display: block; }
html:not(.motion-ok) .scene-toggle,
html[data-contrast="high"] .scene-toggle { display: none; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .scene-toggle { background: var(--surface); }
}

/* Numbered steps (guides, crisis page). Guides will restyle them as trail markers. */
.steps { display: grid; gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding-left: 44px; counter-increment: step; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: .05em;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lichen);
  color: var(--pine);
  font-size: .8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.tip {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--mist);
  color: var(--text);
}
.tip > strong:first-child { display: block; margin-bottom: 4px; }
.checklist { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "";
  position: absolute;
  top: .2em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--lichen);
}
.checklist li::after {
  content: "";
  position: absolute;
  top: calc(.2em + 4.5px);
  left: 7.5px;
  width: 5px;
  height: 9.5px;
  border: solid var(--pine);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.fine-print {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 72ch;
  margin: 40px 0 0;
  color: var(--text-2);
  font-size: .875rem;
  line-height: 1.5;
}
.fine-print svg { width: 18px; height: 18px; margin-top: 1px; }
.notice { margin: 24px 0 0; padding: 16px 20px; border-radius: var(--r-md); background: var(--clay-soft); color: var(--clay); }

/* ---------- 12. Resource card + save button ---------- */
/* Markup comes from OC.renderResource() in layout.js. Resources page refines it. */
.rcard {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.rcard:hover { box-shadow: var(--shadow-2); }
.rcard.is-target { border-color: var(--pine); box-shadow: 0 0 0 1px var(--pine), var(--shadow-2); }
.rcard.is-target:focus { outline: none; }
.rcard.is-target:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: var(--shadow-2); }
.rcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 24px; }
.rcard-cats { margin: 0; color: var(--moss); font-size: .8125rem; font-weight: 600; letter-spacing: -0.005em; }
.rcard h2, .rcard h3 { margin: 0; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.018em; }
.rcard-summary { margin: 0; color: var(--text-2); }
.rcard-meta { display: grid; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; font-size: .9375rem; line-height: 1.45; }
.rcard-meta li { display: flex; align-items: flex-start; gap: 10px; }
.rcard-meta svg { width: 18px; height: 18px; margin-top: 1px; color: var(--text-2); }
.rcard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.rcard-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .875rem; }
.rcard.is-placeholder { border: 1px dashed var(--line-strong); background: transparent; box-shadow: none; }
.save-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.save-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.save-btn:active { transform: scale(.92); }
.save-btn svg { width: 18px; height: 18px; }
.save-btn[aria-pressed="true"] { border-color: var(--pine); background: var(--lichen); color: var(--pine); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
html.motion-ok .save-btn.is-popping svg { animation: oc-pop var(--dur-2) var(--ease-spring); }
@keyframes oc-pop { 40% { transform: scale(1.28); } }

/* ---------- 13. Header ---------- */
/* Thin frosted bar. layout.js adds .is-scrolled (hairline, stronger material),
   .is-compact (sheet menu: narrow screens or large text) and .menu-open.
   <body data-header="overlay"> floats it over a full-bleed hero until scrolled. */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  isolation: isolate;
}
/* The material lives on a pseudo-element so the header never becomes a
   containing block for the fixed-position menu sheet. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 0 transparent;
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
}
.site-header.is-scrolled::before { background: var(--glass-strong); box-shadow: 0 1px 0 var(--line); }
.site-header.menu-open::before { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header::before, .site-header.is-scrolled::before { background: var(--paper); }
}

/* Overlay mode for pages with a full-bleed hero (Home). The hero must start at
   the very top of the page and leave var(--header-h) of room for this bar. */
body[data-header="overlay"] .site-header { position: fixed; top: 0; left: 0; right: 0; }
body[data-header="overlay"] .site-header:not(.is-scrolled):not(.menu-open)::before {
  /* a whisper of paper keeps text readable over a dawn or night sky */
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 58%, transparent), color-mix(in srgb, var(--paper) 0%, transparent));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* a touch more contrast for links sitting directly on the sky */
body[data-header="overlay"] .site-header:not(.is-scrolled):not(.menu-open) .nav-links > a { color: var(--text); }
body[data-header="overlay"] .site-header:not(.is-scrolled):not(.menu-open) .nav-links > a:hover,
body[data-header="overlay"] .site-header:not(.is-scrolled):not(.menu-open) .nav-links > a[aria-current="page"] { color: var(--ink); }

.nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-mark { width: 28px; height: 28px; flex: none; border-radius: 50%; transition: transform var(--dur-2) var(--ease-spring); }
.bm-sky { fill: var(--mark-sky); }
.bm-far { fill: var(--mark-far); }
.bm-near { fill: var(--mark-near); }
.bm-sun { fill: var(--mark-sun); }
.bm-cut { fill: var(--mark-cut); }
.bm-stem { fill: none; stroke: var(--mark-near); stroke-width: 2; stroke-linecap: round; }
.bm-leaf { fill: var(--mark-leaf); }
.bm-leaf-2 { fill: var(--mark-leaf-2); }
.bm-ring { fill: none; stroke: var(--mark-ring); stroke-width: 1.5; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}
.nav-links > a:hover { color: var(--ink); }
.nav-links > a[aria-current="page"] { color: var(--ink); }
.nav-links > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--moss);
}
.menu-only { display: none; }

.nav-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.nav-cta { min-height: 34px; padding: 0 14px 0 12px; gap: 6px; font-size: .875rem; white-space: nowrap; }
.nav-cta::before { content: ""; position: absolute; inset: -5px -2px; }
.nav-cta svg { width: 15px; height: 15px; }
.nav-cta[aria-current="page"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--pine); }
.nav-toggle { display: none; }
.nav-toggle svg { overflow: visible; }
.nav-toggle .nt-1, .nav-toggle .nt-2 { transform-origin: 12px 12px; transition: transform var(--dur-2) var(--ease-out); }
.nav-toggle[aria-expanded="true"] .nt-1 { transform: rotate(45deg) translateY(3.5px); }
.nav-toggle[aria-expanded="true"] .nt-2 { transform: rotate(-45deg) translateY(-3.5px); }

/* Narrow screens without JavaScript: links simply wrap under the brand */
@media (max-width: 760px) {
  html:not(.js) .nav { display: flex; flex-wrap: wrap; justify-content: space-between; height: auto; min-height: var(--header-h); padding-bottom: 6px; }
  html:not(.js) .nav-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  html:not(.js) .nav-cta .long { display: none; }
}

/* ---------- 14. Mobile menu sheet ---------- */
.js .site-header.is-compact .nav { display: flex; justify-content: space-between; }
.js .site-header.is-compact .nav-toggle { display: inline-grid; }
.js .site-header.is-compact .nav-actions .a11y-btn { display: none; }
.js .site-header.is-compact .nav-links {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 20px var(--gutter) calc(104px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease-out), visibility 0s linear var(--dur-1);
}
.js .site-header.is-compact .nav-links.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-1) var(--ease-out), visibility 0s;
}
.js .site-header.is-compact .nav-links > a {
  justify-content: space-between;
  min-height: 60px;
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.js .site-header.is-compact .nav-links > a[aria-current="page"]::after { position: static; width: 8px; height: 8px; margin: 0 4px 0 0; }
.js .site-header.is-compact .menu-only { display: block; }
.menu-foot { padding-top: 28px; }
.menu-foot .menu-a11y {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 560;
  cursor: pointer;
}
.menu-foot .menu-a11y svg { width: 20px; height: 20px; color: var(--text-2); }
.menu-help { margin: 28px 0 0; color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.menu-help a { font-weight: 600; }
/* Staggered entrance */
html.motion-ok .site-header.is-compact .nav-links.is-open > * { animation: oc-menu-in var(--dur-3) var(--ease-out) backwards; }
html.motion-ok .site-header.is-compact .nav-links.is-open > :nth-child(1) { animation-delay: 90ms; }
html.motion-ok .site-header.is-compact .nav-links.is-open > :nth-child(2) { animation-delay: 135ms; }
html.motion-ok .site-header.is-compact .nav-links.is-open > :nth-child(3) { animation-delay: 180ms; }
html.motion-ok .site-header.is-compact .nav-links.is-open > :nth-child(4) { animation-delay: 225ms; }
html.motion-ok .site-header.is-compact .nav-links.is-open > :nth-child(5) { animation-delay: 270ms; }
@keyframes oc-menu-in { from { opacity: 0; transform: translate3d(0, -10px, 0); } }

@media (max-width: 480px) {
  .nav { gap: 8px; }
  .brand { gap: 8px; font-size: .9688rem; }
  .nav-cta .long { display: none; }
  /* With bigger text, keep the name for screen readers but make room for the buttons */
  html:is([data-text="2"], [data-text="3"], [data-text="4"]) .site-header .brand-name {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@media (max-width: 359px) {
  .nav-cta svg { display: none; }
  .site-header .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- 15. Footer ("the ground") ---------- */
/* A ridgeline (drawn by scenery.js in var(--ground)) sits on top of a deep
   ground field. The slot has a fixed height so nothing shifts. */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  font-size: .875rem;
  line-height: 1.5;
}
.site-footer .scene--ridge {
  position: relative;
  display: block;
  height: clamp(72px, 9vw, 120px);
  margin-bottom: -1px;   /* no seam between ridge and ground */
  overflow: hidden;
  pointer-events: none;
}
/* If the illustration hasn't drawn (no JavaScript), a quiet CSS ridge stands in */
.site-footer .scene--ridge:not(:has(svg))::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ground);
  clip-path: polygon(0 62%, 9% 52%, 19% 56%, 31% 38%, 42% 46%, 53% 30%, 64% 44%, 75% 36%, 86% 50%, 94% 44%, 100% 52%, 100% 100%, 0 100%);
}
.footer-ground {
  padding: 8px 0 calc(40px + env(safe-area-inset-bottom));
  background-color: var(--ground);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ground-line);
}
.footer-brand .brand { color: var(--on-ground); font-size: 1.0625rem; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-mission { max-width: 30ch; margin: 14px 0 0; color: var(--on-ground); font-size: .9375rem; }
.footer-towns { margin: 6px 0 0; color: var(--on-ground-2); }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.footer-h { margin: 0 0 8px; color: var(--on-ground); font-size: .875rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.4; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--on-ground-2);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}
.footer-nav a:hover { color: var(--on-ground); text-decoration: underline; text-underline-offset: .22em; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  padding-top: 20px;
  color: var(--on-ground-2);
  font-size: .8125rem;
}
.footer-base p { margin: 0; }
@media (pointer: coarse) { .footer-nav a { min-height: 44px; } }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-ground { padding-bottom: calc(104px + env(safe-area-inset-bottom)); } /* room for Quick exit */
  .footer-base { flex-direction: column; }
}

/* ---------- 16. Display & language panel ---------- */
/* Rendered by layout.js. A non-modal <dialog> with the rest of the page made
   inert, so the Quick exit pill can stay on top and clickable. */
.a11y-dialog {
  position: fixed;
  inset: 0;
  z-index: var(--z-dialog);
  width: min(100% - 24px, 440px);
  height: fit-content;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-3);
  scrollbar-width: thin;
}
.a11y-dialog:not([open]) { display: none; }
.dialog-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-scrim);
  background: var(--scrim);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 10px 24px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.dialog-head h2 { margin: 0; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.024em; line-height: 1.25; }
.dialog-close { background: var(--fill-2); width: 36px; height: 36px; color: var(--text-2); }
.dialog-close::before { content: ""; position: absolute; inset: -4px; }
.dialog-close:hover { background: var(--line-2); color: var(--ink); }
.dialog-close svg { width: 16px; height: 16px; }
.dialog-grabber { display: none; }
.dialog-body { display: grid; gap: 26px; padding: 8px 24px 8px; }
.dialog-body fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.dialog-body legend, .dlg-label {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* Segmented control with a sliding thumb */
.seg {
  --n: 4;
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  padding: 3px;
  border-radius: 13px;
  background: var(--fill-2);
}
.seg.three { --n: 3; }
.seg::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / var(--n));
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: 0 0 0 .5px var(--line-2), 0 3px 8px rgb(0 0 0 / .08), 0 1px 1px rgb(0 0 0 / .05);
  transform: translateX(calc(100% * var(--i)));
  transition: transform var(--dur-2) var(--ease-out);
  opacity: 0;
}
.seg > label { position: relative; z-index: 1; display: grid; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg > label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 6px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: color var(--dur-1) var(--ease-out);
}
.seg > label > span svg { width: 16px; height: 16px; }
.seg input:checked + span { color: var(--ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.seg input:checked + span { background: var(--surface-2); box-shadow: 0 0 0 .5px var(--line-2), 0 3px 8px rgb(0 0 0 / .08); }
@supports selector(:has(*)) {
  .seg:has(input:checked)::before { opacity: 1; }
  .seg input:checked + span { background: none; box-shadow: none; }
  .seg:has(> label:nth-child(2) input:checked) { --i: 1; }
  .seg:has(> label:nth-child(3) input:checked) { --i: 2; }
  .seg:has(> label:nth-child(4) input:checked) { --i: 3; }
}
/* Grouped switch list, iOS style */
.toggle-list { display: grid; overflow: hidden; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.toggle + .toggle::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.toggle > span { color: var(--ink); font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.toggle small { display: block; margin-top: 2px; color: var(--text-2); font-size: .8125rem; font-weight: 400; }
.toggle input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  margin: 0;
  border-radius: var(--r-pill);
  background: var(--switch-off);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out);
}
.toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 3px 8px rgb(0 0 0 / .15), 0 1px 1px rgb(0 0 0 / .16), 0 3px 1px rgb(0 0 0 / .06);
  transition: transform var(--dur-2) var(--ease-spring), width var(--dur-1) var(--ease-out);
}
.toggle input:active::after { width: 31px; }
.toggle input:checked { background: var(--pine); }
.toggle input:checked::after { transform: translateX(20px); }
.toggle input:checked:active::after { transform: translateX(16px); }
.toggle input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dlg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lang-row { display: flex; gap: 8px; }
.lang-row .input { flex: 1; min-width: 0; min-height: 44px; padding-block: 8px; border-radius: 12px; }
.lang-row .btn { flex: none; }
.live-note { margin: 8px 0 0; color: var(--text-2); font-size: .8125rem; line-height: 1.45; }
.live-note:empty { display: none; }
.dialog-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px 18px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 -1px 0 var(--line);
}
.dialog-foot .btn { min-width: 96px; }
html.motion-ok .a11y-dialog[open] { animation: oc-dialog-in 460ms var(--ease-out); }
html.motion-ok .dialog-scrim:not([hidden]) { animation: oc-fade-in var(--dur-2) var(--ease-out); }
@keyframes oc-dialog-in { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.97); } }
@keyframes oc-fade-in { from { opacity: 0; } }
/* Phones: a bottom sheet */
@media (max-width: 440px) {
  .seg.three > label > span svg { display: none; }
}
@media (max-width: 560px) {
  .a11y-dialog {
    inset: auto 0 0 0;
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .dialog-grabber { display: block; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--line-2); }
  .dialog-head { padding-top: 18px; }
  /* Quick exit floats bottom-right above everything, so the buttons scroll
     with the content and stop above it instead of sitting underneath it */
  .dialog-foot {
    position: static;
    justify-content: flex-start;
    padding: 20px 24px calc(84px + env(safe-area-inset-bottom));
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .dialog-foot #prefs-reset { order: 2; }
  html.motion-ok .a11y-dialog[open] { animation: oc-sheet-in 520ms var(--ease-out); }
  @keyframes oc-sheet-in { from { transform: translate3d(0, 100%, 0); } }
}

/* ---------- 17. Quick exit ---------- */
/* Always on top (z-index above everything, including the panel's scrim). */
.quick-exit {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-exit);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--paper) 14%, transparent), var(--shadow-3);
  view-transition-name: quick-exit;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.quick-exit svg { width: 18px; height: 18px; }
.quick-exit:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--paper) 14%, transparent), 0 0 0 5px color-mix(in srgb, var(--ink) 14%, transparent), var(--shadow-3); }
.quick-exit:active { transform: scale(.97); }
.quick-exit:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.quick-exit .qe-key {
  display: inline-block;   /* keeps "Underline all links" off the key hint */
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper) 16%, transparent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0;
}
@media (max-width: 760px), (pointer: coarse) { .quick-exit .qe-key { display: none; } }

/* ---------- 18. Motion engine hooks (assets/js/motion.js) ---------- */
/* Hidden start states apply only under html.js.motion-ok, so content is never
   hidden without JavaScript or with reduced motion. Reveal is a CSS animation
   from the hidden state to the element's own styles, so page transitions and
   hover transforms keep working after it finishes. Put data-reveal and
   data-parallax on different elements. */
html.js.motion-ok [data-reveal]:not(.is-revealed) { opacity: 0; }
html.js.motion-ok [data-reveal].is-revealed:not(.reveal-done) { animation: oc-reveal-up var(--dur-3) var(--ease-out) var(--reveal-delay, 0ms) backwards; }
html.js.motion-ok [data-reveal="fade"].is-revealed:not(.reveal-done) { animation-name: oc-reveal-fade; }
html.js.motion-ok [data-reveal="scale"].is-revealed:not(.reveal-done) { animation-name: oc-reveal-scale; }
@keyframes oc-reveal-up { from { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(6px); } }
@keyframes oc-reveal-fade { from { opacity: 0; } }
@keyframes oc-reveal-scale { from { opacity: 0; transform: scale(.96); filter: blur(6px); } }

/* Scroll-linked word highlight. JS writes each word's opacity; --words-dim is the starting level. */
[data-words] { --words-dim: .3; }
[data-words] .words .w { display: inline; }
[data-count] { font-variant-numeric: tabular-nums; }
.count-run { position: absolute; top: 0; left: 0; right: 0; white-space: nowrap; }

/* Soft light that follows the pointer (motion.js sets --mx / --my in px) */
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight), transparent 65%);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
[data-spotlight].is-spotlit::after { opacity: 1; }

/* Page transitions: a calm cross-fade between pages */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 340ms; animation-timing-function: var(--ease-in-out); }

/* Read aloud skips decorative duplicates (layout.js toggles this for one frame) */
html.oc-speak [aria-hidden="true"], html.oc-speak [aria-hidden="true"] * { visibility: hidden !important; }

/* ---------- 19. Display preferences ---------- */
html[data-spacing="wide"] body { line-height: 1.85; letter-spacing: .03em; word-spacing: .12em; }
html[data-spacing="wide"] :is(h1, h2, h3, h4, .display-xl, .display-l, .title) { line-height: 1.3; letter-spacing: 0; }
html[data-links="underline"] a { text-decoration-line: underline !important; text-decoration-color: currentColor !important; }

html[data-contrast="high"] a { text-decoration-color: currentColor; }
html[data-contrast="high"] :is(.rcard, .chip, .icon-btn--outline, .btn-secondary, .save-btn, .input, .search, .toggle-list, .tip, .kbd, kbd) { border: 2px solid var(--line); }
html[data-contrast="high"] .toggle-chip > span { border: 2px solid var(--line); color: var(--text); }
html[data-contrast="high"] .toggle-chip input:checked + span { outline: 2px solid var(--text); outline-offset: 2px; }
html[data-contrast="high"] .chip[aria-pressed="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
html[data-contrast="high"] .badge { border: 1px solid currentColor; }
html[data-contrast="high"] .btn-outline-light { --btn-bg: transparent; --btn-bd: var(--on-ground); border-width: 2px; }
html[data-contrast="high"] .btn-light { border: 2px solid var(--on-ground); }
html[data-contrast="high"] .seg { border: 2px solid var(--line); background: var(--paper); }
html[data-contrast="high"] .seg::before { box-shadow: none; background: var(--ink); }
html[data-contrast="high"] .seg input:checked + span { color: var(--paper); }
html[data-contrast="high"] .toggle input { border: 2px solid var(--line); }
html[data-contrast="high"] .toggle input::after { top: 0; left: 0; background: var(--paper); border: 2px solid var(--line); box-shadow: none; }
html[data-contrast="high"] .site-header::before,
html[data-contrast="high"] body[data-header="overlay"] .site-header::before { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 2px 0 var(--line); }
html[data-contrast="high"] :is(.dialog-head, .dialog-foot, .dialog-scrim, .glass, .btn-glass, .icon-btn--glass, .search--glass) { -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-contrast="high"] :is(.dialog-head, .dialog-foot) { background: var(--paper); }
html[data-contrast="high"] .a11y-dialog { border: 2px solid var(--line); }
html[data-contrast="high"] .quick-exit { border: 2px solid var(--paper); box-shadow: 0 0 0 2px var(--ink); }
html[data-contrast="high"] .grain::after { display: none; }
html[data-contrast="high"] .site-footer .scene--ridge { display: none; }
html[data-contrast="high"] .footer-ground { border-top: 2px solid var(--line-strong); }
html[data-contrast="high"] [data-spotlight]::after { display: none; }

/* ---------- 20. Reduced motion, print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
html[data-motion="reduce"] *,
html[data-motion="reduce"] *::before,
html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="reduce"]::view-transition-group(*),
html[data-motion="reduce"]::view-transition-old(*),
html[data-motion="reduce"]::view-transition-new(*) { animation: none !important; }

@media print {
  :root {
    --paper: #FFFFFF; --paper-2: #FFFFFF; --surface: #FFFFFF; --ink: #000000; --text: #000000;
    --text-2: #333333; --line: #999999; --mist: #FFFFFF; --lichen: #FFFFFF; --pine: #000000; --link: #000000;
  }
  body { display: block; background: #FFFFFF; color: #000000; font-size: 11pt; }
  .site-header, .site-footer, .quick-exit, .skip-link, .a11y-dialog, .dialog-scrim, .scene, .search,
  .no-print, .save-btn, .fine-print svg { display: none !important; }
  [data-reveal] { opacity: 1 !important; animation: none !important; filter: none !important; transform: none !important; }
  [data-words] .w { opacity: 1 !important; }
  [data-parallax] { transform: none !important; }
  .page-head { padding: 0 0 12pt; }
  .rcard { padding: 10pt; border: 1px solid #999999; box-shadow: none; break-inside: avoid; }
  .rcard-actions .btn { min-height: 0; padding: 0; border: 0; background: none; color: #000000; box-shadow: none; }
  .rcard-actions .btn svg { display: none; }
  a { color: #000000; }
}
