/* Baserton: a modelling service written as a specification. */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/public-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #eef1f4;
  --sheet: #f7f9fb;
  --ink: #14171a;
  --ink-2: #384047;
  --ink-3: #5a6269;
  --rule: #c1c7cd;
  --rule-soft: #d8dde2;
  --mark: #ff2e7e;       /* survey-marking pink: the single active mark, shapes only (never small text) */
  --mark-deep: #a50e41;  /* error text */
  --mark-wash: #ffd6e5;

  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-ui: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 3.2vw, 44px);
  --max: 1360px;
  --rail: 176px;
  --section: clamp(80px, 10vw, 136px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
}
::selection { background: var(--mark-wash); color: var(--ink); }
input, textarea, select, button { font: inherit; color: inherit; caret-color: var(--mark); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 1px; }
html { scrollbar-color: #9aa1a7 var(--paper); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #a7adb2; border: 3px solid var(--paper); border-radius: 6px; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--mark); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; text-wrap: balance; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 30; padding: 10px 14px; background: var(--ink); color: #fff; font: 600 0.9375rem var(--f-ui); }
.skip:focus { top: 12px; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0;
  font: 700 1.625rem/1 var(--f-display); letter-spacing: 0.005em; text-decoration: none; color: var(--ink);
}
.wordmark .to { font-weight: 600; }
.wordmark-mark { width: 17px; height: 17px; margin-right: 9px; align-self: center; flex: none; }
.masthead-meta { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.masthead-meta .link { font: 600 0.9375rem/1 var(--f-ui); text-decoration: none; color: var(--ink-2); }
.masthead-meta .link:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); }

/* ---------- buttons ---------- */
.btn {
  --btn-pad: 0 20px;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: var(--btn-pad);
  font: 600 1rem/1 var(--f-ui); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 80ms linear;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2b3238; }
.btn-primary:active { box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.45); }
.btn-note { padding-left: 12px; border-left: 1px solid rgb(255 255 255 / 0.32); font-weight: 500; font-size: 0.875rem; color: #d5dadf; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-quiet:active { box-shadow: inset 0 2px 4px rgb(20 23 26 / 0.12); }
.btn-small { min-height: 38px; --btn-pad: 0 14px; font-size: 0.9375rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: progress; }

/* ---------- scope (first viewport) ---------- */
.scope {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
  max-width: var(--max); margin: 0 auto;
  min-height: calc(100svh - 64px);
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(36px, 5vw, 64px);
}
.scope { grid-template-rows: auto auto; align-content: center; }
.scope-text { grid-column: 1 / span 5; grid-row: 1; align-self: end; }
.scope h1 {
  font-size: clamp(2.5rem, 1.4rem + 2.7vw, 3.875rem);
  line-height: 0.98; letter-spacing: -0.01em;
}
.scope .lead { margin: 26px 0 32px; max-width: 34rem; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.58; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scope-terms { grid-column: 1 / span 5; grid-row: 2; align-self: start; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--rule); max-width: 34rem; }
.scope-terms div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); }
.scope-terms dt { font: 600 0.8125rem/1.5 var(--f-ui); color: var(--ink-3); letter-spacing: 0.02em; }
.scope-terms dd { margin: 0; font-size: 0.9688rem; line-height: 1.5; }

/* ---------- figure / plate ---------- */
.figure { position: relative; margin: 0; }
.figure-frame {
  position: relative; background: var(--sheet);
  border: 1px solid var(--rule);
}
.figure-frame::before, .figure-frame::after { /* registration ticks */
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--ink); border-style: solid;
}
.figure-frame::before { top: -5px; left: -5px; border-width: 1px 0 0 1px; }
.figure-frame::after { right: -5px; bottom: -5px; border-width: 0 1px 1px 0; }
figcaption {
  margin-top: 12px; max-width: 62ch;
  font: 500 0.875rem/1.5 var(--f-ui); color: var(--ink-3);
}
figcaption b { color: var(--ink); font-weight: 600; margin-right: 6px; }

.plate { grid-column: 6 / span 7; grid-row: 1 / span 2; align-self: center; }
.plate-view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.plate-view.dragging { cursor: grabbing; }
.plate-view canvas, .plate-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate-poster { object-fit: cover; transition: opacity 260ms var(--ease-out); }
.plate-view canvas { opacity: 0; transition: opacity 260ms var(--ease-out); }
.plate-view.live canvas { opacity: 1; }
.plate-view.live .plate-poster { opacity: 0; }
.plate-scale {
  position: absolute; left: 18px; bottom: 16px;
  display: grid; gap: 5px; font: 600 0.75rem/1 var(--f-ui); color: var(--ink-2);
}
.plate-scale i { display: block; height: 6px; border: 1px solid var(--ink); border-top: 0; width: var(--scale-w, 96px); }
.plate-dim {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  padding: 2px 6px; background: var(--sheet); border: 1px solid var(--rule);
  font: 600 0.8125rem/1.2 var(--f-ui); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.plate-tag-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: visible; }
.plate-tag-layer line { stroke: var(--ink); stroke-width: 1; }
.plate-tag-layer circle { fill: var(--mark); }
.plate-tag {
  position: absolute; left: 0; top: 0; z-index: 3;
  padding: 3px 7px 4px; background: var(--sheet); border: 1px solid var(--ink);
  font: 600 0.8125rem/1.1 var(--f-ui); color: var(--ink); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
.plate-tag:hover { background: #fff; text-decoration: underline; text-decoration-color: var(--mark); }
.plate-tag[hidden], .plate-tag-layer[hidden] { display: none; }

.tiers { display: flex; gap: 0; margin-top: -1px; position: relative; z-index: 1; }
.tier {
  position: relative; flex: 1 1 0; min-width: 0;
  display: grid; gap: 3px; justify-items: start;
  padding: 10px 12px 11px; min-height: 52px;
  background: transparent; border: 1px solid var(--rule); border-top-color: var(--rule);
  margin-left: -1px; text-align: left; cursor: pointer;
  font: 600 0.9375rem/1.1 var(--f-ui); color: var(--ink-2);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.tier:first-child { margin-left: 0; }
.tier small { font: 500 0.75rem/1.2 var(--f-ui); color: var(--ink-3); }
.tier:hover { background: rgb(255 255 255 / 0.55); color: var(--ink); }
.tier[aria-checked="true"] {
  background: var(--sheet); color: var(--ink);
  border-top-color: var(--sheet);
  box-shadow: inset 0 2px 0 var(--mark);
}
.tier[aria-checked="true"] small { color: var(--ink-2); }
.tier:active { box-shadow: inset 0 2px 5px rgb(20 23 26 / 0.12); }
.tier[aria-checked="true"]:active { box-shadow: inset 0 2px 0 var(--mark), inset 0 3px 6px rgb(20 23 26 / 0.1); }
.tier-swatch { position: absolute; right: 10px; top: 12px; width: 18px; height: 12px; border: 1px solid var(--ink-3); }
.tier[data-tier="scan"] .tier-swatch { border-style: dotted; }
.tier[data-tier="100"] .tier-swatch { background: transparent; }
.tier[data-tier="200"] .tier-swatch { background: linear-gradient(90deg, #c7ccd0 0 48%, var(--ink-3) 48% 52%, #e2e5e6 52% 100%); }
.tier[data-tier="300"] .tier-swatch { background: #9aa1a7; border-color: var(--ink); }
.tier[data-tier="overlay"] .tier-swatch { background: radial-gradient(circle, var(--ink) 0.8px, transparent 1.2px) 0 0 / 4px 4px, #c9ced1; }

.plate-def {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline;
  padding: 14px 2px 0; min-height: 4.4em;
}
.plate-def p { margin: 0; }
.plate-def-text { font-size: 0.9688rem; line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.plate-def-text b { font-family: var(--f-ui); font-weight: 600; color: var(--ink); }
.plate-def-metric { font: 600 0.9375rem/1.4 var(--f-ui); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- clauses ---------- */
.spec {
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 48px);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.rail { position: relative; }
.rail ol {
  position: sticky; top: 104px;
  list-style: none; margin: var(--section) 0 0; padding: 0 0 0 16px;
  border-left: 1px solid var(--rule);
}
.rail li { position: relative; }
.rail a {
  display: grid; grid-template-columns: 1.4rem 1fr; align-items: baseline;
  padding: 7px 0; text-decoration: none; color: var(--ink-3);
  font: 500 0.9375rem/1.25 var(--f-ui);
  transition: color 160ms var(--ease-out);
}
.rail a .n { font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
.rail a::before { /* datum marker */
  content: ""; position: absolute; left: -17px; top: 50%; width: 13px; height: 1px; background: var(--rule);
  transform: scaleX(0.7); transform-origin: left center;
  transition: transform 200ms var(--ease-out), background-color 160ms var(--ease-out);
}
.rail a:hover { color: var(--ink); }
.rail a[aria-current="true"] { color: var(--ink); }
.rail a[aria-current="true"]::before { transform: scaleX(1); height: 2px; margin-top: -0.5px; background: var(--mark); }
.rail a::after { /* level datum: the scanning target, shown on the active clause */
  content: ""; position: absolute; left: -22.5px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; opacity: 0; transform: scale(0.6);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23fff' stroke='%2314171a' stroke-width='1.8'/%3E%3Cpath d='M8 8H1A7 7 0 0 1 8 1zM8 8h7A7 7 0 0 1 8 15z' fill='%2314171a'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out);
}
.rail a[aria-current="true"]::after { opacity: 1; transform: none; }

.clauses { min-width: 0; }
.clause { padding: var(--section) 0 0; }
.clause:last-child { padding-bottom: var(--section); }
.clause-head { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); align-items: start; margin-bottom: 30px; }
.clause-n { font: 600 clamp(1.5rem, 1.2rem + 1vw, 2.25rem)/1 var(--f-display); color: var(--ink-3); padding-top: 0.32em; }
.clause h2 { font-size: clamp(2.125rem, 1.4rem + 2.3vw, 3.5rem); line-height: 1; letter-spacing: -0.008em; max-width: 20ch; }
.clause-body { padding-left: 3.25rem; }
.prose { max-width: 66ch; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }

.options { list-style: none; margin: 28px 0 0; padding: 0; max-width: 66ch; border-top: 1px solid var(--rule); counter-reset: opt; }
.options li { display: grid; grid-template-columns: 2.6rem 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); }
.options li::before { counter-increment: opt; content: "(" counter(opt, lower-alpha) ")"; font: 600 0.9375rem/1.6 var(--f-ui); color: var(--ink-3); }
.fourth { margin: 40px 0 0; max-width: 30ch; font: 500 clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem)/1.12 var(--f-display); letter-spacing: -0.004em; text-wrap: balance; color: var(--ink-2); }
.fourth em { font-style: normal; font-weight: 700; color: var(--ink); }

/* spec tables */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table caption { text-align: left; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule-soft); }
.spec-table thead th { padding-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font: 600 0.8125rem/1.3 var(--f-ui); color: var(--ink-3); letter-spacing: 0.02em; }
.spec-table tbody th { font: 600 1rem/1.45 var(--f-ui); color: var(--ink); width: 11rem; }
.spec-table td { color: var(--ink-2); line-height: 1.55; }
.spec-table .num { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; padding-right: 0; }
.spec-table tbody .num { font: 600 0.9688rem/1.45 var(--f-ui); color: var(--ink); }
code { font: 600 0.95em var(--f-ui); color: var(--ink); background: none; letter-spacing: 0.02em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* deliverable formats */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: 8px; }
.format { padding: 20px 24px 22px 0; border-right: 1px solid var(--rule-soft); }
.format + .format { padding-left: 24px; }
.format:last-child { border-right: 0; }
.format-code { font: 700 clamp(2.5rem, 2rem + 1.6vw, 3.5rem)/0.9 var(--f-display); letter-spacing: 0.01em; }
.format-name { margin: 12px 0 6px; font: 600 1rem/1.3 var(--f-ui); }
.format p { margin: 0; color: var(--ink-2); font-size: 0.9688rem; line-height: 1.55; }
.lod-note { margin-top: 14px; font: 500 0.875rem/1.5 var(--f-ui); color: var(--ink-3); max-width: 70ch; }
.lod-tag { display: inline-block; min-width: 3.4rem; font: 700 1.125rem/1.2 var(--f-display); color: var(--ink); }

.subhead { margin: 56px 0 14px; font: 600 1.375rem/1.2 var(--f-display); letter-spacing: 0.002em; }

/* equipment schedule */
.schedule td.thumb { width: 156px; padding-right: 18px; }
.schedule td.thumb img { width: 138px; height: 96px; object-fit: contain; }
.schedule tbody td, .schedule tbody th { vertical-align: middle; }
.schedule .tag { font: 600 0.9375rem/1.45 var(--f-ui); color: var(--ink-3); white-space: nowrap; }
.schedule .el { color: var(--ink); font-weight: 500; }
.schedule .el small { display: block; color: var(--ink-3); font-weight: 400; font-size: 0.875rem; }
.schedule .parts { color: var(--ink-2); }
.schedule .num { width: 5.5rem; padding-right: 32px; }
.schedule .tag { width: 5rem; }

/* sample report */
.report { margin-top: 8px; }
.report-head {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--ink);
}
.report-title { font: 600 1.125rem/1.2 var(--f-display); }
.report-note { font: 500 0.8125rem/1.3 var(--f-ui); color: var(--ink-3); }
.report .spec-table { margin: 0; }
.report .spec-table th, .report .spec-table td { padding-left: 20px; padding-right: 8px; }
.report .spec-table thead th { padding-top: 12px; border-bottom-color: var(--rule); }
.report .spec-table .num { padding-right: 20px; }
.report .spec-table tbody th { width: 34%; }
.band { display: inline-flex; align-items: center; gap: 8px; font: 500 0.875rem/1.4 var(--f-ui); color: var(--ink-2); white-space: nowrap; }
.band i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: none; }
.band.review i { background: #fff; border: 2px solid var(--ink); }
.band.inferred i { background: var(--mark); border-radius: 0; transform: rotate(45deg); width: 9px; height: 9px; }
.band.inferred { color: var(--ink); }
.spec-table td .band { font: inherit; color: inherit; gap: 6px; }
.report-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 20px 16px; font: 500 0.8125rem/1.4 var(--f-ui); color: var(--ink-3); }

/* title block (your name) */
.titleblock {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; border: 1px solid var(--ink); background: var(--sheet); max-width: 760px; margin-top: 34px;
}
.titleblock > div { padding: 10px 14px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-height: 64px; }
.titleblock > div:nth-child(3n) { border-right: 0; }
.titleblock > div:nth-last-child(-n + 3) { border-bottom: 0; }
.titleblock .k { display: block; font: 600 0.6875rem/1.2 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.titleblock .v { display: block; margin-top: 6px; font: 600 1.0625rem/1.25 var(--f-ui); }
.titleblock .v.firm { font: 700 1.5rem/1.05 var(--f-display); }
.titleblock .v.absent { color: var(--ink-3); font-weight: 500; }

/* pilot */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
.steps .when { font: 700 1.25rem/1.2 var(--f-display); }
.steps .when small { display: block; margin-top: 4px; font: 500 0.8125rem/1.3 var(--f-ui); color: var(--ink-3); }
.steps p { margin: 0; color: var(--ink-2); }

.sheet-form { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(20px, 2.6vw, 32px); }
.form-title { font: 600 1.5rem/1.1 var(--f-display); margin-bottom: 4px; }
.form-sub { font-size: 0.9375rem; color: var(--ink-3); margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font: 600 0.875rem/1.3 var(--f-ui); color: var(--ink); padding: 0; }
.field .opt { color: var(--ink-3); font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 12px;
  background: #fff; border: 1px solid #858e96; border-radius: 2px;
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #626b73; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--mark-wash), inset 0 -2px 0 var(--mark); }
.field [aria-invalid="true"] { border-color: var(--mark-deep); box-shadow: inset 0 -2px 0 var(--mark-deep); }
.field .err { font: 500 0.8125rem/1.35 var(--f-ui); color: var(--mark-deep); min-height: 0; }
.checks { border: 0; margin: 0; padding: 0; display: grid; gap: 7px; }
.checks .row { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid #858e96; background: #fff; border-radius: 2px;
  font: 600 0.9375rem/1 var(--f-ui); color: var(--ink-2); letter-spacing: 0.02em;
  transition: background-color 140ms var(--ease-out), border-color 140ms var(--ease-out), color 140ms var(--ease-out);
}
.check input:hover + span { border-color: var(--ink-2); }
.check input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.25); }
.check input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-foot small { font-size: 0.8125rem; color: var(--ink-3); max-width: 34ch; line-height: 1.45; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 18px 0 0; padding: 0; list-style: none; font: 500 0.9375rem/1.5 var(--f-ui); color: var(--ink-2); }
.status li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--rule); }
.status li:first-child { border-top: 0; }
.status time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.status .ok { color: var(--ink); }
.status .bad { color: var(--mark-deep); }

.book { margin-top: 26px; border-top: 1px solid var(--ink); padding-top: 18px; }
.book[hidden] { display: none; }
.book-title { font: 600 1.375rem/1.15 var(--f-display); margin-bottom: 4px; }
.book p { color: var(--ink-3); font-size: 0.9375rem; }
.cal-inline { min-height: 560px; margin-top: 10px; background: #fff; border: 1px solid var(--rule-soft); overflow: hidden; }
.cal-fallback { margin-top: 10px; font: 500 0.9375rem/1.5 var(--f-ui); }

/* notes */
.notes { margin: 8px 0 0; border-top: 1px solid var(--ink); max-width: 78ch; }
.note { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
.note-n { font: 600 0.875rem/1.6 var(--f-ui); color: var(--ink-3); }
.note dt { font: 600 1.0625rem/1.4 var(--f-ui); color: var(--ink); margin-bottom: 6px; }
.note dd { margin: 0; color: var(--ink-2); }

/* ---------- closing title block ---------- */
.colophon { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.colophon-block { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; border: 1px solid var(--ink); background: var(--sheet); }
.colophon-block > div { padding: 14px 16px 16px; border-right: 1px solid var(--rule); min-width: 0; }
.colophon-block > div:last-child { border-right: 0; }
.colophon .k { display: block; font: 600 0.6875rem/1.2 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.colophon .v { margin: 0; font: 600 1rem/1.4 var(--f-ui); }
.colophon .v.sub { margin-top: 6px; font-weight: 500; color: var(--ink-2); }
.colophon .brand + .v.sub { margin-top: 10px; }
.colophon a { display: inline-block; margin-top: 6px; }
.colophon .brand { font: 700 2rem/1 var(--f-display); }
.colophon .brand .to { font-weight: 600; }
.colophon a { font-weight: 600; }
.colophon-fine { margin-top: 14px; font: 500 0.8125rem/1.4 var(--f-ui); color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .spec { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
}
@media (max-width: 1080px) {
  .scope { grid-template-columns: minmax(0, 1fr); row-gap: 40px; min-height: 0; padding-top: 36px; }
  .scope-text, .plate, .scope-terms { grid-column: 1 / -1; grid-row: auto; }
  .scope-terms { margin-top: 0; }
}
@media (max-width: 860px) {
  .pilot-grid { grid-template-columns: minmax(0, 1fr); }
  .formats { grid-template-columns: minmax(0, 1fr); }
  .format, .format + .format { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .colophon-block { grid-template-columns: 1fr 1fr; }
  .colophon-block > div:nth-child(2) { border-right: 0; }
  .colophon-block > div:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div:nth-child(3n) { border-right: 1px solid var(--rule); }
  .titleblock > div:nth-child(2n) { border-right: 0; }
  .titleblock > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--rule); }
  .titleblock > div:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .masthead { height: 58px; gap: 12px; }
  .masthead-meta .link { display: none; }
  .wordmark { font-size: 1.5rem; }
  .btn { min-height: 46px; }
  .masthead .btn { --btn-pad: 0 14px; min-height: 40px; font-size: 0.9375rem; }
  .clause-head { grid-template-columns: 2.1rem minmax(0, 1fr); margin-bottom: 22px; }
  .clause-body { padding-left: 0; }
  .tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tier { min-height: 52px; padding: 9px 4px 10px; justify-items: center; align-content: center; text-align: center; font-size: 0.8125rem; gap: 5px; }
  .tier small { display: none; }
  .tier-swatch { position: static; order: -1; width: 16px; height: 10px; }
  .plate-def { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .scope-terms div { grid-template-columns: 5rem 1fr; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .note { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .spec-table tbody th { width: auto; }
  .stack-sm thead { display: none; }
  .stack-sm tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  .stack-sm th, .stack-sm td { border: 0; padding: 2px 0; }
  .stack-sm [data-label]:not(.thumb) { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
  .stack-sm [data-label]:not(.thumb)::before { content: attr(data-label); font: 500 0.8125rem/1.5 var(--f-ui); color: var(--ink-3); }
  .stack-sm .num { text-align: left; }
  .stack-sm th[data-label]::before, .schedule .el[data-label]::before { display: none; }
  .stack-sm th[data-label], .schedule .el[data-label] { display: block; }
  .report .spec-table th, .report .spec-table td { padding-left: 16px; padding-right: 16px; }
  .report .spec-table tbody th { width: auto; padding-top: 6px; }
  .schedule tr { grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; }
  .schedule .num, .schedule .tag { width: auto; padding-right: 0; }
  .schedule td.thumb img { width: 112px; height: 78px; }
  .schedule td.thumb { grid-row: span 4; width: auto; padding: 4px 0 0; }
  .schedule .num { text-align: left; }
  .colophon-block { grid-template-columns: minmax(0, 1fr); }
  .colophon-block > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .colophon-block > div:last-child { border-bottom: 0; }
}
