@font-face {
  font-family: "Public Sans";
  src: url("/assets/public-sans-latin-wght-normal.5ed4d31c988e.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/public-sans-latin-wght-italic.16dc93252adb.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-latin-400-normal.08949f728dc5.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-latin-500-normal.01d285447409.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Precision Blueprint: architectural cool-white, slate-navy ink, precision teal & amber. */
:root {
  --paper: #f4f6f8;
  --paper-raised: #ffffff;
  --paper-subtle: #edf1f5;
  --ink: #0f172a;
  --ink-soft: #475569;
  --rule: #cbd5e1;
  --cleared: #0d9488;
  --cleared-strong: #0f766e;
  --cleared-fg: #ffffff;
  --held: #d97706;
  --focus: #0d9488;
  --tok-bg: #1e293b;
  --tok-fg: #f8fafc;
  --dot: rgba(15, 23, 42, 0.11);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);

  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 66ch;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b111d;
    --paper-raised: #11192a;
    --paper-subtle: #172136;
    --ink: #f1f5f9;
    --ink-soft: #94a3b8;
    --rule: #24324a;
    --cleared: #2dd4bf;
    --cleared-strong: #14b8a6;
    --cleared-fg: #042f2e;
    --held: #f59e0b;
    --focus: #2dd4bf;
    --tok-bg: #e2e8f0;
    --tok-fg: #0b111d;
    --dot: rgba(148, 163, 184, 0.12);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25), 0 10px 28px rgba(0, 0, 0, 0.28);
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` must win over any display rule (.button, .actions, …). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink);
  font: 400 1.03rem/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; font-weight: 760; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); line-height: 1.15; }
h3 { font-size: 1.08rem; line-height: 1.3; font-weight: 680; }
p { margin: 0; }

.wrap { width: min(74rem, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper-raised); padding: 0.5rem 1rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.fine { color: var(--ink-soft); font-size: 0.9rem; max-width: var(--measure); }

/* Masthead */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper-raised) 92%, transparent);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-block: 0.85rem; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none; }
.wordmark .mark { width: 1.55rem; height: 1.55rem; flex: none; }
.masthead nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; font-size: 0.94rem; font-weight: 500; }
.masthead nav a { text-decoration: none; color: var(--ink-soft); transition: color 140ms ease; }
.masthead nav a:hover { color: var(--ink); text-decoration: underline; }
.nav-live {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: 500 0.85rem/1 var(--sans); color: var(--ink);
  text-decoration: none; padding: 0.42rem 0.72rem;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper-raised);
}
.nav-live:hover { border-color: var(--cleared); text-decoration: none; }
.live-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--cleared);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cleared) 20%, transparent);
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.65rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.8rem; padding: 0.6rem 1.25rem;
  border: 1.5px solid var(--rule); border-radius: 6px;
  background: var(--paper-raised); color: var(--ink);
  font: 600 0.98rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.button:hover { border-color: var(--ink); background: var(--paper-subtle); }
.button.primary { background: var(--cleared); border-color: var(--cleared); color: var(--cleared-fg); }
.button.primary:hover { background: var(--cleared-strong); border-color: var(--cleared-strong); }

/* Hero: Precision Blueprint 12-column grid */
.hero {
  display: grid; gap: 2.25rem 3.25rem; align-items: start;
  padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.75rem);
}
@media (min-width: 62rem) { .hero { grid-template-columns: 5fr 7fr; align-items: center; } }
.eyebrow {
  font: 500 0.78rem/1.3 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.45rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.032em; max-width: 15ch; }
.lede { margin-top: 1.2rem; font-size: 1.12rem; line-height: 1.58; max-width: 44ch; color: var(--ink-soft); }
.hero .fine { margin-top: 1rem; font-size: 0.88rem; }

/* Modular 3-tab Pipeline Inspector */
.inspector {
  border: 1.5px solid var(--ink); border-radius: 8px;
  background: var(--paper-raised); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.inspector-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--paper-subtle); border-bottom: 1px solid var(--rule);
}
.inspector-tab {
  position: relative; appearance: none; border: 0; border-right: 1px solid var(--rule);
  background: transparent; color: var(--ink-soft);
  padding: 0.8rem 0.85rem; cursor: pointer;
  font: 600 0.86rem/1.2 var(--sans);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  transition: background 140ms ease, color 140ms ease;
}
.inspector-tab:last-child { border-right: 0; }
.inspector-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--paper-raised) 55%, transparent); }
.inspector-tab[aria-selected="true"] {
  background: var(--paper-raised); color: var(--ink);
  box-shadow: inset 0 -2.5px 0 var(--cleared);
}
.tab-num { font: 500 0.78rem/1 var(--mono); color: var(--cleared); }
.tab-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--held); flex: none; }
@media (max-width: 36rem) {
  .inspector-tabs { grid-template-columns: 1fr; }
  .inspector-tab { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--rule); }
  .inspector-tab:last-child { border-bottom: 0; }
}

.inspector-panel { margin: 0; display: grid; gap: 0; }
.demo-pane { padding: 0.95rem 1.15rem 1.05rem; }
.pane-label {
  display: block; font: 600 0.74rem/1.2 var(--mono);
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-soft); margin-bottom: 0.5rem;
}
.delivered .pane-label { color: var(--cleared); }
.scrub-divider {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.2rem 1.15rem; background: var(--paper-raised);
  font: 600 0.72rem/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--cleared);
}
.scrub-divider::before, .scrub-divider::after {
  content: ""; flex: 1; height: 1px;
  background: color-mix(in srgb, var(--cleared) 45%, var(--rule));
}
.inspector textarea, .scrubbed {
  width: 100%; margin: 0; font: 400 0.84rem/1.62 var(--mono); color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.inspector textarea {
  display: block; resize: vertical; min-height: 8.2rem; padding: 0.65rem 0.75rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 5px;
}
.inspector textarea:focus-visible { border-color: var(--cleared); }
.scrubbed { min-height: 6.4rem; }
.inspector-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; padding: 0.7rem 1.15rem;
  background: var(--paper-subtle); border-top: 1px solid var(--rule);
  font-size: 0.82rem; color: var(--ink-soft);
}
.inspector-foot a { color: var(--cleared); font-weight: 600; text-decoration: none; }
.inspector-foot a:hover { text-decoration: underline; }
.telemetry-pill {
  font: 500 0.74rem/1.2 var(--mono); color: var(--ink);
  padding: 0.25rem 0.55rem; border-radius: 4px;
  border: 1px solid var(--rule); background: var(--paper-raised);
  white-space: nowrap;
}

/* Tab 2: Provenance Record panel */
.cert-panel { padding-top: 1.15rem; }
.cert-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; padding: 0 1.15rem 0.9rem; border-bottom: 1px solid var(--rule);
}
.cert-tier { font: 500 0.8rem/1.3 var(--mono); color: var(--ink-soft); }
.cert-grid {
  display: grid; gap: 0.75rem; margin: 0; padding: 1rem 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.cert-grid div {
  padding: 0.75rem 0.85rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--paper);
}
.cert-grid dt { font: 600 0.82rem/1.3 var(--sans); color: var(--ink); }
.cert-grid dd { margin: 0.25rem 0 0; font-size: 0.84rem; line-height: 1.45; color: var(--ink-soft); }
.cert-summary { padding: 0 1.15rem 1rem; font-size: 0.88rem; color: var(--ink-soft); }

/* Tab 3: Competing Offers panel */
.offers-panel { padding-top: 1rem; }
.offers-kicker {
  padding: 0 1.15rem 0.7rem;
  font: 500 0.75rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.offers-table-wrap { padding: 0 1.15rem; overflow-x: auto; }
.offers-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
  border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
}
.offers-table th, .offers-table td {
  padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--rule);
}
.offers-table th {
  background: var(--paper-subtle); font: 600 0.74rem/1.2 var(--mono);
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft);
}
.offers-table tr:last-child td { border-bottom: 0; }
.offers-table .offer-amt { font: 700 0.92rem/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.offers-table .offer-highlight td { background: color-mix(in srgb, var(--cleared) 10%, var(--paper-raised)); }
.offers-table .offer-highlight .offer-amt { color: var(--cleared); }
.offers-note { padding: 0.9rem 1.15rem 1rem; font-size: 0.86rem; color: var(--ink-soft); }
.offers-note strong { color: var(--ink); }

/* 6-Tile Source Connector Strip */
.sources-band { padding-block: 0.75rem 3.5rem; }
.sources-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.sources-grid {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
@media (min-width: 68rem) { .sources-grid { grid-template-columns: repeat(6, 1fr); } }
.source-card {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 1rem 0.95rem; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper-raised); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.source-card .src-icon { width: 1.85rem; height: 1.85rem; margin-bottom: 0.25rem; }
.source-card h3 { font-size: 0.95rem; line-height: 1.25; }
.source-card p { font-size: 0.82rem; line-height: 1.45; color: var(--ink-soft); flex: 1; }
.source-badge {
  display: inline-block; align-self: flex-start; margin-top: 0.35rem;
  padding: 0.22rem 0.48rem; border-radius: 4px;
  font: 500 0.7rem/1.2 var(--mono);
  color: var(--cleared);
  background: color-mix(in srgb, var(--cleared) 11%, var(--paper-raised));
  border: 1px solid color-mix(in srgb, var(--cleared) 26%, transparent);
}

/* Redaction tokens: an ink bar you can still read. */
.tok {
  background: var(--tok-bg); color: var(--tok-fg);
  padding: 0.06em 0.34em; border-radius: 3px; font-weight: 500;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tok.secret { background: repeating-linear-gradient(-45deg, var(--tok-bg) 0 6px, color-mix(in srgb, var(--cleared) 32%, var(--tok-bg)) 6px 9px); }
@media (prefers-reduced-motion: no-preference) {
  /* One reveal on load, token by token. Inline styles are off-limits (CSP), so the stagger lives here. */
  .scrubbed.revealing .tok { animation: ink 520ms cubic-bezier(.2,.7,.2,1) both; animation-delay: 840ms; }
  .scrubbed.revealing .tok:nth-of-type(1) { animation-delay: 0ms; }
  .scrubbed.revealing .tok:nth-of-type(2) { animation-delay: 70ms; }
  .scrubbed.revealing .tok:nth-of-type(3) { animation-delay: 140ms; }
  .scrubbed.revealing .tok:nth-of-type(4) { animation-delay: 210ms; }
  .scrubbed.revealing .tok:nth-of-type(5) { animation-delay: 280ms; }
  .scrubbed.revealing .tok:nth-of-type(6) { animation-delay: 350ms; }
  .scrubbed.revealing .tok:nth-of-type(7) { animation-delay: 420ms; }
  .scrubbed.revealing .tok:nth-of-type(8) { animation-delay: 490ms; }
  .scrubbed.revealing .tok:nth-of-type(9) { animation-delay: 560ms; }
  .scrubbed.revealing .tok:nth-of-type(10) { animation-delay: 630ms; }
  .scrubbed.revealing .tok:nth-of-type(11) { animation-delay: 700ms; }
  .scrubbed.revealing .tok:nth-of-type(12) { animation-delay: 770ms; }
  @keyframes ink { from { color: transparent; clip-path: inset(0 100% 0 0); } 60% { color: transparent; clip-path: inset(0 0 0 0); } to { color: var(--tok-fg); clip-path: inset(0 0 0 0); } }
}

/* Two sides of the market */
.sides { display: grid; gap: 1.75rem 2.25rem; padding-block: 3.5rem; border-top: 1px solid var(--rule); }
@media (min-width: 52rem) { .sides { grid-template-columns: 1fr 1fr; } }
.side {
  padding: 1.65rem 1.75rem; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper-raised); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.side ul { list-style: none; padding: 0; margin: 1.15rem 0 0; display: grid; gap: 0.9rem; max-width: 54ch; }
.side li { padding-left: 0.95rem; border-left: 3px solid color-mix(in srgb, var(--cleared) 45%, var(--rule)); }
.side strong { font-weight: 680; }

/* Bands */
section.wrap { padding-block: 3.5rem; }
.band { border-top: 1px solid var(--rule); }
section.wrap + section.wrap { border-top: 1px solid var(--rule); }
.section-lede { margin-top: 0.65rem; max-width: var(--measure); color: var(--ink-soft); font-size: 1.06rem; }

.kinds { display: grid; gap: 1rem; margin: 1.75rem 0 0; }
@media (min-width: 46rem) { .kinds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .kinds { grid-template-columns: repeat(3, 1fr); } }
.kinds > div {
  padding: 1.25rem 1.3rem; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper-raised);
}
.kinds dt { font-weight: 680; }
.kinds dd { margin: 0.35rem 0 0; color: var(--ink-soft); max-width: 42ch; font-size: 0.95rem; }

/* The sale is a real sequence, so it's numbered. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.steps li { counter-increment: step; position: relative; padding: 0 1.25rem 0 0; }
@media (min-width: 60rem) {
  .steps li { padding-top: 1.1rem; border-top: 3px solid var(--ink); }
  .steps li:last-child { border-top-color: var(--cleared); }
}
.steps h3::before { content: counter(step) ". "; color: var(--ink-soft); font-weight: 500; }
.steps p { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.97rem; }

.stamp { display: inline-block; padding: 0 0.45em; border: 1.5px solid currentColor; border-radius: 3px; font-weight: 650; font-size: 0.92em; line-height: 1.35; }
.stamp.cleared { color: var(--cleared); }
.stamp.held { color: var(--held); }
.checks { list-style: none; padding: 0; margin: 1.75rem 0 1.25rem; display: grid; gap: 0.15rem; max-width: 50rem; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; width: 0.95rem; height: 0.95rem; margin-top: 0.3rem; border: 1.5px solid var(--ink-soft); border-radius: 2px; }

/* Tool */
.drop {
  margin-top: 1.75rem; padding: 2rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  border: 1.5px dashed var(--ink-soft); border-radius: 6px; background: var(--paper-raised);
}
.drop.over { border-color: var(--focus); border-style: solid; }
.drop-hint { color: var(--ink-soft); }
input[type="file"]:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.status { margin-top: 1rem; min-height: 1.6em; color: var(--ink-soft); }
.status.error { color: var(--held); font-weight: 600; }
.result h3 { margin-top: 2rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.figures div { padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-raised); }
.figures dt { font-size: 0.88rem; color: var(--ink-soft); }
.figures dd { margin: 0.2rem 0 0; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-cols { display: grid; gap: 0 3rem; }
@media (min-width: 46rem) { .result-cols { grid-template-columns: 1fr 1fr; } }
.result-cols p { margin-top: 0.5rem; }
.kinds-list { list-style: none; padding: 0; margin: 0.5rem 0 0; columns: 2; column-gap: 2rem; }
.kinds-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; border-bottom: 1px solid var(--rule); break-inside: avoid; font-variant-numeric: tabular-nums; }
.samples { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.thread { border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-raised); padding: 0.75rem 0.9rem; }
.thread-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.thread .scrubbed { min-height: 0; font-size: 0.82rem; }

.footer { border-top: 1px solid var(--rule); background: var(--paper-raised); color: var(--ink-soft); font-size: 0.94rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2.5rem; padding-block: 2.25rem 3rem; }
.footer-brand { display: grid; gap: 0.6rem; max-width: 34rem; }
.footer .wordmark { color: var(--ink); }
.footer-brand a:not(.wordmark) { color: var(--ink); }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .masthead { position: static; }
  .masthead-inner { padding-block: 0.75rem; }
  .masthead nav { gap: 0.25rem 1rem; font-size: 0.9rem; }
  .nav-live { display: none; }
  .lede { font-size: 1.05rem; }
  .kinds-list { columns: 1; }
}

/* Inner pages */
.page { padding-block: clamp(2rem, 5vw, 3.5rem) 4rem; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; font-weight: 760; letter-spacing: -0.025em; }
.masthead nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.35rem; }
.prose p, .prose ul { margin-top: 0.75rem; max-width: var(--measure); }
.prose li { margin-top: 0.35rem; }

/* Forms */
.form { max-width: 44rem; margin-top: 2rem; display: grid; gap: 1.5rem; }
.form fieldset { margin: 0; padding: 1.25rem 1.25rem 1.4rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-raised); display: grid; gap: 1rem; min-width: 0; }
.form legend { padding: 0 0.4rem; font-weight: 700; font-size: 1.05rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .form .row { grid-template-columns: 1fr 1fr; } }
.form input:not([type="radio"]):not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 2.75rem; padding: 0.55rem 0.7rem;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: var(--focus); }
.form ::placeholder { color: color-mix(in srgb, var(--ink-soft) 75%, transparent); }
.choices { display: grid; gap: 0.4rem; }
.form label.choice { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; font-size: 1rem; }
.choice input { margin: 0.3rem 0 0; width: 1.05rem; height: 1.05rem; accent-color: var(--ink); flex: none; }
.attest { padding: 0 0.25rem; }
.hint { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: -0.4rem; }
.note { padding: 0.7rem 0.9rem; border-left: 3px solid currentColor; font-size: 0.95rem; }
.note.held { color: var(--held); background: color-mix(in srgb, var(--held) 8%, transparent); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; color: var(--ink-soft); }
.form-status.error { color: var(--held); font-weight: 600; }
.form .actions { margin-top: 0; }
.button:disabled { opacity: 0.6; cursor: progress; }
.done { margin-top: 2rem; max-width: 40rem; padding: 1.5rem; border: 1.5px solid var(--cleared); border-radius: 6px; background: var(--paper-raised); }
.done h2 { color: var(--cleared); }
.done p { margin-top: 0.6rem; }

/* Catalog */
.catalog { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 56rem) { .catalog { grid-template-columns: 1fr 1fr; } }
.listing { padding: 1.25rem 1.3rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-raised); }
.listing-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.listing-kind { color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }
.listing h2 { margin-top: 0.6rem; font-size: 1.3rem; }
.listing-desc { margin-top: 0.5rem; color: var(--ink-soft); white-space: pre-line; }
.listing-facts { margin: 1rem 0 0; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.listing-facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; }
.listing-facts dt { color: var(--ink-soft); }
.listing-facts dd { margin: 0; }
.listing .actions { margin-top: 1.1rem; }
.empty { margin-top: 2rem; max-width: 40rem; padding: 1.5rem; border: 1.5px dashed var(--ink-soft); border-radius: 6px; }
.empty p { margin-top: 0.6rem; }

/* Legal pages and footer links */
.updated { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.92rem; }
.prose ul ul { margin-top: 0.35rem; padding-left: 1.25rem; }
.prose li b { font-weight: 650; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.footer-links a[aria-current="page"] { color: var(--ink); }
.footer .fine { flex-basis: 100%; }
.footer-links { align-self: start; }
.consent { margin-top: -0.75rem; }

/* Illustrations: ink line art on paper, with the stamp colours. Inlined from
   site/svg/, so they take the theme in light and dark mode. */
.art { display: block; overflow: visible; }
.art .a-ln, .art .a-soft, .art .a-ok, .art .a-held, .art .a-pln { fill: none; }
.art .a-ln, .art .a-pp { stroke: var(--ink); }
.art .a-pp, .art .a-okpp { fill: var(--paper-raised); }
.art .a-bar { fill: var(--ink); }
.art .a-soft { stroke: var(--ink-soft); }
.art .a-ok, .art .a-okpp { stroke: var(--cleared); }
.art .a-okf { fill: var(--cleared); }
.art .a-held { stroke: var(--held); }
.art .a-heldf { fill: var(--held); }
.art .a-pln { stroke: var(--paper-raised); }
.art .a-ptxt { fill: var(--paper-raised); font-family: var(--mono); font-weight: 500; }
.art .a-oktxt { fill: var(--cleared); font-family: var(--sans); font-weight: 800; }
.icon { width: 2.75rem; height: 2.75rem; }

.kinds dt .icon { margin-bottom: 0.65rem; }
.steps .icon { width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; }
.sides-note { grid-column: 1 / -1; color: var(--ink-soft); }
.intro { margin-top: 1rem; max-width: var(--measure); }

/* What a buyer receives: a listing of the delivery, one row per artifact. */
.package { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; max-width: 56rem; border-top: 1px solid var(--rule); }
.package li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.25rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.package-name { font-weight: 650; }
.package-name code { font: 500 0.98rem/1.4 var(--mono); }
.package li p + p { margin-top: 0.2rem; color: var(--ink-soft); max-width: 60ch; }

.clearance { display: grid; gap: 2rem 4rem; align-items: start; }
@media (min-width: 62rem) { .clearance { grid-template-columns: minmax(0, 1fr) 15rem; } .record { position: sticky; top: 6rem; margin-top: 4.5rem; } }
.record { width: min(15rem, 100%); height: auto; }
@media (max-width: 61.99rem) { .record { display: none; } }

.talk .actions { margin-top: 1.5rem; }

/* Warnings that follow a choice in the listing form, without script. */
.when-consumer, .when-third-party { display: none; }
form:has(input[name="consumer_data"][value="true"]:checked) .when-consumer,
form:has(input[name="third_party_data"][value="true"]:checked) .when-third-party { display: block; }

.empty .empty-art { width: 9rem; height: auto; margin-bottom: 0.75rem; }
.account-note:empty { display: none; }

/* Masthead: the account link sits apart from the sections. */
.masthead nav .nav-account { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
@media (max-width: 40rem) { .masthead nav .nav-account { padding-left: 0; border-left: 0; } }

/* Account */
.auth { display: grid; gap: 1.5rem; margin-top: 2rem; align-items: start; }
@media (min-width: 56rem) { .auth { grid-template-columns: 2fr 3fr; } }
.auth-card { margin: 0; max-width: none; padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-raised); gap: 1.1rem; }
.auth-card h2 { font-size: 1.3rem; }
.auth-card .choices { border: 0; padding: 0; margin: 0; background: none; }
.auth-card legend { padding: 0; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.account-sent { max-width: 40rem; }
.account-sent .envelope { width: 6rem; height: auto; margin-bottom: 1.25rem; }
.account-sent h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; font-weight: 760; letter-spacing: -0.025em; }
.account-sent .fine { margin-top: 1rem; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; cursor: pointer; }
.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.account-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; font-weight: 760; letter-spacing: -0.025em; }
.account-head .actions { margin-top: 0; }
.cleared-note { margin-top: 1.5rem; color: var(--cleared); background: color-mix(in srgb, var(--cleared) 8%, transparent); }
.account-cols { display: grid; gap: 2.5rem 4rem; margin-top: 2.5rem; }
@media (min-width: 52rem) { .account-cols { grid-template-columns: 1fr 1fr; } }
.account-cols h2 { font-size: 1.35rem; }
.mine-list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.mine { padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-raised); }
.mine h3 { font-size: 1.05rem; }
.mine p { margin-top: 0.35rem; font-size: 0.95rem; }
.mine-stamps { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.profile { margin-top: 3rem; }
#acct-help { margin-top: 2rem; }

/* Admin */
.admin h1 { margin-bottom: 0.5rem; }
.adm-tabs { position: sticky; top: 4.1rem; z-index: 3; display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; margin: 1.25rem 0 0; padding: 0.75rem 0; background: var(--paper); border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.adm-tabs a { text-decoration: none; color: var(--ink-soft); }
.adm-tabs a:hover { color: var(--ink); text-decoration: underline; }
.count { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
.admin section { padding-top: 2.5rem; }
.admin section h2 { font-size: 1.45rem; }
.adm-list { display: grid; gap: 1rem; margin-top: 1rem; }
.adm-card { padding: 1.15rem 1.25rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-raised); }
.adm-card h3 { margin-top: 0.4rem; font-size: 1.2rem; }
.adm-contact { margin-top: 0.4rem; color: var(--ink-soft); }
.adm-contact a { color: var(--ink); }
.adm-card details { margin-top: 0.6rem; }
.adm-card summary { cursor: pointer; color: var(--ink-soft); }
.adm-controls { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--rule); display: grid; gap: 0.6rem; }
.adm-controls textarea, .adm-card select { font: 400 0.95rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px; padding: 0.45rem 0.6rem; }
.adm-controls textarea { width: 100%; resize: vertical; }
.adm-card select { min-height: 2.75rem; }
.adm-card .actions { margin-top: 0.25rem; align-items: center; }
.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-raised); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.adm-table th, .adm-table td { padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.adm-table th { font-weight: 650; color: var(--ink-soft); white-space: nowrap; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table .stamp { margin-right: 0.4rem; }
.button.small { min-height: 2.25rem; padding: 0.3rem 0.8rem; font-size: 0.9rem; }
.adm-log { padding-left: 1.25rem; margin: 1rem 0 0; display: grid; gap: 0.35rem; font-size: 0.95rem; }

/* 404 */
.not-found .missing { width: min(13rem, 60%); height: auto; margin-bottom: 1.5rem; }
.not-found .actions { margin-top: 1.5rem; }
.not-found .fine { margin-top: 2rem; }

/* Listing detail page, datasheets, and provenance certificates */
.back-link { margin-bottom: 1rem; font-size: 0.95rem; color: var(--ink-soft); }
.back-link a { text-decoration: none; }
.back-link a:hover { color: var(--ink); text-decoration: underline; }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 1rem 2rem; }
.detail-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.detail-section h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.detail-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 1rem; }
.detail-section-head h2, .detail-section-head .actions { margin: 0; }
.cert-card { padding: 1.25rem 1.35rem; border: 1.5px solid var(--rule); border-radius: 6px; background: var(--paper-raised); display: grid; gap: 0.9rem; }
.cert-card.verified { border-color: var(--cleared); }
.cert-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; }
.cert-code { margin: 0; padding: 0.7rem 0.9rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); font: 400 0.84rem/1.5 var(--mono); overflow-x: auto; }
.mono { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }
.datasheet-doc { padding: 1.4rem 1.5rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-raised); display: grid; gap: 0.85rem; }
.datasheet-doc h2 { font-size: 1.35rem; margin-top: 0.75rem; }
.datasheet-doc h3 { font-size: 1.15rem; margin-top: 0.6rem; }
.datasheet-doc ul { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.3rem; }
.datasheet-doc blockquote { margin: 0; padding: 0.65rem 0.9rem; border-left: 3px solid var(--held); background: color-mix(in srgb, var(--held) 8%, transparent); }

/* Account & Admin offers, deals, routing, and inline forms */
.acct-section { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.acct-section h2 { font-size: 1.35rem; }
.acct-section .fine { margin-top: 0.35rem; }
.adm-inline-form { margin-top: 1rem; }
.adm-form { padding: 1.1rem 1.25rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-raised); display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.adm-form-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.adm-form label { display: grid; gap: 0.25rem; font-size: 0.9rem; font-weight: 600; }
.adm-form input:not([type="checkbox"]), .adm-form select, .adm-form textarea {
  width: 100%; min-height: 2.5rem; padding: 0.45rem 0.6rem;
  font: 400 0.95rem/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px;
}
.adm-form textarea { resize: vertical; }
.adm-route-box { margin-top: 0.9rem; padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); display: grid; gap: 0.6rem; }
.adm-route-box h4 { margin: 0; font-size: 0.95rem; }
.adm-route-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; font-size: 0.92rem; }
.deal-history { margin: 0.6rem 0 0; padding-left: 1.2rem; font-size: 0.88rem; color: var(--ink-soft); display: grid; gap: 0.2rem; }
.verify-box { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed var(--rule); display: grid; gap: 0.5rem; }
.verify-box input { width: 100%; min-height: 2.5rem; padding: 0.45rem 0.6rem; font: 400 0.9rem/1.4 var(--mono); color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px; }
