/*
 * Fact Lot design system — shared core (tokens + base/type/card/table/footer).
 * Spec: docs/design/SYSTEM.md (assist draft: assist/design/SYSTEM.md).
 * Keep lean: page-family layouts and map chrome live elsewhere.
 * Bundle with one family file → ≤13.5 KB gzip.
 */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-var.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --brand-1: #2152d9;
  --brand-2: #0891b2;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --surface-3: #e9edf3;

  --ink: #0b1324;
  --ink-2: #334155;
  --muted: #5b6678;

  --border: #e2e6ed;
  --border-strong: #cdd4df;
  --input-border: #7e8798;
  --grid-line: rgb(15 23 42 / 5.5%);

  --accent: #2152d9;
  --accent-hover: #1a43b8;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --accent-ring: rgb(33 82 217 / 35%);
  --data: #0e7490;

  --status-current: #147a4b;
  --status-current-bg: #e8f6ef;
  --status-stale: #8a5300;
  --status-stale-bg: #fff4e0;
  --caveat: #8a5300;
  --caveat-bg: #fff4e0;

  --footer-bg: #0b1324;
  --footer-ink: #e6ebf3;
  --footer-muted: #9aa8bc;
  --footer-rule: rgb(230 235 243 / 12%);

  --shadow-1: 0 1px 2px rgb(15 23 42 / 6%), 0 1px 1px rgb(15 23 42 / 4%);
  --shadow-2: 0 1px 2px rgb(15 23 42 / 6%), 0 6px 16px -4px rgb(15 23 42 / 10%);

  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;

  --leading-ui: 1.5;
  --leading-reading: 1.65;
  --leading-tight: 1.15;
  --tracking-tight: -0.022em;
  --tracking-label: 0.01em;

  --space-0: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --section-y: clamp(3rem, 2.5rem + 2vw, 5rem);

  --measure: 70ch;
  --register: 1200px;
  --gutter: 24px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 160ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-1: #4f7dff;
    --brand-2: #22c3dd;

    --bg: #070b14;
    --surface: #0d1422;
    --surface-2: #111a2b;
    --surface-3: #172238;

    --ink: #e6ebf3;
    --ink-2: #b6c2d3;
    --muted: #8d9bb0;

    --border: #1c2638;
    --border-strong: #2a3850;
    --input-border: #5c6b86;
    --grid-line: rgb(148 163 184 / 6%);

    --accent: #7aa2ff;
    --accent-hover: #a2bfff;
    --accent-ink: #070b14;
    --accent-soft: rgb(122 162 255 / 12%);
    --accent-ring: rgb(122 162 255 / 45%);
    --data: #5fd4e6;

    --status-current: #5fd39a;
    --status-current-bg: rgb(95 211 154 / 10%);
    --status-stale: #f2c46d;
    --status-stale-bg: rgb(242 196 109 / 10%);
    --caveat: #f2c46d;
    --caveat-bg: rgb(242 196 109 / 10%);

    --footer-bg: #050810;
    --footer-rule: rgb(230 235 243 / 9%);

    --shadow-1: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-2: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 20px -6px rgb(0 0 0 / 55%);
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

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

html {
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--space-3);
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-feature-settings: "cv11", "ss01";
  line-height: var(--leading-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(
        60rem 22rem at 12% -6rem,
        color-mix(in srgb, var(--accent) 9%, transparent),
        transparent 70%
      )
      no-repeat,
    linear-gradient(to bottom, transparent, var(--bg) 26rem) no-repeat,
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 48px) 0 0 / 100% 26rem
      no-repeat,
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 48px) 0 0 / 100% 26rem
      no-repeat,
    var(--bg);
}

body > main,
main#main {
  flex: 1 0 auto;
}

main > .wrap {
  padding-bottom: var(--section-y);
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--register));
  margin-inline: auto;
}

@media (max-width: 40rem) {
  :root {
    --gutter: 16px;
  }
}

::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

img,
svg,
video,
canvas,
iframe,
input,
select,
textarea,
button {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, currentcolor 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color var(--dur) var(--ease),
    text-decoration-color var(--dur) var(--ease);
}

a:visited {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentcolor;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

main#main:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -6px;
}

.visually-hidden,
.skip-link:not(:focus):not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The distinguisher is absolutely positioned. Containing it keeps a wide table from widening the page. */
a:has(> .visually-hidden) {
  position: relative;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: absolute;
  z-index: 1000;
  top: var(--space-1);
  left: var(--space-1);
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: var(--space-1) var(--space-2);
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Type                                                                */
/* ------------------------------------------------------------------ */

h1,
h2,
h3,
h4 {
  font-family: var(--font-ui);
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, var(--text-2xl));
  font-weight: 650;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-2);
  max-width: 24em;
}

h2 {
  font-size: var(--text-xl);
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: var(--space-6) 0 var(--space-2);
}

h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: var(--space-4) 0 var(--space-1);
}

h4 {
  font-size: var(--text-md);
  font-weight: 600;
  margin: var(--space-3) 0 var(--space-1);
}

p {
  margin: 0 0 var(--space-2);
  max-width: var(--measure);
}

.label,
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  color: var(--muted);
  text-transform: none;
}

.figure,
.stat-value,
.num,
table .num,
dl.key-facts dd,
.tnum {
  font-variant-numeric: tabular-nums;
}

strong,
b {
  font-weight: 620;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-4) 0;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--ink);
  overflow-wrap: anywhere;
}

pre {
  margin: var(--space-3) 0;
  padding: var(--space-2);
  max-width: 100%;
  overflow: visible;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

pre.cite-this {
  position: relative;
  padding-left: calc(var(--space-2) + 3px);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  user-select: all;
}

/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */

.card,
.figure-card,
.cite-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-3);
}

.figure-card {
  box-shadow: var(--shadow-2);
}

.figure-card .figure {
  font-size: var(--text-3xl);
  font-weight: 650;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin: var(--space-1) 0;
}

.figure-card .caveat,
.caveat-line {
  color: var(--caveat);
  font-size: var(--text-sm);
  margin: var(--space-1) 0 0;
}

.stat-tiles {
  display: flex;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-tiles > * {
  flex: 1 1 8rem;
  padding: var(--space-2);
  border-right: 1px solid var(--border);
}

.stat-tiles > *:last-child {
  border-right: 0;
}

.stat-tiles .label {
  display: block;
  margin-bottom: var(--space-0);
}

.stat-tiles .stat-value {
  font-size: var(--text-xl);
  font-weight: 620;
  color: var(--ink);
}

dl.key-facts {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: var(--space-1) var(--space-2);
  margin: var(--space-3) 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

dl.key-facts dt {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 600;
}

dl.key-facts dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

@media (max-width: 40rem) {
  dl.key-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  dl.key-facts dt {
    margin-top: var(--space-2);
  }

  dl.key-facts dt:first-of-type {
    margin-top: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  margin: var(--space-3) 0;
  max-width: 100%;
}

/* The head sticks to the viewport, so the wrap is not a scrollport once the
   widest register fits. Below 66rem the building observation table still
   overflows, and a scrollport there keeps those columns reachable. */
@media (max-width: 65.99rem) {
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap > table {
    width: max-content;
    min-width: 100%;
  }

  .table-wrap thead th {
    white-space: nowrap;
  }
}

@media (min-width: 66rem) {
  .table-wrap {
    overflow: visible;
  }
}

.table-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.table-wrap a {
  display: inline-block;
  min-width: 24px;
  min-height: 24px;
}

@media (max-width: 40rem) {
  .table-wrap tbody td:first-child a {
    min-width: 44px;
    min-height: 44px;
  }
}

main table,
.table-wrap > table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

main table caption,
.table-wrap caption {
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
  padding: var(--space-2);
  caption-side: top;
}

main thead th,
.table-wrap thead th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-strong);
  padding: var(--space-1) var(--space-2);
}

@media (min-width: 66rem) {
  main thead th,
  .table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: inset 0 -1px 0 var(--border-strong);
  }

  .table-wrap thead th:first-child {
    border-top-left-radius: var(--radius-lg);
  }

  .table-wrap thead th:last-child {
    border-top-right-radius: var(--radius-lg);
  }
}

main tbody td,
.table-wrap tbody td {
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

main tbody tr:hover td,
.table-wrap tbody tr:hover td {
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
}

main tbody tr,
.table-wrap tbody tr {
  break-inside: avoid;
}

.host-supplies {
  display: block;
  max-width: 14rem;
  margin-top: 0.25rem;
}

/* ------------------------------------------------------------------ */
/* Buttons / chips                                                     */
/* ------------------------------------------------------------------ */

a.button,
button.button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

a.button:visited {
  color: var(--accent-ink);
}

a.button:hover,
button.button:hover,
.button:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  text-decoration: none;
}

a.button-secondary,
.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border-strong);
}

a.button-secondary:visited {
  color: var(--ink);
}

a.button-secondary:hover,
.button-secondary:hover {
  background: var(--surface-2);
  color: var(--ink);
}

a.chip,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

a.chip:hover,
.chip:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  text-decoration: none;
}

a.chip[aria-current="page"],
.chip.is-current {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
}

/* ------------------------------------------------------------------ */
/* Status                                                              */
/* ------------------------------------------------------------------ */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.15em 0.55em;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-current {
  color: var(--status-current);
  background: var(--status-current-bg);
}

.status-stale {
  color: var(--status-stale);
  background: var(--status-stale-bg);
}

/* ------------------------------------------------------------------ */
/* Forms (shared)                                                      */
/* ------------------------------------------------------------------ */

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-0);
}

input,
select,
textarea {
  font: inherit;
  font-size: var(--text-md);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 0.55em 0.75em;
  min-height: 44px;
  width: 100%;
  max-width: 40rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-error {
  color: var(--status-stale);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-2);
  padding: var(--space-2);
  max-width: 40rem;
  background: var(--status-stale-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--status-stale);
  border-width: 2px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 1px solid var(--footer-rule);
  padding: var(--space-6) 0 var(--space-4);
}

.site-footer a,
.site-footer a:visited {
  color: var(--footer-ink);
  text-decoration-color: color-mix(in srgb, var(--footer-ink) 35%, transparent);
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration-color: currentcolor;
}

.site-footer a:focus-visible {
  outline-color: var(--footer-ink);
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.site-footer .label,
.site-footer h2 {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--footer-muted);
  margin: 0 0 var(--space-1);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer .footer-meta {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--footer-rule);
  font-size: var(--text-sm);
  color: var(--footer-muted);
}

.empty-state,
.status-panel {
  margin: var(--space-3) 0;
  padding: var(--space-4) var(--space-3);
  max-width: 40rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.empty-state {
  color: var(--ink-2);
  border-style: dashed;
  border-color: var(--border-strong);
  box-shadow: none;
}

.status-code {
  margin: 0 0 var(--space-1);
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.recovery-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  body {
    background-image: none !important;
  }

  .skip-link,
  .masthead,
  .crumbs,
  .site-footer {
    display: none !important;
  }

  body,
  body
    :where(h1, h2, h3, h4, p, li, td, th, dt, dd, caption, figcaption, a, pre, code, .map-source) {
    color: #000 !important;
    box-shadow: none !important;
  }

  .card,
  .figure-card,
  .cite-card,
  dl.key-facts,
  .table-wrap,
  .empty-state,
  .status-panel,
  pre,
  thead th {
    background: #fff !important;
    border-color: #000 !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-weight: 400;
    overflow-wrap: anywhere;
  }

  thead {
    display: table-header-group;
  }

  main thead th,
  .table-wrap thead th {
    position: static;
  }

  tr,
  img {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .table-wrap {
    overflow: visible !important;
  }

  /* SVG fill is not the color property. A dark scheme still matches in print. */
  svg text {
    fill: #000 !important;
  }

  .metro-frame {
    fill: #fff !important;
    stroke: #0b1324 !important;
  }

  .metro-open {
    stroke: #334155 !important;
  }

  .triangle-map svg,
  .map-zoom svg,
  .map-frame-link svg {
    background: #fff !important;
    border-color: #000 !important;
  }

  @page {
    margin: 16mm;
  }
}

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-2);
  padding: var(--space-1) 0;
}
.wordmark {
  margin: 0;
  font-weight: 650;
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-tight);
}
.wordmark a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark picture {
  display: block;
  line-height: 0;
}
.wordmark img {
  display: block;
  width: 154px;
  height: 32px;
}
.nav-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.nav-primary a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  text-decoration: none;
}
.nav-primary a:hover {
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}
@media (min-width: 48rem) {
  .nav-primary {
    margin-left: auto;
    justify-content: flex-end;
  }
}
@media (max-width: 47.99rem) {
  .nav-primary {
    flex: 1 0 100%;
    padding-top: var(--space-0);
    border-top: 1px solid var(--border);
  }

  .nav-primary a {
    padding: 0 var(--space-1);
  }
}
.crumbs {
  padding: var(--space-3) 0 var(--space-0);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.crumbs li + li::before {
  content: "/";
  color: var(--muted);
}
.crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.answer {
  font-size: var(--text-lg);
  line-height: var(--leading-reading);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-2);
  align-items: stretch;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: var(--space-3) var(--space-4);
}
.link-columns,
.question-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0 var(--space-3);
  margin: var(--space-2) 0 var(--space-3);
  padding: 0;
  list-style: none;
}
.link-columns li,
.question-list li {
  margin: 0;
  break-inside: avoid;
}
.link-columns a,
.question-list a {
  display: flex;
  align-items: center;
  min-width: 24px;
  min-height: 44px;
}
@media (max-width: 40rem) {
  .link-columns a,
  .question-list a {
    min-width: 44px;
    min-height: 44px;
  }
}
nav.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 2px 0;
  padding: 0 var(--space-1);
}
.steps {
  max-width: var(--measure);
}
.steps li {
  margin: 0 0 var(--space-2);
}
.search {
  display: grid;
  gap: var(--space-1);
  max-width: 40rem;
  margin: var(--space-3) 0;
}

.home-hero {
  margin-bottom: var(--space-4);
}
.figure-card .label {
  margin: var(--space-2) 0 0;
}
.figure-card .tnum {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 620;
  line-height: var(--leading-tight);
}
.figure-card .figure {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}
