/* 401kscalculator.com — one stylesheet, no framework.
 *
 * Palette: a deep petrol-teal carries the brand (header, links, controls) and a
 * warm rust does the emphasis — the figure that matters, the warning that costs
 * money. Ground is pure white so the numbers sit on nothing at all.
 *
 * Every colour is a token defined on bare :root, then redefined for dark. No
 * colour is declared only inside a media query, so the un-stamped default state
 * always resolves.
 */

:root {
  /* ground + surfaces */
  --paper:      #FFFFFF;
  --surface:    #FFFFFF;
  --sunk:       #F4F7F8;
  --tint:       #ECF4F6;

  /* ink */
  --ink:        #10242B;
  --soft:       #4A5C63;
  --faint:      #5E7178;

  /* rules */
  --rule:       #DDE6E9;
  --rule-hard:  #BFCDD2;

  /* brand — petrol teal */
  --brand:      #0E4C5C;
  --brand-deep: #0A3947;
  --brand-lift: #14707F;
  --on-brand:   #EAF6F8;

  /* accent — the interactive colour. --on-accent is the label that sits ON it,
     and it flips with the theme: white on a dark teal, near-black on a light one. */
  --accent:     #0D6E7D;
  --accent-bg:  #E6F2F4;
  --on-accent:  #FFFFFF;

  /* emphasis — warm, used sparingly for the number that matters */
  --warm:       #B4441F;
  --warm-bg:    #FCEEE8;

  /* semantic */
  --good:       #1F6B45;
  --good-bg:    #E8F3ED;
  --caution:    #8A5A08;
  --caution-bg: #FBF2E0;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 900px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0E1719;
    --surface:    #162327;
    --sunk:       #1B2B30;
    --tint:       #172C33;
    --ink:        #E8F0F2;
    --soft:       #A8BAC0;
    --faint:      #78898F;
    --rule:       #26383E;
    --rule-hard:  #3A5058;
    --brand:      #0B2F3A;
    --brand-deep: #081F27;
    --brand-lift: #2A9AAB;
    --on-brand:   #DCEEF2;
    --accent:     #45B3C2;
    --accent-bg:  #10333A;
    --on-accent:  #06222A;
    --warm:       #F08A5D;
    --warm-bg:    #33201A;
    --good:       #6FC195;
    --good-bg:    #142A20;
    --caution:    #D9A648;
    --caution-bg: #2C2413;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:#0E1719; --surface:#162327; --sunk:#1B2B30; --tint:#172C33;
  --ink:#E8F0F2; --soft:#A8BAC0; --faint:#78898F;
  --rule:#26383E; --rule-hard:#3A5058;
  --brand:#0B2F3A; --brand-deep:#081F27; --brand-lift:#2A9AAB; --on-brand:#DCEEF2;
  --accent:#45B3C2; --accent-bg:#10333A; --on-accent:#06222A;
  --warm:#F08A5D; --warm-bg:#33201A;
  --good:#6FC195; --good-bg:#142A20;
  --caution:#D9A648; --caution-bg:#2C2413;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15.5px, 0.95rem + 0.15vw, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }

/* ---------------------------------------------------------------- header */

.site-head {
  background: var(--brand);
  background-image: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-bottom: 3px solid var(--brand-lift);
}
.site-head .shell {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px clamp(14px, 3vw, 30px);
  padding-block: clamp(12px, 2.2vw, 18px);
}
.brand {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(18px, 1.1rem + 0.4vw, 23px);
  letter-spacing: -.015em; color: var(--on-brand); text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.brand::before {
  content: ""; width: 1.05em; height: 1.05em; flex: none; border-radius: 4px;
  background:
    linear-gradient(to top, var(--brand-lift) 34%, transparent 34%) 0 100%/26% 100% no-repeat,
    linear-gradient(to top, var(--brand-lift) 62%, transparent 62%) 37% 100%/26% 100% no-repeat,
    linear-gradient(to top, var(--brand-lift) 92%, transparent 92%) 74% 100%/26% 100% no-repeat;
}
.brand span { color: var(--brand-lift); font-weight: 700; }
.site-head nav { display: flex; gap: clamp(12px, 2.4vw, 22px); flex-wrap: wrap; margin-left: auto; }
.site-head nav a {
  font-size: clamp(13px, .82rem + .1vw, 14.5px); font-weight: 500;
  color: var(--on-brand); opacity: .82; text-decoration: none;
  padding: 3px 0; border-bottom: 2px solid transparent;
}
.site-head nav a:hover { opacity: 1; border-bottom-color: var(--brand-lift); }

/* ------------------------------------------------------------------ type */

main { padding-block: clamp(26px, 4vw, 44px) clamp(44px, 7vw, 76px); }

h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(27px, 1.5rem + 2.1vw, 46px);
  line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance;
}
h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(21px, 1.2rem + 1.1vw, 30px);
  line-height: 1.22; letter-spacing: -.012em; margin: clamp(34px,5vw,52px) 0 10px;
  text-wrap: balance; padding-top: 4px;
}
h2::before {
  content: ""; display: block; width: 34px; height: 3px; border-radius: 2px;
  background: var(--brand-lift); margin-bottom: 14px;
}
h3 { font-size: clamp(16.5px,1rem + .2vw,18.5px); font-weight: 600; margin: 28px 0 7px; }
p  { max-width: 68ch; color: var(--soft); margin: 0 0 1em; }
p.lead { color: var(--ink); font-size: 1.04em; }
.dek {
  font-family: var(--serif); font-size: clamp(16px,1rem + .45vw,20px);
  color: var(--soft); max-width: 62ch; margin: 0 0 6px;
}
strong { color: var(--ink); font-weight: 600; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-lift); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
code {
  font-family: var(--mono); font-size: .86em;
  background: var(--tint); color: var(--ink); padding: 1px 6px; border-radius: 3px;
}
ul, ol { color: var(--soft); max-width: 66ch; padding-left: 20px; }
li { margin-bottom: 7px; }
li::marker { color: var(--brand-lift); }

.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0;
  font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  background: var(--sunk); border: 1px solid var(--rule);
  border-left: 3px solid var(--brand-lift); border-radius: 5px;
  padding: 11px 15px; margin: 20px 0 30px;
}
.byline span { display: inline-flex; align-items: center; gap: 6px; }
/* An explicit separator, so two facts can never read as one run-on string. */
.byline span + span::before {
  content: ""; width: 1px; height: 12px; background: var(--rule-hard);
  margin: 0 14px; flex: none;
}
.byline b { color: var(--soft); font-weight: 500; }
.byline a { color: var(--accent); }
.pending { color: var(--warm); }

/* ---------------------------------------------------------------- tables */

.scroll { overflow-x: auto; margin: 18px 0 8px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: clamp(13.5px,.85rem + .1vw,15px); }
.scroll table { min-width: 520px; }
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
  border-bottom: 2px solid var(--brand-lift); white-space: nowrap;
}
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* A secondary line under a figure in a table cell: the working behind the number. */
td .sub {
  display: block;
  font-family: var(--sans, inherit);
  font-size: .82em;
  font-variant-numeric: normal;
  color: var(--faint);
  white-space: normal;
  margin-top: 2px;
  font-weight: 400;
}
tbody tr:hover { background: var(--sunk); }
tr:last-child td { border-bottom: none; }
caption {
  caption-side: bottom; text-align: left; font-family: var(--mono);
  font-size: 11.5px; color: var(--faint); padding-top: 12px; line-height: 1.7;
}

/* A wide table or diagram scrolls inside its own box. Without an affordance
   nobody knows that, so the right edge just looks like a rendering bug — which
   is exactly how the audit table read before this. */
.scroll, figure.k401-fig {
  background:
    linear-gradient(to right, var(--paper) 30%, transparent) left / 32px 100% no-repeat,
    linear-gradient(to left,  var(--paper) 30%, transparent) right / 32px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.10), transparent) left / 12px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.10), transparent) right / 12px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}

/* Verdict colours in the audit table */
td.ok  { color: var(--good); }
td.bad { color: var(--warm); font-weight: 600; }
.audit-table tr.flag td:first-child { border-left: 3px solid var(--warm); padding-left: 10px; }
.audit-table td:first-child { font-size: .95em; }

.callout {
  background: var(--tint); border: 1px solid var(--rule);
  border-left: 4px solid var(--brand-lift); border-radius: 5px;
  padding: 18px 20px; margin: 22px 0;
}
.callout :last-child { margin-bottom: 0; }
.callout pre {
  font-family: var(--mono); font-size: 12.5px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px;
  overflow-x: auto; line-height: 1.8; color: var(--ink); margin: 0 0 12px;
}

/* ----------------------------------------------------------------- cards */

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); margin: 22px 0; }
.cards a {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 3px solid var(--brand-lift); border-radius: 6px;
  padding: 18px 20px; text-decoration: none; display: block;
  transition: border-color .15s, transform .15s;
}
.cards a:hover { border-color: var(--accent); border-top-color: var(--accent); transform: translateY(-2px); }
.cards h2, .cards h3 { margin: 0 0 5px; color: var(--ink); font-family: var(--sans); font-size: 17px; padding: 0; }
.cards h2::before { display: none; }
.cards p { margin: 0; font-size: 14.5px; }

/* ---------------------------------------------------------------- footer */

.site-foot { border-top: 3px solid var(--brand-lift); background: var(--sunk); padding-block: 28px 34px; margin-top: clamp(44px,7vw,72px); }
.site-foot p { font-size: 13.5px; color: var(--faint); max-width: 74ch; }
.disclaimer { line-height: 1.7; }
.source { font-family: var(--mono); font-size: 12px; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 10px; }
.foot-nav a { font-size: 13.5px; }
.copy { font-family: var(--mono); font-size: 11.5px; margin: 0; }

/* ================================================================ calculator */

.k401 { margin: 0 0 2rem; }
.k401-form {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,250px), 1fr));
  margin: 0 0 22px;
}
.k401 fieldset {
  border: 1px solid var(--rule); border-top: 3px solid var(--brand-lift);
  border-radius: 6px; padding: 16px 18px; margin: 0; min-width: 0;
  background: var(--surface);
}
.k401 legend {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-family: var(--mono); font-weight: 500; padding: 0 .45rem;
}
.k401 label { display: block; font-size: .9rem; color: var(--soft); margin-bottom: .85rem; }
.k401 label:last-of-type { margin-bottom: 0; }
.k401 input, .k401 select {
  display: block; width: 100%; margin-top: .32rem; padding: .55rem .65rem;
  font: inherit; font-size: max(16px, .95rem); font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-hard); border-radius: 5px;
  transition: border-color .12s, box-shadow .12s;
}
.k401 input:hover, .k401 select:hover { border-color: var(--accent); }
.k401 input:focus, .k401 select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); outline: none;
}
.k401 input[type=checkbox] { width: auto; display: inline-block; accent-color: var(--accent); }
.k401-unit { font-size: .78rem; color: var(--faint); margin-top: .2rem; display: inline-block; }
.k401-hint { font-size: .8rem; color: var(--faint); margin: .85rem 0 0; line-height: 1.55; }

.k401-blocked {
  background: var(--warm-bg); color: var(--warm);
  border: 1px solid var(--warm); border-radius: 5px;
  padding: .9rem 1rem; font-size: .92rem; margin: 0 0 1rem;
}

.k401-verdict {
  background: var(--tint); border: 1px solid var(--rule);
  border-left: 5px solid var(--accent); border-radius: 6px;
  padding: 1.25rem 1.4rem; margin: 0 0 1.2rem;
}
.k401-eyebrow {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .45rem;
}
.k401-verdict strong {
  display: block; font-family: var(--serif);
  font-size: clamp(1.55rem, 1rem + 3.2vw, 2.4rem); line-height: 1.12;
  font-variant-numeric: tabular-nums; color: var(--warm); letter-spacing: -.02em;
}
.k401-sub { display: block; font-size: .88rem; color: var(--soft); margin-top: .55rem; max-width: 60ch; }

.k401-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); }
.k401-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 3px solid var(--brand-lift); border-radius: 6px; padding: 1.1rem 1.2rem;
}
.k401-card h4 { margin: 0 0 .35rem; font-size: .95rem; color: var(--ink); }
.k401-card dl:first-of-type { border-top: none; padding-top: .2rem; }
.k401-big {
  margin: 0 0 .8rem; font-family: var(--serif); font-size: 1.7rem;
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); letter-spacing: -.015em;
}
.k401-card dl {
  display: grid; grid-template-columns: 1fr auto; gap: .45rem .8rem; margin: 0;
  font-size: .85rem; border-top: 1px solid var(--rule); padding-top: .7rem;
}
.k401-card dt { color: var(--soft); }
.k401-card dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }

.k401-note { font-size: .85rem; color: var(--soft); margin: 1rem 0 0; max-width: 66ch; line-height: 1.62; }
.k401-warn {
  color: var(--warm); background: var(--warm-bg);
  border-left: 3px solid var(--warm); border-radius: 0 4px 4px 0; padding: .7rem .9rem;
}
.k401-chart { width: 100%; display: block; margin: 1.4rem 0 .5rem; }

.k401-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.k401-btn {
  font: inherit; font-size: .85rem; font-weight: 500; padding: .55rem 1.1rem;
  border-radius: 5px; cursor: pointer; background: var(--accent);
  color: var(--on-accent); border: 1px solid var(--accent);
  transition: background .12s, border-color .12s;
}
.k401-btn:hover { background: var(--brand-lift); border-color: var(--brand-lift); color: var(--on-accent); }
.k401-btn-ghost { background: transparent; color: var(--accent); }
.k401-btn-ghost:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }

.k401-method { border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1.5rem; font-size: .88rem; }
.k401-method summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: .2rem 0; }
.k401-method summary:hover { color: var(--brand-lift); }
.k401-method p { color: var(--soft); line-height: 1.65; max-width: 68ch; }
.k401-method table th { border-bottom-color: var(--rule-hard); }
.k401-missing { background: var(--caution-bg); color: var(--caution); padding: 0 .35em; font-weight: 600; border-radius: 3px; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 560px) {
  .site-head .shell { padding-block: 11px; }
  .site-head nav { margin-left: 0; width: 100%; gap: 4px 16px; }
  .site-head nav a {
    font-size: 13.5px;
    /* Navigation targets need real height on a phone. Inline links inside prose
       are exempt from this; a nav bar is not. */
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .foot-nav { gap: 4px 20px; }
  .foot-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .brand { min-height: 44px; }
  .k401 label { margin-bottom: 1rem; }
  .k401 input, .k401 select { min-height: 44px; font-size: 16px; }
  .k401-card dl { grid-template-columns: 1fr; gap: .15rem; }
  .k401-card dd { text-align: left; padding-bottom: .35rem; }
  .k401-actions { flex-direction: column; align-items: stretch; }
  .k401-btn { width: 100%; }
  .byline { flex-direction: column; align-items: flex-start; gap: 5px; }
  .byline span + span::before { display: none; }
}
/* A four-column comparison does not survive a 360px screen. Below this width the
   table becomes one block per row, each figure labelled — readable without any
   sideways scrolling, which is what a phone actually wants. */
@media (max-width: 620px) {
  .scroll table.audit-table { min-width: 0; }
  .audit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .scroll table.audit-table, .audit-table tbody, .audit-table tr, .audit-table td { display: block; width: 100%; }
  .audit-table tr {
    border: 1px solid var(--rule); border-radius: 6px;
    padding: 12px 14px; margin-bottom: 10px; background: var(--surface);
  }
  .audit-table tr:hover { background: var(--surface); }
  .audit-table td { border: none; padding: 3px 0; white-space: normal; }
  .audit-table td:first-child {
    font-family: var(--sans); font-size: 15.5px; font-weight: 600; color: var(--ink);
    padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--rule);
  }
  .audit-table tr.flag td:first-child { border-left: none; padding-left: 0; }
  .audit-table tr.flag { border-left: 3px solid var(--warm); }
  .audit-table td[data-label] { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
  .audit-table td[data-label]::before {
    content: attr(data-label);
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em;
    text-transform: uppercase; color: var(--faint); font-weight: 500; flex: none;
  }
  .audit-table caption { padding-top: 4px; }
  /* the fade affordance is meaningless once nothing scrolls */
  .scroll:has(.audit-table) { background: none; }
}

@media (min-width: 1500px) { :root { --shell: 960px; } }

@media print {
  .site-head, .site-foot, .k401-form, .k401-actions, .k401-method { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .k401-verdict, .k401-card { border: 1px solid #999; }
}

/* A verdict the visitor will not like: the honest "this target is out of reach"
   answer. Warm rule rather than red panic — it is a fact, not an error. */
.k401-verdict-warn { border-left: 3px solid var(--warm); }
.k401-verdict-warn strong { color: var(--warm); }

/* Footer index. Four groups so every page is one click from every page, with
   the legal links kept to a quiet row rather than a full-width nav. */
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.6rem 2rem;
  margin: 1.6rem 0 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.foot-grid h2 {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 .6rem;
  font-weight: 500;
}
.foot-grid div { display: flex; flex-direction: column; gap: .38rem; }
.foot-grid a {
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.35;
  min-height: 24px;
}
.foot-grid a:hover, .foot-grid a:focus-visible { text-decoration: underline; }
.foot-legal {
  display: flex;
  gap: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
}
.foot-legal a {
  color: var(--faint);
  font-size: .82rem;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 560px) {
  .foot-grid { gap: 1.3rem 1.2rem; }
}

/* ---------- diagrams ----------
   The site ships no photographs. What it ships instead are a handful of
   diagrams that explain a mechanism faster than a paragraph can: where a
   dollar goes, how the ceilings nest, when an age gate opens. They are inline
   SVG so they inherit the page's colours in both themes, scale without a
   second asset, and cost no extra request. */
figure.k401-fig { margin: 2rem 0; }
figure.k401-fig svg { width: 100%; height: auto; display: block; }
figure.k401-fig figcaption {
  font: 500 .82rem/1.5 var(--sans);
  color: var(--faint);
  margin-top: .6rem;
  padding-top: .5rem;
  border-top: 1px solid var(--rule);
}
.k401-fig .fig-box  { fill: var(--accent-bg); stroke: var(--rule-hard); stroke-width: 1.5; }
.k401-fig .fig-box-b{ fill: var(--brand); stroke: none; }
.k401-fig .fig-box-w{ fill: var(--caution-bg); stroke: var(--caution); stroke-width: 1.5; }
.k401-fig .fig-t    { fill: var(--ink); font: 600 13px var(--sans); }
.k401-fig .fig-t-s  { fill: var(--faint); font: 500 11px var(--sans); }
.k401-fig .fig-t-i  { fill: var(--on-brand); font: 600 13px var(--sans); }
.k401-fig .fig-num  { fill: var(--ink); font: 700 14px var(--mono); }
.k401-fig .fig-line { stroke: var(--rule-hard); stroke-width: 1.5; fill: none; }
.k401-fig .fig-line-d { stroke: var(--faint); stroke-width: 1.5; fill: none; stroke-dasharray: 4 3; }
@media (max-width: 34rem) { figure.k401-fig figcaption { font-size: .78rem; } }

/* Phone legibility. Every diagram is drawn on a 680-unit canvas with 11-14px
   label text. Squeezed into a 358px column that text lands near 6px, which is
   readable by nobody. Below 42.5rem the figure scrolls sideways instead of
   shrinking — the same treatment, and the same edge shadow, the wide tables
   already get — so the labels render at their drawn size and the proportions
   survive. */
figure.k401-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 42.5rem) {
  figure.k401-fig svg { min-width: 680px; }
}
