/* ERDF site chrome: header, slide-in nav panel, footer.
   PORTED VERBATIM from design/target-b/index.html, the accepted landing build,
   which design/design-system.md names as THE authority for the header and the
   footer (sections 2.1, 2.2 and 5). The Love Story template's copies of both
   are stale (5.1, 5.2) and were not used.
   Every value here is a var() into tokens.css, which is generated from
   design/erdf-tokens.json. No design value is written by hand in this file. */

/* ---------- shared bits the chrome depends on ---------- */
/* PARAGRAPH MARGIN, from the accepted build's "Reset and base" block.
   The accepted build sets `p { margin: 0 0 1em }` for the whole document.
   Astra sets `p { margin-bottom: 1.75em }`, and until 2026-08-17 the footer
   had exactly one paragraph per column, so the extra 12.75px fell off the
   bottom of a column and nothing showed. Splitting the trust sentence into
   two paragraphs put that gap BETWEEN them, and the split then read as a
   paragraph break rather than as the one beat of air it is designed to be:
   measured 45.75px against the accepted build's 33px.
   :where() so this lands at exactly the specificity the accepted build's
   base rule has (one element, zero classes). That is what lets .ftr-vet,
   .ftr-contact and .ftr-copy keep their own margins, as they do in the
   accepted build, while still beating Astra's same-specificity rule on
   source order. Scoped to the footer because the footer is the only part
   of the chrome with paragraphs; page content is handled in landing.css. */
:where(.erdf-chrome .ftr) p { margin: 0 0 1em; }
/* The accepted build's base carries this line too, and without it the last
   paragraph in a column pushes 17px of dead space below itself. Same
   :where() specificity trick, same reason. */
:where(.erdf-chrome .ftr) p:last-child { margin-bottom: 0; }
/* PRE-EXISTING DRIFT, closed 2026-08-18 while the footer was open for the
   trust-line split. The accepted build's base sets `img { display: block }`
   document-wide; the port scoped that to page content, so the footer logo
   and the Candid seal sat inline on a baseline and the chip-to-tagline gap
   measured 16px against the accepted build's 27px. Same :where() rule, same
   specificity, and it is what makes the rendered footer match the build it
   was ported from rather than nearly match it. */
:where(.erdf-chrome .ftr) img { display: block; max-width: 100%; }
html { scroll-padding-top: calc(var(--header-h) + 8px); }

.erdf-chrome .wrap {
  width: 100%; max-width: var(--content);
  margin-inline: auto; padding-inline: var(--gutter);
}
.erdf-chrome .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;
}

/* ---------- buttons: two ranks, four classes (design-system 2.3) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm);
  line-height: 1.1; text-decoration: none; white-space: nowrap;
  border-radius: var(--r-pill); min-height: var(--touch);
  padding: 11px 22px; cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out,
              border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-quiet { background: transparent; color: var(--erdf-blue-dark);
             border: 2px solid var(--erdf-blue-dark); }
.btn-quiet:hover { background: var(--blue-tint); }
.btn-quiet-dark { background: transparent; color: var(--warm-white);
                  border: 2px solid var(--warm-white); }
.btn-quiet-dark:hover { background: rgba(253,251,246,0.12); }
/* HEADER DONATE. The header carries exactly ONE call to action, so that one
   takes the gold treatment: gold border, gold icon, a thin rain-yellow wash
   inside the pill. The LABEL stays --erdf-blue-dark on purpose; that is what
   identifies the control, at 7.6:1 over the washed ground. This is NOT the
   loud tier: --rain-yellow as a FILL still ships exactly once per page.
   FLAGGED, NOT RESOLVED: neither brand yellow reaches 3:1 against
   --warm-white (rain-yellow 1.73:1, accent-gold 2.36:1). Gold is the darker
   of the two. A third, darker gold would clear it but inventing a palette
   value is design-research's call. */
.btn-donate { background: rgba(244,185,66,0.16); color: var(--erdf-blue-dark);
              border: 2px solid var(--accent-gold); }
.btn-donate svg { color: var(--accent-gold); }
.btn-donate:hover { background: rgba(244,185,66,0.34); }
/* HEADER DONATE: DARK BLUE ON ARRIVAL, THE GOLD OUTLINE ONCE YOU SCROLL.
   Blue (Adam, 2026-11-10: "The donate button is hard to find on the screen,
   until you scroll. Can we make it blue-ish") is what a visitor sees when a
   page opens. Scrolling turns it back into the gold-outline Donate the site
   had before (Adam, 2026-11-15: "add back the switching color as you scroll,
   from the solid blue to the one before"). chrome.js adds .is-past to
   [data-hdr-ctas]: on the home page once the hero's own ask has left the
   screen (the 2026-08-17 trigger, so the header never turns gold beside the
   hero's gold button), on every other page once the page has scrolled.
   Header only: .hdr-ctas is shared by the full and standalone headers.
   IT DEGRADES TO BLUE. .is-past is added by script and by nothing else, so a
   script that fails leaves the more visible blue button, never no button.
   Label --warm-white on --erdf-blue-dark 8.3:1; on the hover --erdf-blue 4.7:1;
   the --rain-yellow umbrella on --erdf-blue-dark 4.9:1. The .is-past values
   are .btn-donate's own, restated because the blue rule out-ranks it. */
.hdr-ctas .btn-donate {
  background: var(--erdf-blue-dark); border-color: var(--erdf-blue-dark);
  color: var(--warm-white);
}
.hdr-ctas .btn-donate svg { color: var(--rain-yellow); transition: color 180ms ease-out; }
.hdr-ctas .btn-donate:hover {
  background: var(--erdf-blue); border-color: var(--erdf-blue);
  color: var(--warm-white);
}
.hdr-ctas.is-past .btn-donate {
  background: rgba(244,185,66,0.16); border-color: var(--accent-gold);
  color: var(--erdf-blue-dark);
}
.hdr-ctas.is-past .btn-donate svg { color: var(--accent-gold); }
.hdr-ctas.is-past .btn-donate:hover {
  background: rgba(244,185,66,0.34); border-color: var(--accent-gold);
  color: var(--erdf-blue-dark);
}
.btn-loud {
  background: var(--rain-yellow); color: var(--ink-navy);
  border: 2px solid var(--rain-yellow);
  font-size: var(--fs-lg); padding: 20px 64px; min-height: 64px;
  box-shadow: var(--shadow-card);
}
.btn-loud svg { width: 22px; height: 22px; }
.btn-loud:hover { background: var(--accent-gold); border-color: var(--accent-gold);
                  color: var(--warm-white); box-shadow: var(--shadow-lift); }
.txtlink { color: var(--erdf-blue-dark); font-weight: 600; font-size: var(--fs-sm);
           text-decoration: underline; text-underline-offset: 3px;
           text-decoration-thickness: 1.5px; }
.txtlink:hover { color: var(--erdf-blue); }

/* ---------- header (design-system 2.1) ---------- */
.hdr { position: sticky; top: 0; z-index: 60;
       background: var(--warm-white); border-bottom: 1px solid var(--hairline); }
.hdr.is-stuck { box-shadow: 0 2px 14px rgba(34,49,74,0.12); }
/* THE BAR IS WIDE, AND THE MENU IS ON ITS AXIS (Adam, 2026-08-16c). The bar is
   full-bleed; its CONTENTS are capped at --wide (1400px), not at the --content
   (1200px) column every section below rides. That cap moved three times in one
   day, and all three moves are recorded here because each answered a different
   question and the last one is NOT a revert of the second.
   1) --content -> --wide. Six nav items, TWO icon-bearing CTAs and the logo came
      to 1249px inside the 1120px a 1200px column leaves after gutters. Flex
      resolved the 129px deficit by crushing the only shrinkable child, the logo,
      to 19px wide at full height: a vertical smear. Widening stopped it.
   2) --wide -> --content. Join Faithful Friends left the header, the CTA block
      fell from 366px to 126.5px, and the deficit vanished. Adam then said "the
      header menu is not centered", which was read as the logo hanging outside
      the page grid, so the row was narrowed onto it. That fixed the logo. It did
      not centre the menu, and the menu was the actual complaint.
   3) --content -> --wide, WITH A REAL CENTRING MECHANISM (below). Adam prefers
      the wide bar and the narrowing was never what he asked for.
   WHY THE NARROWING COULD NOT HAVE CENTRED IT. Measured on the accepted build,
   not reasoned about: the nav sat +49.9px RIGHT of the bar's axis at 1280, 1440,
   1740 and 2560 alike, because the row was justify-content:space-between AND the
   nav carried margin-left:auto. An auto margin eats the whole of the free space
   in front of it, so the menu was pinned against Donate and every spare pixel
   piled up behind the logo. Changing the cap slides that error around the bar;
   it cannot remove it. See the 1280 media query for the fix.
   THE PRICE, STATED AND MEASURED: hard left in a 1400px bar puts the logo
   outside the 1200px page column by 100px from 1400 up, and by 40px at 1280
   where the cap does not yet bind. That is the thing move 2 was trying to fix.
   It is being paid on purpose this time rather than by accident. */
.hdr-row1 {
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); padding-inline: var(--gutter);
  width: 100%; max-width: var(--wide); margin-inline: auto;
}
/* Never shrinkable. An <img> with height set and width:auto deforms rather
   than overflows when flex takes width off it, and the deformation is silent.
   This guard governs every width below 1280, which is the whole flex band. From
   1280 up the row is a grid and this declaration is inert; the equivalent guard
   there is the 1fr track's auto floor. Do not remove either one on the grounds
   that the other exists. */
.hdr-logo { display: block; flex: 0 0 auto; }
.hdr-logo img { height: 44px; width: auto; }
.hdr-nav { display: none; }
/* ONE HEADER ROW AT EVERY WIDTH. Donate rides row 1 between the logotype and
   the burger at every width. Below 768 the bar is 61px, not the 120px a
   two-row header cost, and that 59px goes back to the page. */
.hdr-ctas { display: flex; gap: var(--sp-1); margin-left: auto; flex: 0 0 auto; }
/* padding:0 is NOT cosmetic and must not be dropped. Astra styles bare
   <button> with 24px of horizontal padding. On a 44px border-box button that
   leaves 0px of content width, and the icon, being a flex item, shrinks to
   exactly that: a 50px-wide empty box with no hamburger in it. Verified on
   staging, 2026-08-16, before the fix. The accepted build never hit this
   because it carries its own reset and no parent theme. flex:0 0 auto on the
   glyph is the second belt: it stops any future parent padding doing the same
   thing silently. */
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--touch); height: var(--touch); padding: 0; background: transparent;
  border: 1px solid var(--hairline); border-radius: var(--r-soft);
  cursor: pointer; color: var(--ink-navy); flex: 0 0 auto;
}
.burger svg { width: 24px; height: 24px; flex: 0 0 auto; }

/* Both clamps are flat at full value from 360 up and only ramp down across the
   320-360 band, where three items at full size do not fit a row. At 320 the row
   lands at 316.4 of 320 with the 20px gutter intact. */
@media (max-width: 767px) {
  .hdr-row1 { gap: clamp(8px, 20vw - 56px, 16px); }
  .hdr-ctas .btn-donate { padding-inline: clamp(14px, 20vw - 50px, 22px); }
}
@media (min-width: 768px) {
  .hdr-row1 { height: 84px; }
  .hdr-logo img { height: 60px; }
  .hdr-ctas { gap: var(--sp-2); }
}
@media (min-width: 1280px) {
  .burger { display: none; }
  /* Three zones, equal side tracks. This is what centres the menu, and the width
     of the bar has nothing to do with it: the two flanking zones RESERVE EQUAL
     WIDTH, so the nav sits on the bar's axis whatever the logo and the button
     measure. Every auto margin that used to do the positioning is cleared, since
     an auto margin absorbs free space and would silently override justify-self.
     Measured on the accepted build after the change: nav centre minus bar centre
     is 0.0px at 1280, 1300, 1366, 1400, 1440, 1600, 1740, 1920 and 2560, and the
     side tracks are equal to within 0.02px.
     The logo cannot crush here either: a 1fr track is minmax(auto,1fr), and auto
     floors it at the image's min-content width. At the narrowest viewport that
     shows the nav, 1280, the side share is 232px against a 148.6px logo, and it
     only grows. */
  .hdr-row1 {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; column-gap: var(--sp-4);
  }
  .hdr-logo { justify-self: start; }
  .hdr-ctas { margin-left: 0; justify-self: end; }
  .hdr-nav { display: flex; gap: var(--sp-3); justify-self: center;
             margin: 0; list-style: none; padding: 0; }
  .hdr-nav li { margin: 0; }
  .hdr-nav a {
    font-family: var(--font-body); font-weight: 600; font-size: var(--fs-base);
    color: var(--ink-navy); text-decoration: none; white-space: nowrap;
    padding: 6px 0; border-bottom: 2px solid transparent;
  }
  .hdr-nav a:hover { color: var(--erdf-blue-dark);
                     border-bottom-color: var(--erdf-blue-dark); }
  /* DROPDOWNS. The panel hangs off the BAR's bottom edge, not off the link, and
     that is why .hdr-nav stretches and its items are full-height flex boxes: a
     panel anchored to the link leaves a gap between the link's underline and
     the panel, the pointer crosses dead space on the way down, :hover drops and
     the menu closes under the cursor. Full-height items make top:100% land on
     the bar's own hairline, so there is no gap to cross. */
  .hdr-nav { align-self: stretch; }
  .hdr-nav li { display: flex; align-items: center; }
  .hdr-nav li.has-sub { position: relative; }
  .hdr-nav .hdr-caret { width: 14px; height: 14px; flex: 0 0 auto; margin-left: 5px;
                        transition: transform 160ms ease-out; }
  .hdr-sub {
    position: absolute; top: 100%; left: calc(-1 * var(--sp-2)); z-index: 70;
    display: block; min-width: 236px; margin: 0; padding: var(--sp-2) 0;
    list-style: none;
    background: var(--warm-white); border: 1px solid var(--hairline);
    border-radius: var(--r-soft); box-shadow: var(--shadow-lift);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 0s linear 160ms;
  }
  .has-sub:hover > .hdr-sub,
  .has-sub:focus-within > .hdr-sub {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  .has-sub:hover > a > .hdr-caret,
  .has-sub:focus-within > a > .hdr-caret { transform: rotate(180deg); }
  .hdr-sub li { display: block; }
  .hdr-sub a {
    display: block; padding: 9px var(--sp-3); border-bottom: 0;
    font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
    color: var(--ink-navy);
  }
  .hdr-sub a:hover { background: var(--blue-tint); color: var(--erdf-blue-dark);
                     border-bottom: 0; }
  /* Escape is script (chrome.js). Without it the menus are still fully usable by
     keyboard: :focus-within opens on tab-in and closes when focus leaves. */
  .hdr-nav li.is-closed > .hdr-sub { opacity: 0; visibility: hidden;
                                     transform: translateY(-6px); }
}

/* ---------- slide-in nav panel ---------- */
.navpanel {
  position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 80;
  background: var(--warm-white); border-left: 1px solid var(--hairline);
  transform: translateX(100%);
  padding: var(--sp-3) var(--sp-3) var(--sp-6);
  overflow-y: auto; box-shadow: -8px 0 40px rgba(34,49,74,0.18);
  /* CLOSED MEANS OUT OF THE TAB ORDER (B17, 2026-10-03). Slid off screen with
     transform alone, the closed panel's Close button and its 28 links were
     still focusable: at 390, Tab after Menu walked through 29 controls no one
     could see, and the panel carries aria-hidden="true" with focusable content
     inside (Lighthouse aria-hidden-focus). visibility:hidden takes them out of
     the tab order and the accessibility tree. It switches off only after the
     260ms slide, so closing still animates, and on at once when the panel
     opens, so chrome.js can move focus to Close in the same frame. */
  visibility: hidden;
  transition: transform 260ms ease-out, visibility 0s linear 260ms;
}
.navpanel.is-open { transform: translateX(0); visibility: visible;
                    transition: transform 260ms ease-out, visibility 0s linear 0s; }
.navpanel ul { list-style: none; margin: var(--sp-3) 0 0; padding: 0; }
.navpanel li { margin: 0; }
.navpanel li + li { border-top: 1px solid var(--hairline); }
.navpanel a { display: block; padding: 14px 2px; text-decoration: none;
              font-weight: 600; font-size: var(--fs-base); color: var(--ink-navy); }
/* Children, indented and one rank quieter, rather than an accordion: an
   accordion hides five of six destinations behind a tap and needs script, this
   needs none, and the panel already scrolls. The sibling hairline is switched
   off inside a submenu, or a grouped list renders as six equal rows; the parent
   keeps its own, which is what separates one group from the next. */
.navpanel .np-sub { margin: 0 0 var(--sp-2); padding: 0 0 0 var(--sp-3); }
.navpanel .np-sub li + li { border-top: 0; }
.navpanel .np-sub a { padding: 9px 2px; font-weight: 500; font-size: var(--fs-sm);
                      color: var(--charcoal); }
.navpanel .np-sub a:hover { color: var(--erdf-blue-dark); }
.navpanel .np-close {
  margin-left: auto; display: flex; align-items: center; justify-content: center;
  width: var(--touch); height: var(--touch); padding: 0;
  border: 1px solid var(--hairline);
  background: transparent; border-radius: var(--r-soft); cursor: pointer;
  color: var(--ink-navy);
}
.navpanel .np-close svg { width: 24px; height: 24px; flex: 0 0 auto; }
.navscrim { position: fixed; inset: 0; z-index: 70; background: rgba(34,49,74,0.45);
            opacity: 0; pointer-events: none; transition: opacity 240ms ease-out; }
.navscrim.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 1280px) { .navpanel, .navscrim { display: none; } }

/* ---------- footer (design-system 2.2) ---------- */
.ftr { background: var(--ink-navy); color: var(--warm-white);
       padding-block: var(--sp-8) var(--sp-4); }
.ftr a { color: var(--warm-white); text-decoration: none; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
/* Logo plate and GuideStar badge are weight-matched by the AREA of white each
   puts on the navy ground, not by height or width: a 2.477:1 lockup against a
   square seal makes linear measurements mislead. 250x112 against 170x170 is
   0.969 by area, deliberately a shade under parity because a wide short bar
   reads heavier than a compact square at equal area. */
.ftr-chip { display: inline-block; background: var(--warm-white);
            border-radius: var(--r-card); padding: 12px 16px; line-height: 0; }
.ftr-chip img { height: 88px; width: auto; }
.ftr-tag { font-variant: small-caps; letter-spacing: 0.05em; font-size: var(--fs-sm);
           color: var(--footer-legal); margin: var(--sp-2) 0 0; }
/* Column labels vs links: they were both --fs-sm, both --warm-white, both
   weight 600, so you could not tell a heading from a link. The label now
   differs on three axes at once, which is what makes the distinction survive
   a glance: smaller, muted rather than white, and widely tracked. */
.ftr h2 { font-size: var(--fs-xs); color: var(--footer-legal);
          font-family: var(--font-body); font-weight: 700;
          text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 var(--sp-3); }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 12px; font-size: var(--fs-sm); }
.ftr li a { font-weight: 400; }
.ftr-vet { font-size: var(--fs-sm); color: var(--warm-white); margin-bottom: var(--sp-2); }
.ftr-need a { font-weight: 600; text-decoration: underline;
              text-underline-offset: 3px; font-size: var(--fs-sm); }
/* Column 5. The vet-routing constraint and the Need Help Now route are
   load-bearing and stay here. */
.ftr-help { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.ftr-help .ftr-badge { margin-bottom: var(--sp-3); }
.ftr-ff-caption { font-size: var(--fs-sm); color: var(--footer-legal); max-width: 46ch; }
/* The 100% claim, now its own paragraph (see the markup note in inc/chrome.php).
   One beat of air above it so the split reads as a split rather than as a wrap,
   and the claim is NOT styled up: same size, same colour as the sentence above
   it. Its emphasis lives under the closing Donate on the landing page. Two
   different weights for the same sentence in two places would read as a
   mistake. Ported from design/target-b/index.html. */
.ftr-trust { margin-top: var(--sp-2); }
.ftr-legal { border-top: 1px solid var(--quiet-hairline); margin-top: var(--sp-6);
             padding-top: var(--sp-4); display: grid; gap: var(--sp-3); }
/* Not fine print: this line carries the EIN, the postal address and the only
   contact route, so it is --fs-sm, not --fs-xs. */
.ftr-contact { font-size: var(--fs-sm); color: var(--footer-legal);
               line-height: 1.7; margin: 0; text-align: center; }
.ftr-contact a { color: var(--footer-legal); text-decoration: underline;
                 text-underline-offset: 2px; }
.ftr-docs { display: flex; flex-wrap: wrap; gap: var(--sp-3);
            font-size: var(--fs-sm); justify-content: center; }
.ftr-docs-row { display: flex; justify-content: center; }
.ftr-badge { background: var(--warm-white); color: var(--ink-navy);
             border-radius: var(--r-soft); padding: 10px; display: inline-block;
             line-height: 0; }
.ftr-badge img { width: 150px; height: 150px; }
.ftr-badge .sr-only { color: var(--ink-navy); }
.ftr-social { display: flex; gap: var(--sp-2); align-items: center; justify-content: center; }
.ftr-social a { display: flex; align-items: center; justify-content: center;
                width: var(--touch); height: var(--touch); border-radius: var(--r-badge);
                border: 1px solid var(--quiet-hairline); }
.ftr-social a:hover { background: rgba(253,251,246,0.12); }
.ftr-social svg { width: 22px; height: 22px; }
.ftr-copy { font-size: var(--fs-xs); color: var(--footer-legal); margin: 0; text-align: center; }
@media (min-width: 768px) {
  .ftr-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-4); }
}
@media (min-width: 1024px) {
  .ftr-grid { grid-template-columns: 1.25fr 1fr 1.35fr; gap: var(--sp-6) var(--sp-4); }
}
@media (min-width: 1280px) {
  /* Col 1 carries the enlarged logo plate; the width comes off col 5, which
     only has to clear the 170px badge. Cols 2-4 are untouched: their link
     strings already sit close to their column widths. */
  .ftr-grid { grid-template-columns: 1.28fr 0.72fr 0.72fr 1.12fr 1.12fr; gap: var(--sp-4); }
}

/* ---------- keyboard focus (B17, 2026-10-03) ---------- */
/* THE CHROME'S FOCUS INDICATOR, the same on every page. Before this the
   header, panel and footer took whatever ring the page under them drew:
   --erdf-blue-dark on the landing and P/R/U pages, which on the navy footer is
   1.51:1 (every footer link, the social icons, the Candid badge), and Astra's
   1px dotted currentColor everywhere else, and only Astra's focus fill on the
   Menu button. The yellow ring with navy either side (--focus-ring, --focus-edge;
   erdf.css "keyboard focus, site-wide" has the measurements) holds on the cream
   header, the cream panel and the navy footer alike.
   (0,3,1), so it out-ranks `.erdf-lp :focus-visible` and `.erdf-pru
   :focus-visible` (0,2,0) inside the chrome and nowhere else. */
.erdf-chrome :is(.hdr, .navpanel, .ftr) :is(a, button):focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  box-shadow: var(--focus-edge);
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .navpanel { transition: none; }
}
