
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin.woff2") format("woff2-variations");
}
:root {
  --ink: #1b1e23;
  --ink-800: #262a30;
  --ink-700: #363b43;
  --ink-600: #4b515a;
  --steel: #525a64;
  --mist: #9aa2ad;
  --rule: #c9cac4;
  --line: #dcddd8;
  --cloud: #eceae4;
  --paper: #f5f3ee;
  --white: #ffffff;
  --trust: #14532d;
  --danger: #a31515;
  --sans: "Manrope Variable", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, Consolas, monospace;
  --gutter: 1.25rem;
  --main-top: clamp(2.5rem, 2rem + 3vw, 5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 48rem) { :root { --gutter: 2.5rem; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; font-weight: 450; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.028em; line-height: 1.06; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem); }
h2 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; }
p, li, dd, dt { overflow-wrap: break-word; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-ink :focus-visible { outline-color: var(--white); }
::selection { background: var(--ink); color: var(--white); }

.wrap { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 44rem; }
.narrow-form { max-width: 60rem; }
.muted { color: var(--steel); }
.small { font-size: 0.875rem; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono { font-size: 0.8125rem; white-space: nowrap; }
.empty { color: var(--mist); }
.sub { display: block; font-size: 0.8125rem; font-weight: 450; color: var(--steel); }

/* The small label: mono, uppercase, tracked. Used for every caption. */
.eyebrow {
  display: block; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel);
}
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ink-700); max-width: 44rem; text-wrap: pretty; }

/* ------------------------------------------------------------------ */
/*  Header, file strip, footer                                         */
/* ------------------------------------------------------------------ */
.bar { background: var(--white); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 1.25rem; text-decoration: none; }
.brand img { height: 1.875rem; width: auto; display: block; }
.brand span { border-left: 1px solid var(--rule); padding-left: 1.25rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; font-size: 0.875rem; }
.bar-end a, .bar-end button { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.bar-end a:hover, .bar-end button:hover { text-decoration: underline; text-underline-offset: 0.25em; }
@media (max-width: 40rem) { .brand span, .bar-end .hide-s { display: none; } }

.strip { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--white); }
.strip .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 2.75rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; }
.strip-meta { display: flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; }
.strip-meta > * + *::before { content: "/"; margin-inline: 0.75rem; color: var(--ink-600); }
.strip-meta .dim { color: var(--mist); }
.strip-meta b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.strip-end { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; flex: none; }
@media (max-width: 56rem) { .strip-meta .wide { display: none; } }
@media (max-width: 32rem) { .strip-meta .dim { display: none; } }

/* One square per section: the whole file's state at a glance. */
.segs { display: flex; gap: 3px; list-style: none; padding: 0; }
.segs li { width: 0.75rem; height: 0.75rem; border: 1px solid var(--ink-600); transition: background-color 200ms, border-color 200ms; }
.segs li[data-state="progress"] { border-color: var(--white); background: linear-gradient(135deg, var(--white) 50%, transparent 50%); }
.segs li[data-state="done"] { border-color: var(--white); background: var(--white); }
.segs li[data-state="approved"] { border-color: #6fcf97; background: #6fcf97; }
.segs li[data-state="changes"] { border-color: #ff8a80; background: #ff8a80; }
.save-state { color: var(--mist); min-width: 5.5rem; text-align: right; }
.save-state:empty { display: none; }
.save-state[data-state="saved"] { color: var(--white); }
.save-state[data-state]::before { content: ""; display: inline-block; width: 0.375rem; height: 0.375rem; margin-right: 0.5rem; vertical-align: 0.05em; background: currentColor; }
.save-state[data-state="saving"]::before { animation: blink 900ms steps(2, start) infinite; }
.save-state[data-state="error"] { color: #ff8a80; }

main { flex: 1; padding-block: var(--main-top) 6rem; }
.footer { border-top: 1px solid var(--line); padding-block: 1.75rem; font-size: 0.8125rem; color: var(--steel); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }

/* ------------------------------------------------------------------ */
/*  Buttons                                                            */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.25rem; letter-spacing: -0.005em;
  padding: 0.875rem 1.375rem; border: 1px solid var(--ink); border-radius: 0;
  background: var(--white); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 140ms, color 140ms;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-primary, .btn-accent { background: var(--ink); color: var(--white); }
.btn-primary:hover, .btn-accent:hover { background: var(--ink-700); }
/* The forward action carries an arrow that steps on hover. */
.btn-accent::after { content: "→"; font-family: var(--mono); transition: transform 160ms var(--ease); }
.btn-accent:hover::after { transform: translateX(4px); }
.btn-ghost { border-color: var(--rule); }
.btn-small { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--steel); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.btn-link:hover { color: var(--danger); }
.on-ink .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.on-ink .btn:hover { background: var(--cloud); }

/* ------------------------------------------------------------------ */
/*  Surfaces, notices, tags                                            */
/* ------------------------------------------------------------------ */
.card { background: var(--white); border: 1px solid var(--line); }
.card-pad { padding: 1.5rem; }
@media (min-width: 48rem) { .card-pad { padding: 2.25rem; } }
.feature { border-left: 3px solid var(--ink); }

.notice { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--ink); padding: 1rem 1.25rem; font-size: 0.9375rem; color: var(--ink-700); }
.notice strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 0.125rem; }
.notice-ok { border-left-color: var(--trust); }
.notice-bad { border-left-color: var(--danger); }
.notice-bad strong { color: var(--danger); }
.notice-info { border-left-color: var(--mist); }
.notice ul { margin: 0.375rem 0 0; padding-left: 1.125rem; }
.note-quote { white-space: pre-line; }

.pill, .tag {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: var(--steel);
}
.pill::before { content: ""; width: 0.5rem; height: 0.5rem; border: 1px solid currentColor; flex: none; }
.pill-progress, .pill-warn { color: var(--ink); }
.pill-progress::before { background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.pill-done { color: var(--trust); }
.pill-bad { color: var(--danger); }
.pill-done::before, .pill-warn::before, .pill-bad::before { background: currentColor; }
.tag { border: 1px solid var(--line); padding: 0.1rem 0.4rem; margin: 0.25rem 0.25rem 0 0; }
.tag-yes { color: var(--trust); border-color: #c7dccb; }
.tag-warn { color: var(--ink); border-color: var(--ink); }
.tag-bad { color: var(--danger); border-color: #e3b9b3; }

/* A brand is named with a square of its own accent: the only colour here. */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.chip::before { content: ""; width: 0.625rem; height: 0.625rem; background: var(--mist); flex: none; }
.brand-maximum_matting::before { background: #facc15; }
.brand-ergo_matting::before { background: #497b5f; }
.brand-fire_matting::before { background: #f95e11; }
.brand-maximum_spills::before { background: #facc15; }
.brand-axial_supply::before { background: #dd4f1c; }
.brand-maximum_packaging::before { background: #f5610a; }
.brand-station_matting::before { background: #f2a900; }
.brand-roll_matting::before { background: #f5b715; }
.brand-maximum_flooring::before { background: #3f6b52; }
.brand-maximum_energy_solutions::before { background: #087f8c; }

/* ------------------------------------------------------------------ */
/*  The invitation                                                     */
/* ------------------------------------------------------------------ */
.split { display: grid; margin-block: calc(var(--main-top) * -1) -6rem; min-height: calc(100vh - 4.3rem); }
@media (min-width: 62rem) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.split-ink { background: var(--ink); color: var(--white); padding: clamp(2.5rem, 6vw, 6rem) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; }
.split-ink > div { max-width: 36rem; width: 100%; }
@media (min-width: 62rem) { .split-ink > div { margin-left: auto; } }
.split-ink .eyebrow, .split-ink .fine { color: var(--mist); }
.split-ink h1 { color: var(--white); margin-top: 1.25rem; }
.split-ink h1 span { display: block; color: var(--mist); }
.split-ink .lede { color: #c9ced6; margin-top: 1.75rem; }
.split-ink form { margin-top: 2.5rem; }
.split-ink .fine { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.9; }
.split-paper { padding: clamp(2.5rem, 6vw, 6rem) var(--gutter); }
.split-paper > div { max-width: 34rem; }
.split-paper > div + div { margin-top: 3.5rem; }
.manifest { list-style: none; padding: 0; margin-top: 1.25rem; border-top: 1px solid var(--ink); }
.manifest li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.125rem 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); animation: rise 500ms var(--ease) both; }
.manifest li b { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--mist); padding-top: 0.2rem; }
.manifest li strong { font-weight: 600; letter-spacing: -0.01em; }
.manifest li span { grid-column: 2; font-size: 0.875rem; color: var(--steel); }
.manifest li:nth-child(1) { animation-delay: 60ms; } .manifest li:nth-child(2) { animation-delay: 100ms; }
.manifest li:nth-child(3) { animation-delay: 140ms; } .manifest li:nth-child(4) { animation-delay: 180ms; }
.manifest li:nth-child(5) { animation-delay: 220ms; } .manifest li:nth-child(6) { animation-delay: 260ms; }
.manifest li:nth-child(7) { animation-delay: 300ms; } .manifest li:nth-child(8) { animation-delay: 340ms; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 1.25rem; }
.logos figure { background: var(--white); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos img { max-height: 3.25rem; width: auto; max-width: 100%; }

/* ------------------------------------------------------------------ */
/*  Overview: the file and its index                                   */
/* ------------------------------------------------------------------ */
.hero { display: grid; gap: 2.5rem; align-items: end; padding-bottom: 3rem; border-bottom: 1px solid var(--ink); }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; } }
.hero > * { min-width: 0; }
.hero h1 { margin-top: 1rem; }
.hero .lede { margin-top: 1.5rem; }
.hero .chips { margin-top: 1.75rem; }
.hero .cta { margin-top: 2.25rem; }
.meter { min-width: 15rem; }
.meter-figure { font-size: clamp(4.5rem, 3rem + 7vw, 8.5rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.82; font-variant-numeric: tabular-nums; }
.meter-figure small { font-size: 0.3em; letter-spacing: 0; vertical-align: top; margin-left: 0.1em; color: var(--steel); }
.meter p { margin-top: 1rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 3px; border: 0; background: var(--line); margin-top: 0.875rem; }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--ink); transition: width 400ms var(--ease); }
progress::-moz-progress-bar { background: var(--ink); }

.steps { list-style: none; padding: 0; }
.step {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center;
  padding: 1.375rem 1rem; margin-inline: -1rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: background-color 160ms, color 160ms;
}
.step-num { font-family: var(--mono); font-size: 0.8125rem; color: var(--mist); }
.step-text strong { display: block; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.step-text span { display: block; margin-top: 0.25rem; font-size: 0.9375rem; color: var(--steel); }
.step-end { display: flex; align-items: center; gap: 1.5rem; }
.step-end .count { font-family: var(--mono); font-size: 0.75rem; color: var(--steel); }
a.step .step-end::after { content: "→"; font-family: var(--mono); color: var(--mist); transition: transform 160ms var(--ease), color 160ms; }
div.step { color: var(--ink-600); }
/* The row inverts under the pointer: the one loud gesture on the page. */
a.step:hover, a.step:focus-visible { background: var(--ink); color: var(--white); outline: 0; }
a.step:hover :is(.step-text span, .count, .step-num, .pill), a.step:focus-visible :is(.step-text span, .count, .step-num, .pill) { color: #c9ced6; }
a.step:hover .step-end::after, a.step:focus-visible .step-end::after { color: var(--white); transform: translateX(6px); }
.step[data-state="changes"] .step-text span { color: var(--danger); }
a.step[data-state="changes"]:hover .step-text span { color: #ffb4ab; }
@media (max-width: 40rem) { .step { grid-template-columns: 2rem minmax(0, 1fr); } .step-end { grid-column: 2; } }

/* ------------------------------------------------------------------ */
/*  Wizard                                                             */
/* ------------------------------------------------------------------ */
.wizard { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .wizard { grid-template-columns: 15rem minmax(0, 1fr); gap: 5rem; } }
.wizard > *, .hub-grid > * { min-width: 0; }
.rail { position: sticky; top: 5rem; }
.rail ol { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.rail a { display: grid; grid-template-columns: 1.75rem 1fr auto; gap: 0.5rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: var(--steel); transition: color 120ms; }
.rail a:hover { color: var(--ink); }
.rail a[aria-current="step"] { color: var(--ink); font-weight: 700; }
.rail-dot { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; color: var(--mist); }
.rail-mark { width: 0.5rem; height: 0.5rem; border: 1px solid var(--rule); align-self: center; }
.rail a[data-state="progress"] .rail-mark { border-color: var(--ink); background: linear-gradient(135deg, var(--ink) 50%, transparent 50%); }
.rail a[data-state="done"] .rail-mark { border-color: var(--ink); background: var(--ink); }
.rail a[data-state="approved"] .rail-mark { border-color: var(--trust); background: var(--trust); }
.rail a[data-state="changes"] .rail-mark { border-color: var(--danger); background: var(--danger); }
.rail-progress { margin-bottom: 1.5rem; }
.rail-progress span { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); }
.rail-progress b { font-family: var(--sans); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 63.99rem) {
  .rail { position: static; }
  .rail ol { display: flex; overflow-x: auto; border-top: 0; gap: 1.5rem; border-bottom: 1px solid var(--line); }
  .rail li { flex: none; }
  .rail a { border-bottom: 2px solid transparent; grid-template-columns: auto auto; }
  .rail a[aria-current="step"] { border-bottom-color: var(--ink); }
  .rail-mark { display: none; }
}

.section-head { position: relative; }
/* The section's number, drawn in outline behind its title. */
.numeral { display: none; }
@media (min-width: 56rem) {
  .numeral {
    display: block; position: absolute; right: 0; top: -0.06em; z-index: 0; pointer-events: none; user-select: none;
    font-size: clamp(8rem, 4rem + 9vw, 13rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8; font-variant-numeric: tabular-nums;
    color: transparent; -webkit-text-stroke: 1px var(--rule);
  }
  .section-head > :not(.numeral) { position: relative; z-index: 1; max-width: calc(100% - 15rem); }
}
.section-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); margin-top: 0.875rem; }
.section-head .lede { margin-top: 1.25rem; }

/* The form is a sheet: group titles in the margin, hairlines between. */
.sheet { background: var(--white); border: 1px solid var(--line); border-top-color: var(--ink); }
.group { border: 0; margin: 0; min-width: 0; padding: 1.75rem 1.5rem; display: grid; gap: 1.5rem; }
.group + .group { border-top: 1px solid var(--line); }
/* A group whose every question is a follow-up not yet asked shows nothing. */
.group:not(:has(.field:not([hidden]))) { display: none; }
.group > h2 { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); line-height: 1.7; }
@media (min-width: 56rem) { .group { grid-template-columns: 11rem minmax(0, 1fr); gap: 2.5rem; padding: 2.25rem; } .group > .fields:only-child { grid-column: 2; } }
.fields { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field { grid-column: 1 / -1; } .field.half { grid-column: auto; } }
.field { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; width: 100%; padding: 0; margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.field-label em { flex: none; font-style: normal; font-family: var(--mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.field[data-missing] .field-label::after { content: "Needed"; flex: none; font-family: var(--mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--danger); }
.input {
  display: block; width: 100%; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink);
  background-color: var(--white); border: 1px solid var(--rule); border-radius: 0; padding: 0.75rem 0.875rem;
  transition: border-color 120ms, box-shadow 120ms; appearance: none; -webkit-appearance: none;
}
.input:hover { border-color: var(--steel); }
.input:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.input::placeholder { color: var(--mist); font-weight: 450; }
.input[readonly], .input[disabled] { background-color: var(--paper); color: var(--ink-600); }
textarea.input { min-height: 7rem; resize: vertical; line-height: 1.5; }
select.input {
  padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
.field[data-missing] .input, .field[data-error] .input { border-color: var(--danger); }
.help { display: block; margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.5; color: var(--steel); }
.error { display: block; margin-top: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--danger); }
.with-action { display: flex; }
.with-action .input { flex: 1; min-width: 0; border-right: 0; }

/* Choices are joined squares: a switch, not a row of buttons. */
.choices { display: flex; flex-wrap: wrap; }
.choice { position: relative; margin: 0 -1px -1px 0; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.7rem 1.125rem; border: 1px solid var(--rule); background: var(--white); font-size: 0.9375rem; font-weight: 600; color: var(--ink-600); transition: background-color 120ms, color 120ms, border-color 120ms; }
.choice input:hover + span { color: var(--ink); background: var(--paper); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); position: relative; z-index: 1; }
.choice input[type="checkbox"] + span::before { content: ""; width: 0.625rem; height: 0.625rem; border: 1px solid currentColor; }
.choice input[type="checkbox"]:checked + span::before { background: var(--white); border-color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 2; position: relative; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; padding: 1.5rem; border-top: 1px solid var(--line); background: var(--paper); }
@media (min-width: 56rem) { .actions { padding: 1.5rem 2.25rem; } }
.actions-end { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-left: auto; }
.card-pad > .actions { margin: 2rem -1.5rem -1.5rem; }
@media (min-width: 48rem) { .card-pad > .actions { margin: 2.25rem -2.25rem -2.25rem; } }
.bare.actions { background: none; border-top-color: var(--ink); padding-inline: 0; }

/* ------------------------------------------------------------------ */
/*  Documents                                                          */
/* ------------------------------------------------------------------ */
.slots { border-top: 1px solid var(--ink); }
.slot { padding: 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 1rem 2.5rem; }
@media (min-width: 56rem) { .slot { grid-template-columns: 16rem minmax(0, 1fr); } }
.slot-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.slot-head em { font-style: normal; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.slot[data-missing] .slot-head h3 { color: var(--danger); }
.files { list-style: none; padding: 0; margin-bottom: 0.75rem; border-top: 1px solid var(--cloud); }
.file { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 1rem; padding: 0.625rem 0; border-bottom: 1px solid var(--cloud); font-size: 0.875rem; }
.file a { font-weight: 600; word-break: break-all; }
.file .muted { font-family: var(--mono); font-size: 0.75rem; }
.file form { margin-left: auto; }
.upload { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1rem; }
.upload label { display: grid; gap: 0.4rem; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.upload input[type="file"] { font: inherit; font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0; text-transform: none; color: var(--steel); max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--ink); border-radius: 0; padding: 0.5rem 0.875rem; margin-right: 0.875rem; cursor: pointer; transition: background-color 140ms, color 140ms; }
input[type="file"]::file-selector-button:hover { background: var(--ink); color: var(--white); }
.upload input[type="date"] { font: inherit; font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0; padding: 0.45rem 0.6rem; border: 1px solid var(--rule); border-radius: 0; background: var(--white); color: var(--ink); }

/* ------------------------------------------------------------------ */
/*  Summary and answers                                                */
/* ------------------------------------------------------------------ */
.summary { background: var(--white); border: 1px solid var(--line); border-top-color: var(--ink); }
.summary-section { padding: 1.75rem 1.5rem; display: grid; gap: 1rem; }
.summary-section + .summary-section { border-top: 1px solid var(--line); }
@media (min-width: 56rem) { .summary-section { grid-template-columns: 11rem minmax(0, 1fr); gap: 2.5rem; padding: 2.25rem; } }
.summary-head { display: grid; gap: 0.75rem; align-content: start; justify-items: start; }
.summary-head h2 { font-size: 1.125rem; }
.summary-body { min-width: 0; display: grid; gap: 1rem; }
dl.answers { display: grid; grid-template-columns: minmax(0, 1fr); }
dl.answers dt { padding-top: 0.75rem; font-size: 0.8125rem; color: var(--steel); }
dl.answers dd { padding: 0.125rem 0 0.75rem; border-bottom: 1px solid var(--cloud); font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
@media (min-width: 40rem) {
  dl.answers:not(.stacked) { grid-template-columns: minmax(10rem, 17rem) minmax(0, 1fr); }
  dl.answers:not(.stacked) dt { padding: 0.75rem 1.5rem 0.75rem 0; border-bottom: 1px solid var(--cloud); }
  dl.answers:not(.stacked) dd { padding: 0.75rem 0; }
}
.declare { display: grid; gap: 1.5rem; border-top-color: var(--ink); }
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.875rem; align-items: start; font-size: 0.9375rem; }
.check input { appearance: none; -webkit-appearance: none; width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; border: 1px solid var(--ink); border-radius: 0; background: var(--white); cursor: pointer; }
.check input:checked { background: var(--ink); box-shadow: inset 0 0 0 3px var(--white); }

/* ------------------------------------------------------------------ */
/*  Figures, tables, mapping                                           */
/* ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.stat { padding: 1.5rem 1.5rem 1.5rem 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.stat strong { display: block; font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 0.625rem; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
@media (max-width: 40rem) { .stat + .stat { border-left: 0; padding-left: 0; } }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; font-family: var(--mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); padding: 0.875rem 1rem; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--cloud); vertical-align: top; color: var(--ink-700); max-width: 22rem; overflow-wrap: anywhere; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 100ms; }
.table tbody tr:hover { background: var(--paper); }
.table .num { text-align: right; white-space: nowrap; }
.table td.num { font-size: 0.8125rem; color: var(--ink); }
.table td a { font-weight: 600; }
.table-form td { padding: 0; min-width: 7.5rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); max-width: none; }
.table-form td:last-child { border-right: 0; }
.table-form .input { border: 0; padding: 0.75rem 1rem; font-size: 0.875rem; }
.table-form select.input { padding-right: 2.25rem; }
.table-form .input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.search { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search .input { flex: 1; min-width: 12rem; }
.map-grid { display: grid; gap: 1.25rem 2.5rem; }
@media (min-width: 52rem) { .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.map-row { display: grid; gap: 0.5rem; grid-template-rows: 1fr auto; }
.map-row label { align-self: end; font-size: 0.9375rem; }
.map-row .tag { margin: 0 0 0 0.5rem; }
.narrow-select { max-width: 14rem; }
details > summary { cursor: pointer; }
details > summary h2 { display: inline; }
details[open] > summary { margin-bottom: 0.75rem; }
details .map-grid { margin-top: 1.5rem; }

/* ------------------------------------------------------------------ */
/*  Under review, and the hub                                          */
/* ------------------------------------------------------------------ */
.track { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 48rem) { .track { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.track li { padding: 1.5rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .track li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; } }
.track b { display: flex; align-items: center; gap: 0.625rem; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.track b::before { content: ""; width: 0.625rem; height: 0.625rem; border: 1px solid currentColor; }
.track li[data-state="done"] b, .track li[data-state="now"] b { color: var(--ink); }
.track li[data-state="done"] b::before { background: currentColor; }
.track li[data-state="now"] b::before { background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.track strong { display: block; margin-top: 1rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.track span { display: block; margin-top: 0.375rem; font-size: 0.9375rem; color: var(--steel); }

.stamp { display: inline-flex; align-items: center; gap: 0.625rem; border: 1px solid var(--trust); color: var(--trust); padding: 0.4rem 0.75rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; }
.stamp::before { content: ""; width: 0.5rem; height: 0.5rem; background: currentColor; }
.hub-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64rem) { .hub-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 4rem; } }
.panel { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.panel + .panel { margin-top: 3rem; }
.next { list-style: none; padding: 0; }
.next li { padding: 0.875rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.next span { display: block; font-size: 0.875rem; font-weight: 450; color: var(--steel); }

.plain h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); margin-top: 1rem; }
.plain .lede { margin-top: 1.5rem; }

/* ------------------------------------------------------------------ */
/*  The ink band: submitted, and the hub                               */
/* ------------------------------------------------------------------ */
.band { background: var(--ink); color: var(--white); margin-top: calc(var(--main-top) * -1); padding-block: clamp(3rem, 2rem + 5vw, 6.5rem); }
.band:has(.stats) { padding-bottom: 0; }
.band-grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 60rem) { .band-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 5rem; } }
.band-grid > * { min-width: 0; animation: rise 560ms var(--ease) both; }
.band-grid > :nth-child(2) { animation-delay: 120ms; }
.band .eyebrow { color: var(--mist); }
.band h1 { margin-top: 1rem; font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.5rem); }
.band h1 span { display: block; color: var(--mist); }
.band .lede { margin-top: 1.5rem; color: #c9ced6; }
.band .lede strong { color: var(--white); font-weight: 600; }
.band .chips { margin-top: 1.75rem; }
.band .chip { color: var(--white); }
.band .cta { margin-top: 2.25rem; }
.band-end { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.on-ink .stamp { border-color: #6fcf97; color: #6fcf97; }
.on-ink .stats { margin-top: clamp(3rem, 2rem + 4vw, 5rem); border-top-color: var(--ink-600); border-bottom: 0; animation: rise 560ms var(--ease) 200ms both; }
.on-ink .stat + .stat { border-left-color: var(--ink-700); }
.on-ink .stat span { color: var(--mist); }
.band-after { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

.receipt { min-width: min(100%, 21rem); border-top: 1px solid var(--ink); }
.receipt div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.receipt dt { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); padding-top: 0.2rem; }
.receipt dd { font-family: var(--mono); font-size: 0.8125rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.on-ink .receipt { border-top-color: var(--white); }
.on-ink .receipt div { border-bottom-color: var(--ink-700); }
.on-ink .receipt dt { color: var(--mist); }

/* The year ahead. Positions are SVG attributes: no style attribute exists. */
.ruler-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.ruler-wrap { overflow-x: auto; }
.ruler { display: block; width: 100%; min-width: 44rem; height: auto; }
.ruler-base, .ruler-tick { stroke: var(--ink); stroke-width: 1; }
.ruler-today { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.ruler-month { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--steel); }
.ruler-now { fill: var(--ink); }
.ruler-mark { fill: var(--trust); }
.ruler-mark[data-state="expiring"] { fill: var(--ink); }
.ruler-mark[data-state="expired"] { fill: var(--danger); }
.ruler-key { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; font-size: 0.875rem; color: var(--ink-700); }
.ruler-key .pill { margin-right: 0.5rem; }

/* ------------------------------------------------------------------ */
/*  The certificate, and print                                         */
/* ------------------------------------------------------------------ */
.cert-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.cert { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: clamp(1.5rem, 1rem + 4vw, 4.5rem); display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.cert-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cert-head img { height: 2.5rem; width: auto; display: block; }
.cert-body h1 { margin-top: 1rem; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); }
.cert-body .lede { margin-top: 1.25rem; }
.cert-body .chips { margin-top: 1.5rem; }
.cert-foot { display: grid; gap: 0.375rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.75rem; line-height: 1.5; color: var(--steel); }
@media print {
  @page { margin: 14mm; }
  body { background: var(--white); display: block; min-height: 0; }
  .bar, .strip, .footer, .no-print { display: none !important; }
  main { padding: 0; }
  .wrap { padding: 0; max-width: none; }
  .cert { border: 0; border-top: 3px solid var(--ink); padding: 10mm 0 0; }
  *, *::before, *::after { animation: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ------------------------------------------------------------------ */
/*  Motion                                                             */
/* ------------------------------------------------------------------ */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes blink { to { visibility: hidden; } }
main > .wrap > * { animation: rise 520ms var(--ease) both; }
main > .wrap > :nth-child(2) { animation-delay: 70ms; }
main > .wrap > :nth-child(3) { animation-delay: 140ms; }
main > .wrap > :nth-child(n+4) { animation-delay: 200ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Vertical rhythm. Last, so it outranks the margin resets on lists above. */
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2.5rem; }
.stack-xl > * + * { margin-top: 4rem; }
