@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172d3f;
  --muted: #5a6f7f;
  --navy: #0b263d;
  --navy-2: #123b59;
  --blue: #236ba6;
  --blue-soft: #e7f0f6;
  --cyan: #59c4d0;
  --orange: #c96324;
  --green: #0b806e;
  --green-soft: #e1f3ee;
  --paper: #fbfaf6;
  --surface: #f0f3f1;
  --surface-2: #e5ebe9;
  --line: #c9d3d4;
  --line-strong: #95a9af;
  --danger: #9c382c;
  --warning: #a66f18;
  --focus: #37a6c1;
  --radius-sm: 8px;
  --radius: 14px;
  --content: 1280px;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--surface);
  scrollbar-width: thin;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
select { accent-color: var(--blue); }
a { color: inherit; text-underline-offset: 0.2em; }
[hidden] { display: none !important; }
::selection { color: white; background: var(--blue); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--navy);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 68px;
  padding: 0.7rem max(1.25rem, calc((100vw - var(--content)) / 2));
  background: rgba(251, 250, 246, 0.98);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 38px;
  padding: 0 0.15rem;
  color: var(--orange);
  background: transparent;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.05em;
}
.site-header nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}
.site-header nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
}
.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: var(--orange);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.site-header nav a:hover { color: var(--navy); }
.site-header nav a:hover::after { opacity: 1; transform: scaleX(1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.2rem;
  color: white;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(11, 38, 61, 0.14);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.button:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  box-shadow: 0 11px 24px rgba(11, 38, 61, 0.17);
  transform: translateY(-1px);
}
.button-small { min-height: 40px; padding: 0.55rem 0.9rem; font-size: 0.82rem; }
.button-ghost { color: var(--navy); background: transparent; border-color: var(--line-strong); box-shadow: none; }
.button-ghost:hover { color: var(--navy); background: var(--surface); border-color: var(--navy); box-shadow: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.58fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  min-height: 620px;
  padding: clamp(5rem, 9vw, 8rem) max(1.25rem, calc((100vw - var(--content)) / 2)) clamp(4rem, 7vw, 6rem);
  color: white;
  background: var(--navy);
  border-bottom: 5px solid var(--cyan);
  overflow: hidden;
}
.hero-copy { max-width: 910px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0 0 1.25rem;
  color: #a9d9df;
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta span + span::before { margin-right: 1rem; color: #54768c; content: "/"; }
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 6.4vw, 5.75rem);
  font-weight: 530;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-lede {
  max-width: 68ch;
  margin: 1.65rem 0 0;
  color: #d9e4e8;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.1rem; }
.hero .button { color: var(--navy); background: var(--cyan); border-color: var(--cyan); box-shadow: 0 12px 28px rgba(3, 18, 30, 0.3); }
.hero .button:hover { background: #8ad7df; border-color: #8ad7df; }
.hero .button-ghost { color: white; background: transparent; border-color: #6c8798; box-shadow: none; }
.hero .button-ghost:hover { background: #143b54; border-color: #a4c1ce; }
.hero-stats {
  align-self: end;
  border-top: 1px solid #55758a;
  border-bottom: 1px solid #55758a;
}
.hero-stats > p {
  margin: 0;
  padding: 0.65rem 0;
  color: #88acbb;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-stats article {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid #35586f;
}
.hero-stats strong {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero-stats span { color: #d9e4e8; font-size: 0.84rem; font-weight: 680; }

.context-strip {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: 1.15rem max(1.25rem, calc((100vw - var(--content)) / 2));
  color: #36556a;
  background: #e8f3f3;
  border-bottom: 1px solid #c5dcdd;
  font-size: 0.86rem;
}
.context-strip p { margin: 0; }
.context-strip strong { color: var(--navy); }

.section { padding: clamp(4.5rem, 7vw, 7rem) max(1.25rem, calc((100vw - var(--content)) / 2)); }
.section-tinted { background: var(--surface); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2rem;
}
.section-heading h2 {
  max-width: 800px;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.3vw, 4rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-intro { max-width: 60ch; margin: 0; color: var(--muted); }
.section-heading > .section-intro { text-align: right; }

.control-panel {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(260px, 1.1fr) minmax(330px, 1.35fr);
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  background: #edf2f1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.control-panel.has-regime { grid-template-columns: minmax(170px, 0.7fr) minmax(260px, 1.1fr) minmax(330px, 1.35fr) minmax(250px, 1fr); }
.field { display: grid; gap: 0.48rem; min-width: 0; }
.field > span, .field legend {
  padding: 0;
  color: var(--navy);
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 2.7rem 0 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 680;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field select:hover { border-color: var(--navy); }
.scope-field select { color: var(--navy); background: #f7efd8; border-color: #cdbb7f; }
.scope-field select:hover { border-color: #8e742d; }
.phase-field { margin: 0; padding: 0; border: 0; }
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  padding: 0.28rem;
  background: var(--surface-2);
  border-radius: 10px;
}
.segmented button {
  min-height: 42px;
  color: #3c586a;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-weight: 760;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.segmented button:hover { color: var(--navy); background: rgba(251, 250, 246, 0.75); }
.segmented button[aria-pressed="true"] { color: white; background: var(--navy); box-shadow: 0 6px 14px rgba(11, 38, 61, 0.17); }
.segmented button:active { transform: translateY(1px); }

.policy-note {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  color: #4d421e;
  background: #f7efd8;
  border: 1px solid #dbc991;
  border-radius: 10px;
}
.policy-note strong { color: #5b4713; }
.policy-note p { margin: 0.3rem 0 0; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 1rem;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.metric-card {
  display: grid;
  gap: 0.25rem;
  min-height: 138px;
  padding: 1.15rem;
  background: transparent;
  border-right: 1px solid var(--line);
}
.metric-card:last-child { border-right: 0; }
.metric-card span { color: var(--muted); font-size: 0.72rem; font-weight: 760; text-transform: uppercase; letter-spacing: 0.055em; }
.metric-card strong {
  align-self: end;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.metric-card small { color: var(--muted); font-weight: 620; }
.metric-rate { background: var(--green-soft); }
.metric-rate strong { color: var(--green); }

.chart-card, .table-card {
  margin-top: 1rem;
  padding: clamp(1rem, 2.6vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chart-heading, .card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.chart-heading h3, .card-heading h3, .source-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.chart-kicker {
  margin: 0 0 0.35rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.7rem 1rem; color: #3f5868; font-size: 0.79rem; font-weight: 720; }
.legend span { display: inline-flex; align-items: center; gap: 0.42rem; }
.swatch { display: inline-block; width: 25px; height: 3px; border-radius: 3px; }
.swatch-vacancies { background: var(--blue); }
.swatch-applicants { background: var(--orange); }
.swatch-rate { height: 0; border-top: 3px dashed var(--green); }
.axis-note { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.82rem; }
.chart-scroll { margin-top: 0.65rem; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: var(--line-strong) var(--surface); }
.chart-wrap { position: relative; min-width: 740px; }
#trend-chart { display: block; width: 100%; height: auto; min-height: 360px; overflow: visible; }
.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 184px;
  padding: 0.75rem 0.85rem;
  color: white;
  background: rgba(7, 29, 47, 0.98);
  border: 1px solid #46687b;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(7, 29, 47, 0.28);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  font-size: 0.8rem;
}
.chart-tooltip strong { display: block; margin-bottom: 0.28rem; color: var(--cyan); }
.chart-tooltip span { display: block; }
.chart-grid { stroke: #d8e0df; stroke-width: 1; }
.chart-axis { stroke: #758e98; stroke-width: 1.2; }
.chart-tick { fill: #607681; font-family: var(--font-body); font-size: 12px; font-weight: 620; }
.chart-axis-title { fill: #425e6c; font-family: var(--font-body); font-size: 11px; font-weight: 760; text-transform: uppercase; letter-spacing: 0.07em; }
.chart-year { fill: #29495a; font-family: var(--font-body); font-size: 12px; font-weight: 760; }
.chart-empty-title { fill: var(--navy); font-family: var(--font-display); font-size: 26px; font-weight: 620; }
.chart-empty-copy { fill: var(--muted); font-family: var(--font-body); font-size: 15px; font-weight: 620; }
.chart-line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.line-vacancies { stroke: var(--blue); }
.line-applicants { stroke: var(--orange); }
.line-rate { stroke: var(--green); stroke-dasharray: 9 6; }
.point-vacancies { fill: var(--blue); }
.point-applicants { fill: var(--orange); }
.point-rate { fill: var(--green); }
.chart-marker { stroke: var(--paper); stroke-width: 2; }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-hit:focus { outline: none; fill: rgba(35, 107, 166, 0.07); }
.chart-focus-line { stroke: #6f8791; stroke-width: 1.2; stroke-dasharray: 4 4; opacity: 0; }
.chart-focus-line.is-visible { opacity: 1; }

.table-caption { color: var(--muted); font-size: 0.86rem; font-weight: 650; }
.table-scroll { margin-top: 1.1rem; overflow-x: auto; scrollbar-color: var(--line-strong) var(--surface); }
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th { padding: 0.78rem; color: white; background: var(--navy); text-align: left; font-size: 0.72rem; font-weight: 760; letter-spacing: 0.04em; text-transform: uppercase; }
th:first-child { border-radius: 7px 0 0 0; }
th:last-child { border-radius: 0 7px 0 0; }
td { padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
tbody tr:nth-child(even) td { background: var(--surface); }
tbody tr:hover td { background: #e8f1f1; }
.status-pill { display: inline-flex; padding: 0.22rem 0.58rem; border-radius: 999px; font-size: 0.72rem; font-weight: 760; }
.status-pill.ballot { color: #842f22; background: #f9e4de; }
.status-pill.within { color: #176655; background: var(--green-soft); }
.status-pill.na { color: #526470; background: #e8edec; }

.compare-heading { align-items: center; }
.field-compact { min-width: 180px; }
.ranking-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.ranking-list.is-all-scope {
  max-height: 52rem;
  overflow-y: auto;
  padding-right: 0.45rem;
  scrollbar-color: var(--line-strong) var(--surface);
  scrollbar-width: thin;
}
.ranking-row {
  display: grid;
  grid-template-columns: 44px minmax(210px, 1.4fr) minmax(220px, 2fr) 86px;
  gap: 1rem;
  align-items: center;
  min-height: 58px;
  padding: 0.72rem 0.15rem;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.ranking-row:hover { background: rgba(255, 255, 255, 0.55); }
.rank-number { color: #728791; font-size: 0.8rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.rank-school { font-weight: 720; }
.rank-track { height: 8px; overflow: hidden; background: #dbe4e2; border-radius: 999px; }
.rank-bar { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; }
.rank-rate { text-align: right; color: var(--navy); font-family: var(--font-display); font-size: 1.2rem; font-weight: 680; font-variant-numeric: tabular-nums; }

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  border-top: 1px solid var(--line-strong);
}
details { padding: 1.1rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
summary { color: var(--navy); font-weight: 760; cursor: pointer; }
details p { max-width: 70ch; margin: 0.7rem 0 0; color: var(--muted); }
.source-card {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #dce7ea;
  background: var(--navy);
  border: 0;
  border-radius: var(--radius);
}
.source-card h3 { color: white; }
.source-card ul { margin: 0.9rem 0 0; padding-left: 1.2rem; }
.source-card li + li { margin-top: 0.4rem; }
.source-card a { color: #8dd7df; text-underline-offset: 0.22em; }
.source-card a:hover { color: white; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem max(1.25rem, calc((100vw - var(--content)) / 2));
  color: #c8d6db;
  background: #071d2f;
  border-top: 4px solid var(--orange);
  font-size: 0.82rem;
}
footer p { margin: 0; }
footer div { display: flex; gap: 1.2rem; }
footer a { color: #8dd7df; font-weight: 720; }
footer a:hover { color: white; }

.loading {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--navy);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(11, 38, 61, 0.23);
  font-weight: 720;
}
.loading span { width: 10px; height: 10px; background: var(--cyan); border-radius: 50%; animation: pulse 1s ease-in-out infinite alternate; }
.error-banner { position: fixed; right: 1rem; bottom: 1rem; left: 1rem; z-index: 50; padding: 1rem; color: white; background: var(--danger); border-radius: 10px; text-align: center; }
.noscript { margin: 1rem; padding: 1rem; background: #f7efd8; border: 1px solid #dbc991; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@keyframes pulse { to { transform: scale(1.35); opacity: 0.58; } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; align-items: start; min-height: auto; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-stats > p { grid-column: 1 / -1; }
  .hero-stats article { display: grid; align-content: start; }
  .hero-stats article + article { border-left: 1px solid #35586f; }
  .control-panel { grid-template-columns: 1fr 1fr; }
  .regime-field { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .chart-heading { display: grid; }
  .legend { justify-content: flex-start; }
  .ranking-row { grid-template-columns: 40px minmax(190px, 1.5fr) minmax(180px, 1fr) 70px; }
}

@media (max-width: 700px) {
  .site-header { min-height: 62px; gap: 0.8rem; }
  .brand > span:last-child { display: none; }
  .button-small { font-size: 0.76rem; }
  .hero { padding-top: 4.25rem; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.25rem); }
  .hero-meta { margin-bottom: 1rem; }
  .hero-meta span + span::before { margin-right: 0.5rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > p { grid-column: auto; }
  .hero-stats article { display: flex; }
  .hero-stats article + article { border-left: 0; }
  .context-strip { grid-template-columns: 1fr; gap: 0.65rem; }
  .section-heading { display: grid; gap: 1rem; }
  .section-heading > .section-intro { text-align: left; }
  .control-panel { grid-template-columns: 1fr; }
  .regime-field { grid-column: auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 122px; padding: 0.9rem; }
  .chart-card, .table-card { margin-inline: -0.35rem; padding: 1rem; border-radius: 11px; }
  .chart-wrap { min-width: 700px; }
  .chart-scroll::after { display: block; margin-top: 0.35rem; color: var(--muted); content: "Swipe horizontally to inspect every year →"; font-size: 0.72rem; text-align: right; }
  .table-scroll th:first-child, .table-scroll td:first-child { position: sticky; left: 0; z-index: 2; }
  .table-scroll th:first-child { background: var(--navy); }
  .table-scroll td:first-child { background: var(--paper); font-weight: 720; }
  .table-scroll tbody tr:nth-child(even) td:first-child { background: var(--surface); }
  .method-grid { grid-template-columns: 1fr; }
  .compare-heading { align-items: stretch; }
  .ranking-list { overflow: visible; }
  .ranking-list.is-all-scope { max-height: 42rem; overflow-y: auto; }
  .ranking-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 0.35rem 0.7rem;
    min-width: 0;
    padding: 0.8rem 0;
  }
  .rank-track { grid-column: 2 / -1; width: 100%; }
  .rank-rate { grid-column: 3; grid-row: 1; }
  footer { display: grid; }
  footer div { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-card:last-child { border-bottom: 0; }
  .segmented button { padding-inline: 0.45rem; font-size: 0.82rem; }
  .hero-meta span + span::before { content: ""; margin: 0; }
}

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