/* FARADAY: site styles

   System
   - Type: Geist for reading and headings, Geist Mono for data (dates, counts, citations,
     breadcrumbs, specs). Syne ExtraBold is the wordmark only. All three are SIL OFL.
   - Structure: one framed column. Hairline rules mark the frame edges and every section
     boundary, with a small cross where they meet. Structural boxes are square; interactive
     controls get a small radius; panels get a slightly larger one.
   - Colour: graphite and pounamu. Pounamu marks links, focus and anything current. Red is
     reserved for urgent help.
   - Dark is the default; [data-theme="light"] switches. */

@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geist-mono-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geist-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geist-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geist-latin-wght-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geist-latin-ext-wght-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 800; font-display: block;
  src: url(../fonts/syne-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ============ tokens ============ */
:root {
  --bg: #0c1214;
  --bg-2: #10181b;
  --bg-3: #172226;
  --line: #1f2c31;
  --line-2: #2f3f45;
  --ink: #e9eeec;
  --ink-2: #b6c1bf;
  --muted: #84928f;
  --accent: #7fd0b0;          /* pounamu */
  --accent-2: #a9e4cd;
  --accent-soft: rgba(127, 208, 176, 0.1);
  --urgent: #ff8b7b;
  --urgent-2: #ffb0a5;
  --urgent-ink: #1a0705;
  --urgent-soft: rgba(255, 139, 123, 0.1);
  --caution: #f0cf73;
  --caution-soft: rgba(240, 207, 115, 0.12);
  --mesh: rgba(233, 238, 236, 0.09);
  --focus: #9dbaff;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "Syne", var(--sans);

  /* Type scale: a major third (1.25) from 17px body, fluid at the top end. */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-0: 1.0625rem;
  --fs-1: 1.25rem;
  --fs-2: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-3: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --fs-4: clamp(2.125rem, 1.4rem + 2.9vw, 3.75rem);
  --fs-5: clamp(2.5rem, 1.25rem + 5.3vw, 5.75rem);

  --max: 80rem;
  --outer: 0px;                                   /* space outside the frame */
  --pad: clamp(1.25rem, 0.6rem + 2.8vw, 3rem);     /* space inside the frame */
  --header-h: 4rem;
  --measure: 42rem;
  --r-sm: 6px;
  --r-md: 10px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f1f3f1;
  --bg-2: #ffffff;
  --bg-3: #e6eae8;
  --line: #d8dedb;
  --line-2: #bcc6c2;
  --ink: #0e1517;
  --ink-2: #34413e;
  --muted: #5a6866;
  --accent: #11664f;
  --accent-2: #0a4b3a;
  --accent-soft: rgba(17, 102, 79, 0.08);
  --urgent: #b0261b;
  --urgent-2: #8c1c13;
  --urgent-ink: #ffffff;
  --urgent-soft: rgba(176, 38, 27, 0.07);
  --caution: #7a5600;
  --caution-soft: rgba(201, 150, 20, 0.14);
  --mesh: rgba(14, 21, 23, 0.11);
  --focus: #2457d6;
  color-scheme: light;
}

@media (min-width: 768px) { :root { --outer: clamp(1rem, 2.5vw, 2rem); } }

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-0);
  line-height: 1.65;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 520; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-2); text-decoration-thickness: 2px; }
a.ext::after { content: "\2009\2197"; font-size: 0.8em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

.mono { font-family: var(--mono); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 0.75rem; z-index: 100; background: var(--bg-2); color: var(--ink); padding: 0.6rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); }

/* ============ frame and bands ============ */
.frame {
  width: min(100% - 2 * var(--outer), var(--max));
  margin-inline: auto;
}
@media (min-width: 768px) {
  .frame { border-inline: 1px solid var(--line); }
}
.band {
  position: relative;
  padding: clamp(2.75rem, 1.8rem + 4vw, 6rem) var(--pad);
  border-top: 1px solid var(--line);
}
.band:first-child { border-top: 0; }
.band.tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
/* A small cross where each section rule meets the frame. */
@media (min-width: 768px) {
  .band::before, .band::after {
    content: ""; position: absolute; top: -6px; width: 11px; height: 11px; pointer-events: none;
    background:
      linear-gradient(var(--line-2), var(--line-2)) center / 1px 100% no-repeat,
      linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat;
  }
  .band::before { left: -6px; }
  .band::after { right: -6px; }
}

.split { display: grid; gap: 2rem 3rem; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .split-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.split-head h2 { font-size: var(--fs-3); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 1rem; }
.split-head p { color: var(--muted); margin: 0 0 1rem; max-width: 30rem; }
.split-head .more { font-size: var(--fs-sm); }

.band-title { font-size: var(--fs-3); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 1.5rem; }

/* ============ header ============ */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
/* Paints the strip above the header on phones with a notch, when the page runs edge to edge. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 51; background: var(--bg); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h); padding-inline: var(--pad);
}
.wordmark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; margin-right: auto; flex: none; }
.wordmark:hover { color: var(--ink); }
.wordmark-name {
  font-family: var(--display); font-weight: 800; font-size: 1.375rem; line-height: 1;
  letter-spacing: 0.05em; text-transform: uppercase;
  display: inline-block; height: 1.375rem; /* fixed box: no shift when Syne loads */
}

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.icon-btn, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; min-width: 2.25rem; padding: 0 0.6rem;
  font: 500 var(--fs-sm) / 1 var(--sans); color: var(--ink);
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer;
}
.icon-btn:hover, .menu-btn:hover { border-color: var(--muted); background: var(--bg-2); }
.icon-btn svg, .menu-btn svg { width: 1rem; height: 1rem; flex: none; }
.theme-toggle { display: none; }
.menu-btn { display: none; }

/* Wide screens: inline navigation */
@media (min-width: 1120px) {
  .nav { display: block; }
  .nav ul { display: flex; gap: 0.125rem; }
  .nav a {
    display: block; padding: 0.45rem 0.7rem; border-radius: var(--r-sm);
    color: var(--ink-2); font-size: var(--fs-sm); font-weight: 450; white-space: nowrap;
  }
  .nav a:hover { color: var(--ink); background: var(--bg-2); }
  .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-3); }
  .nav-extra { display: none; }
  .js .theme-toggle { display: inline-flex; }
}

/* Narrow screens: menu panel */
@media (max-width: 1119.98px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; }
  .js.menu-open { overflow: hidden; }
  .js.menu-open .nav {
    display: flex; flex-direction: column;
    position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0; z-index: 49;
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    padding: 0.5rem var(--pad) calc(2rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
  }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 0; color: var(--ink); font-size: 1.375rem; font-weight: 480; letter-spacing: -0.02em;
  }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav-extra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; color: var(--muted); font-size: var(--fs-sm); }
  /* Without JavaScript the links simply sit in a row under the wordmark. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .nav { order: 3; width: 100%; }
  html:not(.js) .nav ul { display: flex; flex-wrap: wrap; gap: 0 1rem; }
  html:not(.js) .nav li { border: 0; }
  html:not(.js) .nav a { font-size: var(--fs-sm); padding: 0.25rem 0; }
  html:not(.js) .nav-extra { display: none; }
}
.menu-btn .bars { position: relative; width: 14px; height: 10px; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.2s ease, top 0.2s ease;
}
.menu-btn .bars::before { top: 1px; }
.menu-btn .bars::after { top: 7.5px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 4.25px; transform: rotate(-45deg); }

.switch-btn {
  display: inline-flex; align-items: center; gap: 0.75rem; font: inherit; color: var(--ink);
  background: none; border: 0; padding: 0.25rem 0; cursor: pointer;
}
.switch-btn .track { position: relative; width: 2.25rem; height: 1.25rem; border-radius: 999px; background: var(--line-2); transition: background 0.2s ease; }
.switch-btn .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.25rem - 4px); height: calc(1.25rem - 4px); border-radius: 50%; background: var(--ink); transition: transform 0.2s ease; }
.switch-btn[aria-pressed="true"] .track { background: var(--accent); }
.switch-btn[aria-pressed="true"] .track::after { transform: translateX(1rem); background: var(--bg); }
.nav-extra .switch-btn { display: none; }
.js .nav-extra .switch-btn { display: inline-flex; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.5rem 1.15rem; margin: 0.25rem 0.5rem 0.25rem 0;
  font: 500 0.9375rem / 1.2 var(--sans); letter-spacing: -0.005em; text-decoration: none; text-align: center;
  color: var(--bg); background: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-sm); cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { color: var(--bg); background: var(--ink-2); border-color: var(--ink-2); }
.btn.secondary { color: var(--ink); background: transparent; border-color: var(--line-2); }
.btn.secondary:hover { color: var(--ink); background: var(--bg-2); border-color: var(--muted); }
.btn.urgent { color: var(--urgent-ink); background: var(--urgent); border-color: var(--urgent); }
.btn.urgent:hover { color: var(--urgent-ink); background: var(--urgent-2); border-color: var(--urgent-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-row .btn { margin: 0; }

.help-link {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.25rem; padding: 0 0.8rem;
  font: 500 var(--fs-sm) / 1 var(--sans); text-decoration: none; white-space: nowrap;
  color: var(--urgent); background: var(--urgent-soft);
  border: 1px solid color-mix(in srgb, var(--urgent) 40%, transparent); border-radius: var(--r-sm);
}
.help-link[aria-current] { border-color: var(--urgent); }
.help-link:hover { color: var(--urgent-2); border-color: var(--urgent); text-decoration: none; }
.help-link .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.help-link .t-mid, .help-link .t-short { display: none; }
@media (max-width: 479.98px) { .help-link .t-long { display: none; } .help-link .t-mid { display: inline; } }
@media (max-width: 359.98px) { .help-link .t-mid { display: none; } .help-link .t-short { display: inline; } }
@media (max-width: 419.98px) {
  .menu-btn .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wordmark-name { font-size: 1.125rem; height: 1.125rem; }
  .header-inner { gap: 0.5rem; }
}

/* ============ page head ============ */
.page-head { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.breadcrumbs { font: 400 var(--fs-xs) / 1.5 var(--mono); color: var(--muted); margin: 0 0 1.75rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-2); }
@media (max-width: 600px) {
  /* The page title is the h1 just below, so the last crumb is redundant on small screens. */
  .breadcrumbs li:last-child { display: none; }
}
h1 { font-size: var(--fs-4); line-height: 1.04; letter-spacing: -0.042em; margin: 0 0 1.25rem; max-width: 22ch; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 40rem; margin: 0; }
.page-head .lede + p, .page-head .head-note { color: var(--muted); max-width: 40rem; margin: 1rem 0 0; }

.facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 2rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font: 400 var(--fs-xs) / 1.4 var(--mono); color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-size: var(--fs-sm); color: var(--ink); }

/* ============ article layout ============ */
.doc-body { padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.doc-grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 1024px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr) 16rem; }
  .doc-aside { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; max-height: calc(100vh - var(--header-h) - 4rem); overflow: auto; }
  .doc-main { grid-column: 1; grid-row: 1; }
}
.doc-main { min-width: 0; max-width: var(--measure); }

.toc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); font-size: var(--fs-sm); }
.toc summary {
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none;
  padding: 0.8rem 1rem; font: 400 var(--fs-xs) / 1.4 var(--mono); color: var(--muted);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1rem; line-height: 1; color: var(--ink-2); }
.toc[open] summary::after { content: "\2212"; }
.toc[open] summary { border-bottom: 1px solid var(--line); }
.toc ol { list-style: none; margin: 0; padding: 0.5rem 0; }
.toc a { display: block; padding: 0.35rem 1rem; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); background: var(--bg-3); }

/* ============ prose ============ */
.prose { max-width: var(--measure); color: var(--ink-2); font-size: var(--fs-0); line-height: 1.72; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { font-size: var(--fs-2); line-height: 1.2; letter-spacing: -0.028em; margin-top: 2.6em; }
.prose h3 { font-size: var(--fs-1); line-height: 1.3; letter-spacing: -0.018em; margin-top: 2em; }
.prose h4 { font-size: var(--fs-0); font-weight: 600; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.45em; }
.prose li > ul, .prose li > ol { margin-top: 0.45em; }
.prose ul li::marker { color: var(--muted); }
.prose ol li::marker { color: var(--muted); font-family: var(--mono); font-size: 0.9em; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 2px solid var(--line-2); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--bg-2); border: 1px solid var(--line); padding: 0.1em 0.35em; border-radius: 4px; color: var(--ink); }
.prose pre { overflow-x: auto; font-family: var(--mono); font-size: var(--fs-sm); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1rem; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose img { border-radius: var(--r-sm); }
.prose dt { color: var(--ink); font-weight: 600; }
.prose dd { margin-left: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.prose .table-scroll { margin-top: 1.5em; border: 1px solid var(--line); border-radius: var(--r-sm); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
th { font: 400 var(--fs-xs) / 1.4 var(--mono); color: var(--muted); background: var(--bg-2); }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }
.prose table { min-width: 32rem; }

.callout {
  border: 1px solid var(--line-2); background: var(--bg-2); border-radius: var(--r-sm);
  padding: 1rem 1.25rem; box-shadow: inset 3px 0 0 var(--accent); color: var(--ink-2);
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout.urgent { border-color: color-mix(in srgb, var(--urgent) 35%, transparent); background: var(--urgent-soft); box-shadow: inset 3px 0 0 var(--urgent); }
.callout.urgent strong { color: var(--urgent); }
.page-head .callout { margin-top: 1.75rem; max-width: 40rem; }

/* ============ answer pages ============ */
.answer { max-width: var(--measure); margin: 0 0 2.5rem; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-2); overflow: hidden; }
.panel-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.65rem 1.1rem; border-bottom: 1px solid var(--line); font: 400 var(--fs-xs) / 1.4 var(--mono); color: var(--muted);
}
.panel-bar .lead { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-2); }
.panel-bar .lead::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
@media (max-width: 559.98px) { .panel-bar .aside { display: none; } }
.answer p { margin: 0; padding: 1.1rem 1.1rem 1.25rem; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem); line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }

/* The situation list at the top of Get help now. */
.prose ul.jump-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.prose ul.jump-list li { margin: 0; border-bottom: 1px solid var(--line); }
.prose ul.jump-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; color: var(--ink); text-decoration: none; font-weight: 450; }
.prose ul.jump-list a::after { content: "\2193"; color: var(--muted); font-family: var(--mono); }
.prose ul.jump-list a:hover { color: var(--accent); }
.prose ul.jump-list a:hover::after { color: var(--accent); }

/* ============ lists: rows and cells ============ */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.row {
  position: relative; display: grid; gap: 0.3rem 2.5rem; align-items: baseline;
  padding: 1.1rem 2rem 1.1rem 0; color: var(--ink); text-decoration: none;
}
.row::after {
  content: ""; position: absolute; right: 0.25rem; top: 1.45rem; width: 0.85rem; height: 0.85rem;
  background: var(--muted); transition: transform 0.15s ease, background 0.15s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.row:hover { color: var(--ink); }
.row:hover::after { background: var(--accent); transform: translate(2px, -2px); }
.row:hover .row-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--muted); }
.row-title { font-size: var(--fs-0); font-weight: 500; letter-spacing: -0.012em; line-height: 1.35; }
.row-desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.row-meta { font: 400 var(--fs-xs) / 1.5 var(--mono); color: var(--muted); }
.row-meta.upcoming { color: var(--accent); }
@media (min-width: 800px) {
  .rows.split-rows .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .rows.meta-first .row { grid-template-columns: 9.5rem minmax(0, 1fr); }
  .rows.meta-last .row { grid-template-columns: minmax(0, 1fr) auto; }
  .rows.meta-last .row-meta { text-align: right; }
}
.rows.meta-first .row > div > * + * { margin-top: 0.3rem; }
.rows.static .row { padding-right: 0; }
.rows.static .row::after { content: none; }
.rows.static .row-desc a { color: var(--accent); }

.cells { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 640px) { .cells.c2, .cells.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cells.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cell {
  display: flex; flex-direction: column; gap: 0.6rem; height: 100%;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--ink); text-decoration: none;
  transition: background 0.15s ease;
}
.cell:hover { color: var(--ink); background: var(--bg-2); }
.cell-title { font-size: var(--fs-1); font-weight: 500; letter-spacing: -0.022em; line-height: 1.25; }
.cell-desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.cell-foot { margin-top: auto; padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font: 400 var(--fs-xs) / 1.4 var(--mono); color: var(--muted); }
.cell-foot .arrow { width: 1rem; height: 1rem; flex: none; transition: transform 0.15s ease; }
.cell:hover .cell-foot .arrow { transform: translate(2px, -2px); color: var(--accent); }

/* ============ home ============ */
.hero { padding-block: clamp(3rem, 1.5rem + 6vw, 7.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: center; } }
.hero h1 { font-size: var(--fs-5); font-weight: 500; line-height: 0.98; letter-spacing: -0.045em; max-width: 10.5ch; margin: 0 0 1.75rem; }
.hero .lede { max-width: 34rem; }
.hero .btn-row { margin-top: 2.25rem; }

.hero-facts { margin-top: 2.75rem; }
@media (max-width: 599.98px) { .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; } }

/* Home: the deadline panel. A working tool, so the hero shows what the site does. */
.spec { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-2); overflow: hidden; min-width: 0; }
.deadline-body { display: grid; gap: 1.25rem; padding: 1.25rem 1.1rem 1.4rem; }
.deadline-intro { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.deadline-input { display: none; }
.js .deadline-input { display: block; }
.deadline-input label { display: block; margin-bottom: 0.45rem; font: 400 var(--fs-xs) / 1.4 var(--mono); color: var(--muted); }
.deadline-input input {
  display: block; width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
}
.deadline-input input:hover { border-color: var(--muted); }
.deadline-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.deadline-result { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.deadline-label { font-size: var(--fs-sm); color: var(--muted); }
.deadline-date { font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.25rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; text-wrap: balance; }
.deadline-note { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.deadline-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0.8rem 1.1rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }

.routes-band { padding: 0; }
.routes { border: 0; }
.routes.cells { border-top: 0; border-left: 0; }
.routes.cells > li:last-child { border-right: 0; }
@media (max-width: 1023.98px) { .routes.cells > li { border-right: 0; } }
@media (min-width: 640px) and (max-width: 1023.98px) {
  .routes.cells { grid-template-columns: 1fr; }
}
.routes .cell { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) var(--pad); min-height: 13rem; }
@media (min-width: 1024px) { .routes .cell { padding-inline: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); } .routes.cells > li:first-child .cell { padding-left: var(--pad); } }
.routes .cell-title { font-size: var(--fs-2); letter-spacing: -0.03em; }
.routes .urgent .cell-title { color: var(--urgent); }
.routes .urgent .cell-foot { color: var(--urgent); }
.routes .urgent:hover { background: var(--urgent-soft); }

.big-statement { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); line-height: 1.3; letter-spacing: -0.028em; color: var(--ink); max-width: 36ch; margin: 0 0 1.5rem; font-weight: 450; }
.statement-body { color: var(--ink-2); max-width: var(--measure); }
.statement-body p { margin: 0 0 1rem; }

/* ============ sources, related, edit line ============ */
.doc-section { margin-top: 3.5rem; max-width: var(--measure); }
.doc-section > h2 { font-size: var(--fs-1); letter-spacing: -0.02em; margin: 0 0 1rem; }
.source-list { list-style: none; counter-reset: src; margin: 0; padding: 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.source-list li { counter-increment: src; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.25rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.source-list li::before { content: counter(src, decimal-leading-zero); font: 400 var(--fs-xs) / 1.9 var(--mono); color: var(--muted); }
.source-list a { color: var(--ink); text-decoration-color: var(--line-2); }
.source-list a:hover { color: var(--accent); text-decoration-color: currentColor; }
.source-list .src-meta { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 0.15rem; }
.edit-line { color: var(--muted); font-size: var(--fs-sm); margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: var(--measure); }

/* ============ index pages ============ */
.group + .group { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: var(--fs-2); letter-spacing: -0.028em; line-height: 1.2; margin: 0 0 1rem; }
.group-title .count { font: 400 var(--fs-xs) / 1 var(--mono); color: var(--muted); letter-spacing: 0; flex: none; }

.glossary-index { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.glossary-index a {
  display: inline-block; padding: 0.3rem 0.6rem; font: 400 var(--fs-xs) / 1.4 var(--mono); color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 4px; text-decoration: none;
}
.glossary-index a:hover { color: var(--ink); border-color: var(--muted); background: var(--bg-2); }
.glossary { margin: 0; border-top: 1px solid var(--line); }
.glossary > div { display: grid; gap: 0.4rem 3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .glossary > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.glossary dt { font-size: var(--fs-1); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.glossary dd { margin: 0; color: var(--ink-2); max-width: var(--measure); }
.glossary dd p { margin: 0 0 0.5rem; }

/* ============ tools ============ */
.tool { max-width: 48rem; }
.tool fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem clamp(1rem, 0.75rem + 1vw, 1.5rem) 1.5rem; margin: 0 0 1.25rem; background: var(--bg-2); min-width: 0; }
.tool legend { float: left; width: 100%; padding: 0; margin: 0 0 0.25rem; font-weight: 550; font-size: var(--fs-0); letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); }
.tool legend + * { clear: both; }
.tool > .callout, .tool form > .callout { margin-bottom: 1.25rem; }
.tool label { display: block; margin: 1rem 0 0.4rem; font-weight: 500; font-size: 0.9375rem; color: var(--ink); }
.tool .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-sm); margin-top: 0.2rem; line-height: 1.5; }
.tool input[type="text"], .tool input[type="email"], .tool input[type="date"], .tool select, .tool textarea {
  display: block; width: 100%; min-height: 2.75rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0.55rem 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tool select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2384928f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem;
}
.tool input:hover, .tool select:hover, .tool textarea:hover { border-color: var(--muted); }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tool textarea { min-height: 6.5rem; resize: vertical; }
.tool .choice { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400; margin: 0.6rem 0; color: var(--ink-2); font-size: var(--fs-0); }
.tool .choice input { margin-top: 0.3rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.tool > .small:first-of-type { margin: 0 0 2rem; }
.output { border: 1px solid var(--line-2); background: var(--bg-2); padding: 1.25rem clamp(1rem, 0.75rem + 1vw, 1.5rem); margin-top: 1.5rem; border-radius: var(--r-md); color: var(--ink-2); }
.output[hidden] { display: none; }
.output h2, .output h3 { margin-top: 0; letter-spacing: -0.02em; line-height: 1.25; }
.output h2 { font-size: var(--fs-2); }
.output h3 { font-size: var(--fs-1); }
.output pre { white-space: pre-wrap; font: 400 var(--fs-sm) / 1.6 var(--mono); color: var(--ink); background: var(--bg); padding: 1rem; border-radius: var(--r-sm); border: 1px solid var(--line); overflow-x: auto; }
.result-big { font-size: var(--fs-4); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; margin: 0.25rem 0 0.75rem; color: var(--ink); }
.verdict { display: inline-block; font: 500 var(--fs-xs) / 1.4 var(--mono); padding: 0.25rem 0.55rem; border-radius: 4px; border: 1px solid currentColor; }
.verdict.high { background: var(--urgent-soft); color: var(--urgent); }
.verdict.medium { background: var(--caution-soft); color: var(--caution); }
.verdict.low { background: var(--accent-soft); color: var(--accent); }
.small { font-size: var(--fs-sm); color: var(--muted); }

.audit-item { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.audit-item h3 { font-size: var(--fs-1); margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.audit-item details { margin-top: 0.5rem; }
.audit-item summary { cursor: pointer; color: var(--accent); }
.progress { height: 6px; border-radius: 999px; overflow: hidden; background: var(--line); max-width: 30rem; }
.progress > span { display: block; height: 100%; background: var(--accent); width: 0; transition: width 0.25s ease; }

.triage-step { margin-bottom: 1.5rem; }
.triage-options { display: grid; gap: 0.5rem; }
.triage-options button {
  text-align: left; font: inherit; cursor: pointer; padding: 0.85rem 1rem;
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm);
}
.triage-options button:hover, .triage-options button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

.tool .scale { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-bottom: 0.8rem; }
.tool .scale .choice { margin: 0.2rem 0; }
.tool p.statement { margin: 1.1rem 0 0.25rem; color: var(--ink); }
.tool fieldset.audit-status { border: 0; padding: 0; margin: 0.6rem 0 0; background: transparent; border-radius: 0; }
.tool fieldset.audit-status legend { float: none; width: auto; padding: 0; margin: 0; font-weight: 400; font-size: var(--fs-sm); color: var(--muted); }
.pou-results { list-style: none; padding: 0; margin: 0; }
.pou-results li { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr 3rem; gap: 0.8rem; align-items: center; padding: 0.4rem 0; }
.pou-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pou-bar > span { display: block; height: 100%; background: var(--accent); }
@media (max-width: 600px) { .pou-results li { grid-template-columns: 1fr 3rem; } .pou-results .pou-bar { grid-column: 1 / -1; grid-row: 2; } }

.tool > .prose { margin-top: 3.5rem; }
.download-box { margin-bottom: 2.5rem; }
.download-box .btn-row { margin: 0 0 0.75rem; }
.download-box .small { margin: 0; }
.nowrap { white-space: nowrap; }

/* ============ quick exit ============ */
.quick-exit {
  position: fixed; right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--urgent); color: var(--urgent-ink); font: 600 var(--fs-sm) / 1 var(--sans); text-decoration: none;
  padding: 0.85rem 1.1rem; border-radius: var(--r-sm); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.quick-exit:hover { color: var(--urgent-ink); background: var(--urgent-2); }

/* ============ footer ============ */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
  .footer-about { grid-column: auto; }
}
.footer-about p { margin: 0 0 0.75rem; color: var(--ink-2); max-width: 26rem; font-size: 0.9375rem; }
.footer-about p.small { color: var(--muted); font-size: var(--fs-sm); }
.site-footer h2 { font: 400 var(--fs-xs) / 1.4 var(--mono); color: var(--muted); margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.55rem; font-size: 0.9375rem; line-height: 1.4; }
.site-footer li a { color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding: 1.1rem var(--pad) 1.5rem; border-top: 1px solid var(--line);
  font: 400 var(--fs-xs) / 1.5 var(--mono); color: var(--muted);
}
.footer-base p { margin: 0; }
.footer-base a { color: var(--muted); }

/* ============ motion, print ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .quick-exit, .btn, .edit-line, .doc-aside, .breadcrumbs { display: none !important; }
  .frame { border: 0 !important; width: 100%; }
  .band { border: 0; padding: 0 0 1rem; }
  .band::before, .band::after { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose, td, .lede { color: #000; }
  a { color: #000; }
  a.ext::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .output, .answer, .callout { border: 1px solid #000; background: none; box-shadow: none; }
}
