/* Hallmark · shape: app screen · genre: editorial · theme: Formwork (deal manual: custom service-tag direction on the formwork scaffold; the owner picked concept C, then C Compact, 2026-10-31)
 * nav: charcoal top bar, the tool links, a theme switch, a disclosure under 60rem · signature: the service tags, each side tag carries its own live gauge beside its readings, the needle sweeping to each new pressure, the figures first in the answer · states: empty, example, mixed, answer, limit · formwork: galvanised bench, white tags edged in ink, no shadows, radius 2px, copper action
 * axes: light/grotesk-condensed/chromatic-copper · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: E, without the block and hoses the gauge reads as a set only through the blue and red tags and the two dials */
/* Hallmark · waive 37 · three families: Barlow and its semi condensed width are one superfamily, Red Hat Mono sets the figures; the approved Archivo wordmark ships as an outlined SVG, not a font */

/* Site stylesheet for the C Compact concept (owner, 2026-10-31), ported from work/design/concepts/c-tag: tokens, base,
 * then the components the theme templates and the hsc-tools shortcodes print. Fonts are self-hosted (OFL, fonts/OFL.txt). */
: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.75rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.2rem; --text-xl: 1.44rem; --text-2xl: 1.728rem; --text-3xl: 2.074rem; --text-4xl: 2.488rem; --text-5xl: 2.986rem;
  --text-display-s: 1.728rem; --text-display: 2.488rem; --text-section: 1.44rem; --text-title: 1.2rem; --text-lead: 1.0625rem;
  --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;
  --container: 1240px; --gutter: 40px; --gap-columns: 40px; --section-gap-s: 72px; --section-gap: 96px; --section-gap-l: 128px;
  --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;

  /* Service tag: galvanised sheet bench, white tags edged in ink, charcoal bar, copper action */
  --color-paper: oklch(91.5% 0.006 235); --color-paper-2: oklch(99.4% 0.002 235); --color-paper-3: oklch(86.5% 0.008 235);
  --color-field: oklch(97% 0.003 235); --color-steel: oklch(81% 0.008 235); --color-steel-2: oklch(70% 0.01 235);
  --color-ink: oklch(19% 0.01 240); --color-ink-2: oklch(33% 0.01 240); --color-muted: oklch(45% 0.01 240);
  --color-rule: oklch(84% 0.006 235); --color-rule-2: oklch(66% 0.01 235); --color-field-edge: oklch(52% 0.01 240);
  --color-tag-edge: oklch(19% 0.01 240);
  --color-bar: oklch(22% 0.01 240); --color-bar-ink: oklch(96% 0.004 235); --color-bar-ink-2: oklch(82% 0.008 235); --color-bar-focus: oklch(74% 0.11 55);
  --color-bar-low: oklch(72% 0.12 245); --color-bar-high: oklch(70% 0.16 27);
  --color-accent: oklch(53% 0.12 48); --color-accent-ink: oklch(99% 0.004 60); --color-accent-strong: oklch(47% 0.12 46); --color-focus: oklch(47% 0.13 46);
  --color-low: oklch(50% 0.15 248); --color-low-soft: oklch(94% 0.025 248);
  --color-high: oklch(53% 0.19 27); --color-high-soft: oklch(95% 0.022 27);
  --color-yellow: oklch(83% 0.15 90);
  --color-bad: oklch(50% 0.19 27); --color-bad-soft: oklch(93.5% 0.03 27);
  --color-face: oklch(99.7% 0.003 235); --color-needle: oklch(19% 0.01 240);
  --color-error: var(--color-bad); --color-success: var(--color-ink);

  --font-display: "Barlow Semi Condensed", "Barlow", ui-sans-serif, sans-serif; --font-body: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --font-figure: "Red Hat Mono", ui-monospace, monospace;
  --radius-card: 2px; --radius-pill: 2px; --radius-tag: 12px; --rule-hair: 1px; --rule-tag: 1.5px; --rule-bar: 3px;
  --shadow-card: none;
  --tracking-display: -0.005em; --display-weight: 600;
}
/* dark is a choice, not the default (owner, 2026-10-30): the switch in the top bar sets data-theme */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-paper: oklch(18% 0.008 240); --color-paper-2: oklch(22.5% 0.009 240); --color-paper-3: oklch(14% 0.007 240);
  --color-field: oklch(26.5% 0.01 240); --color-steel: oklch(34% 0.01 240); --color-steel-2: oklch(46% 0.012 240);
  --color-ink: oklch(94% 0.005 240); --color-ink-2: oklch(87% 0.008 240); --color-muted: oklch(77% 0.01 240);
  --color-rule: oklch(33% 0.01 240); --color-rule-2: oklch(46% 0.012 240); --color-field-edge: oklch(62% 0.012 240);
  --color-tag-edge: oklch(60% 0.01 240);
  --color-bar: oklch(13% 0.007 240); --color-bar-ink: oklch(94% 0.005 240); --color-bar-ink-2: oklch(80% 0.008 240); --color-bar-focus: oklch(74% 0.11 55);
  --color-accent: oklch(71% 0.12 54); --color-accent-ink: oklch(17% 0.02 50); --color-accent-strong: oklch(76% 0.11 56); --color-focus: oklch(76% 0.11 56);
  --color-low: oklch(74% 0.12 245); --color-low-soft: oklch(27% 0.04 245);
  --color-high: oklch(71% 0.16 25); --color-high-soft: oklch(27% 0.045 25);
  --color-yellow: oklch(84% 0.14 90);
  --color-bad: oklch(73% 0.16 25); --color-bad-soft: oklch(29% 0.05 25);
  --color-face: oklch(25% 0.01 240); --color-needle: oklch(96% 0.005 240);
}

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-semi-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/red-hat-mono.woff2") format("woff2"); }
*, *::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) 35%, 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; }
@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; } }

body { font-size: 1.0625rem; }
.input input, dd, td, th[scope="row"], .size-figure, .sat b, .pending b { font-variant-numeric: tabular-nums; }
dd .u { font-family: var(--font-body); }
.input input, dd, td, .pt-table th[scope="row"], .dial text, .band text, .stair-axis, .stair-key, .sat b, .pending b { font-family: var(--font-figure); font-feature-settings: "zero" 1; }

/* top bar */
.topbar { background: var(--color-bar); color: var(--color-bar-ink); }
.topbar :focus-visible { outline-color: var(--color-bar-focus); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-bar-ink); text-decoration: none; }
.brand:focus-visible { outline-offset: 4px; }
.mark { width: 30px; height: 30px; }
/* the PT ring (owner, 2026-10-31): pressure arc outside, saturation arc inside, one needle across both */
.mark-arc, .mark-sat, .mark-needle { fill: none; stroke-linecap: round; }
.mark-arc { stroke: var(--color-bar-ink); stroke-width: 3; }
.mark-sat { stroke: var(--color-bar-high); stroke-width: 2.4; }
.mark-needle { stroke: var(--color-bar-ink); stroke-width: 2.4; }
.mark-hub { fill: var(--color-bar-ink); }
/* the approved Archivo lockup, outlined to a path (work/design/brand/wordmark.py) and painted in the text colour */
.wordmark { display: block; width: 236px; aspect-ratio: 236.13 / 16.4; background: currentColor; -webkit-mask: url("images/wordmark.svg") no-repeat center / contain; mask: url("images/wordmark.svg") no-repeat center / contain; }
.skip { position: absolute; left: var(--space-xs); top: var(--space-xs); z-index: var(--z-modal); padding: var(--space-xs) var(--space-sm); background: var(--color-paper-2); color: var(--color-ink); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }
.nav-links { display: flex; gap: var(--space-3xs); list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-menu summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-sm); color: var(--color-bar-ink-2); font-size: var(--text-sm); font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-menu summary:hover { color: var(--color-bar-ink); text-decoration: underline; }
.nav { margin-left: auto; }
.theme-toggle { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-bar-ink-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-bar-ink-2); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.theme-toggle:hover { color: var(--color-bar-ink); border-color: var(--color-bar-ink); }
.theme-toggle[aria-pressed="true"] { color: var(--color-bar-ink); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; border: var(--rule-hair) solid var(--color-bar-ink-2); border-radius: var(--radius-pill); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-dropdown); list-style: none; margin: 0; padding: var(--space-xs); min-width: 200px; background: var(--color-bar); border: var(--rule-hair) solid var(--color-bar-ink-2); border-radius: var(--radius-card); }
.nav-menu ul a { display: block; padding: var(--space-xs) var(--space-sm); color: var(--color-bar-ink); text-decoration: none; }
.nav-menu ul a:hover { text-decoration: underline; }

/* bench: the intro, the jumps, then the tools */
main { padding-top: var(--space-lg); }
.intro { display: grid; gap: var(--space-xs); }
.intro h1 { max-width: none; font-size: var(--text-display); line-height: 1.05; }
.intro .lead { color: var(--color-ink-2); max-width: 72ch; }
.intro .lead a { color: var(--color-ink); text-underline-offset: 3px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); list-style: none; margin: 0; padding: 0; color: var(--color-muted); font-size: var(--text-sm); }
.crumbs li + li::before { content: "/" / ""; margin-right: var(--space-xs); color: var(--color-rule-2); }
.crumbs a { color: var(--color-ink-2); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--color-accent-strong); }
.jumps { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
main > .tool.gauge { margin-top: var(--space-lg); }
.jump { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-tag) solid var(--color-tag-edge); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-weight: 600; text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.jump:hover { background: var(--color-paper-3); }
.jump:active { transform: translateY(1px); }
.jump:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.tool { display: grid; gap: var(--space-lg); min-width: 0; padding-top: var(--space-sm); border-top: var(--rule-bar) solid var(--color-ink); }
.tool-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-md); }
.tool-head h2 { font-size: var(--text-xl); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-3xs); padding: var(--space-3xs); background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 3px; }
.pills label { position: relative; display: inline-flex; }
.pills input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pills span { display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; width: 100%; min-height: 34px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; }
.pills label:hover span { color: var(--color-ink); }
.pills input:checked + span { background: var(--color-ink); color: var(--color-paper-2); }
.pills input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.pills.small span { min-height: 32px; }

.field { display: grid; gap: var(--space-2xs); min-width: 0; }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.field.wide { grid-column: 1 / -1; }
.field.wide legend { margin-bottom: var(--space-2xs); }
.field.wide .pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ex { display: none; margin-left: var(--space-2xs); padding: 0 var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-muted); font-weight: 400; }
/* One example chip per side tag: by its legend while every field holds the example, then by the field still holding
   one once the visitor has typed into the other. Fields outside the tags keep their own. */
.field:not(.side .field):has(input.is-example) .ex, .side:not(:has(input:not(.is-example))) legend .ex,
.side:has(input:not(.is-example)) .field:has(input.is-example) .ex { display: inline; }
.input { display: flex; align-items: center; min-width: 0; min-height: 44px; background: var(--color-field); border: var(--rule-hair) solid var(--color-field-edge); border-bottom-width: 2px; border-radius: var(--radius-pill); }
.input:focus-within { outline: 2px solid var(--color-focus); outline-offset: -1px; }
.input input, .input select { flex: 1; min-width: 0; width: 100%; height: 42px; padding: 0 var(--space-sm); border: 0; background: transparent; color: var(--color-ink); font-size: var(--text-md); font-weight: 500; }
.input input:focus, .input select:focus { outline: none; }
.input select { font-family: var(--font-body); appearance: none; cursor: pointer; }
.input input.is-example { color: var(--color-muted); }
.input:has(:disabled) { background: var(--color-paper-3); border-style: dashed; }
.input input:disabled, .input select:disabled, .confirm:disabled, .pills input:disabled + span { color: var(--color-muted); cursor: not-allowed; }
.unit { padding-right: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }

/* the gauge: a tag per side with its dial beside the readings, the answer tag between them */
.gauge-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "ilow ans ihigh" "ilow setup ihigh" "ilow pend ihigh"; column-gap: var(--space-lg); align-items: start; }
.gauge { position: relative; }

/* a service tag: chamfered top corners and a reinforced eyelet in the side's colour */
.tag { position: relative; min-width: 0; margin: 0; padding: var(--space-lg); background: var(--color-paper-2); border: var(--rule-tag) solid var(--color-tag-edge); border-radius: var(--radius-tag) var(--radius-tag) var(--radius-card) var(--radius-card); corner-shape: bevel bevel round round; }
.tag::after { content: ""; position: absolute; right: 14px; top: 14px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: var(--color-paper); border: 3px solid var(--color-steel-2); }
.side { display: grid; grid-template-columns: minmax(0, 1fr) clamp(140px, 52%, 176px); grid-template-areas: "legend legend" "fields dial" "sat sat"; gap: var(--space-sm) var(--space-md); align-items: center; }
.side.is-low { grid-area: ilow; } .side.is-high { grid-area: ihigh; }
.side legend { float: left; grid-area: legend; width: 100%; margin: 0; padding-right: var(--space-xl); color: var(--color-ink); font-weight: 600; }
.side.is-low::after { border-color: var(--color-low); } .side.is-high::after { border-color: var(--color-high); } .g-answer::after { border-color: var(--color-yellow); }
.side-fields { grid-area: fields; display: grid; gap: var(--space-sm); min-width: 0; }
.side-dial { grid-area: dial; width: 100%; aspect-ratio: 1; }
.sat { grid-area: sat; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--space-sm); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm); }
.sat b { color: var(--color-ink); font-size: var(--text-lg); font-weight: 600; white-space: nowrap; }
.g-setup { grid-area: setup; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-sm) var(--space-md); margin-top: var(--space-md); }
.gauge-body > .pending { grid-area: pend; margin-top: var(--space-md); }

.g-answer { grid-area: ans; display: grid; align-content: start; gap: var(--space-sm); }
.g-status { justify-self: start; margin-right: var(--space-xl); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 600; }
:is([data-verdict="example"], [data-verdict="mixed"]) .g-status { padding: 0 var(--space-xs); border-radius: var(--radius-pill); background: var(--color-paper-3); }
.g-compare { color: var(--color-ink); font-size: var(--text-lg); font-weight: 500; }
.g-compare:empty { display: none; }
:is([data-verdict="example"], [data-verdict="mixed"], [data-verdict="empty"]) .g-compare { color: var(--color-ink-2); font-size: var(--text-md); font-weight: 400; }
.g-note { display: grid; gap: var(--space-2xs); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
.g-note summary { justify-self: start; color: var(--color-ink-2); font-weight: 500; cursor: pointer; }
.g-note summary:hover { color: var(--color-ink); }
.g-note ol { margin: var(--space-2xs) 0 0; padding-left: 1.25em; }
.tag-example { display: none; justify-self: start; padding: 0 var(--space-xs); border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; }
[data-status="example"] .tag-example, [data-status="mixed"] .tag-example { display: inline-block; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); margin: 0; }
.figures div { display: grid; gap: var(--space-3xs); padding-top: var(--space-xs); border-top: var(--rule-bar) solid var(--color-low); }
.figures .is-high { border-top-color: var(--color-high); }
.figures dt { font-size: var(--text-md); color: var(--color-ink-2); }
.figures dd { font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.2em; margin: 0; font-size: clamp(2.074rem, 2.8vw, 2.488rem); font-weight: 600; line-height: 1.1; white-space: nowrap; }
dd .u { color: var(--color-ink-2); font-size: var(--text-lg); font-weight: 500; }
dd.is-none .u { display: none; }
.field.inline { grid-template-columns: auto 112px; align-items: center; gap: var(--space-sm); }
.limits { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
.limits li { padding: var(--space-xs) var(--space-sm); border-left: var(--rule-bar) solid var(--color-bad); background: var(--color-bad-soft); color: var(--color-ink); font-size: var(--text-sm); max-width: 60ch; }
[data-verdict="limit"] .g-status { color: var(--color-bad); }
[data-verdict="empty"] .g-status { color: var(--color-muted); }
[data-status="example"] :is(.figures dd, .size-figure, .rating dd),
[data-status="mixed"] :is(.figures dd, .size-figure, .rating dd) { color: var(--color-muted); }
/* a side's saturation comes from its pressure alone, so it is the visitor's as soon as that pressure is */
.side:has(.field:first-child input.is-example) .sat b { color: var(--color-muted); }
.pending { grid-column: 1 / -1; padding: var(--space-sm); border: var(--rule-hair) dashed var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-field); font-size: var(--text-sm); }
.pending ul { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: var(--space-2xs); }
.pending li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-sm); }
.pending b { font-weight: 600; }
.confirm { min-height: 32px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-field-edge); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.confirm:hover { background: var(--color-paper-3); }

/* the typing bar: above the keyboard while a gauge field is typed into and the answer is out of sight */
.type-bar { position: fixed; left: var(--space-xs); right: var(--space-xs); bottom: var(--space-xs); z-index: var(--z-sticky); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-card); background: var(--color-bar); color: var(--color-bar-ink); transform: translateY(calc(-1 * var(--kb, 0px))); }
.type-bar dl { display: contents; }
.type-bar dl div { display: grid; padding-top: var(--space-2xs); border-top: var(--rule-bar) solid var(--color-bar-low); }
.type-bar dl .is-high { border-top-color: var(--color-bar-high); }
.type-bar dt { color: var(--color-bar-ink-2); font-size: var(--text-sm); }
.type-bar dd { margin: 0; font-family: var(--font-figure); font-size: var(--text-lg); font-weight: 600; white-space: nowrap; }
.type-bar dd .u { color: var(--color-bar-ink-2); font-size: var(--text-sm); }
.type-bar p { font-size: var(--text-sm); font-weight: 600; line-height: 1.25; }
[data-status="example"] .type-bar dd, [data-status="mixed"] .type-bar dd { color: var(--color-bar-ink-2); }

/* dials */
.dial-bezel { fill: none; stroke-width: 6; stroke: var(--color-low); }
.dial.is-high .dial-bezel { stroke: var(--color-high); }
.dial-face { fill: var(--color-face); }
.dial-tick { stroke: var(--color-ink-2); stroke-width: 1; }
.dial-tick.is-major { stroke: var(--color-ink); stroke-width: 1.8; }
.dial-tick.is-vacuum { stroke: var(--color-muted); }
.dial-num { fill: var(--color-ink); font-weight: 600; }
.dial-num.is-vacuum { fill: var(--color-muted); }
.dial-ttick { stroke: var(--color-low); stroke-width: 1.2; }
.dial-temp, .dial-fluid { fill: var(--color-low); font-weight: 600; }
.dial.is-high .dial-ttick { stroke: var(--color-high); }
.dial.is-high .dial-temp, .dial.is-high .dial-fluid { fill: var(--color-high); }
.dial-unit { fill: var(--color-muted); font-weight: 500; }
.dial-needle { stroke: var(--color-needle); stroke-width: 2.6; stroke-linecap: round; }
.dial-sweep { transform-box: view-box; transform-origin: 50% 50%; transition: transform var(--dur-long) var(--ease-out); }
.dial-hub { fill: var(--color-needle); }
.dial.is-example .dial-needle, .dial.is-rest .dial-needle { stroke: var(--color-muted); }
.dial.is-example .dial-hub, .dial.is-rest .dial-hub { fill: var(--color-muted); }

/* sizing: inputs, the band, then the rating nameplate and the action */
.size { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head head" "inputs plate" "band plate" "pend cta"; grid-template-rows: auto auto 1fr auto; gap: var(--space-lg) var(--gap-columns); align-items: start; margin-top: var(--section-gap-s); border-top-width: var(--rule-tag); }
.size > .tool-head { grid-area: head; } .size > .s-inputs { grid-area: inputs; } .size > .s-band { grid-area: band; }
.size > .nameplate { grid-area: plate; } .size > .s-cta { grid-area: cta; } .size > .pending { grid-area: pend; }
.size .tool-head h2 { font-size: var(--text-section); }
.size-lead { margin-top: var(--space-3xs); color: var(--color-ink-2); }
.s-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-sm) var(--space-md); }
.s-inputs .check { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: var(--space-xs); min-height: 44px; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--color-ink); cursor: pointer; }
.check:hover { color: var(--color-ink); }
.s-band { display: grid; gap: var(--space-2xs); }
.s-steps { color: var(--color-ink-2); font-size: var(--text-sm); max-width: 60ch; }
.band-box { width: 100%; min-height: 108px; }
.band-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.band-legend span { flex: 1 1 0; max-width: 24ch; }
.band-legend .z-over { text-align: right; }
.band-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: var(--space-2xs); border: var(--rule-hair) solid var(--color-bad); background: var(--color-bad-soft); vertical-align: -1px; }
.band-legend .z-allowed { flex-basis: 100%; max-width: none; }
.band-legend .z-allowed::before { border: var(--rule-hair) dashed var(--color-rule-2); background: var(--color-paper-2); }
.band-legend .z-over::before { background: repeating-linear-gradient(45deg, var(--color-bad) 0 1px, var(--color-bad-soft) 1px 4px); }
[data-verdict="empty"] .band-legend { visibility: hidden; }
.band-track { fill: var(--color-paper-3); }
.band-under, .band-over { fill: var(--color-bad-soft); }
.band-hatch { stroke: var(--color-bad); stroke-width: 1.2; opacity: 0.55; }
.band-fit { fill: var(--color-paper-2); stroke: var(--color-ink); stroke-width: 1.5; }
.band-allowed { fill: var(--color-paper-2); stroke: var(--color-rule-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.band-size { stroke: var(--color-rule-2); stroke-width: 1.5; }
.band-size.is-rec { stroke: var(--color-ink); }
.band-rec { fill: var(--color-accent); stroke: var(--color-ink); stroke-width: 1.5; }
.band-label { fill: var(--color-ink-2); font-size: 12px; font-weight: 500; }
.band-label.is-rec { fill: var(--color-ink); font-weight: 600; }
.band .band-unit { fill: var(--color-muted); font-size: 12px; font-family: var(--font-body); }
.band-load { stroke: var(--color-ink); stroke-width: 2; }
.band-load-label { fill: var(--color-ink); font-size: 12px; font-weight: 600; }
/* the BTU calculator's room AC: ENERGY STAR's chart as a staircase, the room on its row, a slider for the area */
.stair-box { width: 100%; min-height: 240px; }
.stair-grid { stroke: var(--color-rule); stroke-width: 1; }
.stair-fill { fill: var(--color-paper-3); }
.stair-row { fill: var(--color-paper-2); stroke: var(--color-ink); stroke-width: 1.5; }
.stair-line { fill: none; stroke: var(--color-rule-2); stroke-width: 1.5; }
.stair-base { stroke: var(--color-ink-2); stroke-width: 1; }
.stair-axis { fill: var(--color-ink-2); font-size: 12px; font-weight: 500; }
.stair-unit { fill: var(--color-muted); font-size: 12px; font-family: var(--font-body); }
.stair-adjust { stroke: var(--color-ink); stroke-width: 2; }
.stair-chart { fill: var(--color-paper-2); stroke: var(--color-ink); stroke-width: 1.5; }
.stair-point { fill: var(--color-accent); stroke: var(--color-ink); stroke-width: 1.5; }
.stair-key, .stair-note { fill: var(--color-ink-2); font-size: 12px; }
.stair-legend-bg { fill: var(--color-paper); }
.stair-note { font-family: var(--font-body); }
.stair-key.is-answer, .stair-note.is-answer { fill: var(--color-ink); font-weight: 600; }
.stair-range { display: block; width: calc(100% - 40px); height: 44px; margin: 0 6px 0 34px; accent-color: var(--color-ink); cursor: pointer; }
.stair-range:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pt-table tr.is-current > * { background: var(--color-paper-3); font-weight: 600; }

.nameplate { display: grid; gap: var(--space-2xs); padding: var(--space-lg) var(--space-lg) var(--space-md); background-color: var(--color-paper-2); border: var(--rule-tag) solid var(--color-tag-edge); border-radius: var(--radius-card);
  background-image: radial-gradient(circle at 12px 12px, var(--color-steel) 0 3px, var(--color-steel-2) 3px 4.5px, transparent 5px), radial-gradient(circle at calc(100% - 12px) 12px, var(--color-steel) 0 3px, var(--color-steel-2) 3px 4.5px, transparent 5px),
    radial-gradient(circle at 12px calc(100% - 12px), var(--color-steel) 0 3px, var(--color-steel-2) 3px 4.5px, transparent 5px), radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), var(--color-steel) 0 3px, var(--color-steel-2) 3px 4.5px, transparent 5px); }
.nameplate .tag-example { margin-bottom: var(--space-2xs); }
.plate-label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.size-figure { font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: var(--space-xs); font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 600; line-height: 1; }
.size-figure .unit-big { font-size: var(--text-xl); font-weight: 500; color: var(--color-ink-2); }
.size-figure.is-range { font-size: var(--text-2xl); }
.plate-note { padding-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.plate-note + .plate-note { padding-top: 0; }
.size-head { display: none; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1.1; }
[data-verdict="limit"] :is(.size-figure, .plate-label, .rating), [data-verdict="empty"] :is(.size-figure, .plate-label, .rating) { display: none; }
[data-verdict="limit"] .size-head, [data-verdict="empty"] .size-head { display: block; }
[data-verdict="limit"] .size-head { color: var(--color-bad); }
[data-verdict="empty"] .size-head { color: var(--color-muted); }
.rating { display: grid; margin: var(--space-sm) 0 0; }
.rating div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--space-sm); padding-block: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.rating dt { font-size: var(--text-sm); color: var(--color-ink-2); }
.rating dd { margin: 0; font-size: var(--text-md); font-weight: 500; }
.rating .is-price { border-top: var(--rule-tag) solid var(--color-tag-edge); }
.rating .is-price dt { color: var(--color-ink); font-weight: 600; }
.rating .is-price dd { font-size: var(--text-lg); font-weight: 600; }
.s-cta { margin: 0; }
[data-verdict="limit"] .s-cta, [data-verdict="empty"] .s-cta { display: none; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn-primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }

/* PT chart */
.pt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); margin-top: var(--section-gap-s); padding-top: var(--space-sm); border-top: var(--rule-bar) solid var(--color-ink); }
.pt-copy { display: grid; align-content: start; gap: var(--space-sm); }
.pt-copy h2, .all h2 { font-size: var(--text-section); }
.pt-copy p { color: var(--color-ink-2); }
.pt-copy .pt-source { color: var(--color-muted); font-size: var(--text-sm); }
.groups a { display: block; padding: var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); text-decoration: none; }
.groups a:hover { color: var(--color-accent-strong); text-decoration: underline; }
.pt-table { padding: var(--space-xs) var(--space-lg); background: var(--color-paper-2); border: var(--rule-tag) solid var(--color-tag-edge); border-radius: var(--radius-card); }
.pt-table > summary, .pt-more > summary { display: flex; align-items: center; min-height: 48px; font-weight: 600; cursor: pointer; list-style: none; }
.pt-table > summary::-webkit-details-marker, .pt-more > summary::-webkit-details-marker { display: none; }
.pt-table > summary:hover, .pt-more > summary:hover { color: var(--color-accent-strong); }
.pt-table > summary:focus-visible, .pt-more > summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pt-table[open] > summary, .pt-more[open] > summary { border-bottom: var(--rule-hair) solid var(--color-rule); }
details[open] > summary .when-closed, details:not([open]) > summary .when-open { display: none; }
.pt-table > summary { display: none; }
.pt-table caption { padding-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); text-align: left; }
/* a chart page: the full table takes the short one's place, and its summary stays on screen to bring it back */
.pt-chart:has(> .pt-more[open]) > table { display: none; }
.pt-more:not([open]) > summary { border-top: var(--rule-tag) solid var(--color-tag-edge); }
.pt-more[open] > summary { position: sticky; top: 0; z-index: var(--z-raised); background: var(--color-paper-2); }
table { width: 100%; border-collapse: collapse; }
thead th { padding: var(--space-xs) 0; border-bottom: var(--rule-tag) solid var(--color-tag-edge); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; text-align: right; white-space: nowrap; }
thead th:first-child { text-align: left; }
tbody th, tbody td { padding: var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-weight: 500; text-align: right; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--color-ink-2); text-align: left; }

/* index */
.all { display: grid; gap: var(--space-lg); margin-top: var(--section-gap-s); padding-top: var(--space-sm); border-top: var(--rule-bar) solid var(--color-ink); }
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.groups h3 { margin-bottom: var(--space-xs); font-size: var(--text-title); }
.groups ul { list-style: none; margin: 0; padding: 0; }

/* copy below the tools: the heading on the left, the text on the measure beside it */
.text { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-sm) var(--gap-columns); margin-top: var(--section-gap-s); padding-top: var(--space-sm); border-top: var(--rule-bar) solid var(--color-ink); }
.text h2 { font-size: var(--text-section); }
.text-body { display: grid; gap: var(--space-sm); align-content: start; }
.text-body h3 { max-width: 60ch; margin-top: var(--space-sm); }
.text-body h3:first-child { margin-top: 0; }
.text-body ul, .text-body ol { display: grid; gap: var(--space-2xs); max-width: 65ch; margin: 0; padding-left: 1.25em; }
.text-body a { text-decoration-color: var(--color-rule-2); }
.text-body a:hover { color: var(--color-accent-strong); text-decoration-color: currentColor; }
main > :last-child { margin-bottom: var(--section-gap-s); }

.foot { background: var(--color-bar); color: var(--color-bar-ink); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-xl); }
.foot ul { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); list-style: none; margin: 0; padding: 0; }
.foot a { color: var(--color-bar-ink-2); }
.foot a:hover { color: var(--color-bar-ink); }
.foot :focus-visible { outline-color: var(--color-bar-focus); }
.foot-brand { margin: 0; }
.foot-line { width: 100%; color: var(--color-bar-ink-2); font-size: var(--text-sm); }

@media (max-width: 75rem) {
  .size { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gauge-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ilow ihigh" "setup setup" "ans ans" "pend pend"; column-gap: var(--space-sm); align-items: stretch; }
  .gauge-body > .g-answer { margin-top: var(--space-md); }
  .figures dd { font-size: var(--text-5xl); }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 60rem) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }  /* the button keeps its name */
  .theme-toggle { width: 40px; justify-content: center; padding: 0; }
  .pt, .text { grid-template-columns: minmax(0, 1fr); }
  .size { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "inputs" "band" "plate" "cta" "pend"; grid-template-rows: none; }
  .g-setup { margin-top: var(--space-md); justify-content: start; }
}
@media (max-width: 48rem) {
  .gauge-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ilow" "ihigh" "setup" "ans" "pend"; }
  .gauge-body > .side.is-high { margin-top: var(--space-sm); }
}
@media (max-width: 40rem) {
  main { padding-top: var(--space-md); }
  main > .tool.gauge { margin-top: var(--space-md); }
  .jump { flex: 1 1 auto; padding: 0 var(--space-md); }
  .intro h1 { font-size: var(--text-2xl); }
  .tool { gap: var(--space-md); }
  .size { grid-template-columns: minmax(0, 1fr); }
  .topbar .wordmark { width: 196px; min-width: 0; }
  /* below 390 px the wordmark gives way, so the menu and the theme switch keep their full 40 px targets */
  .topbar .brand { min-width: 0; }
  .topbar .nav, .theme-toggle { flex: none; }
  .topbar-in { gap: var(--space-xs); }
  .gauge .tool-head .pills { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; }
  .gauge .tool-head .pills span { padding: 0 var(--space-2xs); }
  .figures dd { font-size: var(--text-4xl); }
  .gauge-body > .side.is-high { margin-top: var(--space-xs); }
  /* phone tag: the saturation reads under the dial like its display, so both hoses' fields fit the first screen */
  .side { grid-template-columns: minmax(0, 1fr) 118px; grid-template-areas: "legend legend" "fields dial" "fields sat"; align-items: start; gap: var(--space-2xs) var(--space-sm); padding: var(--space-sm); }
  .side .side-fields { gap: var(--space-xs); }
  .side .field { gap: 0; }
  .side .field label { line-height: 1.25; padding-bottom: var(--space-2xs); }
  .side .sat { display: grid; justify-items: center; padding-top: 0; border-top: 0; font-size: var(--text-sm); line-height: 1.25; }
  .side legend, .field label, .figures dt { font-size: var(--text-md); }
  .g-answer { padding: var(--space-md); }
  .ex, .g-note { font-size: var(--text-sm); }
  .pills span { min-height: 40px; }
  .s-inputs { grid-template-columns: minmax(0, 1fr); }
  .size-figure { font-size: var(--text-4xl); }
  .s-cta .btn-primary { width: 100%; }
  .s-cta { justify-self: stretch; }
  .groups { grid-template-columns: minmax(0, 1fr); }
  .pt-table { padding-inline: var(--space-md); }
  .pt-table > summary { display: flex; }
}
@media (max-width: 22.5rem) {
  .figures dd { font-size: var(--text-3xl); }
  .gauge .tool-head .pills span { padding: 0; font-size: 0.8125rem; }
}
@media print { .topbar, .foot, .all, .type-bar { display: none; } }
