/*! Token of Trust — "tot-navy" theme · concept v1.1 (ecommerce-hardened).
    Sole tenant styling surface for pages that load no page stylesheet.
    Contracts, token derivation and managed-chrome notes: docs/STYLE-GUIDE.md.
    Token values: content/themes/tot-navy.json. Layer ownership and CSS
    policy: docs/css-architecture-and-budgets.md. */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
  color-scheme: only light;

  /* Enterprise anchor */
  --navy: #10294b;
  --navy-2: #173763;
  --navy-soft: #1e4275;
  /* Soft neutrals */
  --cream: #faf8f4;
  --card: #ffffff;
  --sand: #f4f1ea;             /* Warm secondary surface (the footer panel) */
  --line: #e6e2d9;
  --line-cool: #dfe6ee;
  --ink: #1b2a40;
  --muted: #4d5a70;            /* darkened from v1.0 (#5d6b80) for AA on cream + white */
  /* Warm + trust accents (decorative) */
  --teal: #0d9391;             /* deepened for >=3:1 on cream (decorative/large use) */
  --teal-ink: #0b6360;         /* AA-safe teal for small text (kickers/links) */
  /* Exact values read from public/token-of-trust-logo-lockup.svg. The wordmark
   green anchors the navigation current/pressed boundaries. */
  --logo-green: #00a279;       /* logo mark green — blend source for the nav tints */
  --wordmark-green: #044a38;   /* logo wordmark — nav current/pressed boundary */
  --coral: #bf3d2c;            /* AA on cream (~5.1:1) — safe as normal text (.support-line) */
  --green: #1d9e5f;
  --green-d: #17854f;
  --gold: #8a6012;             /* deep amber, AA on cream (~5.2:1) — safe for text + rating icons */
  --mint: #7fe3b8;             /* accent ON NAVY only (kickers, links, rules); too light for cream */
  --grad: linear-gradient(115deg, var(--teal), #3b82c4);

  /* Semantic tokens (v1.1) — the layer components should consume */
  --color-cta: #16794a;        /* primary action bg; white text = AA (~5.4:1) */
  --color-cta-hover: #115f3a;
  --color-trust: var(--teal-ink);
  --color-error: #b3261e;
  --color-success: #157a4a;
  --color-warning: #8a5a10;
  --surface-card: var(--card);
  --surface-raised: var(--card);
  --text-muted: var(--muted);
  --focus-ring: #4f7fff;       /* >=3:1 focus outline on BOTH cream (~3.4:1) and navy (~3.6:1) */

  /* Shape */
  --r: 20px;
  --r-sm: 13px;
  --shadow: 0 12px 36px rgba(16, 41, 75, .10);
  --shadow-soft: 0 8px 24px rgba(27, 42, 64, .07);
  /* Spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 44px;
  --s5: 72px;
  --s6: 104px;
  /* Type families */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tap: 44px;                 /* minimum interactive target */

  /* Supporting marketing palette — shared by the homepage and /product/, and
   available to any marketing page. */
  --butter: #ffefbf;
  --peach: #ffd4bc;
  --peach-2: #f6c2ab;
  --coral-soft: #e98a74;
  --lavender: #e4ddfb;
  --lavender-2: #d6ccf5;
  --sky: #d4e6fb;
  --sky-2: #c3daf5;
  --mint-pale: #dcf5ea;
  --ground-soft: #f8f8f6;      /* neutral off-white section ground */
  --line-warm: #efdac9;
  --line-sky: #d3e0f2;
  --line-lav: #d9d3ee;
  --line-soft: #e8e3da;
  /* Interface-illustration neutrals (the hpui-/totui- kits share these values) */
  --ui-line: #e1e6ee;
  --ui-ground: #f5f7fa;
  /* Text on a navy ground */
  --on-navy: #c9d6e8;
  --on-navy-2: #9fb2cb;
  /* Elevation used by marketing compositions */
  --shadow-deep: 0 30px 70px rgba(16, 41, 75, .14), 0 6px 18px rgba(16, 41, 75, .06);
  --shadow-ui: 0 18px 44px rgba(16, 41, 75, .12), 0 2px 6px rgba(16, 41, 75, .05);
  --shadow-lift: 0 26px 60px rgba(16, 41, 75, .16), 0 3px 8px rgba(16, 41, 75, .06);
  /* The navy section ground, and the two thin gradient separator values. The
     separators stay page-specific pseudo-elements; only the values are shared. */
  --grad-navy-section: linear-gradient(118deg, #0c2140 0%, var(--navy) 44%, #1b3b69 100%);
  --rule-warm: linear-gradient(90deg, var(--coral) 0%, var(--peach-2) 40%, var(--lavender-2) 100%);
  --rule-cool: linear-gradient(90deg, var(--teal) 0%, var(--sky-2) 50%, var(--lavender-2) 100%);
}

/* Visually hidden, still announced — for supporting text such as the
   "(opens in a new tab)" note on external links. Never use display:none. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* --- 2. Reset & base ----------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.65; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: inherit; }

/* Global visible focus — never remove the outline, only replace it (v1.1). */
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

/* --- 3. Layout ----------------------------------------------------------- */
.container { max-width: 1150px; margin: 0 auto; padding: 0 var(--s3); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 18px; z-index: 100; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
.center { text-align: center; }
.center .section-lede { margin: 0 auto; }
section { padding: var(--s5) 0; }

/* --- 4. Typography ------------------------------------------------------- */
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.12; letter-spacing: -.025em; margin: var(--s2) 0; font-weight: 800; color: var(--navy); }
h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.35rem); letter-spacing: -.02em; line-height: 1.16; margin: 10px 0 14px; font-weight: 800; color: var(--navy); }
.kicker { font-size: .875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.lede { font-size: 1.13rem; color: var(--muted); max-width: 52ch; }
.section-lede { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.support-line { font-size: 1rem; font-weight: 700; color: var(--coral); margin-top: 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: .875rem; font-weight: 700; color: var(--navy);
}
.eyebrow .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.eyebrow .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }

/* --- Hero size system (opt-in) -------------------------------------------
   .hero-lg / .hero-md / .hero-sm standardise hero SCALE and SPACING only; they
   never set alignment, colour, background or imagery, so a page keeps its own
   composition. Every value is a custom property, so a page can override one
   step without forking the block. A hero with no size class is untouched.
   Sizing is content-driven (padding + clamp()), never a fixed height, so heroes
   grow when copy wraps or text is enlarged.

   In the THEME, not the marketing layer, because 6 of the 41 .hero pages do not
   load mkt.css. mkt.css keeps hero COMPOSITION; the theme owns SIZE.

   --hero-pb is 0 by default so the next section's padding supplies the gap; a
   hero with its own background band sets it in its page stylesheet.

   Selectors are compound (.hero.hero-lg) so the variant outranks mkt.css's
   .hero rules, which load after the theme. Always use the pair.
   Two-layer model and the migration inventory: docs/marketing-components.md.
   ------------------------------------------------------------------------ */
.hero.hero-lg,
.hero.hero-md,
.hero.hero-sm {
  padding-top: var(--hero-pt);
  padding-bottom: var(--hero-pb);
}
.hero.hero-lg .kicker,
.hero.hero-md .kicker,
.hero.hero-sm .kicker {
  display: block;
  margin-bottom: var(--hero-kicker-mb);
}
.hero.hero-lg h1,
.hero.hero-md h1,
.hero.hero-sm h1 {
  font-size: var(--hero-h1-size);
  line-height: var(--hero-h1-lh);
  letter-spacing: var(--hero-h1-ls);
  max-width: var(--hero-h1-measure);
  margin-top: var(--hero-h1-mt);
  margin-bottom: var(--hero-h1-mb);
}
.hero.hero-lg .lede,
.hero.hero-md .lede,
.hero.hero-sm .lede {
  font-size: var(--hero-lede-size);
  max-width: var(--hero-lede-measure);
}
.hero.hero-lg .cta-row,
.hero.hero-md .cta-row,
.hero.hero-sm .cta-row {
  margin-top: var(--hero-cta-mt);
}
.hero.hero-lg .trust-inline,
.hero.hero-md .trust-inline,
.hero.hero-sm .trust-inline {
  margin-top: var(--hero-trust-mt);
}

/* Large — the biggest vertical presence and headline in the system. */
.hero.hero-lg {
  --hero-pt: 84px;
  --hero-pb: 0px;
  --hero-kicker-mb: 0px;
  --hero-h1-size: clamp(2.6rem, 6vw, 4.4rem);
  --hero-h1-lh: 1.04;
  --hero-h1-ls: -.03em;
  --hero-h1-measure: 19ch;
  --hero-h1-mt: 14px;
  --hero-h1-mb: 22px;
  --hero-lede-size: 1.22rem;
  --hero-lede-measure: 56ch;
  --hero-cta-mt: 32px;
  --hero-trust-mt: 38px;
}

/* Medium — the default marketing weight for a substantial inner page. */
.hero.hero-md {
  --hero-pt: 64px;
  --hero-pb: 0px;
  --hero-kicker-mb: 2px;
  --hero-h1-size: clamp(2.1rem, 4.6vw, 3.25rem);
  --hero-h1-lh: 1.1;
  --hero-h1-ls: -.025em;
  --hero-h1-measure: 20ch;
  --hero-h1-mt: 12px;
  --hero-h1-mb: 18px;
  --hero-lede-size: 1.13rem;
  --hero-lede-measure: 58ch;
  --hero-cta-mt: 26px;
  --hero-trust-mt: 30px;
}

/* Small — compact top for a deep page that should get to its content quickly.
   Also feeds the 4d blog adapter. */
.hero.hero-sm,
#main .blog-hero {
  --hero-pt: 48px;
  --hero-pb: 0px;
  --hero-kicker-mb: 2px;
  --hero-h1-size: clamp(1.9rem, 3.6vw, 2.6rem);
  --hero-h1-lh: 1.14;
  --hero-h1-ls: -.02em;
  --hero-h1-measure: 26ch;
  --hero-h1-mt: 10px;
  --hero-h1-mb: 14px;
  --hero-lede-size: 1.05rem;
  --hero-lede-measure: 62ch;
  --hero-cta-mt: 22px;
  --hero-trust-mt: 24px;
}

@media (max-width: 980px) {
  .hero.hero-lg { --hero-pt: 64px; --hero-pb: 0px; }
  .hero.hero-md { --hero-pt: 52px; --hero-pb: 0px; }
  .hero.hero-sm,
  #main .blog-hero { --hero-pt: 40px; --hero-pb: 0px; }
}
@media (max-width: 560px) {
  /* On phones the viewport is already narrower than any of these measures, so a ch
     cap only forces worse line breaks. Let the column govern. */
  .hero.hero-lg,
  .hero.hero-md,
  .hero.hero-sm,
  #main .blog-hero { --hero-h1-measure: none; }
  .hero.hero-lg {
    --hero-pt: 52px;
    --hero-pb: 0px;
    --hero-h1-size: clamp(2.1rem, 9.6vw, 2.7rem);
    --hero-lede-size: 1.08rem;
    --hero-cta-mt: 26px;
    --hero-trust-mt: 30px;
  }
  .hero.hero-md {
    --hero-pt: 44px;
    --hero-pb: 0px;
    --hero-h1-size: clamp(2.1rem, 8.4vw, 2.4rem);  /* min matches the theme h1 so phone line breaks are unchanged */
    --hero-lede-size: 1.02rem;
    --hero-cta-mt: 22px;
    --hero-trust-mt: 26px;
  }
  .hero.hero-sm,
  #main .blog-hero {
    --hero-pt: 36px;
    --hero-pb: 40px;
    --hero-h1-size: clamp(1.75rem, 7.4vw, 2.1rem);
    --hero-lede-size: 1rem;
    --hero-cta-mt: 20px;
    --hero-trust-mt: 22px;
  }
}

/* 4c. Dark-ground hero composition; colour only.
   docs/marketing-components.md § Hero system. */
.hero.hero-on-navy .kicker { color: var(--mint); }

/* 4d. Adapter for the MANAGED `.blog-hero` (/blog/, /blog/tag/*): scale +
   kicker only. docs/marketing-components.md § Hero system. */
#main .blog-hero {
  --hero-pb: 40px;
  padding-top: var(--hero-pt);
  padding-bottom: var(--hero-pb);
}
#main .blog-hero h1 {
  font-size: var(--hero-h1-size); line-height: var(--hero-h1-lh); letter-spacing: var(--hero-h1-ls);
  max-width: var(--hero-h1-measure); margin-top: var(--hero-h1-mt); margin-bottom: var(--hero-h1-mb);
}
#main .blog-hero .blog-shell > p:last-child {
  font-size: var(--hero-lede-size); max-width: var(--hero-lede-measure);
}
#main .blog-hero .eyebrow {
  display: block; margin-bottom: var(--hero-kicker-mb); padding: 0; border: 0; background: none;
  font-size: .875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mint);
}
#main .blog-hero .eyebrow:empty { display: none; }

/* --- 5. Buttons — CTA hierarchy + full states (v1.1) --------------------- */
/* primary = green/cta · secondary = navy · tertiary = line/outline */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 12px 24px; border-radius: 12px;
  font-weight: 700; font-size: .95rem; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); filter: brightness(.96); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.2); }
.btn.is-loading, .btn[aria-busy="true"] { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; color: #fff;
  animation: btnspin .7s linear infinite;
}
@keyframes btnspin { to { transform: rotate(360deg); } }
.btn-green, .btn-primary { background: var(--color-cta); color: #fff; box-shadow: 0 7px 20px rgba(21, 122, 74, .28); }
.btn-green:hover, .btn-primary:hover { background: var(--color-cta-hover); }
.btn-navy, .btn-secondary { background: var(--navy); color: #fff; }
.btn-navy:hover, .btn-secondary:hover { background: var(--navy-2); }
.btn-line, .btn-tertiary, .btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line-cool); }
.btn-line:hover, .btn-tertiary:hover, .btn-outline:hover { border-color: var(--navy); }

/* --- 6. Header / primary nav (>=44px targets) --------------------------- */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; text-decoration: none; min-height: var(--tap); }
.brand img { height: 34px; width: auto; display: block; }
nav.primary ul { display: flex; gap: 20px; list-style: none; align-items: center; }
nav.primary a {
  display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted);
}
nav.primary a:hover { color: var(--navy); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; min-width: var(--tap); min-height: var(--tap); }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px auto; border-radius: 2px; }

/* --- 7. Proof strip ------------------------------------------------------ */
.proof { background: var(--navy); color: #e2ebf6; padding: 18px 0; }
.proof .container { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; }
.proof span { font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.proof b { color: #fff; }
.proof .sep { opacity: .45; }

/* --- 8. Footer ----------------------------------------------------------- */
footer.site { border-top: 1px solid var(--line); padding: var(--s5) 0; background: var(--sand); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s4); }
.foot-grid h3 { font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 800; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 4px; }
.foot-grid a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; font-size: .95rem; font-weight: 600; }
.foot-grid a:hover { color: var(--teal-ink); }
.copyright { margin-top: var(--s4); color: var(--muted); font-size: .9rem; }

/* --- 9. Interaction / reveal -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Composited pulse (transform + opacity) — avoids non-composited box-shadow animation. */
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }

/* --- 10. Accessible forms (v1.1) ---------------------------------------- */
/* Field group: label + control + help/validation. required/optional marked. */
.form-field { display: grid; gap: 6px; margin-bottom: var(--s2); }
.form-label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.form-label .req { color: var(--color-error); }           /* required marker */
.form-label .opt { color: var(--muted); font-weight: 400; } /* optional marker */
.form-help { font-size: .9rem; color: var(--muted); }      /* aria-describedby hint */
.form-control {
  width: 100%; min-height: var(--tap); padding: 11px 14px; border: 1.5px solid var(--line-cool); border-radius: 10px; font: inherit; font-size: 1rem;
  background: #fff; color: var(--ink);
}
.form-control::placeholder { color: #7a869a; }
.form-control:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-color: var(--navy); }
.form-control[aria-invalid="true"], .form-control.is-error { border-color: var(--color-error); }
.form-control.is-success { border-color: var(--color-success); }
.field-error { color: var(--color-error); font-size: .9rem; font-weight: 600; }   /* invalid state */
.field-success { color: var(--color-success); font-size: .9rem; font-weight: 600; } /* success state */

/* --- 11. Trust / social-proof component slots (v1.1) -------------------- */
/* IMPORTANT: content is placeholder / needs-review. Never ship fabricated
   ratings, testimonials, badges, guarantees, or customer/partner logos —
   source-copy real claims or mark them needs-review. */
/* Reviews & ratings (e.g. star rating, "G2" / "Capterra" review card) */
.rating { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.review-card { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; }
/* Testimonial / customer quote */
.testimonial {
  background: var(--surface-card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--r-sm); padding: 18px 20px;
}
.testimonial blockquote, .testimonial .quote { font-size: 1.02rem; color: var(--ink); }
.testimonial .cite { margin-top: 10px; font-size: .9rem; color: var(--muted); font-style: normal; }
/* Trust badge (security / compliance / certification) */
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #eef4ff; border: 1px solid var(--line-cool); color: var(--navy); border-radius: 999px;
  padding: 8px 14px; font-size: .9rem; font-weight: 700;
}
/* Reassurance callout (guarantee / returns / refund / risk-free) */
.reassurance {
  display: flex; align-items: center; gap: 10px; background: #f0f8f3; border: 1px solid #d3e9db; border-radius: var(--r-sm); padding: 12px 16px;
  font-weight: 600; color: var(--ink);
}
/* Logo strip ("as seen in" / press / customer / partner logos) */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; opacity: .85; }
.logo-strip .logo { height: 26px; display: inline-flex; align-items: center; color: var(--muted); font-weight: 800; letter-spacing: .04em; }

/* --- 12. CTA hierarchy helpers + mobile CTA (v1.1) ---------------------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mobile-cta { display: none; }   /* sticky primary CTA on small screens (below) */

/* --- 13. Responsive foundation ------------------------------------------ */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  nav.primary {
    display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 24px;
  }
  nav.primary.open { display: block; }
  nav.primary ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.primary a { min-height: var(--tap); }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn-line { display: none; }
  /* thumb-reachable primary CTA */
  .mobile-cta {
    display: flex; position: sticky; bottom: 0; z-index: 60; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 248, 244, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  }
  .mobile-cta .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn.is-loading::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- 14. Mobile legibility floor (a11y) --------------------------------- */
/* On phone/tablet widths, no actionable or body text renders below the 14px
   WCAG legibility minimum. max(0.875rem, 1em) only ever RAISES a size (never
   shrinks below 14px), and !important lets it override page-local type scales
   so no tenant page can opt an element under the floor. Desktop (>768px) keeps
   its tighter editorial scale. Applies to every tenant page via the theme;
   pairs with the >=44px tap targets on .brand / nav / .btn. */
@media (max-width: 768px) {
  p, li, a, button, input, textarea, select, summary, small {
    font-size: max(0.875rem, 1em) !important;
  }
}

/* --- 15. Managed site chrome — interim token bridge + scoped presentation -
   The managed chrome reads a token vocabulary theme.json owns but the raw-HTML
   renderer does not yet serialize, so 19 of 24 colour tokens resolve empty and
   the chrome paints unstyled. This block supplies that vocabulary from the
   section 1 tokens; it can be deleted with no visual change once the platform
   serializes theme.json.

   Two constraints, both load-bearing:
     * this sheet loads BEFORE commerce-chrome.css, so overlapping rules carry
       one extra class of specificity on purpose. Nothing uses !important;
     * NO backdrop-filter on .site-header — it would make the header the
       containing block for the fixed drawer and clip it.
   Rationale, platform feedback ref and the full contract: docs/STYLE-GUIDE.md
   §Managed chrome implementation notes.
   ------------------------------------------------------------------------- */

/* 15a. The contract vocabulary, mapped onto section 1. */
:root {
  --color-bg:               var(--cream);
  --color-surface:          var(--card);
  --color-surface-2:        var(--sand);
  --color-text:             var(--ink);
  --color-muted:            var(--muted);
  --color-primary:          var(--navy);
  --color-primary-contrast: #fff;
  --color-primary-hover:    var(--navy-2);
  --color-accent:           var(--teal-ink);
  --color-accent-hover:     var(--teal);
  --color-accent-ink:       var(--teal-ink);
  --color-border:           var(--line);
  --color-sale:             var(--coral);
  /* Chrome focus ring. Deliberately NOT var(--focus-ring): the tonal nav states
   put the ring on the cream/sand gap beside the link, where navy reads as part
   of the boundary. This blue is distinct from every state colour. */
  --color-focus-ring:       var(--navy);
  /* --color-success / --color-warning / --color-error already exist above. */

  --radius-sm:   var(--r-sm);
  --radius-md:   16px;
  --radius-lg:   var(--r);
  --radius-full: 999px;
  --shadow-md:   var(--shadow);
  --shadow-lg:   0 24px 60px -20px rgba(16, 41, 75, .16);
  --container-max: 1150px;
  --font-display: var(--sans);
  --font-body:    var(--sans);
  --font-mono:    var(--mono);
  --tap-target:   var(--tap);
}

/* 15b. Roles the shared component overloads onto one variable. Each is read
   below through var(<role>, <core fallback>), so the rules stand alone. */
:root {
  --color-header-surface:      var(--cream);
  --color-header-border:       var(--line);
  --color-nav-link:            var(--muted);
  /* Component-overloaded selection roles. Nothing reads them today, so they are
   kept only as forward-compatible shims, aliased to the enclosed scale so they
   cannot drift. tools/theme-tokens/validate.mjs enforces the reason. */
  --color-nav-current-surface: var(--color-nav-enclosed-current-surface);
  --color-nav-current-text:    var(--color-nav-enclosed-text);
    /* 15b-i. Direction 3 tonal navigation states — one vocabulary for primary
     nav (incl. drawer), footer columns and the footer-bottom legal row.
     State is carried by BOUNDARY GEOMETRY, not hue (1px / 2px / 3px double), so
     it survives greyscale and CVD; the tints are 1.09-1.31:1 on cream and are
     NOT accessible cues on their own.
     Derivation and contrast table: docs/STYLE-GUIDE.md §15b-i. */
  --color-nav-enclosed-text:             var(--navy);
  --color-nav-enclosed-hover-surface:    #e6f1ea;
  --color-nav-enclosed-hover-boundary:   #4e7e70;
  --color-nav-enclosed-pressed-surface:  #bee3d6;
  --color-nav-enclosed-pressed-boundary: var(--wordmark-green);
  --color-nav-enclosed-current-surface:  #d2eae0;
  --color-nav-enclosed-current-boundary: var(--wordmark-green);
  --radius-nav-enclosed:                 var(--radius-full);
  --color-cta-surface:         var(--color-cta);
  --color-cta-text:            #fff;
  --color-cta-hover-surface:   var(--color-cta-hover);
  /* Restrained: the CTA holds authority through its dark fill and white
     label, not a heavy glow competing with the new tonal navigation. */
  --color-cta-shadow:          0 3px 8px rgba(21, 122, 74, .12);
  --color-cta2-surface:        var(--card);
  --color-cta2-text:           var(--navy);
  /* #687688 measures 4.63:1 on the white interior and 4.37:1 on the cream
     exterior; white fill with a navy label keeps the CTA hierarchy intact. */
  --color-cta2-border:         #687688;
  --color-cta2-border-hover:   var(--navy);
  --radius-cta:                12px;
  --color-drawer-surface:      var(--cream);
  /* The component hard-wires the footer to a DARK panel. This tenant's footer is
   light, so the foreground tokens are re-pointed here. */
  --color-footer-surface:      var(--sand);
  --color-footer-text:         var(--ink);
  --color-footer-heading:      var(--muted);
  --color-footer-muted:        var(--muted);
  --color-footer-border:       var(--line);
  --chrome-footer-logo-filter: none;
}

/* 15c. Scoped resets — the component ships no list, link or button reset of
   its own, so they are supplied here, scoped to the chrome. */
.site-header ul,
.site-footer ul                       { list-style: none; margin: 0; padding: 0; }
.site-header a,
.site-footer a                        { text-decoration: none; }
.site-header a:hover,
.site-footer a:hover                  { text-decoration: underline; }
.site-header .header-cta,
.site-header .hamburger               { appearance: none; }

/* 15d. Header shell. Opaque, so page content cannot show through the sticky bar. */
:root .site-header {
  background: var(--color-header-surface, var(--color-surface));
  border-bottom: 1px solid var(--color-header-border, var(--color-border));
}

/* 15e. Primary navigation + current-page state. */
/* Both selectors are needed: the component renders each item as
   li.nav-item > a and styles it with .primary-nav .nav-item > a, which ties
   .site-header .primary-nav a on specificity and would win on order. */
.site-header .primary-nav a,
.site-header .primary-nav .nav-item > a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 6px 16px; border-bottom: 0;
  /* Enclosed-state geometry is reserved at REST: the radius and padding that
   shape the pill are already here, so states only repaint. */
  border-radius: var(--radius-nav-enclosed);
  background: transparent;
  /* 600 in EVERY state, including current: no state can alter glyph width, so
     the row cannot reflow when the current page changes. */
  font-weight: 600; font-size: .95rem;
  color: var(--color-nav-link, var(--color-text));
  /* Paint-only transitions. Never dimensions, position, transform or weight. */
  transition: background-color .13s ease, color .13s ease;
  /* The boundary lives on a pseudo-element pinned to inset:0, so growing it
   1px -> 2px -> 3px repaints inside the same box and can never shift text. */
  position: relative;
  isolation: isolate;
}
/* States for all three link surfaces are declared once, together, in 15h-ii. */

/* 15f. Header CTAs — the .btn hierarchy from section 5, in chrome markup.
   Mirrors section 5 rather than re-deriving it; see docs/STYLE-GUIDE.md. */
.site-header .header-actions .header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 12px 24px; border: 0;
  border-radius: var(--radius-cta, var(--radius-full));
  font-weight: 700; font-size: .95rem;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
/* Shared hover/focus posture: no underline through a pill, and no movement or
   resize — so hovering a CTA can never reflow the header. */
.site-header .header-actions .header-cta:hover,
.site-header .header-actions .header-cta:focus-visible {
  text-decoration: none;
  transform: none;
  opacity: 1;
}
.site-header .header-actions .header-cta--primary {
  background: var(--color-cta-surface, var(--color-accent));
  color: var(--color-cta-text, var(--color-primary-contrast));
  box-shadow: var(--color-cta-shadow, none);
}
.site-header .header-actions .header-cta--primary:hover,
.site-header .header-actions .header-cta--primary:focus-visible {
  background: var(--color-cta-hover-surface, var(--color-accent-hover));
  color: var(--color-cta-text, var(--color-primary-contrast));
  box-shadow: var(--color-cta-shadow, none);
}
/* The border is declared at rest, so the hover recolours it in place and the
   button's box never changes size. */
.site-header .header-actions .header-cta--secondary {
  background: var(--color-cta2-surface, transparent);
  color: var(--color-cta2-text, var(--color-primary));
  border: 1.5px solid var(--color-cta2-border, var(--color-border));
}
.site-header .header-actions .header-cta--secondary:hover,
.site-header .header-actions .header-cta--secondary:focus-visible {
  background: var(--color-cta2-surface, transparent);
  color: var(--color-cta2-text, var(--color-primary));
  border-color: var(--color-cta2-border-hover, var(--color-primary));
}

/* 15g. Mobile drawer — opaque, so page copy cannot read through it. */
:root.js-nav .primary-nav {
  background: var(--color-drawer-surface, var(--color-surface));
  box-shadow: var(--shadow-lg);
}

/* 15h. Footer. */
:root .site-footer {
  background: var(--color-footer-surface, var(--color-text));
  color: var(--color-footer-text, var(--color-primary-contrast));
  border-top: 1px solid var(--color-footer-border, transparent);
}
.site-footer .footer-col h4 {
  color: var(--color-footer-heading, var(--color-muted));
  font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800;
}
/* Footer column links — enclosed states. The 44px tap target is retained; the
   negative inline margin cancels the pill padding so text stays aligned. */
.site-footer .footer-col a {
  color: var(--color-footer-text, var(--color-primary-contrast));
  font-size: .95rem; font-weight: 600;
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 4px 12px; margin-inline-start: -12px;
  border-radius: var(--radius-nav-enclosed);
  background: transparent;
  transition: background-color .13s ease, color .13s ease;
  position: relative; isolation: isolate;
  /* Static room for the detached 3px focus ring at 3px offset, so a focused
     row never collides with the row above. Reserved at rest — not motion. */
  margin-block: 4px;
}
.site-footer .footer-brand p,
.site-footer .footer-bottom p,
.site-footer .footer-bottom a { color: var(--color-footer-muted, var(--color-muted)); }
.site-footer .footer-bottom { border-top: 1px solid var(--color-footer-border, transparent); }

/* 15h-i. Footer-bottom legal navigation — same enclosed vocabulary, compact.
   Also overrides the PLATFORM rule in commerce-chrome.css on specificity, not
   order: see docs/STYLE-GUIDE.md §15h-ii. */
.site-footer .footer-bottom nav a {
  display: inline-flex; align-items: center; min-height: 28px;
  padding: 3px 10px; margin-inline-start: -10px;
  border-radius: var(--radius-nav-enclosed);
  background: transparent;
  text-decoration: none;
  transition: background-color .13s ease, color .13s ease;
  position: relative; isolation: isolate;
}

/* 15h-ii. Enclosed link states — declared ONCE for all three surfaces.
   ORDERING IS LOAD-BEARING, do not resequence: this block sits AFTER all three
   base rules; then hover, current, pressed (they tie on specificity, so source
   order decides); focus last and orthogonal, so it composes with any state.
   Two deliberate specificity margins beat later-loading platform rules without
   !important. Full ordering contract and the specificity figures:
   docs/STYLE-GUIDE.md §15h-ii. */
.site-header .primary-nav a::after,
.site-header .primary-nav .nav-item > a::after,
.site-footer .footer-col a::after,
.site-footer .footer-bottom nav a::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid transparent; border-radius: inherit;
  pointer-events: none;
}
.site-header .primary-nav a:hover,
.site-header .primary-nav .nav-item > a:hover,
.site-footer .footer-col a:hover,
.site-footer .footer-bottom nav a:hover {
  background: var(--color-nav-enclosed-hover-surface);
  color: var(--color-nav-enclosed-text);
  text-decoration: none;
}
.site-header .primary-nav a:hover::after,
.site-header .primary-nav .nav-item > a:hover::after,
.site-footer .footer-col a:hover::after,
.site-footer .footer-bottom nav a:hover::after {
  border: 1px solid var(--color-nav-enclosed-hover-boundary);
}
.site-header .primary-nav a[aria-current="page"],
.site-header .primary-nav .nav-item > a[aria-current="page"],
.site-footer .footer-col a[aria-current="page"],
.site-footer .footer-bottom nav a[aria-current="page"] {
  background: var(--color-nav-enclosed-current-surface);
  color: var(--color-nav-enclosed-text);
  text-decoration: none;
}
.site-header .primary-nav a[aria-current="page"]::after,
.site-header .primary-nav .nav-item > a[aria-current="page"]::after,
.site-footer .footer-col a[aria-current="page"]::after,
.site-footer .footer-bottom nav a[aria-current="page"]::after {
  border: 2px solid var(--color-nav-enclosed-current-boundary);
}
.site-header .primary-nav a:active,
.site-header .primary-nav .nav-item > a:active,
.site-footer .footer-col a:active,
.site-footer .footer-bottom nav a:active {
  background: var(--color-nav-enclosed-pressed-surface);
  color: var(--color-nav-enclosed-text);
  text-decoration: none;
}
.site-header .primary-nav a:active::after,
.site-header .primary-nav .nav-item > a:active::after,
.site-footer .footer-col a:active::after,
.site-footer .footer-bottom nav a:active::after {
  border: 3px double var(--color-nav-enclosed-pressed-boundary);
}
.site-header .primary-nav a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--color-focus-ring, currentColor); outline-offset: 3px;
}

/* 15h-iii. Forced colours / Windows high contrast. The OS drops
   background-color, so the boundary geometry is re-expressed in system colours
   on the same paint-only pseudo-element, plus a Highlight focus ring. Nothing
   uses forced-color-adjust:none or hides a system indicator. NOT verified on
   native Windows — see docs/STYLE-GUIDE.md §15h-iii. */
@media (forced-colors: active) {
  .site-header .primary-nav a:hover::after,
  .site-header .primary-nav .nav-item > a:hover::after,
  .site-footer .footer-col a:hover::after,
  .site-footer .footer-bottom nav a:hover::after { border: 1px solid LinkText; }

  .site-header .primary-nav a[aria-current="page"]::after,
  .site-header .primary-nav .nav-item > a[aria-current="page"]::after,
  .site-footer .footer-col a[aria-current="page"]::after,
  .site-footer .footer-bottom nav a[aria-current="page"]::after { border: 2px solid LinkText; }

  .site-header .primary-nav a:active::after,
  .site-header .primary-nav .nav-item > a:active::after,
  .site-footer .footer-col a:active::after,
  .site-footer .footer-bottom nav a:active::after { border: 3px double LinkText; }

  .site-header .primary-nav a:focus-visible,
  .site-footer a:focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }

  /* Keep both CTAs enclosed. A paint-only pseudo-element rather than a real
     border, so the control cannot change size in forced-colors mode. */
  .site-header .header-actions .header-cta { position: relative; }
  .site-header .header-actions .header-cta::after {
    content: ""; position: absolute; inset: 0;
    border: 1.5px solid ButtonText; border-radius: inherit; pointer-events: none;
  }
}
.site-footer .footer-brand img { filter: var(--chrome-footer-logo-filter, none); }

/* 15h-iv. Footer sitemap grid — five columns (brand + Platform, Industries,
   Resources, Company) at ordinary desktop widths. The platform's own
   .footer-grid rule in commerce-chrome.css is a fixed four-track grid (brand +
   3 nav columns); this tenant's footer carries four nav columns, not three, so
   the rule is re-declared in full here rather than patched — the same pattern
   §16c uses to re-declare the header drawer's own breakpoint. This sheet is
   linked a second time after commerce-chrome.css (§15h-ii's ordering note), so
   an equal-specificity rule here would already win on order; the .site-footer
   prefix also gives it higher specificity (0,2,0 vs 0,1,0), so the override
   holds even if the load order ever changes. Breakpoints are content-fit, not
   inherited from the platform's 960/860/560px scheme: 1200px is the narrowest
   width at which all five columns render on one line at every current label
   (verified down to 1024px, where the two-column tier below deliberately
   takes over instead); 560px is the narrowest width at which the two-column
   tier still wraps zero labels — reusing the platform's own ≤560px threshold
   used elsewhere in commerce-chrome.css (tile-grid, cat-grid, article-grid),
   since it happens to be exactly where this content also stops fitting two
   columns cleanly. See docs/STYLE-GUIDE.md §15h-iv. */
.site-footer .footer-grid {
  grid-template-columns: 1.2fr repeat(4, 1fr);
}
@media (max-width: 1199px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-brand { grid-column: auto; }
}

/* 15i. At the width where managed navigation collapses to the hamburger, the
   header is the brand and the menu control, so header CTAs are dropped.
   .header-actions stays and keeps the hamburger — only .header-cta anchors are
   hidden, so the line never wraps down to 320px. Every CTA destination stays
   reachable from the drawer, hero or footer. See docs/STYLE-GUIDE.md §15i. */
@media (max-width: 1099px) {
  .site-header .header-actions .header-cta { display: none; }
}

/* --- 16. Managed primary header — one-row desktop presentation -------------
   The component ships two stacked bands (.header-row and .primary-nav-bar).
   From the threshold up this folds them into one row — brand left, navigation
   centre, actions right — in normal flow only, by dissolving .header-row with
   display:contents so its children become flex items of .site-header.
   display:contents is applied only to the plain wrapper div, never to a <nav>,
   so no landmark semantics are removed. .site-header keeps a full-bleed
   background, so the container measure is re-applied as symmetric padding.
   Every selector in section 16 is anchored to
   .site-header[data-variant="primary"], leaving the minimal variant and legacy
   page headers untouched.
   Band structure, threshold derivation and the rest: docs/STYLE-GUIDE.md §16.
   ------------------------------------------------------------------------- */

@media (min-width: 1100px) {
  /* Dissolve the wrapper so brand and actions join .primary-nav-bar as
     siblings in one flex row. */
  .site-header[data-variant="primary"] .header-row { display: contents; }

  :root .site-header[data-variant="primary"] {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(16px, 1.8vw, 28px);
    padding-block: 12px;
    padding-inline: max(24px, calc((100% - var(--container-max)) / 2));
  }

  .site-header[data-variant="primary"] .brand           { order: 1; flex: 0 0 auto; }
  .site-header[data-variant="primary"] .primary-nav-bar { order: 2; flex: 1 1 auto; min-width: 0; }
  .site-header[data-variant="primary"] .header-actions  { order: 3; flex: 0 0 auto; }

  /* The band's own chrome belongs to the two-row presentation only. */
  .site-header[data-variant="primary"] .primary-nav-bar {
    border-top: 0;
    background: transparent;
  }
  .site-header[data-variant="primary"] .primary-nav-bar > .container {
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
    padding-block: 0;
  }

  /* Centre the six items in the space between brand and actions, on one line. */
  .site-header[data-variant="primary"] .primary-nav-bar .primary-nav > ul {
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(2px, 0.5vw, 10px);
  }
  /* Both selectors again, for the same specificity reason as 15e. */
  .site-header[data-variant="primary"] .primary-nav-bar .primary-nav a,
  .site-header[data-variant="primary"] .primary-nav-bar .primary-nav .nav-item > a {
    padding-block: 6px;
    padding-inline: clamp(8px, 0.8vw, 14px);
    white-space: nowrap;
  }
}

/* 16b. Exactly one navigation affordance at any width: full nav above the
   threshold, hamburger below it, never both. Also closes a pre-existing leak
   from section 13's unscoped .hamburger rule. See docs/STYLE-GUIDE.md §16b. */
@media (min-width: 1100px) {
  .site-header[data-variant="primary"] .hamburger { display: none; }
}

/* --- 16c. Managed navigation collapses to the drawer below the one-row band -
   The component switches to its drawer at 860px; this extends that same
   presentation up to the one-row threshold, so there is no intermediate
   two-row state. These are the component's own declarations, re-scoped. No new
   behaviour and NO JavaScript — the hamburger is in the markup at every width
   and the chrome script already toggles .open. See docs/STYLE-GUIDE.md §16c. */
@media (min-width: 861px) and (max-width: 1099px) {
  .site-header[data-variant="primary"] .hamburger { display: flex; }

  .site-header[data-variant="primary"] .primary-nav > ul {
    flex-direction: column; align-items: stretch; gap: 4px; flex-wrap: nowrap;
  }

  :root.js-nav .site-header[data-variant="primary"] .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background: var(--color-drawer-surface, var(--color-surface));
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 78px 20px 24px;
    overflow-y: auto;
    z-index: 120;
  }
  :root.js-nav .site-header[data-variant="primary"] .primary-nav.open { transform: none; }
}

/* --- 16d. Below the one-row band, the menu control sits at the right edge ---
   Below the threshold the component's own markup applies, where .header-row is
   display:flex with justify-content:normal, so brand and actions pack left. An
   auto inline-start margin on the actions consumes the free space.

   The z-index is REQUIRED BY that move, not cosmetic: once the control sits at
   the right edge it falls inside the fixed drawer's width, and the drawer has
   no click-outside, Escape handler or close button — so without raising the
   control a pointer user could not dismiss it. A flex item honours z-index
   unpositioned, so no position declaration is introduced.
   See docs/STYLE-GUIDE.md §16d. */
@media (max-width: 1099px) {
  .site-header[data-variant="primary"] .header-actions {
    margin-inline-start: auto;
    z-index: 121;
  }
}

/* --- 16e. Compact managed menu icon: centred, becomes an X, subtle hover ---
   Three defects are fixed together because fixing one exposes the others: an
   inherited span margin stacked with the component's own gap; the component
   only centres the icon below 980px; and a compact icon would collapse the
   60px row, so the row carries a min-height rather than a transform on the
   control.

   The open state is driven entirely by aria-expanded, which the chrome script
   already maintains: NO new JavaScript. Only transform and opacity animate,
   never on the button itself, so no state can move the control or change the
   header height. prefers-reduced-motion keeps every end state.
   See docs/STYLE-GUIDE.md §16e. */
@media (max-width: 1099px) {
  /* 3 — restore the established 60px row, and with it the 70px header */
  .site-header[data-variant="primary"] .header-row { min-height: 60px; }

  /* 2 — centre the icon inside the control across the whole band, and clear
     anything inherited that could offset its resting position */
  .site-header[data-variant="primary"] .hamburger {
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
  }

  /* 1 — compact bars */
  .site-header[data-variant="primary"] .hamburger span {
    width: 24px;
    height: 2px;
    margin: 0;
    border-radius: 2px;
    transition: transform .22s ease, opacity .18s ease;
  }

  /* open: bar 1 and bar 3 become the diagonals, bar 2 fades out */
  .site-header[data-variant="primary"] .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header[data-variant="primary"] .hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .site-header[data-variant="primary"] .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* hover — pointer devices only, transform-only, no layout effect */
@media (max-width: 1099px) and (hover: hover) and (pointer: fine) {
  .site-header[data-variant="primary"] .hamburger:not([aria-expanded="true"]):hover span:nth-child(1) {
    transform: translateY(-1px);
  }
  .site-header[data-variant="primary"] .hamburger:not([aria-expanded="true"]):hover span:nth-child(3) {
    transform: translateY(1px);
  }

  .site-header[data-variant="primary"] .hamburger[aria-expanded="true"]:hover span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) scaleX(1.1);
  }
  .site-header[data-variant="primary"] .hamburger[aria-expanded="true"]:hover span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) scaleX(1.1);
  }
}

@media (max-width: 1099px) and (prefers-reduced-motion: reduce) {
  .site-header[data-variant="primary"] .hamburger span { transition: none; }
}

/* --- 16f. Collapse the empty navigation band below the one-row threshold ----
   Below the threshold 16c makes .primary-nav fixed, which removes the only
   in-flow content from .primary-nav-bar and left it painting an empty white
   strip. The band must KEEP its box — the drawer is its DESCENDANT, so
   display:none here would take the drawer with it — so it gives up only the
   chrome and padding that gave it height. This mirrors what section 16 does for
   the same band above the threshold. See docs/STYLE-GUIDE.md §16f. */
@media (max-width: 1099px) {
  .site-header[data-variant="primary"] .primary-nav-bar {
    border-top: 0;
    background: transparent;
  }
  .site-header[data-variant="primary"] .primary-nav-bar > .container {
    padding-block: 0;
  }
}
