/* House and Yard Math: look A, "job site". Written fresh from the identity sheet and LAYOUT_RULES.
   Square corners, 2px borders, the tape strip, chalk lines and the hazard band. Every colour is a variable on :root,
   redefined for dark mode. Sizes in rem/em; px only for borders, shadows and the 16px input floor. */

@font-face {
  font-family: "Archivo";
  src: url("/belt/archivo/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --blacktop: #1f2421;
  --blacktop-low: #2b312d;
  --on-blacktop: #f4f6ef;
  --on-blacktop-dim: #c8cfc3;
  --hivis: #d2ef2f;
  --on-hivis: #1a1d1b;
  --concrete: #e9ebe6;
  --slab: #f6f7f3;
  --board: #ffffff;
  --tar: #1a1d1b;
  --dust: #4a504b;
  --chalk: #c9cec6;
  --rebar: #3f5a00;
  --hivis-wash: #eef7c4;
  --form-edge: #6b726c;
  --sound: #2b6a2e;
  --heed: #8c5300;
  --hazard: #a8261c;
  --face-wide: "Archivo", "Arial Nova", Arial, sans-serif;
  --face-plain: "Archivo", "Arial Nova", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blacktop: #0b0d0c;
    --blacktop-low: #191d1a;
    --concrete: #0f1110;
    --slab: #161917;
    --board: #1d211e;
    --tar: #eef1ea;
    --dust: #b1b8af;
    --chalk: #343a35;
    --rebar: #d2ef2f;
    --hivis-wash: #2a3312;
    --form-edge: #8b938a;
    --sound: #8fd49a;
    --heed: #f0bd62;
    --hazard: #ff9a8c;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--tar);
  font-family: var(--face-plain);
  font-size: 1.15625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 48em) { body { font-size: 1.21875rem; } }
h1, h2, h3 { font-family: var(--face-wide); font-weight: 800; font-stretch: 125%; line-height: 1.15; overflow-wrap: break-word; margin: 0; }
/* no word left alone on a heading's last line (visual fix, 19 Nov 2026, review N3): headings, the site name, fold-out
   titles, the key-figure lines, the cookie box title, door names and side-column links share their lines out evenly */
h1, h2, h3, legend, summary, .jobhead-name, .jobhead-tag, .gatepass-title, .jobdoor-name, .leanto-plate a, .jumpto-here a { text-wrap: balance; }
/* the key-figure lines run up to six lines on a phone, past where balance works: no lone last word there either */
.bythebook-figure { text-wrap: pretty; }
h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: 1.375em; margin-top: 2rem; }
h3 { font-size: 1.0625em; font-stretch: 112%; margin-top: 1.5rem; }
p, ul, ol, dl { margin: 0.75rem 0 0; }
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--rebar); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--rebar); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
small, .small-print { font-size: 0.875em; }
.unseen { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.jumpgate { position: absolute; left: -999rem; top: 0; background: var(--hivis); color: var(--on-hivis); padding: 0.75rem 1rem; font-weight: 800; z-index: 20; }
.jumpgate:focus { left: 1rem; }
.offlot { width: 0.85em; height: 0.85em; margin-left: 0.2em; vertical-align: -0.05em; }
.offlot-tie { white-space: nowrap; }   /* the outside-link icon stays with the link's last word (review N5) */
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- header: blacktop band, nav strip, tape strip */
.jobhead { background: var(--blacktop); color: var(--on-blacktop); }
/* the sheet: 65.5rem = a 39.5rem main column (54ch of prose plus at most 2rem, 27a) + 2rem gap + a 20rem lean-to + gutters */
.jobhead-row, .crewnav-row, .curb-grid, .curb-base, .slab-sheet, .myzip-row {
  max-width: 65.5rem;
  margin-inline: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}
@media (min-width: 48em) {
  .jobhead-row, .crewnav-row, .curb-grid, .curb-base, .slab-sheet, .myzip-row {
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
  }
}
.jobhead-row { padding-block: 0.875rem; }
.jobhead-home { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; min-width: 0; }
.jobhead-mark { width: 3rem; height: 3rem; flex: none; }
.jobhead-words { min-width: 0; display: flex; flex-direction: column; }
.jobhead-name { font-family: var(--face-wide); font-weight: 800; font-stretch: 112%; font-size: 1.75rem; line-height: 1.05; overflow-wrap: break-word; }
.jobhead-tag { color: var(--on-blacktop-dim); margin-top: 0.25rem; line-height: 1.35; }
@media (min-width: 48em) {
  .jobhead-mark { width: 4rem; height: 4rem; }
  .jobhead-name { font-size: 2.625rem; font-stretch: 125%; }
  .jobhead-home { gap: 1rem; }
}
/* the menu (visual fix, 19 Nov 2026, review M1, N1 and N4): the links wrap onto a second row on phones, so none is
   ever cut or scrolled out of view, and there is no "More" tab (27b: at most 2 rows, links at body size). Each row
   starts at the sheet's edge (the list is pulled left by one link's padding). The current page: its words in hi-vis and
   a 4px hi-vis bar under them, with a band of the nav colour between the bar and the tape strip */
.crewnav { background: var(--blacktop-low); }
.crewnav-row { display: flex; align-items: stretch; }
.crewnav ul { list-style: none; margin: 0 0 0 -0.75rem; padding: 0; display: flex; flex-wrap: wrap; flex: 1; min-width: 0; }
.crewnav li { margin: 0; }
.crewnav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.75rem; color: var(--on-blacktop); text-decoration: none; font-weight: 600; }
.crewnav a:hover { text-decoration: underline; }
.crewnav a[aria-current="page"] { color: var(--hivis); }
.crewnav a[aria-current="page"]::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.3125rem; height: 0.25rem; background: var(--hivis); }
.tapeline {
  height: 0.875rem;
  background:
    repeating-linear-gradient(90deg, var(--blacktop) 0 2px, transparent 2px 1rem) 0 0 / 100% 45% no-repeat,
    repeating-linear-gradient(90deg, var(--blacktop) 0 3px, transparent 3px 4rem) 0 0 / 100% 100% no-repeat,
    var(--hivis);
}

/* the visitor's ZIP, once known */
.myzip { background: var(--board); border-bottom: 2px solid var(--chalk); }
.myzip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; min-height: 2.75rem; }
.myzip-row button { background: none; border: 0; padding: 0 0.25rem; min-height: 2.75rem; color: var(--rebar); text-decoration: underline; text-decoration-thickness: 2px; cursor: pointer; font-weight: 600; }
.myzip-row input { width: min(8rem, 100%); }

/* ---------------------------------------------------------------- the page: concrete lot, lighter slab sheet, lean-to */
.lot { background: var(--concrete); }
.slab-sheet { background: var(--slab); padding-block: 1.25rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.slab-sheet > * { min-width: 0; }
main { min-width: 0; }
main > *:first-child { margin-top: 0; }
.leanto { display: none; }
@media (min-width: 64em) {
  .slab-sheet { grid-template-columns: minmax(0, 39.5rem) minmax(0, 20rem); justify-content: space-between; column-gap: 2rem; padding-block: 2rem 3.5rem; }
  /* the lean-to stays in view near the top while it fits the window (27a, 27c). Taller than the window (DECISIONS 60,
     18 Nov): no scroll bar of its own; it scrolls with the page until its last plate is in view, then holds there
     (lunchbox.js marks it data-tall from its height) */
  .leanto { display: grid; gap: 1.25rem; align-content: start; align-self: start; position: sticky; top: 1rem; }
  .leanto[data-tall] { align-self: end; top: auto; bottom: 1rem; }
}
.pathmark { margin: 0 0 0.75rem; font-size: 0.875em; color: var(--dust); }
.pathmark ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.5rem; }
.pathmark li { display: inline-flex; align-items: center; gap: 0.5rem; }
.pathmark li + li::before { content: "\2192"; color: var(--dust); }
.pathmark a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--rebar); }
.grademark { display: flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0 0; font-weight: 800; }
.grademark-tick { width: 1.5rem; height: 1.5rem; flex: none; }
.answerline { margin-top: 0.75rem; }
.notepad ul { padding-left: 1.25rem; }
.notepad li + li { margin-top: 0.375rem; }
/* prose lines 60-75 characters (LAYOUT_RULES 2; Archivo's letters are narrow, so 54ch gives about 68 on average) */
.answerline, .notepad p, .notepad li, .plainqs p, .revblock-item p, .onyoursite > p, .papertrail > p, .papertrail-list li,
.bythebook-how p, .hazardbox-body p, .signoff p, .howmade p, .keptbox-old p, .takeoff-note p, .sendrow-note,
.jobdoors-covers, .revblock-none { max-width: 54ch; }

/* ---------------------------------------------------------------- source labels */
/* 16px at least wherever they sit, small print included (identity sheet: small print never under 16px; review N12) */
.inspect-tag {
  display: inline-block; white-space: nowrap; font-size: max(1rem, 0.875em); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.3; padding: 0 0.375rem; border: 2px solid currentColor; vertical-align: 0.05em;
}
.inspect-tag.inspect-official { color: var(--tar); }
.inspect-tag.inspect-other { color: var(--dust); }
/* "Our choice" isn't a warning (review N6): text colour with a dashed edge, the chalk line, apart from Official's solid
   edge; only "Unconfirmed" is in the caution colour */
.inspect-tag.inspect-choice { color: var(--tar); border-style: dashed; }
.inspect-tag.inspect-unconfirmed { color: var(--heed); }

/* ---------------------------------------------------------------- the rig (tool box) */
.rig { background: var(--board); border: 2px solid var(--tar); padding: 1.125rem 1rem 1.25rem; margin-top: 1.25rem; container-type: inline-size; container-name: rig; }
@media (min-width: 48em) { .rig { padding: 1.5rem; } }
.rig-title { font-size: 1.125em; font-stretch: 112%; margin: 0 0 1rem; }
.rig fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rig legend, .rig-label { display: block; font-weight: 700; line-height: 1.3; padding: 0; margin-bottom: 0.375rem; }
.rig-label span, .rig legend span { font-weight: 400; color: var(--dust); }
.rig .rig-step { margin-top: 1.5rem; }
.rig form > .rig-step:first-child { margin-top: 0; }
.rig-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1rem; }
.rig-field { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0.25rem; min-width: 0; align-content: start; }
.rig-grid > .rig-where, .rig-grid > .rig-typical { margin-top: -0.5rem; }
.rig-field > label, .rig-field > .rig-label { align-self: end; }
.rig-full { grid-column: 1 / -1; }
@container rig (min-width: 26rem) { .rig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rig-in {
  font-size: max(1em, 16px); width: 100%; min-height: 2.75rem; padding: 0.375rem 0.625rem;
  border: 2px solid var(--form-edge); border-radius: 0; background: var(--board); color: var(--tar);
  -webkit-appearance: none; appearance: none;
}
.rig-in[aria-invalid="true"] { border-color: var(--hazard); }
.rig-where, .rig-typical, .rig-say { font-size: 0.875em; color: var(--dust); margin: 0.25rem 0 0.5rem; }
/* a message line: the stop icon at the start of its words (trowel.js writes both; visual fix, review N11). The icon
   sits in the line, not in a column of its own, so a message is no taller than before (at 150% text on a phone the
   safety box must still start on screen under it). Its first words link to the box it's about */
.rig-say { color: var(--hazard); font-weight: 700; }
.rig-say:empty { display: none; }
.rig-say > svg { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.18em; margin-right: 0.3em; }
.rig-say a { color: inherit; }
/* a refusal (metal panels; tile, slate, wood or flat): a stop line, under the covering pick as soon as it's pressed and
   by the button (visual fix, 19 Nov 2026, review M3), drawn like a small stop panel: red edge and icon, plain words,
   the first sentence bold */
.rig-say.rig-stopline { color: var(--tar); font-weight: 400; border: 2px solid var(--hazard); background: var(--board); padding: 0.625rem 0.75rem; margin: 0.75rem 0 0;
  display: flex; gap: 0.5rem; align-items: flex-start; }
.rig-say.rig-stopline:empty { display: none; }
.rig-say.rig-stopline > svg { color: var(--hazard); width: 1.5rem; height: 1.5rem; flex: none; margin: 0.05em 0 0; }
.rig-say.rig-stopline > span { min-width: 0; }
.rig-go + .rig-say.rig-stopline, .rig-say.rig-stopline + .rig-go { margin-top: 1rem; }
/* in a frame on another site the page is brought round with scrollIntoView: keep the same 16px edge as on the page */
[data-takeoff="answer"], [data-takeoff="rig-say"], [data-takeoff="cover-stop"] { scroll-margin: 16px 0; }
.rig-typical b { color: var(--tar); }
.rig-check { display: flex; align-items: flex-start; gap: 0.625rem; min-height: 2.75rem; padding-block: 0.5rem; cursor: pointer; }
.rig-check input { width: 1.375rem; height: 1.375rem; margin: 0.15em 0 0; flex: none; accent-color: var(--tar); }

/* choices as square pick buttons */
.pickrow { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.pickrow button {
  font-weight: 700; min-height: 2.75rem; padding: 0.25rem 0.875rem; border: 2px solid var(--form-edge);
  background: var(--board); color: var(--tar); cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; line-height: 1.25; text-align: left;
}
.pickrow button svg { width: 1.75rem; height: 1.75rem; flex: none; }
.pickrow button[aria-pressed="true"] { background: var(--tar); color: var(--board); border-color: var(--tar); }
.pickrow button[aria-pressed="true"] svg { color: var(--hivis); }
/* dark mode: a chosen pick turns pale, so its drawing takes the pick's own dark text colour (review N13) */
@media (prefers-color-scheme: dark) { .pickrow button[aria-pressed="true"] svg { color: var(--board); } }
/* a row of picks never sits flush against the field after it (review N10) */
.rig-step > .pickrow + .rig-grid { margin-top: 1rem; }
.rig-grid > .rig-full > .pickrow { margin-bottom: 0.375rem; }

/* the visual pitch picker: one square per pitch, with its angle and multiplier from the pitch table */
.pitchrack { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 5.25rem), 1fr)); gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.pitchrack li { display: flex; min-width: 0; }
.pitchrack-pick {
  width: 100%; min-height: 2.75rem; padding: 0.375rem 0.25rem 0.375rem; border: 2px solid var(--form-edge); background: var(--board); color: var(--tar);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.125rem; line-height: 1.2;
}
.pitchrack-pick svg { width: 2.25rem; height: 1.5rem; color: var(--dust); }
.pitchrack-p { font-weight: 800; font-size: 1em; }
.pitchrack-deg, .pitchrack-x { font-size: 0.875em; color: var(--dust); white-space: nowrap; }
.pitchrack-pick[aria-pressed="true"] { background: var(--hivis); color: var(--on-hivis); border-color: var(--tar); box-shadow: inset 0 0 0 2px var(--tar); }
.pitchrack-pick[aria-pressed="true"] .pitchrack-deg, .pitchrack-pick[aria-pressed="true"] .pitchrack-x, .pitchrack-pick[aria-pressed="true"] svg { color: var(--on-hivis); }
.pitchrack-own { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem 1rem; margin-top: 0.75rem; }

/* sections of one roof */
.rig-sections { display: grid; gap: 1rem; }
.rig .rig-section { border: 2px dashed var(--chalk); padding: 0.875rem 0.75rem 1rem; }
.rig .rig-section > legend { font-family: var(--face-wide); font-stretch: 112%; font-weight: 800; padding: 0 0.375rem; margin-bottom: 0.25rem; }
.rig-section-acts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.rig-dormer { border-top: 2px dashed var(--chalk); margin-top: 0.75rem; padding-top: 0.5rem; }
.rig-plain {
  font-weight: 700; min-height: 2.75rem; padding: 0.25rem 1rem; background: var(--board); color: var(--tar);
  border: 2px solid var(--tar); cursor: pointer;
}
.rig-plain:hover { background: var(--hivis-wash); }
.rig-more { margin-top: 1.25rem; border-top: 2px solid var(--chalk); }
/* the + box sits by the title's first line when the title wraps (review N3) */
.rig-more > summary, .foldout > summary {
  cursor: pointer; font-weight: 800; padding-block: 0.625rem; min-height: 2.75rem; display: flex; align-items: baseline; gap: 0.5rem; list-style: none;
}
.rig-more > summary::-webkit-details-marker, .foldout > summary::-webkit-details-marker { display: none; }
.rig-more > summary::before, .foldout > summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 2px solid currentColor; font-weight: 800; flex: none; line-height: 1; }
.rig-more[open] > summary::before, .foldout[open] > summary::before { content: "\2212"; }
.rig-go {
  font-family: var(--face-wide); font-weight: 800; font-stretch: 112%; font-size: 1.0625em; margin-top: 1.25rem; min-height: 3rem; padding: 0.375rem 1.25rem;
  background: var(--hivis); color: var(--on-hivis); border: 2px solid var(--tar); box-shadow: 0.25rem 0.25rem 0 var(--tar); cursor: pointer; max-width: 100%;
}
.rig-go:active { transform: translate(0.125rem, 0.125rem); box-shadow: 0.125rem 0.125rem 0 var(--tar); }
@media (prefers-reduced-motion: reduce) { .rig-go:active { transform: none; } }

/* tests line and kept-on-device line under the tool */
.proofline { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.875em; color: var(--dust); }
.proofline svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.15em; color: var(--sound); }
.keptbox { margin-top: 0.5rem; font-size: 0.875em; color: var(--dust); display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.75rem; }
.keptbox-clear { background: none; border: 0; padding: 0; min-height: 2.75rem; color: var(--rebar); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; cursor: pointer; }
.keptbox-ask { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; cursor: pointer; }
.keptbox-ask input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--tar); }
.keptbox-old { border: 2px solid var(--tar); background: var(--board); padding: 0.75rem; color: var(--tar); }
.keptbox-old p { margin: 0 0 0.5rem; }

/* ---------------------------------------------------------------- safety box and the "past a calculator" stop */
.hazardbox { margin-top: 1.25rem; background: var(--board); border: 2px solid var(--tar); }
.hazardband { height: 0.625rem; background: repeating-linear-gradient(135deg, var(--hivis) 0 0.625rem, var(--blacktop) 0.625rem 1.25rem); }
.hazardbox-body { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.875rem 1rem; }
.hazardbox-body svg { width: 1.75rem; height: 1.75rem; flex: none; color: var(--heed); }
.hazardbox-body p { margin: 0; }
.signoff { margin-top: 1.25rem; border: 2px solid var(--hazard); background: var(--board); padding: 1rem; display: flex; gap: 0.75rem; align-items: flex-start; }
.signoff svg { width: 1.75rem; height: 1.75rem; flex: none; color: var(--hazard); }
.signoff p { margin: 0; }
.signoff p + p { margin-top: 0.5rem; }

/* ---------------------------------------------------------------- the result: "Your order list" */
.takeoff { margin-top: 1.25rem; background: var(--board); border: 2px solid var(--tar); container-type: inline-size; container-name: takeoff; }
.takeoff-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 0.75rem; background: var(--tar); color: var(--board); padding: 0.5rem 1rem; }
.takeoff-bar h2 { margin: 0; font-size: 1em; letter-spacing: 0.06em; text-transform: uppercase; }
.takeoff-tape { height: 0.5rem; background: repeating-linear-gradient(90deg, var(--blacktop) 0 2px, transparent 2px 1rem), var(--hivis); }
.takeoff-body { padding: 1rem; }
.takeoff-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.takeoff-tiles li { background: var(--hivis-wash); padding: 0.5rem 0.75rem 0.625rem; min-width: 0; margin: 0; }
.takeoff-tiles b { display: block; font-family: var(--face-wide); font-weight: 800; font-stretch: 112%; font-size: clamp(1.25rem, 5vw, 1.625rem); line-height: 1.15; overflow-wrap: break-word; }
/* each tile is a figure, then what it counts, set close (review N7: the labels looked double-spaced) */
.takeoff-tiles span { display: block; margin-top: 0.25rem; font-size: 0.875em; line-height: 1.3; color: var(--dust); }
/* the whole roof below the shingle minimum (visual fix, 19 Nov 2026, review M2): the stop is said once, here at the
   top of the list, with the stop icon; the lines it leaves out just say "not counted" */
.takeoff-stopline { display: flex; gap: 0.75rem; align-items: flex-start; border: 2px solid var(--hazard); background: var(--board); padding: 0.75rem; margin: 0 0 1rem; }
.takeoff-stopline svg { width: 1.75rem; height: 1.75rem; flex: none; color: var(--hazard); }
.takeoff-stopline p { margin: 0; }
.takeoff-rows { list-style: none; margin: 1rem 0 0; padding: 0; }
.takeoff-rows > li { padding-block: 0.625rem; border-bottom: 2px dashed var(--chalk); margin: 0; }
.takeoff-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; align-items: baseline; }
.takeoff-line > * { min-width: 0; }
.takeoff-what { font-weight: 700; }
.takeoff-what small { display: block; font-weight: 400; color: var(--dust); font-size: 0.875em; }
.takeoff-qty { font-family: var(--face-wide); font-weight: 800; font-stretch: 112%; text-align: right; }
/* a line waiting for a figure nobody has typed yet is ordinary (soft text, review N8); a typed figure we couldn't use
   keeps the caution colour and icon */
.takeoff-ask { color: var(--dust); font-size: 0.875em; margin: 0.25rem 0 0; }
.takeoff-ask.takeoff-ask-check { color: var(--heed); font-weight: 700; display: flex; gap: 0.5rem; align-items: flex-start; }
.takeoff-ask-check > svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.1em; }
.takeoff-qty.takeoff-qty-wait { color: var(--dust); font-family: var(--face-plain); font-stretch: 100%; font-weight: 700; }
.takeoff-qty.takeoff-qty-check { color: var(--heed); }
.takeoff-stop { color: var(--dust); font-size: 0.875em; margin: 0.25rem 0 0; }
.takeoff-price { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin-top: 0.375rem; font-size: 0.875em; color: var(--dust); }
.takeoff-price label { display: flex; align-items: center; gap: 0.5rem; }
.takeoff-price input { width: min(7rem, 100%); }
.takeoff-cost { font-weight: 700; color: var(--tar); }
.takeoff-price .rig-say { flex-basis: 100%; margin: 0; }   /* "Check this price" (Stage 7 fix): under its own box */
.takeoff-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding-block: 0.75rem; border-bottom: 2px solid var(--tar); font-weight: 800; }
.takeoff-note { margin-top: 0.75rem; font-size: 0.875em; color: var(--dust); }
.takeoff-note p { margin: 0.375rem 0 0; }
.takeoff-note .takeoff-warn { color: var(--heed); font-weight: 700; }
.takeoff-acts { margin-top: 1rem; }
.sendrow { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sendrow > button, .sendrow > a {
  font-weight: 700; min-height: 2.75rem; padding: 0.25rem 1rem; background: var(--board); color: var(--tar); border: 2px solid var(--tar);
  cursor: pointer; display: inline-flex; align-items: center; text-decoration: none;
}
.sendrow > button:hover, .sendrow > a:hover { background: var(--hivis-wash); }
@media (pointer: coarse) { .only-mouse { display: none !important; } }
@media not (pointer: coarse) { .only-touch { display: none !important; } }
.sendrow-note { font-size: 0.875em; color: var(--dust); margin: 0.5rem 0 0; }
.saidso { font-size: 0.875em; font-weight: 700; color: var(--sound); margin: 0.375rem 0 0; min-height: 1.5em; }
.linkbox { width: 100%; margin-top: 0.5rem; }
.takeoff-working { margin-top: 1rem; }
.takeoff-working h3 { margin-top: 1rem; }
.takeoff-working ul { padding-left: 1.25rem; font-size: 0.875em; }
.takeoff-print-only { display: none; }

/* tables: blacktop header row, chalk-line rows, each in its own scroll box; cards by the space the table has (27f) */
.schedule-wrap { overflow-x: auto; max-width: 100%; margin-top: 0.75rem; container-type: inline-size; container-name: schedule; }
.schedule { border-collapse: collapse; width: 100%; min-width: min(20rem, 100%); }
.schedule th, .schedule td { text-align: left; padding: 0.375rem 0.625rem; border-bottom: 2px dashed var(--chalk); vertical-align: top; overflow-wrap: break-word; }
.schedule thead th { background: var(--tar); color: var(--board); font-weight: 800; border-bottom: 0; white-space: nowrap; }
.schedule td.schedule-num { text-align: right; }
@container schedule (max-width: 40rem) {
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .schedule, .schedule tbody, .schedule tr, .schedule td { display: block; width: 100%; }
  .schedule tr { border: 2px solid var(--tar); margin-bottom: 0.5rem; background: var(--board); }
  /* the heading and the value in two set columns, so every value lines up under the one above (review N6) */
  .schedule td { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); align-items: baseline; gap: 0 0.75rem; border-bottom: 2px dashed var(--chalk); text-align: left; }
  .schedule td.schedule-num { text-align: left; }
  .schedule td::before { content: attr(data-th); font-weight: 700; color: var(--dust); }
  .schedule td:last-child { border-bottom: 0; }
  /* a table whose first column is a label tag: the tag heads its own card, without the word "Label" before it */
  .schedule-tagged td:first-child { grid-template-columns: minmax(0, 1fr); justify-items: start; background: var(--hivis-wash); }
  .schedule-tagged td:first-child::before { content: none; }
}
@container schedule (max-width: 20rem) {
  .schedule td { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- key figures: "By the book" */
.bythebook { margin-top: 1.25rem; background: var(--board); border: 2px solid var(--tar); container-type: inline-size; container-name: plate; }
.bythebook > h2, .bythebook > h3 { margin: 0; background: var(--tar); color: var(--board); font-size: 0.875em; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.375rem 0.75rem; font-stretch: 112%; }
.bythebook-list { list-style: none; margin: 0; padding: 0 0.75rem; }
.bythebook-row { padding-block: 0.75rem; border-bottom: 2px dashed var(--chalk); margin: 0; }
.bythebook-row:last-child { border-bottom: 0; }
.bythebook-figure { font-weight: 800; margin: 0; }
/* every row of a figure's details is laid out the same way (visual fix, review N5): on a narrow plate the label runs
   in at the start of its line, like a heading, and its words follow; on a wider one the labels make a column of their
   own and every value starts at the same place */
.bythebook-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.125rem 0; margin: 0.375rem 0 0; font-size: 0.875em; }
.bythebook-meta div { display: block; }
.bythebook-meta dt { display: inline; color: var(--dust); font-weight: 700; margin-right: 0.5em; }
.bythebook-meta dd { display: inline; margin: 0; }
@container plate (min-width: 30rem) {
  .bythebook-meta { grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); column-gap: 1rem; row-gap: 0.25rem; }
  .bythebook-meta div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
  .bythebook-meta dt, .bythebook-meta dd { display: block; margin: 0; }
}
/* "Copy" and its "Copied" line share one row, so the fold-out sits straight under the button (review N5) */
.bythebook-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin-top: 0.5rem; }
.bythebook-acts .saidso { margin: 0; min-height: 0; flex: 1 1 12rem; }
.bythebook-copy { font-weight: 700; min-height: 2.75rem; padding: 0.25rem 1rem; background: var(--board); color: var(--tar); border: 2px solid var(--tar); cursor: pointer; }
.bythebook-how { margin-top: 0.25rem; font-size: 0.875em; }
.bythebook-how > summary { min-height: 2.75rem; }
.bythebook-how blockquote { margin: 0.5rem 0 0; padding-left: 0.75rem; border-left: 4px solid var(--rebar); }
.bythebook-how blockquote p { margin: 0; max-width: 54ch; }
.bythebook-how .bythebook-from { color: var(--dust); margin-top: 0.125rem; }
.papertrail { margin-top: 2rem; border-top: 2px solid var(--chalk); }
.papertrail > p { font-size: 0.875em; color: var(--dust); }
.papertrail-list { list-style: none; margin: 0.5rem 0 0; padding: 0; font-size: 0.875em; }
.papertrail-list li { padding-block: 0.5rem; border-bottom: 2px dashed var(--chalk); margin: 0; }
.papertrail-list li:last-child { border-bottom: 0; }
.bythebook-mini dl { margin: 0; padding: 0.25rem 0.75rem 0.5rem; }
/* the figure always at the right of its row, the words wrapping beside it (review N14) */
.bythebook-mini dl div { display: grid; grid-template-columns: minmax(min-content, 1fr) auto; align-items: baseline; gap: 0 0.75rem; padding-block: 0.375rem; border-bottom: 2px dashed var(--chalk); }
.bythebook-mini dl div:last-child { border-bottom: 0; }
.bythebook-mini dt { color: var(--dust); }
.bythebook-mini dd { margin: 0; font-weight: 800; text-align: right; }
.bythebook-mini p { margin: 0; padding: 0 0.75rem 0.75rem; font-size: 0.875em; color: var(--dust); }

/* ---------------------------------------------------------------- lean-to (side column) */
.leanto-plate { background: var(--board); border: 2px solid var(--tar); }
.leanto-plate > h2 { margin: 0; background: var(--tar); color: var(--board); font-size: 0.875em; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.375rem 0.75rem; font-stretch: 112%; }
.leanto-plate ul { list-style: none; margin: 0; padding: 0.25rem 0.75rem 0.5rem; }
.leanto-plate li { margin: 0; border-bottom: 2px dashed var(--chalk); }
.leanto-plate li:last-child { border-bottom: 0; }
.leanto-plate a { display: flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
/* the tape strip under each plate's title bar, as under the order list's (visual fix, review N1: the side column's
   plates read as this site's own, not as another site's dark-barred boxes) */
.leanto-plate > h2::after, .bythebook > h2::after {
  content: ""; display: block; height: 0.5rem; margin: 0.375rem -0.75rem -0.375rem;
  background: repeating-linear-gradient(90deg, var(--blacktop) 0 2px, transparent 2px 1rem), var(--hivis);
}
/* "Jump to" after the tool, for screens without the side column (visual fix, review N15) */
.jumpto-here { margin-top: 1.5rem; }
.jumpto-here ul { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.jumpto-here li { border-bottom: 0; }
@media (min-width: 64em) { .jumpto-here { display: none; } }

/* ---------------------------------------------------------------- next job, job doors */
.nextjob { margin-top: 1.25rem; }
.nextjob h3 { margin-top: 0; }
.nextjob a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
.jobdoors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0.625rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.jobdoors > li { display: flex; min-width: 0; margin: 0; border: 2px solid var(--tar); background: var(--board); }
.jobdoors > li.jobdoor-card-lead { grid-column: 1 / -1; box-shadow: 0.25rem 0.25rem 0 var(--tar); }
.jobdoors-covers { margin: 1rem 0 0; }
.jobdoor {
  width: 100%; display: flex; flex-direction: column; gap: 0.375rem; padding: 0.875rem; background: var(--board);
  color: var(--tar); text-decoration: none; min-height: 2.75rem;
}
a.jobdoor:hover, a.jobdoor:focus-visible { background: var(--hivis); color: var(--on-hivis); }
.jobdoor svg { width: 2.5rem; height: 2.5rem; color: var(--tar); }
a.jobdoor:hover svg, a.jobdoor:focus-visible svg { color: var(--on-hivis); }
.jobdoor-name { font-family: var(--face-wide); font-weight: 800; font-stretch: 112%; font-size: 1.0625em; line-height: 1.2; overflow-wrap: break-word; }
.jobdoor-ask { color: var(--dust); line-height: 1.35; }
a.jobdoor:hover .jobdoor-ask, a.jobdoor:focus-visible .jobdoor-ask { color: var(--on-hivis); }
.howmade { margin-top: 2rem; background: var(--board); border: 2px solid var(--tar); padding: 1rem; }
.howmade h2 { margin-top: 0; font-size: 1.125em; }
.howmade-go { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }

/* ---------------------------------------------------------------- questions, embed box, revisions */
.plainqs h3 { margin-top: 1.25rem; }
.onyoursite { margin-top: 2rem; border-top: 2px solid var(--chalk); }
.onyoursite-code {
  display: block; width: 100%; min-height: 8rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: max(1rem, 16px);
  padding: 0.5rem; border: 2px solid var(--form-edge); border-radius: 0; background: var(--board); color: var(--tar); resize: vertical; margin-top: 0.5rem;
}
.onyoursite-credit { margin-top: 1rem; font-size: 0.875em; color: var(--dust); }
/* room between the words, the code box's label, the box and its button (review N10) */
.onyoursite > .rig-label { margin-top: 1rem; }
.onyoursite > .sendrow { margin-top: 0.75rem; }
.revblock { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 2px solid var(--tar); }
.revblock-item { padding-block: 0.75rem; border-bottom: 2px dashed var(--chalk); margin: 0; }
.revblock-when { font-weight: 800; display: block; }
.revblock-item p { margin: 0.25rem 0 0; }
.mailline { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- footer ("the curb") */
.curb { background: var(--blacktop); color: var(--on-blacktop); margin-top: 0; }
.curb a { color: var(--on-blacktop); }
.curb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 1.75rem 1rem; }
@media (min-width: 48em) { .curb-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; } }
.curb-grid > * { min-width: 0; }
.curb h2 { margin: 0 0 0.25rem; font-size: 0.875em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-blacktop-dim); }
.curb p { margin: 0 0 0.75rem; }
.curb ul { list-style: none; margin: 0; padding: 0; }
.curb li { margin: 0; }
.curb li a, .curb li button { display: inline-flex; align-items: center; min-height: 2.75rem; }
.curb button { background: none; border: 0; padding: 0; color: var(--on-blacktop); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; cursor: pointer; font-weight: 400; }
.curb-latest a { font-weight: 700; }
.curb-base { padding-block: 0 1.5rem; color: var(--on-blacktop-dim); font-size: 0.875em; }

/* ---------------------------------------------------------------- cookie box (UK, EU and unknown country only)
   At the very top of the page, before the header, in the normal flow (Kevin, 19 Nov 2026, after the fourth safety
   review): an ordinary block, never fixed or sticky, with no z-index, so it pushes the page down and can never sit over
   anything on it. hardhat.js holds the visitor's view still when it opens or closes above them. Reject and Accept all
   are the same size and style. Phones: stacked full width, Accept all on top. Wider screens: the pair sits at the
   right of the box with Accept all on the left, the button nearest the middle of the screen (27d). */
.gatepass { background: var(--board); color: var(--tar); border-bottom: 2px solid var(--tar); }
.gatepass-row {
  max-width: 65.5rem; margin-inline: auto; padding-block: 1rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px));
}
.gatepass-words { min-width: 0; }
.gatepass-words p { margin: 0; }
.gatepass-say { margin-top: 0.5rem; }
.gatepass-say > .gatepass-more { margin-top: 0.5rem; }
.gatepass-title { font-family: var(--face-wide); font-weight: 800; font-stretch: 125%; font-size: 1.0625em; line-height: 1.15; overflow-wrap: break-word; }
.gatepass-acts { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.gatepass-yes, .gatepass-no, .gatepass-close {
  min-height: 2.75rem; padding: 0.25rem 1rem; font-weight: 800; background: var(--board); color: var(--tar); border: 2px solid var(--tar); cursor: pointer; width: 100%;
}
/* phones (visual fix, 19 Nov 2026, review N2): a compact band, so the tool starts nearer the first screen. The title
   is a plain bold line at body size, not the wide heading face (it isn't the page's heading); the wording is small
   print with "Details" running on after it; the two buttons stay the same size, stacked full width, Accept all on top */
@media (max-width: 47.99em) {
  .gatepass-row { padding-block: 0.75rem; }
  .gatepass-title { font-family: var(--face-plain); font-stretch: 100%; font-size: 1em; line-height: 1.3; }
  .gatepass-say { margin-top: 0.25rem; font-size: 0.875em; line-height: 1.5; }
  .gatepass-say > p { display: inline; }
  .gatepass-say > .gatepass-more { margin: 0 0 0 0.375em; }
  .gatepass-acts { margin-top: 0.625rem; }
}
@media (min-width: 48em) {
  .gatepass-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem;
    padding-left: max(2rem, env(safe-area-inset-left, 0px)); padding-right: max(2rem, env(safe-area-inset-right, 0px));
  }
  .gatepass-words { flex: 1 1 24rem; }
  .gatepass-acts { flex-direction: row; width: min(100%, 20rem); margin: 0 0 0 auto; }
  .gatepass-acts button { flex: 1 1 0; width: auto; min-width: 0; }
}

/* ---------------------------------------------------------------- the embed page */
.to-go { background: var(--board); }
.to-go main { padding: 0.75rem; max-width: 46rem; }
.to-go .rig { margin-top: 0; }

/* ---------------------------------------------------------------- print: the order list alone, with its working */
@media print {
  :root { --tar: #000000; --dust: #4a504b; --board: #ffffff; --slab: #ffffff; --concrete: #ffffff; --chalk: #c9cec6; --rebar: #000000; --hivis-wash: #ffffff; }
  body { background: #ffffff; font-size: 11pt; }
  .jobhead, .crewnav, .tapeline, .myzip, .leanto, .curb, .gatepass, .pathmark, .jumpgate, .noprint, .sendrow, .takeoff-price input { display: none !important; }
  /* "Print the list": the answer block alone, so the paper copy carries the safety box above the list (the stop panel
     in it is hidden on an order list) */
  body.printing-list main > *:not([data-takeoff="answer"]) { display: none !important; }
  .takeoff { border: 2px solid #000000; break-inside: auto; }
  .takeoff-rows > li, .takeoff-tiles li, .bythebook-row { break-inside: avoid; }
  .takeoff-print-only { display: block; }
  .takeoff-working details > summary { display: none; }
  .takeoff-working details > *:not(summary) { display: block; }
  .slab-sheet { display: block; padding: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; overflow-wrap: break-word; }
}
