/*
  architect.loomiks.ai. Family of loomiks.ai, the Sizer, the Planner and the Analyst: dark ground, Quicksand only, pill
  buttons, a light running along the header line. Palette Quartz (owner, 4 December 2026): violet accent on a violet
  black ground. The Analyst's second design holds from the start: no badge, no labels in capitals, rules not boxes.
  Only a group of controls and the quote request's paper stand on a surface of their own. The corner says what a thing
  is: a pill is pressed, a 12 pixel corner takes typing, a 6 pixel corner is paper. One movement on load: the drawing
  on the opening page fills in. No inline style anywhere: positions in drawings are SVG geometry.
*/
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/quicksand-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/quicksand-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/quicksand-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/quicksand-latin-700.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --ground: #0b0912;
  --sheet: #13101d;
  --ink: #f4f1fb;
  --accent: #b69cff;
  --accent-hi: #ddd0ff;
  --accent-lo: #8b6cf5;
  --on-accent: #160a33;
  --glow: 182, 156, 255;
  --ink2: color-mix(in srgb, var(--ink) 74%, transparent);
  --ink3: color-mix(in srgb, var(--ink) 58%, transparent);
  --rule: rgba(255, 255, 255, 0.085);
  --rule2: rgba(255, 255, 255, 0.17);
  /* Edges that identify a control: at least 3:1 against the ground (WCAG 2.1, 1.4.11). */
  --edge: rgba(255, 255, 255, 0.42);
  --ok: #86e3a4;
  --wait: #f6c768;
  --stop: #ff8d84;
  --f: 'Quicksand', 'Avenir Next', system-ui, sans-serif;
  --paper: 6px;
  --typed: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 500 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:is(a, button, input, select, summary, textarea):focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
#main:focus { outline: none; }
.wrap { width: min(calc(100% - clamp(2rem, 5vw, 5rem)), 86rem); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--ground); font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
code { color: var(--ink3); font-size: 0.78rem; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* Header: words on a line, and a light runs along the line. The same idea as the other four sites, in Quartz. */
.top { position: sticky; top: 0; z-index: 30; height: 68px; }
.top::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--ground) 96%, transparent), color-mix(in srgb, var(--ground) 86%, transparent)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bus { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; overflow: hidden; background: linear-gradient(90deg, transparent, var(--rule2) 4%, var(--rule2) 96%, transparent); }
.bus::after { content: ''; position: absolute; top: 0; left: -240px; width: 240px; height: 100%; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hi)); animation: run 7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
@keyframes run { 0% { transform: translateX(0); opacity: 0; } 8%, 55% { opacity: 1; } 62%, 100% { transform: translateX(calc(100vw + 240px)); opacity: 0; } }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { display: flex; align-items: center; height: 44px; }
.logo svg { display: block; width: 106px; height: 28px; }
.prod { position: relative; padding-left: 15px; color: var(--accent); font-size: 0.875rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.prod::before { content: ''; position: absolute; top: 50%; left: 0; width: 1px; height: 16px; margin-top: -8px; background: var(--rule2); }
.acts { display: flex; align-items: center; gap: 24px; }
.link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink2); font-size: 0.90625rem; text-decoration: none; white-space: nowrap; transition: color 0.18s; }
.link:hover { color: #fff; }
.link .ic { opacity: 0.7; }
.link.open { color: var(--accent-hi); font-weight: 600; }
@media (max-width: 1080px) { .acts .link:not(.open) { display: none; } }
@media (max-width: 560px) { .prod { display: none; } }

/* The band: the catalogue the page reads, and the site's sections on the same line. */
.band { position: sticky; top: 68px; z-index: 20; border-block: 1px solid var(--rule); background: color-mix(in srgb, var(--ground) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.band-in { display: flex; align-items: stretch; gap: 18px; min-height: 52px; }
.case-tag { display: inline-flex; flex: none; align-items: center; color: var(--ink3); font-size: 0.84rem; font-weight: 600; white-space: nowrap; }
.tabs { display: flex; margin-left: auto; margin-right: -14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: inline-flex; flex: none; align-items: center; min-height: 52px; padding: 0 14px; color: var(--ink2); font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color 0.18s; }
.tabs a:hover { color: #fff; }
.tabs a:focus-visible { outline-offset: -4px; }
.tabs a[aria-current='page'] { color: var(--accent-hi); }
.tabs a[aria-current='page']::after { content: ''; position: absolute; right: 14px; bottom: 0; left: 14px; height: 2px; background: var(--accent); }
@media (max-width: 1100px) { .band { position: static; } .band-in { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; } .tabs { margin-left: -14px; } .tabs a { min-height: 44px; } .case-tag { white-space: normal; } html { scroll-padding-top: 84px; } }

/* Buttons are pills: flat colour, no light under them. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 0.96rem; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.18s, border-color 0.18s, color 0.18s; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hi); }
.btn.ghost { border-color: var(--edge); background: transparent; color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.row, .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.actions { margin-top: 26px; }

/* Openings: the question, set large and light, one line under it. */
.opening { padding: clamp(36px, 4.6vw, 64px) 0 clamp(24px, 3vw, 36px); }
.opening h1, .hero h1 { max-width: 18em; font-size: clamp(2.3rem, 5vw, 4.4rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.042em; }
.lede { max-width: 40rem; margin-top: clamp(16px, 2vw, 24px); color: var(--ink2); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; text-wrap: pretty; }
.opening .ctas { margin-top: 26px; }
.by { margin-bottom: 12px; color: var(--ink3); font-size: 0.9rem; font-weight: 600; line-height: 1.5; }
.note { color: var(--ink3); font-size: 0.875rem; line-height: 1.5; }
.prose { max-width: 46rem; color: var(--ink2); font-size: 1rem; line-height: 1.65; text-wrap: pretty; }
.prose + .qs, .prose + .prose { margin-top: 10px; }
.prose b { color: var(--ink); }
.when { color: var(--accent-hi); font-size: 0.875rem; font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.links a, .prose a, .note a, .qs a { color: var(--accent-hi); text-decoration: none; }
.links a:hover, .prose a:hover, .note a:hover, .qs a:hover { text-decoration: underline; }

/* The opening page: one drawing to scale, then three ways in. */
.hero { padding: clamp(40px, 4.6vw, 68px) 0 clamp(36px, 4vw, 56px); }
.hero-in { display: grid; gap: clamp(32px, 4vw, 52px); }
.hero-in > * { min-width: 0; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: calc(-1 * clamp(8px, 1.4vw, 20px)); }
.hero-sub .lede { margin-top: 0; }
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 64px); align-items: start; padding-top: 24px; border-top: 1px solid var(--rule2); }
.versus > figcaption { grid-column: 1 / -1; max-width: 46rem; color: var(--ink2); font-size: 1rem; line-height: 1.55; }
.vs { min-width: 0; }
.vs-name { margin-bottom: 14px; color: var(--ink); font-size: 1rem; font-weight: 600; }
.vs .lensfig { animation: appear 0.7s var(--ease) both; }
.vs + .vs .lensfig { animation-delay: 0.35s; }
.same .unit { stroke: var(--rule2); }
.same .lens { width: 100%; max-width: 34rem; }
.same.together .unit.one { fill: rgba(var(--glow), 0.07); stroke: var(--accent); stroke-width: 1.5; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.key { max-width: 46rem; }
.entries { padding-bottom: clamp(48px, 6vw, 88px); }
.entries-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule2); }
.entry { display: block; padding: 26px 28px 30px 0; color: inherit; text-decoration: none; }
.entry + .entry { padding-left: 28px; border-left: 1px solid var(--rule); }
.entry h2 { color: var(--accent-hi); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
a.entry:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.entry p { margin-top: 10px; color: var(--ink2); font-size: 0.96rem; line-height: 1.55; }
.entry .links { margin-top: 14px; }
@media (max-width: 860px) { .versus { grid-template-columns: minmax(0, 1fr); } .entries-in { grid-template-columns: minmax(0, 1fr); } .entry, .entry + .entry { padding: 22px 0; border-left: 0; } .entry + .entry { border-top: 1px solid var(--rule); } }

/* The domain lens: units outlined, GPUs as cells, one fill per NVLink domain. */
.lensfig { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.lensfig figcaption { color: var(--ink3); font-size: 0.875rem; font-weight: 600; line-height: 1.45; }
.lens { display: block; max-width: 100%; height: auto; }
.lens .unit { fill: rgba(255, 255, 255, 0.025); stroke: var(--rule2); stroke-width: 1; }
.lens .g { stroke: none; }
.lens .d0 { fill: var(--accent); }
.lens .d1 { fill: var(--accent-lo); }
.lens .pcie { fill: none; stroke: var(--ink3); stroke-width: 1; }
.lens .span { fill: none; stroke: var(--accent-hi); stroke-width: 2; stroke-dasharray: 4 4; }
/* The 3D lens, where the device draws it: the same figure, the same caption. Drag turns it. */
.lens3d { display: block; width: 100%; height: 300px; cursor: grab; touch-action: pan-y; }
.lens3d:active { cursor: grabbing; }
.lens3d.rack { height: 480px; }
.lens3d.racks { height: 400px; }
.split.has-3d { grid-template-columns: minmax(18rem, 32rem) minmax(0, 1fr); }
.split.has-3d .figure-col { width: 100%; }

/* Work sits on the ground in ruled blocks. */
.work { padding-bottom: clamp(56px, 7vw, 96px); }
.block { margin-top: clamp(36px, 4vw, 52px); padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--rule2); }
.block h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.block h2 + .note, .block h2 + .prose, .block h2 + .links, .block h2 + .qs, .block h2 + .scroll { margin-top: 10px; }
.block h3 { margin-top: 20px; font-size: 1.05rem; font-weight: 600; }
.qs { display: grid; gap: 7px; margin: 10px 0 0; padding-left: 1.2rem; color: var(--ink2); font-size: 0.96rem; line-height: 1.5; }

/* A group of controls is the one thing on a screen with a surface. */
.console { padding: 20px 22px 22px; border: 1px solid var(--rule); border-radius: 16px; background: var(--sheet); }
.form { display: grid; gap: 22px; }
.form fieldset { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form legend { margin-bottom: 10px; padding: 0; color: var(--accent-hi); font-size: 1rem; font-weight: 600; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label { color: var(--ink2); font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
.field small { color: var(--ink3); font-size: 0.8rem; line-height: 1.4; }
.input, .select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--edge); border-radius: var(--typed); background: var(--ground); color: var(--ink); font-weight: 600; }
.select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option, .select optgroup { background: var(--sheet); color: var(--ink); }
.input:hover, .select:hover { border-color: var(--ink2); }
.input::placeholder { color: var(--ink3); }
.input.wide { max-width: 32rem; }
input[type='date'].input { color-scheme: dark; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; }
.controls .field { flex: 1 1 14rem; }
.controls .field.grow { flex: 3 1 22rem; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink2); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.console .presets + .controls, .console .field + .presets { margin-top: 16px; }
.tog { min-height: 36px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 999px; background: transparent; color: var(--ink2); font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: border-color 0.18s, background 0.18s, color 0.18s; }
.tog:hover { color: #fff; }
.tog[aria-pressed='true'] { border-color: var(--accent); background: rgba(var(--glow), 0.16); color: var(--accent-hi); }
.alert { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--wait); border-radius: 0 var(--paper) var(--paper) 0; background: color-mix(in srgb, var(--wait) 9%, transparent); color: var(--wait); font-weight: 600; font-size: 0.92rem; }
.alert-link { color: var(--ink); text-decoration: underline; }

/* The selection screen: the controls to the left, the answer to the right. */
.tool { display: grid; grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 52px); align-items: start; }
.tool > .console { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; }
.out { min-width: 0; }
.out > .alert:first-child { margin-top: 0; }
@media (max-width: 980px) { .tool { grid-template-columns: minmax(0, 1fr); } .tool > .console { position: static; max-height: none; } }
@media (max-width: 1100px) { .tool > .console { top: 84px; max-height: calc(100vh - 100px); } }

/* The answer: said once, large. */
.answer { padding-bottom: 22px; border-bottom: 1px solid var(--rule2); }
.summary { margin-top: 10px; max-width: 46rem; font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 500; line-height: 1.38; letter-spacing: -0.02em; text-wrap: pretty; }
/* Status: the word carries it; the dot and the colour only support it. */
.verdict { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 0.875rem; font-weight: 700; }
.verdict::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.verdict.big { font-size: 1rem; }
.verdict.fit { color: var(--ok); }
.verdict.provisional { color: var(--wait); }
.verdict.excluded { color: var(--stop); }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-top: 6px; }
.pick { display: grid; align-content: start; gap: 10px; padding: 22px 24px 24px 0; border-bottom: 1px solid var(--rule); }
.pick + .pick { padding-left: 24px; border-left: 1px solid var(--rule); }
.pick-label { color: var(--accent-hi); font-size: 0.9rem; font-weight: 600; }
.pick h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.pick h3 a, .cand-head a, .item h3 a { text-decoration: none; }
.pick h3 a:hover, .cand-head a:hover, .item h3 a:hover { color: var(--accent-hi); }
.pick dl { display: grid; gap: 4px; color: var(--ink2); font-size: 0.9rem; line-height: 1.5; }
.pick dt { margin-top: 6px; color: var(--ink3); font-size: 0.8rem; font-weight: 700; }
.pick .row { margin-top: 6px; }
@media (max-width: 720px) { .pick, .pick + .pick { padding: 20px 0; border-left: 0; } }
.cands { margin-top: 6px; }
.cand { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.cand:last-child { border-bottom: 0; }
.cand-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cand-head a { font-size: 1.05rem; font-weight: 600; }
.cand-head .by { margin: 0; font-size: 0.84rem; }
.cand .note { margin-top: 10px; }
.cand .row { margin-top: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--ink2); font-size: 0.86rem; }
.fact b { color: var(--ink); font-weight: 700; }
.facts .fact + .fact { position: relative; }
.facts .fact + .fact::before { content: ''; position: absolute; top: 50%; left: -9px; width: 3px; height: 3px; margin-top: -1px; border-radius: 50%; background: var(--ink3); }
details.rules { margin-top: 10px; }
details summary { cursor: pointer; color: var(--accent-hi); font-size: 0.875rem; font-weight: 700; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '+ '; }
details[open] summary::before { content: '- '; }
.checks { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; color: var(--ink2); font-size: 0.875rem; line-height: 1.5; list-style: none; }
.checks li { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); gap: 10px; }
.res { font-weight: 700; }
.res.pass { color: var(--ok); }
.res.fail { color: var(--stop); }
.res.needs_evidence { color: var(--wait); }
.srcs { color: var(--ink3); }
a.src { color: var(--accent-hi); text-decoration: none; }
a.src:hover { text-decoration: underline; }
.lane { margin-top: 18px; }
.lane h3 { margin-top: 0; }
.lane .note { margin-top: 4px; }

/* Evidence: a stamp on the line it supports. */
.chip { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); color: var(--ink2); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.chip.Published, .chip.Signed, .chip.Measured, .chip.Confirmed { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.chip.Estimate { background: color-mix(in srgb, var(--wait) 13%, transparent); color: var(--wait); }
.chip.Missing { background: color-mix(in srgb, var(--stop) 14%, transparent); color: var(--stop); }
.chip.stale { background: color-mix(in srgb, var(--wait) 13%, transparent); color: var(--wait); }

/* Tables are ledgers: a rule above and below, a hairline between the rows. */
.scroll { margin-top: 12px; overflow-x: auto; border-block: 1px solid var(--rule2); }
.scroll.flush { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th { color: var(--ink3); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
.ledger td { white-space: nowrap; }
.ledger.wrap-cells td { white-space: normal; }
.ledger tbody th[scope='row'] { min-width: 9rem; }
.ledger a { color: var(--accent-hi); text-decoration: none; }
.ledger a:hover { text-decoration: underline; }
.src-note { display: block; margin-top: 4px; color: var(--ink3); font-size: 0.8rem; line-height: 1.45; }
table.key { border-block: 1px solid var(--rule2); }

/* Catalogue: filters, then items under rules. */
.filters { display: grid; gap: 12px; margin-bottom: 22px; padding: 18px 22px 20px; border: 1px solid var(--rule); border-radius: 16px; background: var(--sheet); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-name { min-width: 7.5rem; color: var(--ink3); font-size: 0.84rem; font-weight: 600; }
.filters .search { max-width: 30rem; margin-top: 4px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 clamp(24px, 3vw, 44px); margin: 10px 0 0; padding: 0; list-style: none; }
.item { padding: 20px 0 22px; border-top: 1px solid var(--rule); }
.item .by { margin-bottom: 6px; font-size: 0.84rem; }
.item h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.item > p:not(.by) { margin-top: 8px; color: var(--ink2); font-size: 0.92rem; line-height: 1.5; }

/* A product page: status, then the drawing beside the facts. */
.strip { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.strip li { display: grid; gap: 3px; padding-left: 14px; border-left: 1px solid var(--rule2); font-size: 0.875rem; }
.strip b { font-weight: 700; }
.strip span { color: var(--ink3); }
.split { display: grid; grid-template-columns: minmax(12rem, max-content) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: 10px; }
.figure-col { min-width: 0; max-width: 36rem; padding-top: 14px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* The same-scale view: a ledger, then the drawings side by side. */
.lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 28px clamp(24px, 3vw, 44px); margin-top: 28px; }
.lens-item { min-width: 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.lens-item h3 { margin-bottom: 12px; font-size: 1rem; font-weight: 600; }
.lens-item .verdict { margin-top: 12px; }

/* The quote request: the one paper on the page. */
.sheet { margin-top: 18px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--rule2); border-top: 2px solid var(--accent); border-radius: var(--paper); background: var(--sheet); }
.sheet-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.sheet-head h2 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; }
.sheet > .note { margin-top: 10px; }
/* The basis: what the request rests on, label beside value. */
.sheet-sub { margin-top: 22px; color: var(--ink3); font-size: 0.85rem; font-weight: 600; }
.basis { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--rule); }
.basis > div { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: 4px 18px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.basis dt { color: var(--ink3); font-size: 0.85rem; }
.basis dd { color: var(--ink); font-size: 0.92rem; line-height: 1.5; }
@media (max-width: 640px) { .basis > div { grid-template-columns: minmax(0, 1fr); } }
.sheet .scroll { margin-top: 8px; }
@media (min-width: 641px) { #rfq-table tbody th[scope='row'] { min-width: 0; width: 3.5rem; } }
.print-only { display: none; }
span.print-only { display: none; }
details.csv { margin-top: 18px; }
textarea { width: 100%; min-height: 160px; margin-top: 10px; padding: 12px; border: 1px solid var(--edge); border-radius: var(--typed); background: var(--ground); color: var(--ink2); font: 500 0.8rem/1.45 ui-monospace, 'SF Mono', Menlo, monospace; }
#rq-brief { margin-top: 14px; }

/* The name decoder. */
.meanings { margin-top: 22px; }
.meaning { display: grid; gap: 8px; padding: 20px 0; border-top: 1px solid var(--rule); }
.meaning .kind { color: var(--ink3); font-size: 0.84rem; font-weight: 600; }
.meaning h3 { font-size: 1.15rem; font-weight: 600; }
.meaning > p:not(.kind):not(.when) { max-width: 46rem; color: var(--ink2); line-height: 1.55; }

/* The method note and the legal text: a reading column. */
.doc { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 92px); }
.doc-in { max-width: 52rem; }
.doc h1 { font-size: clamp(2rem, 3.8vw, 3.25rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.04em; }
.doc .lede { max-width: 46rem; margin-top: 22px; }
.doc h2 { margin-top: 48px; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.doc h3 { margin-top: 26px; font-size: 1.08rem; font-weight: 600; }
.doc :is(h2, h3) + p { margin-top: 10px; }
.doc p, .doc li { color: var(--ink2); font-size: 1rem; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc b, .doc strong { color: var(--ink); }
.doc .meta { margin-top: 18px; color: var(--ink3); font-size: 0.9rem; }
.doc a { color: var(--accent-hi); }
.doc .scroll { margin-top: 14px; }
.doc section { scroll-margin-top: 140px; }
.sources li { font-size: 0.9rem; line-height: 1.55; }
.draft { display: inline-flex; margin-left: 8px; padding: 2px 9px; border: 1px dashed var(--wait); border-radius: 4px; color: var(--wait); font-size: 0.8rem; font-weight: 700; }
.legal-toc { margin-top: 28px; padding: 18px 0; border-block: 1px solid var(--rule2); }
.legal-toc p { color: var(--ink3); font-size: 0.875rem; font-weight: 600; }
.legal-toc ol { margin-top: 8px; columns: 2 16rem; }
.legal-toc a { color: var(--accent-hi); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-scroll { margin-top: 14px; overflow-x: auto; border-block: 1px solid var(--rule2); }
.legal-table td, .legal-table th { text-align: left; white-space: normal; vertical-align: top; }

/* Footer */
.foot { padding: 44px 0 72px; border-top: 1px solid var(--rule); color: var(--ink3); font-size: 0.875rem; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 28px; align-items: center; }
.foot .logo svg { width: 91px; height: 24px; opacity: 0.9; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.foot-links a { color: var(--ink2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-band { grid-column: 1 / -1; color: var(--ink2); font-weight: 600; }
.foot-company { grid-column: 1 / -1; }
@media (max-width: 640px) { .foot-in { grid-template-columns: minmax(0, 1fr); } .foot-links { justify-content: flex-start; } }

/* Narrow screens: each table row becomes a short card of label and value, so no row needs sideways scrolling. */
@media (max-width: 640px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
  .console, .filters { padding: 16px 16px 18px; }
  .checks li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.stack tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack th[scope='row'] { padding: 0 0 6px; border: 0; color: var(--ink); white-space: normal; }
  table.stack td { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 4px 0; border: 0; text-align: right; white-space: normal; }
  table.stack td::before { content: attr(data-label); flex: none; max-width: 42%; color: var(--ink3); font-size: 0.8rem; font-weight: 600; text-align: left; }
  .scroll { overflow-x: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Printing: a light page with the facts and the answer; controls and moving parts stay off. */
@media print {
  :root { color-scheme: light; --ground: #fff; --sheet: #fff; --ink: #120d1e; --accent: #5b3fb8; --accent-hi: #5b3fb8; --accent-lo: #8b6cf5; --on-accent: #fff; --ok: #1d6b3a; --wait: #8a5a00; --stop: #a3221a; --rule: #ddd8e6; --rule2: #c0b8cf; --ink2: #2f2840; --ink3: #4e4761; --glow: 91, 63, 184; }
  body { background: #fff; color: var(--ink); }
  .skip, .top, .tabs, .console, .actions, .ctas, .row, details.csv { display: none !important; }
  *, *::before, *::after { animation: none !important; }
  .band { position: static; border: 1px solid var(--ink); }
  .tool { grid-template-columns: minmax(0, 1fr); }
  .sheet, .block, .cand { break-inside: avoid; }
  .print-only { display: block; }
  span.print-only { display: inline; }
  /* The quote request prints as the paper alone: the supplier gets the request, not the site around it. */
  @page { margin: 14mm 12mm; }
  body[data-page='rfq'] .band, body[data-page='rfq'] .opening, body[data-page='rfq'] .foot, body[data-page='rfq'] #rq-brief, .carries { display: none !important; }
  body[data-page='rfq'] .work { padding: 0; }
  body[data-page='rfq'] .wrap { width: 100%; }
  body[data-page='rfq'] .sheet { margin: 0; padding: 0; border: 0; border-radius: 0; break-inside: auto; }
  .sheet .scroll { overflow: visible; border: 0; }
  table.stack { display: table; width: 100%; }
  table.stack thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  table.stack tbody { display: table-row-group; }
  table.stack tr { display: table-row; padding: 0; }
  table.stack th, table.stack td { display: table-cell; width: auto; text-align: left; }
  table.stack td::before { content: none; }
  #rfq-table { font-size: 8.5pt; line-height: 1.35; border-collapse: collapse; }
  #rfq-table th, #rfq-table td { padding: 4px 6px; border: 1px solid var(--rule2); vertical-align: top; white-space: normal; }
  #rfq-table tr { break-inside: avoid; }
  #rfq-table tbody th[scope='row'] { min-width: 0; width: 2.6em; }
  #rfq-table a.src { color: var(--ink); text-decoration: none; }
  #rfq-table .ref { color: var(--ink3); white-space: nowrap; }
  .print-sources { margin: 10px 0 0; padding-left: 2.2em; color: var(--ink2); font-size: 8pt; line-height: 1.45; word-break: break-all; }
  .print-sources li::marker { content: '[' counter(list-item) '] '; }
  .print-foot { margin-top: 12px; color: var(--ink3); font-size: 8.5pt; }
}
