/* Built by tools/build.py from assets/css/v3/*.css. Edit those files, not this one. */
/* --- 00-base.css --- */
/* Shared layout: one container, twelve columns and one spacing/type scale.
   The v2 theme supplies Duffi's existing colours, Inter and JetBrains Mono. */
:root {
  --w: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --gap: 1.5rem;
  --sec: clamp(4rem, 8vw, 7rem);
  --head-gap: 2.5rem;
  --columns: repeat(12, minmax(0, 1fr));
  --title-size: clamp(2.25rem, 4.2vw, 3.75rem);
  --section-size: clamp(2rem, 3vw, 2.75rem);
}
.wrap { width: 100%; max-width: calc(var(--w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.head--split { max-width: calc(var(--w) + 2 * var(--gutter)); }
.section, .page-hero { padding-block: var(--sec); }
.page-hero .display { font-size: var(--title-size); line-height: 1.05; max-width: 17em; margin-top: 1rem; }
.page-hero__grid { align-items: start; }
.page-hero .lead { margin-top: 1.25rem; max-width: 38em; }
.h2 { font-size: var(--section-size); line-height: 1.1; }
.h3 { font-size: 1.25rem; line-height: 1.3; }
.lead { font-size: 1.125rem; line-height: 1.6; }
.body, .card p, .table, .step p, .problem__item p { font-size: 1rem; line-height: 1.6; }
.label, .status, .table thead th, .step::before, .card code { font-size: .875rem; }
.head { gap: 1rem; margin-bottom: var(--head-gap); max-width: 50rem; }
.head--split { max-width: none; gap: var(--gap); align-items: start; }
.head--split > div { gap: .875rem; }
.actions { margin-top: 1.5rem; gap: .75rem 1rem; }
.arrow { white-space: normal; }
.card { padding: 1.5rem; }
.split { gap: 2rem; }
.split__sticky { position: static; gap: 1rem; }
.closing { align-items: center; gap: var(--gap); }
.closing .h2 { max-width: 19em; }
.closing .lead { margin-top: 1rem; }
.closing .actions { margin-top: 0; }
.media { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.nowrap { white-space: nowrap; }
main [id] { scroll-margin-top: 5.5rem; }
@media (min-width: 60rem) {
  .head--split, .page-hero__grid, .split, .closing { display: grid; grid-template-columns: var(--columns); column-gap: var(--gap); }
  .head--split > :first-child, .split > :first-child { grid-column: 1 / span 5; }
  .head--split > :nth-child(2), .split > :nth-child(2) { grid-column: 6 / -1; }
  .head--split > :nth-child(2) { margin-top: 2.35rem; }
  .head--split > .lead, .head--split > :nth-child(2) > .lead { font-size: 1.125rem; }
  .page-hero__grid > :first-child { grid-column: 1 / span 7; }
  .page-hero__grid > :nth-child(2) { grid-column: 9 / -1; }
  .closing > :first-child { grid-column: 1 / span 7; }
  .closing > :nth-child(2) { grid-column: 9 / -1; justify-self: start; }
}
/* One row for work, products and record types. The optional last column holds a status, use or link. */
.catalogue { display: grid; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.catalogue__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; padding-block: 1rem; border-bottom: 1px solid var(--line); align-items: start; }
.catalogue__title { font-size: 1.25rem; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.catalogue__body { color: var(--ink-2); font-size: 1rem; line-height: 1.6; max-width: 65ch; }
.catalogue__meta { color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.catalogue__meta .arrow { font-size: .9375rem; color: var(--ink); }
.catalogue__row > * { min-width: 0; }
@media (min-width: 60rem) {
  .catalogue__row { grid-template-columns: var(--columns); column-gap: var(--gap); }
  .catalogue__title { grid-column: 1 / span 3; }
  .catalogue__body { grid-column: 4 / span 6; }
  .catalogue__meta { grid-column: 10 / -1; }
  .catalogue--plain .catalogue__body { grid-column: 4 / -1; }
}
/* Label/value rows use the same title and body edges as catalogues. */
.spec > div { gap: .4rem var(--gap); padding-block: 1rem; }
.spec dd { font-size: 1rem; }
.spec dd code { font-size: .875rem; }
@media (min-width: 60rem) {
  .spec--full > div { display: grid; grid-template-columns: var(--columns); }
  .spec--full dt { grid-column: 1 / span 3; }
  .spec--full dd { grid-column: 4 / -1; }
}
/* One disclosure component for questions, industries and task families. */
.disclosure { border-top: 1px solid var(--line); }
.disclosure:last-child { border-bottom: 1px solid var(--line); }
.disclosure > summary { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; list-style: none; cursor: pointer; padding-block: 1.1rem; font-size: 1.0625rem; line-height: 1.5; font-weight: 500; color: var(--ink); }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: "+"; flex: none; color: var(--ink-3); font-family: var(--mono); font-size: 1.125rem; }
.disclosure[open] > summary::after { content: "−"; transform: none; }
.disclosure > :not(summary) { margin-bottom: 1.25rem; }
.faq { border: 0; }
.faq .disclosure { border-bottom: 0; }
.faq .disclosure:last-child { border-bottom: 1px solid var(--line); }
.faq .disclosure > div { padding-bottom: 0; font-size: 1rem; }
.report-details, .viewer__context { border-top: 1px solid var(--line); margin-top: 1rem; }
.report-details > summary, .viewer__context > summary { cursor: pointer; padding-block: 1rem; color: var(--ink); font-size: 1rem; font-weight: 500; }
.report-details[open] > summary, .viewer__context[open] > summary { margin-bottom: .5rem; }
.report-details .viewer__file { margin-top: .5rem; }
.viewer__diagnosis { color: var(--on-deep-2); font-size: 1rem; line-height: 1.55; }
.viewer__file, .sample-file__body, .run__kind, .sample-code .viewer__file { font-size: .875rem; }
.viewer__tabs legend.visually-hidden { width: 1px; }
@media (max-width: 44rem) {
  :root { --sec: 3.5rem; --head-gap: 2.5rem; }
  .page-hero .display { font-size: 2.25rem; }
  .page-hero__grid { gap: 2rem; }
  .head--split > :nth-child(2) { margin-top: 0; }
  .card { padding: 1.25rem; }
  .catalogue__meta { margin-top: .25rem; }
  .closing .actions { margin-top: .25rem; }
}

/* Tables and long inventories keep their row spacing but use a smaller section margin. */
.table th, .table td { padding-block: .75rem; }
@media (min-width: 60rem) { .section--inventory { padding-block: 1.25rem; } }

/* Space separates ideas; borders are reserved for interactive and tabular data. */
.section--line { border-top: 0; }
.kicker::before { content: none; }
.kicker { font-family: var(--sans); color: var(--ink-2); }
.display em { font-style: normal; color: inherit; }
.card { background: transparent; border: 0; border-radius: 0; padding: 0; }
.cards { gap: 2.5rem; }
.catalogue { border-top: 0; }
.catalogue__row { padding-block: 1.75rem; }
.catalogue__row:last-child { border-bottom: 0; }
.head--split { display: block; }
.head--split > :nth-child(2) { margin-top: 1.25rem; max-width: 42rem; }
.media { border: 0; border-radius: 0; }
@media (max-width: 44rem) {
 .card { padding: 0; }
 .catalogue__row { gap: .85rem; }
}

/* --- 10-home.css --- */
/* Home: the sample sits between the field and the shared work/product rows. */
.home-why { display: grid; gap: 2rem; align-items: center; }
.home-why .head { margin-bottom: 1.25rem; }
.home-why__fig { display: block; margin: 0; max-width: 28rem; }
.home-why__fig img { display: block; width: 100%; height: auto; }
.home-source { display: grid; gap: .75rem; margin-top: 1.5rem; }
.home-source .actions { margin-top: 0; font-size: .9375rem; }
@media (min-width: 60rem) {
  .home-why { grid-template-columns: var(--columns); column-gap: var(--gap); }
  .home-why > :first-child { grid-column: 1 / span 7; }
  .home-why__fig { grid-column: 9 / -1; }
  .home-source { grid-template-columns: var(--columns); column-gap: var(--gap); }
  .home-source > :first-child { grid-column: 1 / span 7; }
  .home-source > :nth-child(2) { grid-column: 9 / -1; }
}
/* Data-line labels are also used in the partner industry disclosures. */
.ind-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.ind-tags li { font-family: var(--mono); font-size: .875rem; line-height: 1.4; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: .2rem .5rem; }

/* The homepage proof pairs the real sample drawing with its recorded check. */
.home-proof { display: grid; gap: 2rem; align-items: start; margin-bottom: 1.5rem; }
.home-proof figure { margin: 0; }
.home-proof img { display: block; width: 100%; height: auto; }
.home-proof__drawing { min-width: 0; }
.home-proof__drawing figcaption { margin-top: .75rem; }
.home-proof__result { min-width: 0; }
.home-proof__result > img { max-width: 20rem; margin-inline: auto; }
.home-proof__result > .label { margin-top: .5rem; }
.home-proof__checks { margin-top: 1rem; }
.home-proof__checks > div { display: grid; gap: .35rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.home-proof__checks dt { color: var(--ink-2); font-size: .875rem; }
.home-proof__checks dd { margin: 0; font-size: 1rem; line-height: 1.5; }
.home-proof__checks mark { box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.home-story { display: grid; gap: 1.25rem; }
.home-secondary { margin-top: 2rem; max-width: 48rem; }
@media (min-width: 60rem) {
  .home-proof { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; }
  .home-proof__drawing { align-self: center; }
}

/* --- 11-hero.css --- */
/* A compact opening screen, with breathing room around the text and drawing. */
.hero--field, .field-on .hero--field { padding-block: clamp(2rem, 6svh, 3.5rem); }
.hero--field .hero__text, .field-on .hero--field .hero__text { padding-block: 0; max-width: 40rem; }
.hero--field .hero__text .display { margin-top: .75rem; font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.06; max-width: none; }
.hero--field .hero__text .lead { margin-top: 1.25rem; max-width: 34rem; font-size: 1.125rem; }
.hero--field .hero__text .actions { margin-top: 1.5rem; }
.hero__stage { display: none; }
@media (min-width: 48rem) {
  .hero--field .hero__grid { grid-template-columns: var(--columns); column-gap: var(--gap); }
  .hero--field .hero__text { grid-column: 1 / span 7; }
}
@media (max-width: 44rem) {
  .hero--field, .field-on .hero--field { padding-block: 1rem; }
  .hero--field .hero__text .kicker { font-size: .875rem; }
  .hero--field .hero__text .display { margin-top: .5rem; font-size: clamp(1.875rem, 8.5vw, 2.25rem); }
  .hero--field .hero__text .lead { margin-top: .75rem; font-size: .9375rem; line-height: 1.5; }
  .hero--field .hero__text .actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: .65rem; margin-top: .875rem; }
  .hero--field .hero__text .actions > a { width: auto; min-height: 44px; padding: .625rem .5rem; font-size: .8125rem; justify-content: center; text-align: center; }
}

/* --- 12-engineering-scenes.css --- */
/* The ship and engineering drawings share a measured stage, clear of the hero copy. */
.hero__visual[hidden] { display: none; }
.field-on .hero--field .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.field-on .hero--field .hero__text { grid-column: auto; }
.hero__visual { min-width: 0; align-self: center; }
.hero__stage { position: relative; }
.particles.particles--stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.field-on .hero__visual .hero__stage { display: block; height: clamp(180px, 30vw, 300px); aspect-ratio: auto; margin: 0; }
.hero__scene-picker { display: flex; justify-content: center; flex-wrap: wrap; gap: .15rem; }
.hero__scene-picker button, .hero__motion { color: var(--ink-2); background: transparent; border: 0; border-radius: 0; font: .875rem var(--sans); cursor: pointer; min-height: 44px; }
.hero__scene-picker button { padding: .5rem .65rem; border-bottom: 1px solid transparent; }
.hero__scene-picker button[aria-pressed="true"] { color: var(--ink); border-bottom-color: #f3961a; }
.hero__scene-picker button:hover, .hero__motion:hover { color: var(--ink); }
.hero__scene-picker button:focus-visible, .hero__motion:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero__scene-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 1rem; color: var(--ink-2); font-size: .875rem; }
.hero__scene-meta p { margin: 0; }
.hero__motion { padding: 0 .25rem; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 64rem) {
  .field-on .hero--field .hero__grid { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); }
  .field-on .hero__visual .hero__stage { height: clamp(240px, 28vw, 380px); }
}
@media (max-width: 30rem) {
  .hero__scene-picker { gap: 0; }
  .hero__scene-picker button { padding-inline: .4rem; }
}

/* Keep every scene available while fitting the stage into the opening screen. */
@media (min-width: 64rem) {
  .field-on .hero__visual .hero__stage { height: clamp(220px, 40svh, 340px); }
}
@media (max-width: 63.99rem) {
  .field-on .hero--field .hero__grid { gap: 1rem; }
  .field-on .hero__visual .hero__stage { height: clamp(100px, 20svh, 180px); }
}
@media (max-width: 44rem) {
  .field-on .hero--field .hero__grid { gap: .75rem; }
  .field-on .hero__visual .hero__stage { height: clamp(84px, 16svh, 128px); }
  .hero__scene-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
}

/* --- 13-cover.css --- */
/* The cover (19 Nov 2026, branch lab-cover-2026-11-18): the home page's first screen. The lockup is drawn in points
   on .cover__field by site.js; the inline SVG under it is the lockup for a reader without the script. One sentence,
   two buttons: the sample pack, and a way down the page. The header's own sample-pack button waits until the cover
   has scrolled away (html.cover-in-view), so the first screen never shows the same button twice. */
.cover { position: relative; display: grid; place-items: center; min-height: calc(100svh - 4.5rem); }
.cover__field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.cover__field--still { position: absolute; width: 100%; height: 100%; }
.cover__in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 2rem 5rem; transform: translateY(-6svh); }
.cover__mark { width: min(54vw, 46rem); aspect-ratio: 857.42 / 239; }
.cover__mark svg { display: block; width: 100%; height: 100%; }
.cover__star { fill: #F3961A; }
.cover__word { fill: var(--ink); }
.cover-on .cover__mark svg { visibility: hidden; }
.cover__line { margin-top: clamp(2rem, 5.5vh, 3.25rem); max-width: 32rem; font-size: clamp(1.125rem, .85rem + .8vw, 1.5rem); font-weight: 450; line-height: 1.4; letter-spacing: -.005em; color: var(--ink-2); text-wrap: balance; }
.cover__line strong { font-weight: 550; color: var(--ink); }
.cover__actions { justify-content: center; margin-top: clamp(1.5rem, 3.6vh, 2.25rem); }
.btn.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.btn--ghost:hover { background: var(--hover, rgba(221, 227, 241, .06)); border-color: var(--ink-3); }
:root[data-theme="light"] .btn.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
:root[data-theme="light"] .btn.btn--ghost:hover { background: var(--hover); border-color: var(--ink-3); }
.cover__down::after { content: "↓"; }
.top__end .btn { transition: opacity .25s, visibility .25s; }
.cover-in-view .top__end .btn { opacity: 0; visibility: hidden; }

/* The second screen: the lockup's points land in the engineering drawing; give it a screen of its own. */
.cover + .hero--field { border-top: 1px solid var(--line); }
@media (min-width: 48rem) {
  .cover + .hero--field { display: grid; align-content: center; min-height: calc(100svh - 4.5rem); }
}
.hero__stage { transition: opacity .2s linear; }

@media (max-width: 44rem) {
  .cover { min-height: calc(100svh - 4rem); }
  .cover__in { transform: translateY(-4svh); padding-block: 1rem 4rem; }
  .cover__mark { width: min(86vw, 26rem); }
  .cover__line { max-width: 21rem; font-size: 1.125rem; }
  .cover__actions { display: grid; grid-template-columns: 1fr; width: min(100%, 20rem); gap: .6rem; }
  .cover__actions .btn { width: 100%; }
  /* The second screen has one text link, not the two buttons the phone rules in 11-hero.css lay out. */
  .cover + .hero--field .hero__text .actions { display: flex; }
  .cover + .hero--field .hero__text .actions > a { min-height: 0; padding: 0 0 1px; text-align: left; font-size: .9375rem; }
}

/* The verifier: one recorded check, in four steps. */
.proof-steps { display: grid; gap: var(--gap); margin: 0 0 1.5rem; padding: 0; list-style: none; }
.proof-step { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1rem 1rem 1.1rem; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.proof-step__n { font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); }
.proof-step__title { margin-top: .35rem; font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.proof-step__art { flex: 1; display: grid; place-items: center; min-height: 10.5rem; margin: .9rem 0 .75rem; border-radius: 6px; background: var(--paper); overflow: hidden; }
.proof-step__art img { display: block; width: 100%; height: auto; max-height: 12rem; object-fit: contain; }
.proof-step__art--paper { background: #F4F1EA; padding: .5rem; }
.proof-step__note { font-size: .875rem; line-height: 1.45; color: var(--ink-3); }
.proof-step__note code { font-size: .8125rem; color: var(--ink-2); }
.proof-checks { place-items: stretch; align-content: center; padding: .4rem .9rem; }
.proof-checks > div { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding-block: .5rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .8125rem; }
.proof-checks dt { color: var(--ink-3); }
.proof-checks dd { margin: 0; color: var(--ink); text-align: right; }
.proof-checks dd code { font: inherit; color: inherit; background: none; padding: 0; border: 0; }
.proof-checks .proof-checks__verdict { border-bottom: 0; padding-top: .75rem; }
.proof-checks__verdict dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.proof-checks__verdict dd { text-align: left; font-family: var(--sans); font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.proof-checks__verdict--fail mark { padding: 0 .4rem .1rem; border-radius: 3px; }
@media (min-width: 48rem) { .proof-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .proof-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proof-step + .proof-step::before { content: "→"; position: absolute; left: calc(var(--gap) / -2 - 1px); top: 50%; transform: translate(-50%, -50%); color: var(--ink-3); font-size: .875rem; }
}

/* Environments: three steps beside the sample's own task folder. */
.home-how { display: grid; gap: 2.5rem; align-items: start; }
.pillars { margin: 0; padding: 0; list-style: none; }
.pillars > li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); padding-block: 1.25rem; border-top: 1px solid var(--line); }
.pillars > li:last-child { border-bottom: 1px solid var(--line); }
.pillars__n { font-family: var(--mono); font-size: .875rem; line-height: 1.75; color: var(--accent-ink); }
.pillars h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; }
.pillars h3 + p { margin-top: .35rem; color: var(--ink-2); line-height: 1.55; }
.home-how .actions { margin-top: 1.25rem; }
.task-tree { margin: 0; min-width: 0; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.task-tree__bar { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); }
.task-tree__bar code { color: var(--ink-2); }
.task-tree .task-tree__files { margin: 0; padding: 1.1rem; font-family: var(--mono); font-size: .875rem; line-height: 1.75; color: var(--ink); overflow-x: auto; }
.task-tree__dir { color: var(--mist); font-weight: 600; }
.task-tree__c { color: var(--ink-3); }
.task-tree figcaption { padding: .8rem 1rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-3); }
@media (min-width: 64rem) { .home-how { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 5rem); } }
@media (max-width: 44rem) { .task-tree .task-tree__files { font-size: .6875rem; padding: .9rem; } }

/* Two lines of work, side by side, with the supply line under them. */
.home-lines { display: grid; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.home-line { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.home-line h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.015em; }
.home-line > p { color: var(--ink-2); }
.home-line .ind-tags { margin-top: auto; padding-top: .25rem; }
.home-line__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; font-size: .9375rem; }
.home-supply { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.home-supply .link { margin-left: .35rem; color: var(--ink); }
@media (min-width: 48rem) { .home-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* What we deliver: four nouns, no buttons. */
.deliver { display: grid; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.deliver li { padding: 1.25rem; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.deliver h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.deliver p { margin-top: .5rem; font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 48rem) { .deliver { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .deliver { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* The pinned cover (19 Nov 2026, the default; ?flight=scrub and ?flight=timed turn it off): site.js puts the cover and
   the engineering screen in one frame, stacked, that holds still for about two and a half screens of scrolling while
   the lockup turns into the ship and the copy changes over, then stands finished for the last part. The engineering screen lets clicks through until its copy is in. */
.cover-pin { position: relative; height: 340svh; }
.cover-pin__frame { position: sticky; top: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: 100svh; }
.cover-pin__frame > * { grid-area: 1 / 1; }
.cover-pin .cover { min-height: 0; }
.cover-pin .cover + .hero--field { min-height: 0; border-top: 0; display: grid; align-content: center; background: transparent; pointer-events: none; }
.cover-pin .hero--field.pin-in .hero__grid { pointer-events: auto; }
/* The cover is painted over the engineering screen; once its own copy has gone it must not take the clicks. */
.cover-pin .cover.pin-out, .cover-pin .cover.pin-out * { pointer-events: none; }
@media (max-width: 44rem) { .cover-pin { height: 300svh; } }

/* --- 20-cad.css --- */
/* CAD-specific media and inventories. Catalogue rows and disclosures are shared. */
.cad-hero { display: grid; gap: .75rem; width: 100%; max-width: 24rem; justify-self: end; }
.cad-hero .media { max-height: 22rem; object-fit: contain; }
.cad-hero .label { line-height: 1.5; }
.cad-funnel { counter-reset: gate; }
.cad-funnel > li { counter-increment: gate; }
.cad-funnel .catalogue__title { font-size: 1.125rem; }
.cad-funnel .catalogue__title::before { content: counter(gate, decimal-leading-zero); font: .875rem var(--mono); color: var(--ink-3); margin-right: .75rem; }
.cad-funnel__kind { font: .875rem var(--mono); color: var(--ink-3); display: inline; margin-left: .5rem; }
.task-family .table-wrap { margin-bottom: 1.25rem; }
@media (max-width: 44rem) { .cad-hero { justify-self: start; max-width: 20rem; } }

/* What a set contains: one table per domain, picked by tab (all four shown where :has is not supported) */
.cad-sets__tabs { margin-bottom: 1.25rem; min-width: 0; }
.cad-sets__tabs .viewer__tab { font-size: .9375rem; }
.cad-set { display: none; }
.cad-sets:has(#cs-ship:checked) [data-set="ship"],
.cad-sets:has(#cs-build:checked) [data-set="build"],
.cad-sets:has(#cs-mech:checked) [data-set="mech"],
.cad-sets:has(#cs-energy:checked) [data-set="energy"] { display: block; }
@supports not selector(:has(*)) {
  .cad-sets__tabs { display: none; }
  .cad-set { display: block; }
  .cad-set + .cad-set { margin-top: 1.5rem; }
}
.cad-set th[scope="row"] { width: 28%; }
.cad-set td:last-child { width: 26%; font-family: var(--mono); font-size: .875rem; }

/* Task families: grouped by domain; the verifier column reads in full ink */
.cad-tasks th[scope="row"] { width: 22%; }
.cad-tasks td:last-child { width: 30%; color: var(--ink); }
.cad-tasks .cad-group th { font-family: var(--mono); font-size: .875rem; font-weight: 400; color: var(--ink-2); background: var(--paper); padding-block: .6rem; }
.cad-tasks .cad-group th::before { content: ""; display: inline-block; width: .45rem; height: .45rem; background: var(--ink-3); margin-right: .65rem; vertical-align: .08em; }
.cad-tasks tbody + tbody .cad-group th { border-top: 1px solid var(--line); }
/* The table is in two sections, two domains each, so each half reads on one screen (14 Nov 2026); one hairline between */
.cad-tasks-more { border-top: 0; }

/* Tables that stack on a phone: one block per row, each cell led by its column name. The markup carries table roles,
   because Safari drops them once display changes (CLAUDE.md, phones). */
@media (max-width: 44rem) {
  .table-wrap:has(.table--stack) { overflow: visible; }
  .table--stack { min-width: 0; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; width: auto; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table--stack tr { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
  .table--stack tbody:last-child tr:last-child { border-bottom: 0; }
  .table--stack th, .table--stack td { padding: 0; border: 0; }
  .table--stack td { margin-top: .5rem; }
  .table--stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .1rem; font-family: var(--mono); font-size: .875rem; color: var(--ink-3); }
  .cad-tasks .cad-group { padding: 0; }
  .cad-tasks .cad-group th { padding: .6rem 1.1rem; }
  .cad-tasks td:last-child, .cad-set td:last-child, .cad-tasks th[scope="row"], .cad-set th[scope="row"] { width: auto; }
}

/* --- 30-sample.css --- */
/* Sample task pages (/samples/...), 14 Nov 2026 content redesign: facts strip, brief, drawing, verifier tables, 3D viewer. */

.sample-crumb { font-family: var(--mono); font-size: .875rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.sample-crumb span { margin-inline: .4rem; }
.sample-hero .display { max-width: 13em; }
.sample-flag { margin-top: 1.5rem; }

/* Facts strip */
.sample-facts-band { border-block: 1px solid var(--line); background: var(--paper-2); }
.sample-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 44rem) { .sample-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .sample-facts { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.sample-facts > div { display: grid; gap: .35rem; align-content: start; padding: 1.1rem 1rem 1.2rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 72rem) { .sample-facts > div { border-bottom: 0; padding-right: 1.25rem; } .sample-facts > div + div { border-left: 1px solid var(--line); padding-left: 1.25rem; } }
.sample-facts dt { font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); }
.sample-facts dd { font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--ink); }

/* Brief: the file and what surrounds it */
.sample-brief { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .sample-brief { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; } }
.sample-file { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.sample-file__name { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); }
.sample-file__name code { color: var(--ink); font-size: inherit; }
.sample-file__body { margin: 0; padding: 1.1rem; font-family: var(--mono); font-size: .8125rem; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.sample-env dd code, .sample-deliverable dd code { color: var(--ink); }

/* Drawing */
.sample-drawing { display: grid; gap: .75rem; }
.sample-drawing img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); }

/* Verifier and file tables */
.sample-deliverable { margin-bottom: 3rem; }
.sample-sub { margin: 2.5rem 0 1rem; }
.sample-deliverable + .sample-sub { margin-top: 0; }
.sample-table th[scope="row"] { font-family: var(--mono); font-size: .875rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.sample-table th[scope="row"] code { font-size: inherit; }
.sample-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sample-row--key th[scope="row"], .sample-row--key td:nth-child(3) { color: var(--accent-ink); }
.sample-probes td:last-child { font-weight: 600; color: var(--ink); }
.sample-files { min-width: 34rem; }

/* 3D viewer: a still image until WebGL draws, and if it never does */
.v3d { display: grid; gap: .75rem; }
.v3d__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; font-family: var(--mono); font-size: .875rem; color: var(--ink-3); }
.v3d__bar span:last-child { color: var(--accent-ink); }
.v3d__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
@media (min-width: 60rem) { .v3d__stage { aspect-ratio: 16 / 9; } }
.v3d__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.v3d.is-live .v3d__still { visibility: hidden; }
.v3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.v3d.is-dragging .v3d__canvas { cursor: grabbing; }
.v3d__canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Probes table: seven columns, the measured cell can be long */
.sample-probes { min-width: 56rem; }
.sample-probes td:nth-child(4) { min-width: 16rem; }

/* See it run: the verifier's recorded output for each submission (generated from tests/run_results.json by
   publish_sample_run.py; radio inputs and :has(), no script). Reuses .viewer__picks, .pane, .console and .ln from v2.css. */
.run { margin-top: 1.75rem; }
@media (min-width: 48rem) { .run .viewer__picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.run .viewer__pick { flex-direction: column; align-items: flex-start; justify-content: center; gap: .2rem; }
.run__kind { font-family: var(--mono); font-size: .8125rem; font-weight: 400; color: var(--ink-3); }
.run .viewer__radio:checked + .viewer__pick .run__kind { color: var(--on-mark); }
.run__panes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.run__item { display: none; }
/* run:picks */
.run:has(#rp-gold:checked) [data-run="gold"],
.run:has(#rp-solve_py:checked) [data-run="solve_py"],
.run:has(#rp-alt_rebuilt:checked) [data-run="alt_rebuilt"],
.run:has(#rp-alt_bore_18009:checked) [data-run="alt_bore_18009"],
.run:has(#rp-alt_split_faces:checked) [data-run="alt_split_faces"],
.run:has(#rp-empty:checked) [data-run="empty"],
.run:has(#rp-claim_only:checked) [data-run="claim_only"],
.run:has(#rp-scaled_copy:checked) [data-run="scaled_copy"],
.run:has(#rp-bore_oversize:checked) [data-run="bore_oversize"],
.run:has(#rp-three_holes:checked) [data-run="three_holes"],
.run:has(#rp-mirrored:checked) [data-run="mirrored"],
.run:has(#rp-spline_faces:checked) [data-run="spline_faces"] { display: revert; }
/* /run:picks */
@supports not selector(:has(*)) {
  .run__item { display: revert; }
  div.run__item + div.run__item { margin-top: 1.5rem; }
}
.run .ln { grid-template-columns: 4ch 4ch minmax(0, 1fr); }
.run .ln--res { grid-template-columns: 12ch minmax(0, 1fr); }
.run .ln__m { color: var(--on-deep-2); opacity: .8; }
.run .ln--bad .ln__m { color: inherit; opacity: 1; }
.run .console .pane__label code { color: var(--on-deep); }
.run__meta { margin-top: 1.25rem; max-width: none; }
.run__meta code { font-size: .8125rem; }

/* The verify.py excerpt and its note: the note first, the code full width so no line is cut */
.sample-code { display: grid; gap: 1.5rem; margin-top: 3rem; }
.sample-code .sheet { margin: 0; min-width: 0; order: 2; }
@media (min-width: 64rem) { .sample-code__note { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); column-gap: 2.5rem; align-items: start; } }
.sample-code .viewer__file { white-space: pre; overflow-x: auto; font-size: .8125rem; line-height: 1.6; color: var(--ink-2); }
.sample-code__note { display: grid; gap: .9rem; }
.sample-code__note > * { margin: 0; }

/* Download */
.sample-download { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }

/* One screen per section (14 Nov 2026). A section split at a sub-heading (Checks, the verify.py excerpt) carries on
   without a rule or top space, so it reads as before; on wide screens rows are tighter, the drawing and the 3D model
   take their heading beside them, and the run puts the submitted file beside the picker, the console full width under both. */
.sample-cont { padding-top: 0; }
.sample-nowrap { white-space: nowrap; }   /* a drawing number does not break at its hyphens */
.sample-cont .sample-sub:first-child, .sample-cont .sample-code:first-child { margin-top: 0; }
@media (min-width: 48rem) {
  .sample-table th, .sample-table td { padding: .65rem 1rem; }
  .sample-deliverable { margin-bottom: 2rem; }
  .sample-deliverable > div, .sample-env > div { padding-block: .8rem; }
}
@media (min-width: 60rem) {
  .sample-hero ~ .section .head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #run .head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }   /* its two-line heading needs the room */
  .sample-env > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }   /* beside the brief: the term above its text */
}
@media (min-width: 64rem) {
  .sample-aside { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 3rem; align-items: start; }
  .sample-hero ~ .section .sample-aside > .head { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
  .sample-aside .v3d__stage { aspect-ratio: 4 / 3; }
  .sample-folder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; }
  .sample-folder > .head, .sample-folder > .table-wrap { grid-column: 1 / -1; }
  .sample-probes th, .sample-probes td { padding-inline: .8rem; }
  .sample-files th, .sample-files td { padding-inline: .5rem; }   /* the outer cells keep their edge */
  .sample-files tr > :first-child { padding-left: 1rem; }
  .sample-files tr > :last-child { padding-right: 1rem; }
  .sample-probes td:nth-child(2) { width: 26%; }   /* what each probe is, in fewer lines */
}
@supports selector(:has(*)) {
  @media (min-width: 72rem) {   /* below this the picks get too narrow beside the file */
    .run { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; }
    .run__panes { display: contents; }
    .run__panes > .sheet { grid-column: 2; grid-row: 1; margin: 0; }
    .run__panes > .console { grid-column: 1 / -1; }
    .run .viewer__pick { min-height: 0; padding-block: .55rem calc(.55rem - 3px); }
    .run .pane { padding-block: .9rem; }
    .run .viewer__file { line-height: 1.45; }
    .run .ln--cmd { margin-bottom: .375rem; }
    .run .ln:not(.ln--res) + .ln--res { margin-top: .5rem; padding-top: .5rem; }
  }
}

/* Phones: tables become one block per row */
@media (max-width: 44rem) {
  .sample-table { min-width: 0; }
  .sample-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sample-table tr { display: grid; gap: .3rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
  .sample-table tbody tr:last-child { border-bottom: 0; }
  .sample-table th, .sample-table td { display: block; padding: 0; border: 0; }
  .sample-table td[data-label]::before { content: attr(data-label) ": "; font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); }
  .sample-table .num { text-align: left; }
}

/* Result and file controls, consolidated from the review pass. */
.sample-intro { display: grid; gap: 2.5rem; align-items: center; }
.sample-intro .display { font-size: clamp(2.25rem, 3.8vw, 3.5rem); }
.sample-intro .v3d__stage { aspect-ratio: 4 / 3; }
.sample-intro .v3d { position: relative; }
.v3d__controls { display: flex; gap: .5rem; }
.v3d__controls button { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); color: var(--ink); font: 1.25rem var(--sans); cursor: pointer; }
@media (min-width: 64rem) { .sample-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
/* Result before submitted-file metadata on every width. */
.run { display: grid; grid-template-columns: minmax(0, 1fr); }
.run__panes { display: contents; }
.run .viewer__picks { grid-column: 1; }
.run__panes > .console { grid-column: 1; grid-row: 2; }
.run__panes > .sheet { grid-column: 1; grid-row: 3; }
.run .viewer__file { line-height: 1.55; }
.run .run__failures { white-space: pre-wrap; }
.run__meta { font-size: .875rem; }

.run__pass-note { color: var(--ink-2); }
.run__mobile-pick { display: none; }
@media (max-width: 44rem) {
  .run.has-select > .viewer__picks { display: none; }
  .run__mobile-pick { display: grid; gap: .5rem; grid-column: 1; font-size: .875rem; margin-bottom: 1rem; }
  .run__mobile-pick select { width: 100%; min-height: 48px; font: 1rem var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--line-2); border-radius: 8px; padding: .75rem; }
}

/* --- 40-enterprise.css --- */
/* Enterprise data page (14 Nov 2026): record types in four columns, the industry cards, the four products. */

/* Contact-centre speech (#speech, round 3, 14 Nov 2026): two sources side by side, then, in a section of its own
   (.speech-set, so each fits one screen, 14 Nov 2026), the contents table beside an illustrative transcript and the
   call to action. Table and sample stack on a phone and below 68rem; the table stacks per row under 44rem
   (.table--stack, 20-cad.css). The JSON keeps its indentation and scrolls sideways inside its card, never the page. */
.speech__status { margin-top: 1rem; }
.speech__sub { margin-top: 2.5rem; margin-bottom: 1rem; }
.speech__sources .card p { color: var(--ink-2); }
.speech__grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 68rem) {
  .speech__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .speech__grid > .table-wrap { grid-row: span 2; }
  .speech__grid .table th, .speech__grid .table td { padding-block: .7rem; }
}
.speech__grid .table { min-width: 0; }
.speech__caption { caption-side: top; text-align: left; padding: .9rem 1.1rem; font-size: .875rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
@media (max-width: 44rem) { .speech__caption { display: block; } }   /* the stacked table is a block, so its caption would shrink to one word a line */
.speech__sample { margin: 0; min-width: 0; display: grid; gap: .9rem; }
.speech__label { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .875rem; color: var(--ink-2); }
.speech__sample .viewer__file.speech__json { white-space: pre; overflow-x: auto; overflow-wrap: normal; color: var(--ink-2); }
.speech__actions { margin-top: .5rem; }


/* See it run: interactive evaluation workbench (submission selector, seeded 5-source workspace, multi-surface
   submitted state and deterministic gate/check console). Yellow marks only what changed or what the verifier caught;
   amber marks only the active submission. */
.pane--task:has(#vt-procedure:checked) [data-tab="procedure"] { display: revert; }

#see-it-run .head { margin-bottom: 1.75rem; }
@media (min-width: 64rem) {
  #see-it-run .head--split { display: grid; grid-template-columns: var(--columns); column-gap: var(--gap); align-items: end; }
  #see-it-run .head--split > :first-child { grid-column: 1 / span 6; }
  #see-it-run .head--split > :nth-child(2) { grid-column: 7 / -1; margin-top: 0; max-width: none; }
}
#see-it-run .bench__task { font-size: 1rem; line-height: 1.55; color: var(--ink-2); }

#see-it-run .viewer { margin-top: 0; }
#see-it-run .viewer__picks { grid-template-columns: minmax(0, 1fr); background: var(--line-2); border-color: var(--line-2); border-radius: 10px; }
@media (min-width: 44rem) { #see-it-run .viewer__picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 58rem) { #see-it-run .viewer__picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { #see-it-run .viewer__picks { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

#see-it-run .viewer__pick {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: .35rem;
  min-height: 0;
  padding: .75rem .9rem calc(.75rem - 3px);
  background: var(--sheet);
}
#see-it-run .viewer__pick:hover { background: #181B26; }
#see-it-run .viewer__kind { font-family: var(--mono); font-size: .875rem; font-weight: 400; color: var(--ink-3); line-height: 1.25; }
#see-it-run .viewer__title { font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
#see-it-run .viewer__verdict {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .875rem;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.25;
  margin-top: auto;
  padding-top: .25rem;
}
#see-it-run .viewer__badge { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
#see-it-run .viewer__radio:checked + .viewer__pick { background: var(--accent); color: var(--on-mark); border-bottom-color: var(--ink); }
#see-it-run .viewer__radio:checked + .viewer__pick .viewer__kind,
#see-it-run .viewer__radio:checked + .viewer__pick .viewer__badge,
#see-it-run .viewer__radio:checked + .viewer__pick .viewer__title,
#see-it-run .viewer__radio:checked + .viewer__pick .viewer__verdict { color: var(--on-mark); }

#see-it-run .viewer__panes { display: grid; grid-template-columns: minmax(0, 1fr); gap: .875rem; margin-top: .875rem; align-items: start; }
#see-it-run .viewer__outcome { display: grid; gap: .875rem; min-width: 0; order: -1; }
#see-it-run .pane--console { order: -1; grid-column: auto; grid-row: auto; }

@media (min-width: 64rem) {
  #see-it-run .viewer__panes { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem; margin-top: 1rem; align-items: stretch; }
  #see-it-run .viewer__outcome { order: 0; display: flex; flex-direction: column; gap: 1rem; min-height: 25rem; }
  #see-it-run .pane--console { order: 0; flex: 1; display: flex; flex-direction: column; }
  #see-it-run .pane--console > .viewer__answer { flex: 1; display: none; flex-direction: column; }
  #see-it-run .viewer:has(#va-empty:checked) .pane--console > [data-answer="empty"],
  #see-it-run .viewer:has(#va-claim_only:checked) .pane--console > [data-answer="claim_only"],
  #see-it-run .viewer:has(#va-tamper_schedule:checked) .pane--console > [data-answer="tamper_schedule"],
  #see-it-run .viewer:has(#va-superseded_quantity:checked) .pane--console > [data-answer="superseded_quantity"],
  #see-it-run .viewer:has(#va-down_machine:checked) .pane--console > [data-answer="down_machine"],
  #see-it-run .viewer:has(#va-reference:checked) .pane--console > [data-answer="reference"] { display: flex; }
  #see-it-run .pane--console .report-details { margin-top: auto; }
  #see-it-run .pane--task { display: flex; flex-direction: column; min-height: 25rem; }
  #see-it-run .viewer:not(:has(.report-details[open])) .pane--task .viewer__tabpanel { flex: 1 1 0; height: 0; min-height: 0; overflow-y: auto; padding-right: .35rem; }
  #see-it-run .viewer:has(.report-details[open]) .viewer__panes { align-items: start; }
  #see-it-run .viewer:has(.report-details[open]) .pane--task { height: 34rem; position: sticky; top: 1.5rem; }
  #see-it-run .viewer:has(.report-details[open]) .pane--task .viewer__tabpanel { flex: 1 1 0; min-height: 0; overflow-y: auto; padding-right: .35rem; }
}

#see-it-run .pane { padding: .95rem 1.15rem; border-radius: 10px; }
#see-it-run .pane__label { font-family: var(--mono); font-size: .875rem; font-weight: 400; color: var(--ink-3); align-items: baseline; margin-bottom: .55rem; }
#see-it-run .pane__label code { color: var(--ink); font-size: inherit; }
#see-it-run .console .pane__label code { color: var(--on-deep); }
#see-it-run .pane__meta { color: var(--ink-3); }
#see-it-run .pane__meta code { color: var(--ink-2); }

#see-it-run .viewer__tabs { gap: .25rem 1.1rem; margin-bottom: .75rem; }
#see-it-run .viewer__tabs .pane__label { margin-bottom: .45rem; }
#see-it-run .viewer__tab { font-size: .875rem; padding: .15rem 0 .4rem; }

#see-it-run .viewer__file { font-size: .8125rem; line-height: 1.48; color: var(--ink-2); }
#see-it-run .viewer__file b { color: var(--ink); font-weight: 600; }
#see-it-run .viewer__summary,
#see-it-run .viewer__out { display: grid; row-gap: 2px; white-space: normal; color: var(--on-deep-2); }
#see-it-run .ln { grid-template-columns: 8ch 5ch minmax(0, 1fr); align-items: baseline; padding-block: .08rem; }
#see-it-run .ln--res { grid-template-columns: 12ch minmax(0, 1fr); }
#see-it-run .ln--tally { color: var(--on-deep-2); padding-bottom: .35rem; margin-bottom: .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
#see-it-run .ln--tally .ln__st { color: var(--on-deep); font-weight: 600; }
#see-it-run .ln__m { color: var(--on-deep-2); }
#see-it-run .ln--bad .ln__m { color: var(--on-mark); }

#see-it-run .report-details { margin-top: .75rem; }
#see-it-run .report-details > summary { padding-block: .65rem 0; font-size: .875rem; font-family: var(--mono); font-weight: 400; color: var(--on-deep-2); }
#see-it-run .report-details > summary:hover { color: var(--on-deep); }
#see-it-run .report-details[open] > summary { padding-bottom: .5rem; }

#see-it-run .bench__foot { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .75rem 2rem; }
#see-it-run .bench__caption { margin-top: 0; max-width: 52em; font-size: .875rem; line-height: 1.55; }
#see-it-run .bench__links { margin-top: 0; }

@media (max-width: 44rem) {
  #see-it-run .pane--task .viewer__tabpanel { max-height: 20rem; overflow-y: auto; }
  #see-it-run .ln { grid-template-columns: 7.5ch 4.5ch minmax(0, 1fr); }
}

.speech-spec { margin-top: 1.5rem; }
.speech-spec .speech__grid { padding-top: 1rem; }

/* --- 50-environments.css --- */
/* Environments page (14 Nov 2026, content-v3): how we build an RL environment.
   Every class is prefixed env- so it cannot collide with another area's file. Yellow marks only what a check
   caught (the failed line in reward.json); amber marks what the checker measures (the toleranced-features gate). */

/* Hero: the page's contents, beside the heading */
.env-toc { gap: .9rem; }
.env-toc ol { list-style: none; display: grid; border-top: 1px solid var(--line); counter-reset: env-toc; }
.env-toc li { counter-increment: env-toc; border-bottom: 1px solid var(--line); }
.env-toc a { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .5rem; padding-block: .65rem; color: var(--ink-2); font-size: 1rem; text-decoration: none; }
.env-toc a::before { content: counter(env-toc, decimal-leading-zero); font-family: var(--mono); font-size: .875rem; color: var(--ink-3); padding-top: .12rem; }
.env-toc a:hover { color: var(--ink); }

/* One screen per section (14 Nov 2026): the anatomy, the probes, the domains and the engines each continue in a
   second section (.env-cont) at an existing break, so each part fits a laptop browser (1440 x 790 and up). A
   continuation carries on its parent's band without a second rule between them. */
.env-cont { border-top: 0; }

/* The folder inventory follows the shared label/value row grid. */
.env-parts dt code { display: block; font-size: .875rem; font-weight: 400; color: var(--ink-3); margin-top: .25rem; overflow-wrap: anywhere; }
.env-parts dd { font-size: 1rem; }

/* Panes: a file, or the checker's card */
.env-pane { min-width: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.env-pane--deep { background: var(--deep); }
.env-pane__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem 1rem; padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .875rem; color: var(--ink-3); }
.env-pane__head b { font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.env-tag { border: 1px solid var(--line-2); border-radius: 4px; padding: .05rem .45rem; color: var(--ink-2); white-space: nowrap; }
.env-pane__note { padding: 0 1.25rem 1.25rem; font-size: .875rem; line-height: 1.55; color: var(--ink-2); }
.env-code { margin: 0; padding: 1.1rem 1.25rem 1.25rem; font-family: var(--mono); font-size: .875rem; line-height: 1.55; white-space: pre; overflow-x: auto; color: var(--ink-2); tab-size: 4; }
.env-code .c { color: var(--ink-3); }
.env-code .k { color: var(--ink); }
.env-code .bad { background: var(--mark); color: var(--on-mark); border-radius: 2px; padding: .05rem .35rem; margin-inline: -.35rem; }
.env-files { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 60rem) { .env-files { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* Verifier principles */
.env-rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 1.75rem; counter-reset: env-rule; }
@media (min-width: 44rem) { .env-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .env-rules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.env-rule { counter-increment: env-rule; display: grid; gap: .5rem; align-content: start; border-top: 1px solid var(--line-2); padding-top: 1rem; }
.env-rule::before { content: none; font-family: var(--mono); font-size: .875rem; color: var(--ink-3); }
.env-rule p { color: var(--ink-2); font-size: 1rem; }
.env-why { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }


/* Reward-hacking defence: the probe table stacks on a phone */
.env-table { min-width: 0; }
.env-table .env-must { font-family: var(--mono); font-size: .875rem; color: var(--ink); white-space: nowrap; }
.env-table tbody th { white-space: nowrap; }
@media (max-width: 44rem) {
  .env-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .env-table, .env-table tbody, .env-table tr, .env-table th, .env-table td { display: block; }
  .env-table tr { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
  .env-table tbody tr:last-child { border-bottom: 0; }
  .env-table th, .env-table td { padding: 0; border: 0; }
  .env-table td { margin-top: .3rem; }
  .env-table td[data-label]::before { content: attr(data-label) ": "; font-family: var(--mono); font-size: .875rem; color: var(--ink-3); }
}
.env-audit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 60rem) { .env-audit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.env-audit > div { display: grid; gap: 1rem; align-content: start; }
.section--dark .env-audit .ticks li { color: var(--on-deep-2); border-color: rgba(221, 227, 241, .14); }
.env-audit + .figures { margin-top: 3.5rem; }
.env-audit .env-label { margin-bottom: -.25rem; }
.section--dark .env-audit .crosses li::before { color: var(--on-deep-2); }

/* Domain verifiers: the geometry funnel, then the other domains */
.env-cad { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
@media (min-width: 60rem) {
  .env-cad { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem; align-items: center; padding: 1.5rem 1.75rem; }
  /* the three gates, then the three scored checks, side by side */
  .env-gates { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 1.5rem; }
  .env-cad .env-gates > li { padding-block: .6rem; align-content: start; }
}
.env-cad > div { display: grid; gap: .75rem; align-content: start; }
.env-fig { display: grid; gap: .75rem; }
.env-cap { font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.env-label { font-family: var(--mono); font-size: .875rem; color: var(--ink-3); }
.env-num { counter-reset: env-num; border-top: 1px solid var(--line-2); }
.env-num > li { counter-increment: env-num; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .15rem .9rem; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.env-num > li::before { content: counter(env-num); grid-row: span 2; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--mono); font-size: .875rem; color: var(--ink-3); }
.env-num b { font-weight: 600; }
.env-num span { color: var(--ink-2); font-size: 1rem; }
.env-num .is-checked::before { background: var(--accent); border-color: var(--accent); color: var(--on-mark); }
.env-num .is-checked b { color: var(--accent-ink); }
.env-list { display: grid; gap: .45rem; margin-top: .35rem; color: var(--ink-2); font-size: 1rem; }
.env-list li { position: relative; padding-left: 1.25rem; }
.env-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: 1px; background: var(--ink-3); }
.env-domain .card__top { margin-bottom: .25rem; }
.env-domain .arrow { margin-top: .5rem; width: max-content; }

/* Difficulty and calibration */
.env-calib { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 60rem) { .env-calib { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; } }
/* on a wide screen: the method, the knobs and the card, in three columns */
@media (min-width: 68rem) {
  .env-calib { grid-template-columns: var(--columns); gap: var(--gap); }
  .env-calib > div:first-child { display: contents; }
  .env-calib .spec { grid-column: 1 / span 4; }
  .env-calib > div:first-child > .env-pane { grid-column: 5 / span 3; }
  .env-calib > .env-pane { grid-column: 8 / -1; }
  .env-calib .spec > div { grid-template-columns: minmax(0, 1fr); padding-block: .6rem; }
  .env-calib .env-kv > div { grid-template-columns: 8.5rem minmax(0, 1fr); padding-block: .45rem; }
  .env-calib .env-knobs > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
.env-calib > div { display: grid; gap: 1.5rem; align-content: start; }
.env-kv > div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: .15rem 1rem; padding: .6rem 1.25rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .875rem; line-height: 1.5; }
.env-kv dt { color: var(--ink-3); }
.env-kv dd { color: var(--on-deep); }
.env-knobs > div { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 44rem) { .env-knobs > div { grid-template-columns: 7rem minmax(0, 1fr); } }

/* Two engines */
.env-engines { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.env-engine { display: grid; gap: 1rem; align-content: start; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
.env-engine > p { color: var(--ink-2); font-size: 1rem; }
.env-engine .env-fig { margin-top: .5rem; }
/* Engine one: the text beside the generated parts */
@media (min-width: 60rem) {
  .env-engine--gen { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); column-gap: 3rem; }
  .env-engine--gen > * { grid-column: 1; }
  .env-engine--gen .env-fig { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; }
  .env-engine > p { max-width: 46em; }
}
/* Engine two: the five steps in a row */
@media (min-width: 68rem) {
  .env-engine--seeds .env-num { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 1.5rem; border-top: 0; margin-top: .5rem; }
  .env-engine--seeds .env-num > li { grid-template-rows: auto 1fr; align-content: start; gap: .6rem .75rem; padding-block: 1rem 0; border-top: 1px solid var(--line-2); border-bottom: 0; }
  .env-engine--seeds .env-num > li::before { grid-row: auto; }
  .env-engine--seeds .env-num b { align-self: center; }
  .env-engine--seeds .env-num span { grid-column: 1 / -1; }
}

@media (max-width: 44rem) {
  .env-kv > div { grid-template-columns: minmax(0, 1fr); }
  .env-pane__head, .env-code, .env-kv > div { padding-inline: 1rem; }
  .env-pane__note { padding-inline: 1rem; }
  .env-code { font-size: .875rem; }
}

.env-calib > .env-pane { gap: 0; }
.env-results { margin-top: 1.5rem; }
.env-results .spec { margin-top: 1.5rem; }
.env-planned-head { margin-top: 1.5rem; }
.env-planned { display: grid; gap: 1rem; margin-top: 1rem; max-width: 65ch; }
.env-planned .research-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.env-results .research-note { margin: 0 0 1rem; }

/* --- 60-research.css --- */
/* Research uses the shared catalogue rows. */
/* The meta line: a small square, then kind and date, in the kicker's mono */
.meta-sq { font-weight: 400; font-family: var(--mono); font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.meta-sq::before { content: ""; display: inline-block; width: .45rem; height: .45rem; background: var(--ink-3); margin-right: .65rem; vertical-align: .08em; }

/* Notes: a 3:2 thumbnail at the left, the title large */
.post { padding-block: 2.5rem; }
@media (min-width: 60rem) { .post { padding-block: 3rem; } }
.post__thumb { display: block; color: inherit; text-decoration: none; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); transition: border-color .15s; }
.post:hover .post__thumb { border-color: var(--line-2); }
.post__thumb--image img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .36s cubic-bezier(.2, 0, 0, 1); }
.post:hover .post__thumb--image img { transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) { .post__thumb--image img { transition: none; } .post:hover .post__thumb--image img { transform: none; } }
.post__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.post__title a, .row__title a, .pub__title a { color: inherit; text-decoration: none; }
.post__title a:hover, .row__title a:hover, .pub__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.post__text { color: var(--ink-2); max-width: 36em; }
.post__txt .arrow { font-size: 1rem; }

/* A task's thumbnail is its checker's output: probe names and the scores they got; the scores are caught, so marked */
.console-thumb { display: grid; align-content: center; gap: .5rem; height: 100%; padding: clamp(1.25rem, 3vw, 2rem); background: var(--sheet); font-family: var(--mono); font-size: clamp(.8125rem, .7rem + .35vw, 1rem); line-height: 1.4; color: var(--ink-2); }
.console-thumb__head { color: var(--ink-3); padding-bottom: .5rem; margin-bottom: .25rem; border-bottom: 1px solid var(--line); }
.console-thumb__row { display: flex; justify-content: space-between; gap: 1rem; }
.console-thumb code { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.console-thumb__row > code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-thumb__score { flex: none; background: var(--mark); color: var(--paper); padding: 0 .3rem; border-radius: 2px; }

/* Publications: the venue at the left */
.pub__title { font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.pub__authors { font-size: 1rem; color: var(--ink-2); }
.pub__authors strong { color: var(--ink); font-weight: 600; }
.pub__summary { color: var(--ink-2); }
.pub__link { margin-top: .25rem; font-size: 1rem; }
/* 14 Nov 2026: who at Duffi wrote each paper, under its venue */
.pub__side { display: grid; gap: .75rem; align-content: start; }
.pub__team { list-style: none; margin: 0; padding: 0 0 0 .75rem; border-left: 2px solid var(--mist); display: grid; gap: .2rem; }
.pub__team li { font-size: 1rem; font-weight: 600; color: var(--ink); }
.pub__team li span { font-weight: 400; color: var(--ink-2); }

/* Earlier research: quieter rows */
.rows--quiet .row { padding-block: 1.5rem; }
.row__title { font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }


/* All publication and evidence lists share the catalogue's three/nine column split. */
.pub .catalogue__body, .post .catalogue__body, .rows--quiet .catalogue__body { display: grid; gap: .75rem; }
.pub__title, .post__title { color: var(--ink); font-size: 1.375rem; line-height: 1.3; text-wrap: pretty; }
.pub__summary, .post__text { max-width: 65ch; }
.pub__authors { font-size: .875rem; }
.pub__side { padding-top: .25rem; }
.post { padding-block: 1.5rem; }
.post__thumb { max-width: 22rem; aspect-ratio: 4 / 3; }
.research-note { margin-top: 1.5rem; }
.research-next { max-width: 52rem; gap: 1rem; }
.research-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Dated note on the October 2026 voice research pages (legacy layout): earlier research, linked to the current speech work. */
.dated-note { display: flex; gap: .75rem; align-items: baseline; margin-top: 1.25rem; font-size: .875rem; color: var(--ink-2); }
.dated-note a { text-decoration: underline; text-decoration-color: var(--line-link, var(--line-2)); text-underline-offset: .2em; }
.dated-note .status { flex: none; }
@media (max-width: 44rem) { .dated-note { flex-direction: column; gap: .35rem; } }

.meta-sq::before { content: none; }
.post__thumb { border: 0; }
.post:hover .post__thumb--image img { transform: none; }
.pub__team { border-left: 0; padding-left: 0; }

/* --- 61-partners.css --- */
/* Partner industries use the shared disclosure, including recording requirements. */
.sector-catalogue { display: grid; gap: 0 var(--gap); align-items: start; }
.sector-detail dl { display: grid; gap: 1rem; }
.sector-detail dt { font-size: .875rem; color: var(--ink-3); margin-bottom: .35rem; }
.sector-detail dd { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
@media (min-width: 48rem) { .sector-catalogue { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.closing__details { grid-column: 1 / -1; width: 100%; margin-top: .5rem; }
.closing__details .disclosure { max-width: none; }
@media (min-width: 60rem) { .closing__details .disclosure > div { max-width: 65ch; } }

/* --- 62-contact.css --- */
/* Contact: the introduction and contact details beside the form. */
.contact-page { padding-block: 2rem 2.5rem; }
.contact--compact { display: grid; gap: 2rem; padding-bottom: 0; align-items: start; }
.contact__intro { min-width: 0; }
.contact__intro .display { margin-top: 1rem; }
.contact__intro .lead { margin-top: 1.25rem; }
.contact--compact .form { gap: .75rem; max-width: none; padding: 1.5rem; }
.contact--compact .form__pair { gap: .875rem; }
.contact--compact .field { gap: .35rem; }
.contact--compact .field legend { margin-bottom: .35rem; }
.contact--compact .field input { min-height: 2.75rem; padding-block: .55rem; }
.contact--compact .field textarea { min-height: 6rem; padding-block: .65rem; }
.contact--compact .form--short .field textarea { min-height: 5rem; }
.contact--compact .form > .field:has(> [hidden]:only-child) { display: none; }
.contact--compact .choice[hidden] { display: none; }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.form__send .hint { flex-basis: 100%; }
.contact__alt { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact__alt button + button { margin-left: 0; }
.contact__alt:empty, .contact__alt:not(:has(button:not([hidden]))) { display: none; }
.form .choices--compact .choice { align-items: center; padding: .55rem .65rem; font-weight: 500; }
.contact--compact .choice input { width: 1rem; height: 1rem; min-height: 0; margin: 0; }
.contact__side { margin-top: 2rem; display: grid; gap: 1.5rem; }
.contact__mail { display: grid; gap: 1rem; }
.contact__mail dt { font-size: .875rem; color: var(--ink-3); }
.contact__mail dd { margin-top: .2rem; overflow-wrap: anywhere; }
.contact__next { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.contact__next-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.contact__next dd { color: var(--ink-2); font-size: 1rem; }
@media (min-width: 60rem) {
  .contact--compact { grid-template-columns: var(--columns); column-gap: var(--gap); }
  .contact__intro { grid-column: 1 / span 5; }
  .contact--compact > .form { grid-column: 6 / -1; grid-row: 1 / span 2; }
  .contact__side { grid-column: 1 / span 5; grid-row: 2; margin-top: 0; }
}
@media (max-width: 44rem) { .contact--compact .form { padding: 1.25rem; } }

.contact-interests > summary { font-size: .875rem; padding-block: .75rem; }
.contact-interests > fieldset { margin-bottom: .75rem; }
.contact-interests .visually-hidden { margin: 0; }
.contact-interests:has(input:checked) > summary { color: var(--accent); }
.form__send > [data-contact-how] { flex: 1 1 16rem; line-height: 1.5; }
.contact__side > .contact__mail { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.contact-page { padding-block: var(--sec); }
.contact--compact .form { padding: 0; background: transparent; border: 0; border-radius: 0; gap: 1.25rem; }
.contact__next { border-top: 0; }

/* --- 85-chrome.css --- */
/* One shared header and footer on product, evidence and policy pages. */
.top { position: sticky; top: 0; z-index: 30; background: rgba(10, 11, 16, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__bar { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.top__logo { flex: none; }
.top__logo img, .foot__logo img { width: 94px; height: 26px; }
.top__links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; font-size: .875rem; }
.top__links a { color: var(--ink); font-weight: 500; text-decoration: none; padding-block: .5rem; border-bottom: 1px solid transparent; }
.top__links a:hover { color: var(--ink-2); }
.top__links a[aria-current] { border-bottom-color: var(--ink); }
/* The button, the language menu and the theme switch sit together at the right. From the width that shows the links
   inline, the bar is three columns, the outer two of equal width, so the links stand in the middle of the page
   (founder, 19 Nov 2026); where the sides need more room they keep it and the links give way, never overlap. */
.top__end { display: flex; align-items: center; gap: .75rem; }
@media (min-width: 74rem) {
  .top__bar { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: 1.5rem; }
  .top__logo { justify-self: start; }
  .top__links { margin-left: 0; gap: 1.25rem; }
  .top__end { justify-self: end; }
  /* The language menu shows its short label here, as on a phone: with the full name the right side is wider than
     the room either side of the links, and they could not stand in the middle. The list keeps the full names. */
  .top__end .lang-menu__name { display: none; }
  .top__end .lang-menu__short { display: inline; }
}
.top .btn--sm { min-height: 2.75rem; padding: .6rem 1rem; font-size: .875rem; }
.top__menu { display: none; margin-left: auto; position: relative; }
.top__menu summary { list-style: none; cursor: pointer; font-size: .9375rem; font-weight: 500; padding: .6rem .9rem; border: 1px solid var(--line-2); border-radius: 6px; }
.top__menu summary::-webkit-details-marker { display: none; }
.top__menu[open] summary { background: var(--mist); color: var(--on-mark); border-color: var(--mist); }
.top__sheet { position: absolute; right: 0; top: calc(100% + .75rem); width: min(20rem, calc(100vw - 2 * var(--gutter))); display: grid; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 10px; padding: .5rem; }
.top__sheet a { padding: .8rem .875rem; border-radius: 6px; text-decoration: none; font-weight: 500; }
.top__sheet a:hover, .top__sheet a[aria-current] { background: rgba(221, 227, 241, .07); }
.foot { background: var(--deep); border-top: 1px solid var(--line); color: var(--ink-2); padding-block: 3rem 2rem; font-size: .875rem; }
.foot__top { display: grid; gap: 2rem; }
.foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.foot__cols h2 { font-family: var(--sans); font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: .75rem; }
.foot__cols a { display: block; color: var(--ink-2); text-decoration: none; padding-block: .3rem; line-height: 1.5; overflow-wrap: anywhere; }
.foot__cols a:hover { color: var(--ink); }
.foot__cols a[aria-current] { text-decoration: underline; text-underline-offset: .2em; }
.foot__legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-3); }
@media (min-width: 60rem) {
  .foot__top { grid-template-columns: var(--columns); gap: var(--gap); }
  .foot__brand { grid-column: 1 / span 3; }
  .foot__cols { grid-column: 4 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
}
@media (max-width: 73.99rem) {
  .top__links, .top__end .btn { display: none; }
  .top__end { margin-left: auto; }
  .top__menu { display: block; }
  .top__bar { min-height: 4rem; }
}
@media (max-width: 44rem) { .foot__cols a { padding-block: .6rem; } }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); }
body:has(.doc-head) { --font: "Inter", system-ui, sans-serif; font-family: var(--font); }
.top, .foot { font-family: "Inter", system-ui, sans-serif; }

.top { position: relative; background: var(--paper); border-bottom: 0; backdrop-filter: none; }
.top__bar { min-height: 5.5rem; }
.foot { background: var(--paper); padding-block: 4rem 2rem; }
.foot__legal { border-top: 0; margin-top: 3rem; }

/* --- 86-prefs.css --- */
/* The header's language menu and theme switch, the backdrop canvas and the two logos (18 Nov 2026). */
.prefs { display: flex; align-items: center; gap: .25rem; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: .45rem; min-height: 2.75rem; min-width: 2.75rem; padding: .5rem .7rem; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: .875rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--line-2); }
.lang-menu__icon, .theme-switch svg { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; }
.lang-menu__short { display: none; }
.lang-menu__list { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 40; min-width: 11.5rem; margin: 0; padding: .375rem; list-style: none; display: grid; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 10px;
                  max-height: calc(100vh - 5.5rem); max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; }   /* ten languages: scrolls on a short landscape phone */
.lang-menu__list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: .55rem .75rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .9375rem; white-space: nowrap; }
.lang-menu__list a:hover { background: var(--hover, rgba(221, 227, 241, .07)); }
.lang-menu__list a[aria-current]::after { content: ""; width: .45rem; height: .45rem; background: var(--accent); }   /* the field's square marks the current language */
.theme-switch { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.theme-switch[hidden] { display: none; }
.theme-switch:hover { border-color: var(--line-2); }
.theme-switch__moon, :root[data-theme="light"] .theme-switch__sun { display: none; }
:root[data-theme="light"] .theme-switch__moon { display: block; }

.logo-on-light, :root[data-theme="light"] .logo-on-dark { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }

/* Behind every page; content with its own background covers it. */
.backdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@media print { .backdrop { display: none; } }

@media (max-width: 73.99rem) {
  .top__bar .top__menu { margin-left: .25rem; }
}
@media (max-width: 30rem) {
  .top__bar { gap: .5rem; }
  .lang-menu summary { padding-inline: .55rem; }
  .lang-menu__name { display: none; }
  .lang-menu__short { display: inline; }
}

/* --- 87-footmark.css --- */
/* The footer's lockup (19 Nov 2026): the Duffi lockup in dots across the footer, lit by the pointer (site.js). */
.foot__mark { margin-top: 3.5rem; }
.foot__mark canvas { display: block; width: 100%; height: auto; aspect-ratio: 857.42 / 239; }
.foot__mark + .foot__legal { margin-top: 2rem; }
@media print { .foot__mark { display: none; } }

/* --- 90-light.css --- */
/* The light theme (18 Nov 2026): the same page in ink on paper, chosen with the switch in the header; dark stays the
   default. The tokens carry most of it, for the v2 pages and the legacy research pages alike. Yellow still marks only
   what the checker caught and amber is still the logo; amber as text darkens so it reads on paper. */
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #F6F6F2;
  --paper-2: #EEEEE8;
  --sheet: #FFFFFF;
  --ink: #14161E;
  --ink-2: #3E4250;
  --ink-3: #575C6C;
  --ink-4: #6F7385;
  --dim: #686D7F;
  --line: rgba(20, 22, 30, .12);
  --line-2: rgba(20, 22, 30, .28);
  --line-strong: rgba(20, 22, 30, .28);
  --line-link: rgba(20, 22, 30, .45);
  --line-control: #868A99;
  --deep: #ECECE6;
  --on-deep: #14161E;
  --on-deep-2: #3E4250;
  --on-console: #14161E;
  --on-console-2: #3E4250;
  --mist: #2B3142;
  --accent-ink: #A35800;
  --hover: rgba(20, 22, 30, .05);
  /* legacy research pages */
  --page: #F6F6F2;
  --bench: #EEEEE8;
  --panel: #FFFFFF;
}

/* Buttons: ink on paper, paper text. Text on yellow and amber stays dark (--on-mark). */
:root[data-theme="light"] .btn,
:root[data-theme="light"] .btn--light,
:root[data-theme="light"] .skip,
:root[data-theme="light"] .top__menu[open] summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
:root[data-theme="light"] .btn:hover,
:root[data-theme="light"] .btn--light:hover { background: #2E3240; border-color: #2E3240; }

/* Fixed colours written for the dark page */
:root[data-theme="light"] .top,
:root[data-theme="light"].field-on .top { background: var(--paper); }
:root[data-theme="light"] .nav { background: rgba(246, 246, 242, .9); }
:root[data-theme="light"] .top__sheet a:hover,
:root[data-theme="light"] .top__sheet a[aria-current],
:root[data-theme="light"] .choice:has(input:checked),
:root[data-theme="light"] tbody tr:hover,
:root[data-theme="light"] .row--open th,
:root[data-theme="light"] .row--open td { background: var(--hover); }
:root[data-theme="light"] .viewer__pick:hover,
:root[data-theme="light"] #see-it-run .viewer__pick:hover { background: #E6E6DF; }
:root[data-theme="light"] .figures__note,
:root[data-theme="light"] .section--dark .step,
:root[data-theme="light"] .ln--cmd + .ln--res,
:root[data-theme="light"] .ln:not(.ln--res) + .ln--res,
:root[data-theme="light"] .foot__legal,
:root[data-theme="light"] .section--dark .env-audit .ticks li { border-color: var(--line); }
:root[data-theme="light"] .section--dark[data-shape="dog"] .card--dark { background: rgb(255 255 255 / 80%); }
:root[data-theme="light"] .console-thumb__score { color: var(--on-mark); }

/* Renders made on the dark page (the turning part, the build grid): inverted, with the hue turned back, so the lines
   are ink on paper and the amber stays amber. The box behind them is the dark page, so it inverts to paper. */
:root[data-theme="light"] video.media,
:root[data-theme="light"] img.media { background: #0A0B10; filter: invert(1) hue-rotate(180deg); mix-blend-mode: multiply; }

/* --- 91-languages.css --- */
/* Chinese, Japanese and Korean pages (18 Nov 2026). Inter and JetBrains Mono carry Latin only, so each language
   falls back to the reader's own system fonts (nothing is downloaded: font-src 'self', and a CJK font is megabytes).
   The headings' tight Latin tracking and leading are opened up for these scripts, and a heading's second tone is set
   in the same sans, grey, since the monospace has no CJK glyphs. */
:root:lang(zh-Hans) { --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:root:lang(zh-Hant) { --cjk: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Source Han Sans TC", sans-serif; }
:root:lang(ja) { --cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
:root:lang(ko) { --cjk: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Source Han Sans KR", sans-serif; }
:root:lang(zh-Hans), :root:lang(zh-Hant), :root:lang(ja), :root:lang(ko) {
  --sans: "Inter", var(--cjk);
  --font: "Inter", var(--cjk);
}
:root:lang(zh-Hans) body, :root:lang(zh-Hant) body, :root:lang(ja) body, :root:lang(ko) body,
:root:lang(zh-Hans) .top, :root:lang(zh-Hant) .top, :root:lang(ja) .top, :root:lang(ko) .top,
:root:lang(zh-Hans) .foot, :root:lang(zh-Hant) .foot, :root:lang(ja) .foot, :root:lang(ko) .foot { font-family: "Inter", var(--cjk); line-break: strict; }
:root:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
:root:lang(zh-Hans) :is(.display, .h2, .h3, h1, h2, h3), :root:lang(zh-Hant) :is(.display, .h2, .h3, h1, h2, h3),
:root:lang(ja) :is(.display, .h2, .h3, h1, h2, h3), :root:lang(ko) :is(.display, .h2, .h3, h1, h2, h3) { letter-spacing: 0; line-height: 1.22; }
:root:lang(zh-Hans) :is(.display, .h2) em, :root:lang(zh-Hant) :is(.display, .h2) em,
:root:lang(ja) :is(.display, .h2) em, :root:lang(ko) :is(.display, .h2) em { font-family: inherit; letter-spacing: 0; }
/* Kickers and captions are set in the monospace on English pages; its wide spaces gap CJK lines, so here they are sans. */
:root:lang(zh-Hans) :is(.kicker, .label), :root:lang(zh-Hant) :is(.kicker, .label),
:root:lang(ja) :is(.kicker, .label), :root:lang(ko) :is(.kicker, .label) { font-family: var(--sans); }
/* Japanese has no spaces: break headings between phrases, not inside a word, where the browser can. */
:root:lang(ja) :is(.display, .h2, .h3, h1, h2, h3, .btn) { word-break: auto-phrase; }

/* Spanish, French, German, Italian and Brazilian Portuguese (18 Nov 2026): Inter and the monospace cover their letters.
   Their words run longer than English, so headings, buttons and labels may hyphenate (the browser's dictionary for the
   page's lang) and a long word wraps rather than widening the page on a phone. */
:root:is(:lang(es), :lang(fr), :lang(de), :lang(it), :lang(pt)) :is(.display, .h2, .h3, h1, h2, h3, h4, .btn, .kicker, .label, th, dt) { -webkit-hyphens: auto; hyphens: auto; }
:root:is(:lang(es), :lang(fr), :lang(de), :lang(it), :lang(pt)) body { overflow-wrap: break-word; }
:root:is(:lang(es), :lang(fr), :lang(de), :lang(it), :lang(pt)) :is(.display, .h2, .h3, h1, h2, h3) { overflow-wrap: anywhere; }   /* a grid column shrinks to the phone, not to the longest word */
/* Their nav labels are longer: on a narrow desktop, keep each on one line and close the gaps a little. */
:root:is(:lang(es), :lang(fr), :lang(de), :lang(it), :lang(pt)) :is(.top__links a, .top__end .btn) { white-space: nowrap; }
@media (min-width: 74rem) and (max-width: 83.99rem) {
  :root:is(:lang(es), :lang(fr), :lang(de), :lang(it), :lang(pt)) .top__bar { gap: 1.25rem; }
  :root:is(:lang(es), :lang(fr), :lang(de), :lang(it), :lang(pt)) .top__links { gap: 1.1rem; }
}
