/* Hallmark · shape: Workbench · genre: modern-minimal · theme: Ultraviolet (deal 1/3, seed net-run-rate-cricket-53ab·6526695e·2026-12-05·r4) · job: try · draw: manual
 * hero: the head over the match table and the card that adds it up · nav: edge-aligned, the wordmark and three links · footer: a ruled note over the credit lines · imagery: none, the product is the table and its card · signature: the net run rate at display size in thin Outfit with its sum written out under it, and the chase on one violet band · ultraviolet: lavender with one band in the record colours; heads and controls in sentence case (the owner's copy rule) instead of lowercase
 * axes: light/geometric-sans/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one tool page; the answer card and the violet chase band carry the look */
/* Hallmark · waive 44c · the table and how it works · on the table the head stays two lines so the match table and its answer card start inside the first screen (the tool is the visual); how it works is a reading page whose short head lets the first quoted rule start in the first screen */
/* Hallmark · waive 44a · the table · the head sits close over the table it introduces; centred in its own screen it would push every input below the fold */
/* Hallmark · waive 59 · the table · the 40px is the head over its own tool, one unit; every gap between real sections is 120px or more */
/* Hallmark · waive 77 · the table and how it works · a calculator with its chase card, and six short answers each a heading and one or two sentences with its source; neither is a landing strip, and a picture would only decorate them */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(95% 0.02 300); --color-paper-2: oklch(92% 0.03 300); --color-paper-3: oklch(89% 0.035 300);
  --color-ink: oklch(18% 0.02 300); --color-ink-2: oklch(28% 0.03 300); --color-muted: oklch(46% 0.05 300);
  --color-rule: oklch(84% 0.04 300); --color-rule-2: oklch(70% 0.08 295);
  --color-accent: oklch(50% 0.25 290); --color-accent-deep: oklch(43% 0.22 290); --color-accent-soft: oklch(86% 0.08 295);
  --color-accent-ink: oklch(97% 0.01 300); --color-focus: oklch(50% 0.25 290);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif; --font-body: "Onest", ui-sans-serif, sans-serif;
  --font-outlier: "JetBrains Mono", ui-monospace, monospace;
  --radius-card: 16px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 1px 2px oklch(18% 0.02 300 / 0.06);
  --tracking-display: -0.03em; --display-weight: 500;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: tint accent con=10 */
[data-slot]:has(> img) { isolation: isolate; background: color-mix(in oklab, var(--color-accent), white 82%); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
[data-slot] > img { z-index: 0; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
[data-slot]:has(> img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: color-mix(in oklab, var(--color-accent), black 55%); mix-blend-mode: lighten; pointer-events: none; }

@font-face { font-family: "Outfit"; src: url("/fonts/outfit-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* the record colourway, for the one violet band */
:root {
  --color-record: oklch(50% 0.25 290); --color-record-ink: oklch(97% 0.012 300); --color-record-rule: oklch(72% 0.14 292);
  --color-record-focus: oklch(99% 0.005 300); --color-field: oklch(98.5% 0.008 300);
}

body { color: var(--color-ink-2); }
h1, h2 { color: var(--color-ink); }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); text-decoration-color: var(--color-rule-2); }
a:hover { color: var(--color-accent-deep); text-decoration-color: var(--color-accent); }
.ref { font-size: var(--text-sm); color: var(--color-accent-deep); white-space: nowrap; }

.bar { border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xl); padding-block: var(--space-sm); }
.wordmark { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-accent); }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-family: var(--font-display); font-weight: 500; color: var(--color-ink-2); }
.bar__nav a:active { transform: translateY(1px); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

.hero { padding-block: var(--space-2xl) 0; }
.tool { padding-block: var(--space-xl) var(--section-gap-s); }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); line-height: 1; max-width: 14ch; }
.hero .lead { margin-top: var(--space-sm); max-width: 46ch; }

/* the table and its card */
.work { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.nrr { display: grid; gap: var(--space-md); justify-items: start; min-width: 0; }
.nrr__top { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.field select, .field .cell { height: 48px; padding: 0 var(--space-md); font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); background: var(--color-field); border: 1.5px solid var(--color-muted); border-radius: var(--radius-pill); }
.field select { min-width: 11rem; }
.field .cell { width: 9rem; }
.field select:focus-visible, .cell:focus-visible, .tick:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.sheet { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet thead th { padding: 0 var(--space-xs) var(--space-xs); font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); text-align: left; }
.sheet tbody { border-top: var(--rule-hair) solid var(--color-rule); }
.sheet td, .sheet tbody th { padding: var(--space-2xs) var(--space-xs); vertical-align: middle; }
.sheet tbody tr:first-child > * { padding-top: var(--space-sm); }
.sheet tbody tr:last-child > * { padding-bottom: var(--space-sm); }
.sheet__n { font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl); color: var(--color-ink); text-align: left; width: 2.5rem; }
.sheet__side { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); text-align: left; }
.sheet .cell { width: 6.5rem; height: 44px; padding: 0 var(--space-sm); font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); text-align: center; background: var(--color-field); border: 1.5px solid var(--color-muted); border-radius: var(--radius-pill); font-variant-numeric: tabular-nums; }
.sheet__tick { text-align: center; }
.tick { width: 22px; height: 22px; margin: 0; accent-color: var(--color-accent); }
.nrr__hint { font-size: var(--text-sm); color: var(--color-muted); max-width: 52ch; }
.nrr__more { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.pill { min-height: 44px; padding: 0 var(--space-md); font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); color: var(--color-ink); background: var(--color-accent-soft); border: 1.5px solid var(--color-accent-soft); border-radius: var(--radius-pill); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.pill:hover { background: var(--color-paper-3); border-color: var(--color-rule-2); }
.pill--quiet { background: transparent; border-color: var(--color-muted); }
.pill:active { transform: translateY(1px); }
.pill:disabled { opacity: 0.5; cursor: not-allowed; }
.pill:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.board { position: sticky; top: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--shadow-card); display: grid; gap: var(--space-xs); min-width: 0; }
.board__k { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.board__v { font-family: var(--font-display); font-weight: 300; font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -0.02em; color: var(--color-accent-deep); }
.board__sum { margin: var(--space-sm) 0 0; display: grid; gap: var(--space-xs); }
.board__sum div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-sm); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.board__sum dt { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.board__sum dd { margin: 0; color: var(--color-ink); overflow-wrap: anywhere; }
.board__line { margin-top: var(--space-xs); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); color: var(--color-ink); }
.board__note { font-size: var(--text-sm); color: var(--color-muted); }

/* the chase, on the violet band */
.chase { padding-block: var(--section-gap-s); background: var(--color-record); color: var(--color-record-ink); }
.chase__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.chase__head { grid-column: 1 / -1; display: grid; gap: var(--space-sm); }
.chase h2 { color: var(--color-record-ink); font-size: var(--text-section); }
.chase__head p { max-width: 52ch; }
.chase a, .chase .ref { color: var(--color-record-ink); text-decoration-color: var(--color-record-rule); }
.chase__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.chase .field { color: var(--color-record-ink); }
.chase .field .cell { width: 100%; border-color: var(--color-record-rule); }
.chase .cell:focus-visible, .chase a:focus-visible { outline-color: var(--color-record-focus); }
.board--chase { position: static; background: var(--color-field); }
.board__pair { margin: var(--space-sm) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.board__pair div { padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.board__pair dt { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.board__pair dd { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); color: var(--color-ink); }

/* the other pages */
.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; max-width: 16ch; }
.head .lead { margin-top: var(--space-md); max-width: 52ch; }
.sec { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.sec--first { padding-top: var(--space-2xl); }
.sec__in { display: grid; gap: var(--space-lg); justify-items: start; }
.sec h2 { font-size: var(--text-section); line-height: 1.02; }
.sec__note { max-width: 62ch; }
.said { margin: 0; max-width: 62ch; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); display: grid; gap: var(--space-xs); }
.said p { margin: 0; color: var(--color-ink); }
.said .said__src { font-size: var(--text-sm); }

.register { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); max-width: 68ch; }
.register__claim { margin: 0; color: var(--color-ink); font-weight: 600; }
.register blockquote { margin: var(--space-xs) 0 0; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); background: var(--color-paper-2); }
.register blockquote p { margin: 0; }
.register__src { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); max-width: 64ch; }

.foot { border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.foot__in { padding-block: var(--space-xl); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.foot__note, .foot__line { margin: 0; max-width: 72ch; }

/* the Menu toggle: on a phone the list opens from it (by its address, #menu, when the script is not there) */
.bar__menu { display: none; min-height: 44px; align-items: center; padding: 0 var(--space-md); font-family: var(--font-display); font-weight: 500; color: var(--color-ink); text-decoration: none; border: 1.5px solid var(--color-muted); border-radius: var(--radius-pill); }
.bar__menu:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* breadcrumbs on the deep pages */
.crumbs { padding-top: var(--space-md); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-rule-2); }
.crumbs a { color: var(--color-ink-2); }
.crumbs + .head { padding-top: var(--space-xl); }

/* the drawings: every line and word takes its colour from the tokens; sizes are in the drawing's own inches */
.sec--fig { border-top: 0; padding-top: 0; }
.fig { margin: 0; display: grid; gap: var(--space-sm); max-width: 760px; }
.fig figcaption { font-size: var(--text-sm); color: var(--color-muted); max-width: 62ch; }
.draw { width: 100%; height: auto; }
.draw .pitch { fill: var(--color-paper-3); }
.draw line { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.draw .crease { stroke: var(--color-ink); stroke-width: 2.5; }
.draw .crease.hi { stroke: var(--color-accent); stroke-width: 5; }
.draw .more { stroke: var(--color-ink); stroke-width: 2.5; stroke-dasharray: 2 3; }
.draw .edge { stroke: var(--color-rule-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.draw .mid { stroke: var(--color-rule-2); stroke-width: 1; stroke-dasharray: 1 3; }
.draw .dim { stroke: var(--color-muted); stroke-width: 1; }
.draw .stump { fill: var(--color-ink); }
.draw text { font-family: var(--font-display); font-weight: 500; fill: var(--color-ink-2); }
.draw--end .lab, .draw--end .dimt { font-size: 5.6px; }
.draw--end .dimt { fill: var(--color-muted); }
.draw--long { max-width: 760px; }
.draw--long .dimt--big { font-size: 26px; }
.draw .foot { fill: var(--color-accent-soft); stroke: var(--color-accent); stroke-width: 0.6; }
.draw .foot--no { fill: var(--color-paper); stroke: var(--color-error); stroke-dasharray: 1.6 1.2; }
.draw .lab--no { fill: var(--color-error); }

/* measurement tables and the chart: a region that scrolls sideways on a phone, never a column cut off */
.grid-wrap { width: fit-content; max-width: 100%; overflow-x: auto; border-radius: var(--radius-card); background: var(--color-paper-2); }
.grid-wrap:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.grid { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: var(--text-sm); }
.grid caption { text-align: left; padding: var(--space-sm) var(--space-md) var(--space-2xs); font-family: var(--font-display); font-weight: 500; color: var(--color-muted); }
.grid th, .grid td { padding: var(--space-xs) var(--space-md); text-align: left; vertical-align: top; border-bottom: var(--rule-hair) solid var(--color-rule); }
.grid thead th { font-family: var(--font-display); font-weight: 500; color: var(--color-muted); }
.grid tbody th { font-weight: 600; color: var(--color-ink); min-width: 11rem; }
.grid td { color: var(--color-ink); white-space: nowrap; }
.grid tbody tr:last-child > * { border-bottom: 0; }
.grid--chart { min-width: 40rem; }
.grid--chart th, .grid--chart td { text-align: right; padding-inline: var(--space-sm); }
.grid--chart tbody th { min-width: 0; }

/* where each crease is */
.facts { margin: 0; display: grid; gap: var(--space-md); max-width: 72ch; }
.facts div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--space-md); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); }
.facts dd { margin: 0; }

/* lists of pages: a title and a line, ruled */
.index { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 68ch; width: 100%; }
.index li { display: grid; gap: var(--space-3xs); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.index a { width: fit-content; font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); }
.index span { font-size: var(--text-sm); color: var(--color-muted); }
.index--big { counter-reset: tool; gap: var(--space-md); }
.index--big li { grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--space-md); counter-increment: tool; }
.index--big li::before { content: counter(tool); grid-row: 1 / span 3; font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl); line-height: 1; color: var(--color-accent-deep); }
.index--big a { font-size: var(--text-title); }
.index .index__ex { color: var(--color-ink-2); }
/* the Hindi page: Devanagari comes from the visitor's own system font (both web fonts are Latin only). Its vowel signs
   reach above and below the line, so the display leading opens up, and tracking goes back to normal: a negative one
   breaks the headline bar that joins the letters */
:lang(hi) .head h1, :lang(hi) .sec h2 { line-height: 1.3; letter-spacing: normal; }
:lang(hi) .head h1 { max-width: 20ch; }
:lang(hi) .lead, :lang(hi) .sec__note, :lang(hi) .board__note, :lang(hi) .field span { line-height: 1.75; }
.more__hi { margin-top: var(--space-md); }
.more__hi a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-md); }
.index--inline { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.index--inline li { padding-top: 0; border-top: 0; }
.index--inline a { font-size: var(--text-md); min-height: 44px; display: inline-flex; align-items: center; }
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); align-items: start; }
.more__col { display: grid; gap: var(--space-lg); min-width: 0; }
.more__col h2 { font-size: var(--text-section); }
.sum { max-width: 62ch; padding: var(--space-sm) var(--space-md); border-left: 2px solid var(--color-accent); font-family: var(--font-display); font-weight: 500; color: var(--color-ink); }
.more__fig { display: block; max-width: 360px; }

/* the calculators */
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); align-content: start; min-width: 0; }
.calc .field .cell { width: 100%; }
.calc__set { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); min-width: 0; }
.calc__set legend { padding: 0; margin-bottom: var(--space-xs); font-family: var(--font-display); font-weight: 500; color: var(--color-ink); }
.tool--calc + .tool--calc { padding-top: 0; }
.board__v--mid { font-size: clamp(2.5rem, 5vw, 4rem); }
.board__small { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.work--wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.calc--teams { grid-template-columns: minmax(0, 1fr); }
.teams { border-collapse: collapse; width: 100%; }
.teams thead th { padding: 0 var(--space-2xs) var(--space-xs); font-family: var(--font-display); font-weight: 500; font-size: var(--text-xs); color: var(--color-muted); text-align: left; }
.teams td, .teams tbody th { padding: var(--space-2xs); }
.teams__n { width: 2rem; font-family: var(--font-display); font-weight: 300; font-size: var(--text-lg); color: var(--color-ink); text-align: left; }
.teams .cell { width: 100%; min-width: 0; height: 44px; padding: 0 var(--space-xs); font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); color: var(--color-ink); text-align: center; background: var(--color-field); border: 1.5px solid var(--color-muted); border-radius: var(--radius-pill); font-variant-numeric: tabular-nums; }
.teams .cell--name { min-width: 6.5rem; text-align: left; }
.teams .cell:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.standings { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.standings th { padding: var(--space-2xs) var(--space-xs); font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); text-align: left; }
.standings td { padding: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); }
.standings .standings__sum td { padding-top: 0; border-top: 0; font-family: var(--font-body); font-weight: 400; font-size: var(--text-xs); color: var(--color-muted); }

@media (max-width: 960px) {
  .work, .chase__in { grid-template-columns: minmax(0, 1fr); }
  .board { position: static; }
}
@media (max-width: 600px) {
  .hero { padding-top: var(--space-xl); }
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .board { padding: var(--space-lg); }
  .board__sum div { grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); }
  /* one card per match: every cell prints its column's name (data-label), so no column can hide off the side */
  .sheet, .sheet tbody, .sheet tr, .sheet td, .sheet tbody th { display: block; }
  .sheet { width: 100%; }
  .sheet thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sheet tbody { display: grid; gap: var(--space-sm); padding-block: var(--space-md); }
  .sheet tr { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr) minmax(0, 1fr) 3.5rem; gap: var(--space-xs); align-items: end; }
  .sheet td, .sheet tbody th, .sheet tbody tr:first-child > *, .sheet tbody tr:last-child > * { padding: 0; }
  .sheet__n { grid-column: 1 / -1; width: auto; font-size: var(--text-xl); line-height: 1.2; }
  .sheet__n::before { content: "Match "; font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
  .sheet__side { padding-bottom: var(--space-sm); }
  .sheet td[data-label]::before { content: attr(data-label); display: block; margin-bottom: var(--space-2xs); font-family: var(--font-display); font-weight: 500; font-size: var(--text-xs); color: var(--color-muted); }
  .sheet .cell { width: 100%; padding: 0 var(--space-xs); font-size: var(--text-md); }
  .sheet .sheet__tick { display: grid; grid-template-rows: auto 44px; align-items: center; justify-items: start; }
  .chase__form { grid-template-columns: minmax(0, 1fr); }
  .board__pair dd { font-size: var(--text-lg); }
}
@media (max-width: 720px) {
  .bar__menu { display: inline-flex; }
  .bar__nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-block: var(--space-2xs) var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
  .bar__nav:target, .bar__nav[data-open] { display: flex; }
  .bar__nav a { min-height: 48px; }
  .more, .facts div { grid-template-columns: minmax(0, 1fr); }
  .facts div { gap: var(--space-2xs); }
}
@media (max-width: 600px) {
  .teams, .teams tbody, .teams tr, .teams td, .teams tbody th { display: block; }
  .teams thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .teams tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
  .teams td, .teams tbody th { padding: 0; }
  .teams__n { grid-column: 1 / -1; width: auto; }
  .teams__n::before { content: "Team "; font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
  .teams td:nth-child(2) { grid-column: 1 / -1; }
  .teams td[data-label]::before { content: attr(data-label); display: block; margin-bottom: var(--space-2xs); font-family: var(--font-display); font-weight: 500; font-size: var(--text-xs); color: var(--color-muted); }
  .index--big li { grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--space-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
}
