/* Hallmark · shape: Workbench · genre: modern-minimal · theme: Formwork (deal 1/3, seed rebar-weight-steel-reinforcement-64d1·ccfafa20·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the four inputs and the plate that answers · nav: edge-aligned, the wordmark and three links · footer: a ruled note over the credit lines · imagery: none, the answer cast as a plate · signature: the total weight on a pale plate with a hard shadow · formwork: concrete, no grain
 * axes: mid/display-condensed/warm · posture: restrained · copy: verbatim · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one calculator and its table; the plate carries the look */
/* Hallmark · waive 77 · every page · a calculator, its table and a page on where the figures come from, not a landing strip */
/* Hallmark · waive 44c · every page · the plate stands beside the inputs it answers; on the other pages the head stands over its table */
/* Hallmark · waive 79 · the calculator · the space under the plate is the margin before the footer */
: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(74% 0.008 80); --color-paper-2: oklch(69% 0.009 80); --color-paper-3: oklch(64% 0.01 80);
  --color-plate: oklch(82% 0.007 80); --color-plate-ink: oklch(95% 0.006 80);
  --color-ink: oklch(18% 0.005 270); --color-ink-2: oklch(28% 0.006 80); --color-muted: oklch(31.5% 0.008 80);
  --color-rule: oklch(64% 0.01 80);
  --color-accent: oklch(66% 0.21 38); --color-accent-ink: oklch(18% 0.005 270); --color-focus: oklch(42% 0.15 38);
  --color-accent-deep: oklch(48% 0.17 38);
  --texture-opacity: 0.05;
  --font-display: "Oswald", ui-sans-serif, sans-serif; --font-body: "Archivo", ui-sans-serif, sans-serif;
  --font-outlier: "Archivo Narrow", ui-sans-serif, sans-serif;
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --rule-bar: 3px;
  --shadow-card: 6px 6px 0 var(--color-ink);
  --tracking-display: -0.005em; --display-weight: 700;
}

*, *::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; }
[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: natural sat=-100 con=35 exp=8 */
[data-slot] > img { filter: saturate(0) contrast(1.35) brightness(1.08); }

@font-face { font-family: "Oswald"; src: url("/fonts/oswald-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); }
h1, h2 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; color: var(--color-ink); line-height: 1.02; overflow-wrap: break-word; min-width: 0; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); text-decoration-color: var(--color-accent-deep); text-decoration-thickness: 2px; }
a:hover { color: var(--color-focus); }

.bar { border-bottom: 3px solid var(--color-ink); }
.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-2xl); text-transform: uppercase; color: var(--color-ink); text-decoration: none; line-height: 1; }
.wordmark span { color: var(--color-accent-deep); }
.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-weight: 500; color: var(--color-ink); }
.bar__nav a:active { transform: translateY(1px); }
.bar__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-ink); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }

.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero h1 { font-size: clamp(3rem, 7vw, 6rem); max-width: 12ch; }
.hero .lead { margin-top: var(--space-sm); font-size: var(--text-lead); color: var(--color-ink); max-width: 44ch; }

.calc { margin-top: var(--space-xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.calc__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); align-content: start; }
.field { display: grid; gap: var(--space-3xs); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); }
.field input, .field select { font: inherit; font-size: var(--text-xl); color: var(--color-ink); height: 52px; width: 100%; padding: 0 var(--space-sm); border: 2px solid var(--color-ink); border-radius: 0; background: var(--color-plate); box-sizing: border-box; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.field input:disabled, .field select:disabled { opacity: 0.5; cursor: not-allowed; }

/* the plate: the total, cast */
.plate { padding: var(--space-xl); background: var(--color-plate); border: 2px solid var(--color-ink); box-shadow: var(--shadow-card); display: grid; gap: var(--space-2xs); }
.plate__k { margin: 0; font-size: var(--text-sm); color: var(--color-ink-2); }
.plate__v { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 6.5vw, 5rem); line-height: 1; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.plate__l { margin: var(--space-xs) 0 0; color: var(--color-ink); }
.plate__c { margin: 0; font-weight: 500; color: var(--color-ink); }

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); max-width: 16ch; }
.head .lead { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-ink); max-width: 56ch; }

.sec { padding-block: var(--section-gap-s); border-top: 3px solid var(--color-ink); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }

.t-wrap { overflow-x: auto; }
.t { border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--color-plate); }
.t caption a { white-space: nowrap; }
.t caption { text-align: left; caption-side: top; padding-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink); }
.t th, .t td { text-align: right; padding: var(--space-xs) var(--space-md); border-bottom: 1px solid var(--color-paper-3); white-space: nowrap; color: var(--color-ink); }
.t thead th { border-bottom: 2px solid var(--color-ink); font-weight: 500; }
.t tbody th { text-align: left; font-weight: 500; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 66ch; }
.steps li { padding: var(--space-sm) var(--space-md); background: var(--color-plate); border: 2px solid var(--color-ink); color: var(--color-ink); }
.steps b { font-weight: 500; }

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

@media (max-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero { padding-top: var(--space-xl); }
  .plate { padding: var(--space-lg); }
  /* the sizes table: one card a size, each figure labelled with its column (the table hid the right-hand columns off the side) */
  .t-wrap { overflow-x: visible; }
  .t { display: block; background: none; }
  .t caption { display: block; }
  .t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .t thead tr, .t thead th, .t thead td { display: block; } /* the hidden header row stacks inside its 1px box: no header cell lies off the side */
  .t tbody { display: grid; gap: var(--space-xs); }
  .t tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs) var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--color-plate); border: 2px solid var(--color-ink); }
  .t tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .t tbody td { display: grid; align-content: start; padding: 0; border: 0; text-align: left; white-space: normal; }
  .t tbody td::before { content: attr(data-label); font-size: var(--text-sm); color: var(--color-ink-2); }
}

/* ---- the expansion (#967): menu, crumbs, marks, the index, pairs of tables, the cutting list, the codes, the register, print ---- */
.bar__menu { display: none; min-height: 44px; align-items: center; padding: 0 var(--space-md); border: 2px solid var(--color-ink); background: var(--color-plate); color: var(--color-ink); font-weight: 500; text-decoration: none; }
.bar__menu:active { transform: translateY(1px); }
.crumbs ol { list-style: none; margin: 0 0 var(--space-md); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); font-size: var(--text-sm); color: var(--color-ink); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-ink-2); }
.crumbs a { min-height: 32px; display: inline-flex; align-items: center; }
.ref { font-size: var(--text-xs); font-weight: 500; color: var(--color-ink-2); text-decoration-thickness: 1px; white-space: nowrap; }
.sec__in > :not(h2) + * { margin-top: var(--space-lg); }
.sec__in > p:not([class]), .sec__in .steps li, .cut > p:not([class]) { font-size: clamp(var(--text-md), 1.39vw, var(--text-lg)); }
.note { font-size: var(--text-sm); color: var(--color-ink); max-width: 66ch; }
.btn { font: inherit; font-weight: 500; min-height: 44px; padding: 0 var(--space-md); border: 2px solid var(--color-ink); border-radius: 0; background: var(--color-plate); color: var(--color-ink); cursor: pointer; }
.btn:hover { background: var(--color-plate-ink); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
ol.steps { counter-reset: step; }
ol.steps li { counter-increment: step; }
ol.steps li::before { content: counter(step) ". "; font-weight: 500; }

.index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl); }
.index__col { border-top: 3px solid var(--color-ink); padding-top: var(--space-md); display: grid; gap: var(--space-sm); align-content: start; }
.index__col h3 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: var(--text-xl); color: var(--color-ink); }
.index__col ul { list-style: none; margin: 0; padding: 0; }
.index__col li a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); }
.index__sizes { display: flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; }
.index__sizes a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--color-ink); background: var(--color-plate); color: var(--color-ink); font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.index__sizes a:hover { background: var(--color-plate-ink); }
.index__sizes span { margin-left: var(--space-2xs); color: var(--color-ink); }
@media (max-width: 1100px) { .index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pair { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--space-xl); align-items: start; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); font-weight: 500; }
.pager a { min-height: 44px; display: inline-flex; align-items: center; }
.t--dense th, .t--dense td { padding: var(--space-2xs) var(--space-sm); }
.t--plain { background: none; }

.cut { display: grid; gap: var(--space-lg); }
.cut > p { max-width: 66ch; color: var(--color-ink); }
.cut__rows { display: grid; gap: var(--space-sm); }
.cut__row { margin: 0; min-width: 0; padding: var(--space-sm) var(--space-md); border: 2px solid var(--color-ink); background: var(--color-paper-2); display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr 1.6fr; gap: var(--space-sm); align-items: end; }
.cut__row .field input, .cut__row .field select { font-size: var(--text-lg); height: 44px; }
.cut__kg { margin: 0; padding-bottom: var(--space-xs); font-weight: 500; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.cut__rate { max-width: 20rem; }
.cut .plate { max-width: 44rem; }

.codes { list-style: none; margin: 0; padding: 0; display: grid; max-width: 76ch; }
.codes__row { display: grid; gap: var(--space-2xs); padding-block: var(--space-lg); border-top: 1px solid var(--color-ink); }
.codes__n a { color: var(--color-ink); }
.codes__n { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); color: var(--color-ink); }
.codes__t { color: var(--color-ink); }
.codes__m { font-size: var(--text-sm); color: var(--color-ink); }

.register { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-xl); max-width: 68ch; }
.register__claim { margin: 0; font-weight: 500; color: var(--color-ink); }
.register blockquote { margin: var(--space-xs) 0 0; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-ink); background: var(--color-plate); }
.register blockquote p { margin: 0; overflow-wrap: anywhere; color: var(--color-ink); }
.register__src { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-ink); max-width: 64ch; }

.foot__in { padding-block: var(--space-2xl) var(--space-3xl); }
.foot__links { list-style: none; margin: 0 0 var(--space-xs); padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.foot__links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }

@media (max-width: 860px) {
  .bar__menu { display: inline-flex; }
  .bar__nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: var(--space-xs); }
  .bar__nav:target, .bar__nav[data-open] { display: flex; }
  .bar__nav a { border-top: 1px solid var(--color-rule); }
  .cut__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cut__row .field:first-of-type, .cut__kg { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .index { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  /* narrow tables (four columns or fewer) stay tables on a phone: they fit, and a card a row only makes them long */
  .t.t--keep { display: table; background: var(--color-plate); }
  .t.t--keep caption { display: table-caption; }
  .t--keep thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .t--keep thead tr { display: table-row; }
  .t--keep thead th, .t--keep thead td { display: table-cell; padding: var(--space-xs); white-space: normal; }
  .t--keep tbody { display: table-row-group; }
  .t--keep tbody tr { display: table-row; padding: 0; background: none; border: 0; }
  .t--keep tbody th { padding: var(--space-xs); border-bottom: 1px solid var(--color-paper-3); }
  .t--keep tbody td { display: table-cell; padding: var(--space-xs); border-bottom: 1px solid var(--color-paper-3); text-align: right; white-space: nowrap; }
  .t--keep tbody td::before { content: none; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  .skip, .bar__nav, .bar__menu, .foot, .print-hide, .crumbs { display: none !important; }
  main:has(.t--chart) > .sec:not(.sec--first) { display: none; }
  body { background: none; font-size: 10pt; }
  .head { padding-block: 0 4mm; }
  .head h1 { font-size: 22pt; }
  .head .lead { font-size: 10pt; }
  .sec { padding-block: 4mm; border-top-width: 1px; }
  .t-wrap { overflow: visible; }
  .t { font-size: 9pt; background: none; }
  .t th, .t td { padding: 1.2mm 2.5mm; }
}
