@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/hanken-grotesk-vf-latin.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ============================================================================
   TOKENS — the only place a colour literal or a font-size literal may appear.
   Frame: Quiet Authority 3.5 §06.2. Colour roles: Quiet Authority 5.1 RC3 §05.
   Accent surfaces: CIRIBRO design standard 1.4.0 (locked four pastels).
   ============================================================================ */
:root {
  color-scheme: light dark;

  /* Type: one modular scale, ratio 1.2 from 16px; 14px is the RC3 floor. */
  --font-brand: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  --font-code: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --type-ratio: 1.2;
  --type-0: 14px;
  --type-1: 16px;
  --type-2: 19px;
  --type-3: 23px;
  --type-4: 28px;
  --type-5: 33px;
  --type-6: 39px;
  --type-7: 48px;
  --type-8: 57px;
  --type-title: clamp(var(--type-4), 3.2vw, var(--type-6));
  --type-display: clamp(var(--type-5), 4.6vw, var(--type-8));
  --leading-body: 1.55;
  --leading-heading: 1.25;
  --leading-title: 1.12;
  --leading-display: 1.05;
  --measure: 65ch;

  /* Spacing: 4px rhythm. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Chrome rail (QA 3.5 chrome.tokens: 80 / 72 / 80; gutters 48 / 24 / 16). */
  --rail: 80px;
  --gutter: 48px;
  --content-max: 1280px;
  --boundary-width: 1px;
  --control-height: 48px;
  --control-padding: 24px;
  --target-min: 44px;
  --focus-width: 3px;
  --focus-offset: 3px;
  --radius-card: 16px;
  --wordmark-width: 290px;
  --wordmark-height: 70px;

  /* Motion (RC3 §10: state 120–180ms, navigation 180–280ms). */
  --motion-state: 140ms;
  --motion-layer: 200ms;

  /* Primitive accent surfaces (locked, CIRIBRO 1.4.0) and RC3 companion inks. */
  --ciribro-accent-peach: #fbe2d5;
  --ciribro-accent-lilac-pink: #f2ceef;
  --ciribro-accent-sky-blue: #caedfb;
  --ciribro-accent-mint-green: #c1f0c8;
  --companion-peach: #b33a00;
  --companion-lilac-pink: #970067;
  --companion-sky-blue: #005cb8;
  --companion-mint-green: #006b3d;

  /* Role colours, light appearance (RC3 §05). */
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-tint: #f1f1f1;
  --ink: #1a1a1a;
  --body: #3d3d3d;
  --muted: #5f6b74;
  --boundary: #d6d9dc;
  --navigation: #005cb8;
  --focus: #005cb8;
  --action: #005cb8;
  --action-hover: #0053a6;
  --action-pressed: #004c97;
  --on-action: #ffffff;
  --identity-plate: #ffffff; /* the locked lockup carries its own white canvas; no dark variant is ratified */

  /* Pastel cards: full surface in light; dark neutral card + pastel mark in dark. */
  --pastel-card-peach: var(--ciribro-accent-peach);
  --pastel-card-lilac-pink: var(--ciribro-accent-lilac-pink);
  --pastel-card-sky-blue: var(--ciribro-accent-sky-blue);
  --pastel-card-mint-green: var(--ciribro-accent-mint-green);
  --pastel-mark-peach: var(--ciribro-accent-peach);
  --pastel-mark-lilac-pink: var(--ciribro-accent-lilac-pink);
  --pastel-mark-sky-blue: var(--ciribro-accent-sky-blue);
  --pastel-mark-mint-green: var(--ciribro-accent-mint-green);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1c1c1e;
    --surface: #2c2c2e;
    --surface-tint: #3c3c3e;
    --ink: #f2f2f0;
    --body: #c9c9c6;
    --muted: #aeaeaa;
    --boundary: #3e3e42;
    --navigation: #66b2ff;
    --focus: #66b2ff;
    --action: #359aff;
    --action-hover: #53a8ff;
    --action-pressed: #70b6ff;
    --on-action: #1a1a1a;
    --pastel-card-peach: var(--surface);
    --pastel-card-lilac-pink: var(--surface);
    --pastel-card-sky-blue: var(--surface);
    --pastel-card-mint-green: var(--surface);
  }
}

@media (max-width: 1023px) {
  :root {
    --rail: 72px;
    --gutter: 24px;
    --wordmark-width: 260px;
    --wordmark-height: 62px;
  }
}

@media (max-width: 767px) {
  :root {
    --rail: 80px;
    --gutter: 16px;
    --wordmark-width: 218px;
    --wordmark-height: 62px;
  }
}

@media (max-width: 599px) {
  :root {
    --wordmark-width: min(218px, calc(100vw - (2 * var(--gutter)) - (2 * var(--control-height)) - (2 * var(--space-2))));
  }
}

/* ============================================================================
   BASE
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-brand);
  font-size: var(--type-1);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

button,
a {
  font: inherit;
}

a {
  color: var(--navigation);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--focus-offset);
}

p,
ul,
ol,
dl {
  margin: 0 0 var(--space-4);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--type-title);
  line-height: var(--leading-title);
  letter-spacing: -0.01em;
}

h1.display {
  max-width: 18ch;
  font-size: var(--type-display);
  line-height: var(--leading-display);
  letter-spacing: -0.02em;
}

h2 {
  max-width: 24ch;
  font-size: var(--type-title);
  line-height: var(--leading-title);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--type-3);
  line-height: var(--leading-heading);
}

strong {
  color: var(--ink);
  font-weight: 700;
}

code {
  font-family: var(--font-code);
  font-size: var(--type-0);
}

.kicker {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-size: var(--type-0);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.visually-hidden,
.menu-trigger-label-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================================
   CONTROLS — every button is a pill: radius = control height / 2 (QA-CTL-007)
   ============================================================================ */
.pill {
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0 var(--control-padding);
  border: var(--boundary-width) solid var(--ink);
  border-radius: calc(var(--control-height) / 2);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: var(--type-1);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--motion-state) ease-out, border-color var(--motion-state) ease-out, color var(--motion-state) ease-out;
}

.pill-outlined:hover {
  background: var(--surface-tint);
}

.pill-outlined:active {
  background: var(--boundary);
}

.pill-filled {
  border-color: var(--action);
  background: var(--action);
  color: var(--on-action);
}

.pill-filled:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.pill-filled:active {
  border-color: var(--action-pressed);
  background: var(--action-pressed);
}

.pill-arrow {
  font-weight: 500;
  line-height: 1;
}

/* ============================================================================
   SKIP LINK — first tab stop, visible on focus (QA-ACC-111)
   ============================================================================ */
.skip-link {
  position: fixed;
  z-index: 100;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-200%);
  padding: var(--space-3) var(--space-5);
  border-radius: calc(var(--control-height) / 2);
  background: var(--ink);
  color: var(--canvas);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============================================================================
   RAIL — shared by header and footer (QA-LAY-010, QA-HDR-005, QA-FTR-004)
   ============================================================================ */
.rail {
  width: min(100%, calc(var(--content-max) + (2 * var(--gutter))));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ============================================================================
   HEADER SECTION 1 — MAIN (QA-HDR-001..012, QA-LAY-008)
   Menu left · wordmark centred on the visual viewport · right wing reserved and empty
   ============================================================================ */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: var(--rail);
  border-bottom: var(--boundary-width) solid var(--boundary);
  background: var(--surface);
}

.header-rail {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.header-wing {
  display: flex;
  min-width: 0;
  align-items: center;
}

.header-wing-start {
  justify-content: flex-start;
}

.header-wing-end {
  justify-content: flex-end;
}

.menu-trigger {
  position: relative;
}

.menu-trigger-glyph {
  display: none;
  position: relative;
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-trigger-glyph::after {
  position: absolute;
  top: 3px;
  right: 0;
  left: 0;
  border-top: 2px solid currentColor;
  content: "";
}

.brand-home {
  display: block;
  width: var(--wordmark-width);
  height: var(--wordmark-height);
  justify-self: center;
  text-decoration: none;
}

.brand-window {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--space-2);
  background: var(--identity-plate);
}

.brand-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================================
   MENU LAYER — one global navigation layer (QA-NAV-001, -008, -018; native dialog)
   ============================================================================ */
.menu-layer {
  width: min(calc(100% - (2 * var(--gutter))), 1040px);
  max-height: calc(100dvh - (2 * var(--rail)));
  margin: auto;
  padding: var(--space-6);
  border: var(--boundary-width) solid var(--boundary);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--body);
  overflow: auto;
  opacity: 1;
  transition: opacity var(--motion-layer) ease-out;
}

@starting-style {
  .menu-layer[open] {
    opacity: 0;
  }
}

.menu-layer::backdrop {
  background: var(--canvas);
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.menu-title {
  font-size: var(--type-3);
}

.menu-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.menu-group {
  min-width: 0;
}

.menu-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: var(--space-1);
  list-style: none;
}

.menu-item {
  display: grid;
  min-height: var(--target-min);
  padding: var(--space-2) var(--space-3);
  border-left: 4px solid transparent;
  border-radius: var(--space-2);
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--motion-state) ease-out;
}

.menu-item:hover {
  background: var(--surface-tint);
}

.menu-item:hover .menu-label {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.menu-item[aria-current="page"] {
  border-left-color: var(--navigation);
  background: var(--surface-tint);
}

.menu-item[aria-current="page"] .menu-label {
  text-decoration: underline;
  text-decoration-color: var(--navigation);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.menu-label {
  font-weight: 600;
}

.menu-descriptor {
  color: var(--muted);
  font-size: var(--type-0);
}

.menu-current {
  color: var(--ink);
  font-size: var(--type-0);
  font-weight: 600;
}

/* ============================================================================
   CONTENT
   ============================================================================ */
.section-shell {
  width: min(calc(100% - (2 * var(--gutter))), var(--content-max));
  margin: 0 auto;
  padding-block: clamp(var(--space-7), 7vw, var(--space-9));
  border-top: var(--boundary-width) solid var(--boundary);
}

.section-heading {
  margin-bottom: var(--space-7);
}

/* Hero */
.hero {
  display: grid;
  width: min(calc(100% - (2 * var(--gutter))), var(--content-max));
  margin: 0 auto;
  padding-block: clamp(var(--space-7), 8vw, var(--space-10));
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-lead {
  max-width: var(--measure);
  margin: var(--space-5) 0 0;
  color: var(--body);
  font-size: var(--type-2);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-status {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  color: var(--muted);
  font-size: var(--type-0);
}

.status-marker {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

/* Reliance lens (declared illustrative sample) */
.lens {
  overflow: hidden;
  border: var(--boundary-width) solid var(--boundary);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.lens-header {
  padding: var(--space-6) var(--space-6) var(--space-5);
}

.lens-header h2 {
  font-size: var(--type-3);
  line-height: var(--leading-heading);
}

.lens-declaration {
  margin: var(--space-3) 0 0;
  color: var(--muted);
}

.lens-row {
  padding: var(--space-4) var(--space-6);
  border-top: var(--boundary-width) solid var(--boundary);
}

.lens-row > p {
  margin: 0;
}

.lens-label {
  color: var(--muted);
  font-size: var(--type-0);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lens-row > p:last-child {
  margin-top: var(--space-1);
  color: var(--ink);
}

.lens-next {
  background: var(--surface-tint);
}

/* Two moments: both panels always visible (RC3 §09 priority 1) */
.moment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.moment-panel {
  padding: var(--space-6);
  border: var(--boundary-width) solid var(--boundary);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.moment-panel h3 {
  max-width: 24ch;
}

.moment-list {
  margin: var(--space-5) 0 0;
  padding-left: var(--space-5);
}

.moment-list li {
  padding: var(--space-3) 0;
  border-top: var(--boundary-width) solid var(--boundary);
  color: var(--ink);
  font-weight: 600;
}

.moment-list li::marker {
  color: var(--muted);
  font-weight: 600;
}

/* Reliance path: the one permitted four-pastel sequence */
.path-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none;
}

.path-card {
  padding: var(--space-6);
  border-left: 4px solid var(--path-mark);
  border-radius: var(--radius-card);
  background: var(--path-surface);
  color: var(--ink);
}

.path-peach {
  --path-surface: var(--pastel-card-peach);
  --path-mark: var(--pastel-mark-peach);
}

.path-lilac {
  --path-surface: var(--pastel-card-lilac-pink);
  --path-mark: var(--pastel-mark-lilac-pink);
}

.path-sky {
  --path-surface: var(--pastel-card-sky-blue);
  --path-mark: var(--pastel-mark-sky-blue);
}

.path-mint {
  --path-surface: var(--pastel-card-mint-green);
  --path-mark: var(--pastel-mark-mint-green);
}

.path-step {
  margin: 0;
  color: var(--body);
  font-size: var(--type-0);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.path-card h3 {
  margin: var(--space-7) 0 var(--space-3);
}

.path-card p:last-child {
  margin: 0;
  color: var(--body);
}

/* What it challenges: words only, no glyph icons */
.challenge-grid {
  display: grid;
  border-top: var(--boundary-width) solid var(--boundary);
  border-bottom: var(--boundary-width) solid var(--boundary);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.challenge-grid article {
  padding: var(--space-6);
}

.challenge-grid article:nth-child(odd) {
  border-right: var(--boundary-width) solid var(--boundary);
}

.challenge-grid article:nth-child(-n + 2) {
  border-bottom: var(--boundary-width) solid var(--boundary);
}

.challenge-grid h3 {
  max-width: 20ch;
}

.challenge-grid p {
  max-width: 48ch;
  margin: var(--space-3) 0 0;
}

/* Honest boundary */
.boundaries {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-8);
}

.boundary-copy > p:last-child {
  max-width: var(--measure);
  margin: var(--space-5) 0 0;
  font-size: var(--type-2);
}

.boundary-list > div {
  padding: var(--space-4) 0;
  border-top: var(--boundary-width) solid var(--boundary);
}

.boundary-list > div:last-child {
  border-bottom: var(--boundary-width) solid var(--boundary);
}

.boundary-list dt {
  color: var(--ink);
  font-weight: 700;
}

.boundary-list dd {
  margin: var(--space-1) 0 0;
}

/* Status and next step; scope and limits (QA-HOME-004) */
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.status-grid h3 {
  margin-bottom: var(--space-3);
  font-size: var(--type-2);
}

.status-grid p {
  max-width: var(--measure);
  margin: 0;
}

.scope-note {
  max-width: 75ch;
  margin: var(--space-7) 0 0;
  padding-top: var(--space-5);
  border-top: var(--boundary-width) solid var(--boundary);
  color: var(--muted);
}

/* Trust and legal pages, 404 */
.doc > :not(.table-scroll) {
  max-width: var(--measure);
}

.doc h2 {
  margin: var(--space-7) 0 var(--space-3);
}

.doc-meta {
  margin: var(--space-3) 0 var(--space-6);
  color: var(--muted);
  font-size: var(--type-0);
}

.doc-lead {
  color: var(--ink);
  font-size: var(--type-2);
}

.doc-fact {
  font-size: var(--type-3);
  font-weight: 600;
}

.doc-note {
  padding: var(--space-4);
  border: var(--boundary-width) solid var(--boundary);
  border-radius: var(--space-2);
  background: var(--surface-tint);
  color: var(--ink);
}

.doc-actions {
  margin-top: var(--space-6);
}

.doc li + li {
  margin-top: var(--space-2);
}

.table-scroll {
  max-width: 100%;
  margin: 0 0 var(--space-4);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  padding-bottom: var(--space-2);
  color: var(--muted);
  font-size: var(--type-0);
  text-align: left;
  caption-side: top;
}

th,
td {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-top: var(--boundary-width) solid var(--boundary);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: var(--ink);
  font-weight: 700;
}

.error-page {
  border-top: 0;
}

/* ============================================================================
   FOOTER SECTION 1 — MAIN (QA-FTR-001..007)
   left: © year entity · All rights reserved. — centre empty — right: seven destinations
   ============================================================================ */
.site-footer {
  height: var(--rail);
  border-top: var(--boundary-width) solid var(--boundary);
  background: var(--surface);
}

.footer-rail {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.footer-legal {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink);
  font-size: var(--type-0);
  white-space: nowrap;
}

.footer-centre {
  flex: 1 1 auto;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--ink);
  font-size: var(--type-0);
  font-weight: 600;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.footer-nav a[aria-current="page"] {
  text-decoration-color: var(--navigation);
  text-decoration-thickness: 3px;
}

/* ============================================================================
   RESPONSIVE (RC3 §09: order stable at 320 / 375 / 768 / desktop)
   ============================================================================ */
@media (max-width: 1023px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
  }

  .lens {
    max-width: 720px;
  }

  .boundaries,
  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boundaries {
    gap: var(--space-6);
  }

  .footer-rail {
    display: grid;
    align-content: center;
    gap: var(--space-1);
  }

  .footer-centre {
    display: none;
  }

  .footer-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .menu-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .moment-grid,
  .boundaries,
  .status-grid,
  .challenge-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .challenge-grid article:nth-child(n) {
    border-right: 0;
    border-bottom: var(--boundary-width) solid var(--boundary);
  }

  .challenge-grid article:last-child {
    border-bottom: 0;
  }

  .hero-actions {
    display: grid;
  }

  .site-footer {
    height: auto;
    min-height: var(--rail);
  }

  .footer-rail {
    padding-block: var(--space-4);
    gap: var(--space-2);
  }
}

@media (max-width: 599px) {
  .menu-trigger {
    width: var(--control-height);
    padding: 0;
  }

  .menu-trigger-glyph {
    display: block;
  }

  .menu-trigger-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .path-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-card h3 {
    margin-top: var(--space-5);
  }

  .menu-layer {
    padding: var(--space-5);
  }

  .footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--space-4);
  }

  .footer-nav a {
    width: 100%;
    min-height: var(--target-min);
    white-space: normal;
  }

  .footer-legal {
    white-space: normal;
  }
}

/* ============================================================================
   MODES — reduced motion, forced colours, print
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

@media (forced-colors: active) {
  .site-header,
  .site-footer,
  .section-shell,
  .lens,
  .lens-row,
  .moment-panel,
  .path-card,
  .doc-note,
  .challenge-grid,
  .challenge-grid article,
  .boundary-list > div,
  th,
  td {
    border-color: CanvasText;
  }

  .pill {
    border: 1px solid ButtonText;
  }

  .pill-filled {
    background: ButtonFace;
    color: ButtonText;
  }

  .menu-item[aria-current="page"] {
    border-left-color: Highlight;
    outline: 1px solid CanvasText;
  }

  .status-marker {
    border-color: CanvasText;
  }

  :focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  .skip-link,
  .menu-trigger,
  .menu-layer {
    display: none;
  }

  .site-header {
    position: static;
  }

  .hero,
  .section-shell {
    padding-block: var(--space-6);
  }
}
