/* rankingkont.pl · /lukasz-scheibinger/ · eds.rankingkont.pl
   Light technical-editorial system. Static first render, no entrance animation.
   v2026-11-28 */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-sans-subset.woff2?v=2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-subset.woff2?v=2") format("woff2");
  font-weight: 400 550;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback keeps layout stable while Geist loads */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --surface-3: #eceef2;
  --ink: #0f172a;          /* 17.3:1 on --bg */
  --ink-2: #334155;        /* 10.1:1 */
  --muted: #475569;        /* 7.4:1 */
  --faint: #64748b;        /* 4.7:1 */
  --hairline: rgba(15, 23, 42, .09);
  --hairline-2: rgba(15, 23, 42, .14);
  --accent: #1d4ed8;       /* 6.5:1 */
  --accent-ink: #1e40af;
  --accent-soft: #eef3ff;
  --stop: #b42318;         /* 5.9:1 */
  --stop-soft: #fef3f2;
  --pass: #067647;         /* 5.6:1 */
  --pass-soft: #ecfdf3;
  --human: #6d28d9;        /* 7.1:1 */
  --human-soft: #f4f0ff;
  --now: #b54708;          /* 5.4:1 amber-ink */
  --now-soft: #fffaeb;
  --on-ink: #ffffff;
  --ink-hover: #1e293b;
  --line: rgba(15, 23, 42, .45);
  --line-soft: rgba(15, 23, 42, .18);
  --line-faint: rgba(15, 23, 42, .08);
  --header-bg: rgba(250, 250, 251, .82);
  --row-hover: rgba(15, 23, 42, .018);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .03);
  --shadow-lg: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
  --sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 70rem;           /* 1120px */
  --pad: clamp(1.25rem, 4vw, 2rem);
  --header-h: 4rem;
  --r-card: 12px;
  --r-ctl: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
html[lang="en"] [data-lang="pl"],
html[lang="pl"] [data-lang="en"] { display: none !important; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 1.55rem + 3.3vw, 3.875rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.25vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
.prose { max-width: 65ch; }
.prose p, .prose li { color: var(--ink-2); }
.lede { font-size: clamp(1.125rem, 1.02rem + .4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.meta { font-size: .9375rem; color: var(--muted); line-height: 1.5; }
.mono, .num, .tag, .chip, .figure, .when, td.n, .kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tag { font-size: .875rem; color: var(--muted); letter-spacing: 0; }

/* ---------- Links & focus ---------- */
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(29, 78, 216, .35); }
a:hover, a:focus-visible { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: .75rem; top: -5rem; z-index: 100; background: var(--ink); color: var(--on-ink); padding: .7rem 1rem; border-radius: var(--r-ctl); text-decoration: none; }
.skip-link:focus { top: .75rem; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
.grid > * { grid-column: 1 / -1; min-width: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: var(--header-h); flex-wrap: wrap; }
.wordmark { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; padding-block: .6rem; }
.wordmark .context { color: var(--faint); font-weight: 400; font-size: .9375rem; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .65rem; color: var(--muted); text-decoration: none; font-size: .9375rem; border-radius: var(--r-ctl); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 550; }
.seg { display: inline-flex; padding: 3px; margin-left: .5rem; background: var(--surface-3); border-radius: var(--r-ctl); }
.seg button {
  font: 500 .875rem/1 var(--mono); min-width: 44px; min-height: 38px; padding: 0 .6rem;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 0 0 1px var(--hairline); }
@media (max-width: 40rem) {
  .site-header { position: static; }
  .site-header .wrap { padding-block: .25rem; }
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { padding-inline: .5rem; }
  .nav a:first-child { padding-left: 0; }
  .seg { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero .grid { row-gap: 2.5rem; align-items: start; }
.hero-main .back { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .9375rem; }
.hero-main .back:hover { color: var(--ink); }
.hero-main .meta { margin: .25rem 0 1.25rem; }
.hero-main h1 { max-width: 18ch; margin-bottom: 1.5rem; }
.hero-main .lede { margin-bottom: 2rem; }
@media (min-width: 64rem) {
  .hero-main { grid-column: 1 / span 7; }
  .hero-aside { grid-column: 9 / span 4; margin-top: 3.25rem; }
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem;
  border-radius: var(--r-ctl); font-weight: 550; font-size: .9375rem; text-decoration: none;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .16);
}
.btn:hover { background: var(--ink-hover); }
.btn-quiet { display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; font-size: .9375rem; font-weight: 500; }

/* ---------- Cards & panels ---------- */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow); }
.panel { background: var(--surface-2); border-radius: var(--r-card); }
.stat-panel { padding: .5rem 1.25rem; }
.stat-panel dl { margin: 0; }
.stat-panel .row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.stat-panel .row:last-child { border-bottom: 0; }
.stat-panel dt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.stat-panel dt.word { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.stat-panel dd { margin: 0; font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.stat-panel dd .src { display: block; color: var(--faint); margin-top: .15rem; }
.panel-title { display: block; padding: 1rem 0 .25rem; font-size: .875rem; color: var(--faint); font-family: var(--mono); }

.note { padding: 1rem 1.25rem; border-radius: var(--r-card); background: var(--surface-2); font-size: .9375rem; color: var(--ink-2); }
.note p { margin-bottom: .4rem; }
.note strong { color: var(--ink); }

/* ---------- Sections: 4 / 8 editorial split ---------- */
.sec { border-top: 1px solid var(--hairline); padding-block: clamp(3.5rem, 7vw, 6rem); }
.sec .grid { row-gap: 1.5rem; }
.sec-head h2 { margin-bottom: .75rem; }
.sec-head .summary { color: var(--muted); font-size: 1rem; max-width: 38ch; }
.sec-body > * + * { margin-top: 1.5rem; }
.band { margin-top: 2.5rem; }
@media (min-width: 64rem) {
  .sec-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .sec-body { grid-column: 5 / span 8; }
  .band { grid-column: 1 / -1; }
}

/* ---------- Status chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; line-height: 1;
  padding: .35rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--hairline);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.chip.stop { color: var(--stop); background: var(--stop-soft); border-color: rgba(180, 35, 24, .18); }
.chip.stop::before { background: var(--stop); }
.chip.pass { color: var(--pass); background: var(--pass-soft); border-color: rgba(6, 118, 71, .18); }
.chip.pass::before { background: var(--pass); }
.chip.human { color: var(--human); background: var(--human-soft); border-color: rgba(109, 40, 217, .18); }
.chip.human::before { background: var(--human); }
.chip.now { color: var(--accent-ink); background: var(--accent-soft); border-color: rgba(29, 78, 216, .2); }
.chip.now::before { background: var(--accent); }

/* ---------- Incident trace (ordered steps) ---------- */
.trace { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.trace li { counter-increment: s; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--hairline); }
.trace li:last-child { border-bottom: 0; }
.trace li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .875rem; color: var(--faint); padding-top: .2rem; }
.trace .what { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.trace .detail { grid-column: 2; color: var(--ink-2); font-size: .9375rem; }

/* ---------- Diagram figure ---------- */
.diagram { padding: clamp(1rem, 2.5vw, 2rem); }
.diagram figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; align-items: center; margin-bottom: 1.25rem; }
.diagram figcaption .title { font-weight: 600; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .svg-mobile { display: none; }
@media (max-width: 47.99rem) { .diagram .svg-desktop { display: none; } .diagram .svg-mobile { display: block; max-width: 26rem; margin-inline: auto; } }
.legend { display: flex; flex-wrap: wrap; gap: .5rem; }
.trace-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--hairline); }
.trace-ctl .label { font-size: .9375rem; color: var(--muted); margin-right: .25rem; }
.trace-ctl button {
  font: 500 .875rem/1 var(--mono); min-height: 40px; min-width: 44px; padding: 0 .8rem; cursor: pointer;
  border: 1px solid var(--hairline-2); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-2);
}
.trace-ctl button:hover { border-color: var(--ink-2); color: var(--ink); }
.trace-ctl button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.trace-status { margin: .9rem 0 0; font-size: .9375rem; color: var(--ink-2); min-height: 1.5em; }

/* SVG styling (classes used inside inline SVGs) */
.d-node { fill: var(--surface); stroke: var(--line-soft); stroke-width: 1; }
.d-node.gate { fill: var(--surface-2); }
.d-node.hum { fill: var(--human-soft); stroke: rgba(109, 40, 217, .45); }
.d-node.stop { fill: var(--stop-soft); stroke: var(--stop); }
.d-group { fill: none; stroke: var(--line-soft); stroke-dasharray: 3 4; }
.d-t { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.d-s { font-family: var(--sans); font-size: 12.5px; fill: var(--muted); }
.d-pt { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--ink); }
.d-n { font-family: var(--mono); font-size: 12px; fill: var(--faint); }
.d-hum { font-family: var(--sans); font-size: 12.5px; font-weight: 600; fill: var(--human); }
.d-stop { font-family: var(--sans); font-size: 12.5px; font-weight: 600; fill: var(--stop); }
.d-line { fill: none; stroke: var(--line); stroke-width: 1.25; }
.d-hline { fill: none; stroke: var(--human); stroke-width: 1.25; stroke-dasharray: 2 3; }
.d-loop { fill: none; stroke: var(--stop); stroke-width: 1.75; stroke-dasharray: 5 4; }
.d-arrow { fill: var(--line); }
.d-arrow-stop { fill: var(--stop); }
.d-arrow-hum { fill: var(--human); }
/* trace states (JS sets data-step on the figure; without JS everything is shown at full strength) */
[data-trace][data-step] .tr { opacity: .28; }
[data-trace][data-step] .tr.on { opacity: 1; }
[data-trace][data-step] .tr.on .d-node { stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  [data-trace] .tr { transition: opacity .16s cubic-bezier(.2, .75, .25, 1); }
}

/* ---------- Figures band ---------- */
.figures { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.figures li { padding: 1.25rem 1.25rem 1.1rem; }
.figure { display: block; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); margin-bottom: .6rem; }
.figures p { font-size: .9375rem; color: var(--ink-2); margin: 0; }
@media (min-width: 40rem) { .figures { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }

/* ---------- Stage specification grid ---------- */
.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; border-top: 1px solid var(--hairline); }
.spec li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hairline); }
.spec .num { font-size: .875rem; color: var(--faint); padding-top: .2rem; }
.spec h3 { font-size: 1rem; margin-bottom: .3rem; }
.spec p { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.spec .flag { margin-top: .6rem; }
@media (min-width: 48rem) { .spec { grid-template-columns: 1fr 1fr; } }

/* ---------- Editorial index ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline-2); }
.index > li { display: grid; gap: .35rem 1.5rem; padding: 1.35rem 0; border-bottom: 1px solid var(--hairline); }
.index .when { display: flex; flex-direction: column; gap: .1rem; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.index .when .org { color: var(--ink-2); }
.index h3 { margin-bottom: .2rem; }
.index p { margin: 0; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 48rem) { .index > li { grid-template-columns: 11rem minmax(0, 1fr); } .index > li > .when { grid-row: 1 / span 4; padding-top: .2rem; } .index > li > :not(.when) { grid-column: 2; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); }
.table-wrap.card { padding: .25rem 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
caption { text-align: left; padding: 1rem 0 .5rem; font-size: .875rem; color: var(--faint); font-family: var(--mono); }
th, td { text-align: left; vertical-align: top; padding: .8rem .9rem .8rem 0; border-bottom: 1px solid var(--hairline); }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { font-weight: 500; font-size: .875rem; color: var(--faint); border-bottom: 1px solid var(--hairline-2); white-space: nowrap; }
tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
td { color: var(--ink-2); }
td.n, th.n { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:hover > * { background: var(--row-hover); }
td p { margin: 0; }
@media (max-width: 40rem) { tbody th { white-space: normal; } table { font-size: .9rem; } }

/* ---------- Lead story ---------- */
.work { display: grid; gap: 1rem; }
.lead-story { padding: clamp(1.5rem, 3vw, 2.25rem); }
.lead-story h3 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); letter-spacing: -0.02em; margin: .6rem 0 .75rem; }
.lead-story .facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }
.side-story { padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.side-story h3 { margin: .6rem 0 .6rem; }
@media (min-width: 56rem) { .work { grid-template-columns: 7fr 5fr; align-items: stretch; } }

/* ---------- Names ---------- */
.names { list-style: none; padding: 0; margin: .5rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.names li { font-size: .9375rem; padding: .3rem .65rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--hairline); color: var(--ink-2); }
.names li.direct { border-color: rgba(15, 23, 42, .35); color: var(--ink); font-weight: 550; }
.cols-2 { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .cols-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Disclosure ---------- */
.disclosure { border-top: 1px solid var(--hairline); }
.disclosure details { border-bottom: 1px solid var(--hairline); }
.disclosure summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: .5rem .75rem; margin-inline: -.75rem; border-radius: var(--r-ctl); font-weight: 550;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover { background: var(--surface-2); }
.disclosure summary .chev { flex: none; width: 16px; height: 16px; color: var(--faint); }
.disclosure details[open] summary .chev { transform: rotate(180deg); }
.disclosure details > div { padding: .25rem 0 1.5rem; max-width: 65ch; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .disclosure summary .chev { transition: transform .14s cubic-bezier(.2, .75, .25, 1); }
  .disclosure summary, .nav a, .btn, .seg button, .trace-ctl button, a { transition: color .12s, background-color .12s, text-decoration-color .12s, border-color .12s; }
}

/* ---------- Contact / about ---------- */
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem; overflow-wrap: anywhere; }

/* ---------- Access form ---------- */
.access { display: grid; gap: .5rem; max-width: 30rem; }
.access label { font-weight: 550; font-size: .9375rem; }
.access .row { display: flex; flex-wrap: wrap; gap: .5rem; }
.access input {
  flex: 1 1 14rem; min-height: 44px; padding: 0 .8rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline-2); border-radius: var(--r-ctl); box-shadow: inset 0 1px 1px rgba(15, 23, 42, .03);
}
.access input:focus-visible { outline-offset: 1px; }
.access button { font: inherit; font-weight: 550; font-size: .9375rem; min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: var(--r-ctl); background: var(--ink); color: var(--on-ink); cursor: pointer; }
.access button:hover { background: var(--ink-hover); }
.access-msg { font-weight: 550; color: var(--stop); margin: .75rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding-block: 2rem 3rem; margin-top: 2rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: .9375rem; }
.site-footer .nav a { font-size: .9375rem; }

/* Missing-fact marker: quiet technical tag until the author supplies the fact */
.missing { font-family: var(--mono); font-size: .8125rem; color: var(--faint); border: 1px dashed var(--line-soft); border-radius: 4px; padding: .05rem .4rem; white-space: normal; }

@media print { .site-header, .skip-link, .actions, .trace-ctl { display: none; } .sec { break-inside: avoid; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Page-specific components ---------- */
.trace.card { padding: .25rem 1.25rem; }
.spec-note .num { color: var(--accent); }
.related { display: grid; gap: .5rem; padding: 1.5rem; text-decoration: none; color: var(--ink); align-self: start; }
.related:hover { box-shadow: var(--shadow-lg); border-color: var(--hairline-2); }
.related .related-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.related .related-text { color: var(--ink-2); font-size: .9375rem; }
.related .related-cta { color: var(--accent); font-weight: 550; font-size: .9375rem; }
.subcase { margin-top: 3rem; }
.h3-lg { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 1rem; }
table.kv tbody th { width: 9rem; }
.status-under { margin-top: 1rem; }
.access-card { padding: 1.5rem; }
.access-card .contact { margin-top: 1rem; }
.lead-story .tag, .side-story .tag { margin: 0; }
.side-story .facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1rem; }
tr.is-now > * { background: var(--accent-soft); }
.sec-head .tag { margin-bottom: .75rem; }
.cols-2 h3 { margin-bottom: .5rem; }
.note ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.note li + li { margin-top: .25rem; }
.meta li + li { margin-top: .4rem; }

/* ---------- Refinements after first render ---------- */
figure { margin: 0; }
@media (min-width: 64rem) { .sec-head h2 { font-size: clamp(1.5rem, 1.1rem + .8vw, 1.875rem); line-height: 1.18; } }
.sec-body .figures { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.stat-panel .row { grid-template-columns: 5.25rem 1fr; }
.label { font-size: .875rem; font-weight: 550; color: var(--muted); margin: 0 0 .25rem; }
.nw { white-space: nowrap; }
.hero-main h1 { max-width: 20ch; }
.index .when .org, .index .when.word { font-family: var(--sans); font-variant-numeric: normal; }
.index .when.word { color: var(--ink-2); font-weight: 550; font-size: .9375rem; }
.index .when .chip { align-self: flex-start; margin-top: .35rem; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 30rem) { h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; } }
/* Sections with a full-width band: the title must not travel over the band */
@media (min-width: 64rem) { .grid:has(> .band) > .sec-head { position: static; } }

/* =====================================================================
   Iteration 2 (2026-11-28): section rhythm, data figures, EDS theme
   ===================================================================== */

/* ---------- Section head variants (break the 4/8 rhythm) ---------- */
.kicker { font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 .9rem; }
.sec-top h2 { max-width: 26ch; }
.sec-top .intro { color: var(--ink-2); max-width: 60ch; }
.sec-top .intro p { margin-bottom: .75rem; }
@media (min-width: 64rem) {
  .sec-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: end; }
  .sec-top > .h-block { grid-column: 1 / span 6; }
  .sec-top > .intro { grid-column: 8 / span 5; }
  .sec-top.w75 > .h-block { grid-column: 1 / span 7; }
  .sec-top.w75 > .intro { grid-column: 9 / span 4; }
  .split > .main { grid-column: 1 / span 7; }
  .split > .side { grid-column: 9 / span 4; }
  .split.rev > .main { grid-column: 6 / span 7; grid-row: 1; }
  .split.rev > .side { grid-column: 1 / span 4; grid-row: 1; }
}
.split .main > * + * { margin-top: 1.5rem; }

/* ---------- Full-bleed contrast band ---------- */
.sec-dark {
  background: #0f172a; color: #cbd5e1; border-top: 0;
  --ink: #f8fafc; --ink-2: #cbd5e1; --muted: #94a3b8; --faint: #94a3b8;
  --hairline: rgba(248, 250, 252, .12); --hairline-2: rgba(248, 250, 252, .2);
  --accent: #a5b4fc; --on-ink: #0f172a;
}
.sec-dark h2, .sec-dark h3 { color: #f8fafc; }
.sec-dark :focus-visible { outline-color: #a5b4fc; }
.rules { display: grid; gap: 2.5rem; margin-top: 3rem; border-top: 1px solid var(--hairline); padding-top: 2.5rem; }
.rule .no { font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; color: #a5b4fc; }
.rule h3 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); letter-spacing: -0.02em; line-height: 1.2; margin: .75rem 0 1rem; max-width: 22ch; }
.rule p { color: #cbd5e1; max-width: 46ch; }
.rule .ev { font-family: var(--mono); font-size: .8125rem; color: #94a3b8; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hairline); max-width: none; }
@media (min-width: 48rem) {
  .rules { grid-template-columns: 1fr 1fr; gap: 0; }
  .rules > .rule:first-child { padding-right: 2.5rem; }
  .rules > .rule + .rule { border-left: 1px solid var(--hairline); padding-left: 2.5rem; }
}

/* ---------- Before / after range bars ---------- */
.ba { padding: clamp(1.25rem, 3vw, 2rem); }
.ba-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; align-items: baseline; margin-bottom: .5rem; }
.ba-head .title { font-weight: 600; }
.ba-row { display: grid; gap: .5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hairline); }
.ba-label strong { display: block; font-weight: 600; }
.ba-label span { font-size: .875rem; color: var(--muted); }
.ba-track { position: relative; height: 30px; border-radius: 6px; background: var(--surface-2);
  background-image: repeating-linear-gradient(to right, transparent 0 calc(10% - 1px), var(--line-faint) calc(10% - 1px) 10%); }
.ba-bar { position: absolute; left: 0; top: 6px; bottom: 6px; width: var(--hi); border-radius: 4px; border: 1.5px solid var(--c);
  background: linear-gradient(to right, var(--c) 0 var(--lo), transparent var(--lo)),
              repeating-linear-gradient(135deg, var(--c) 0 1.5px, transparent 1.5px 6px); }
.ba-val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.ba-scale { position: relative; height: 1.5rem; font-family: var(--mono); font-size: .8125rem; color: var(--faint); margin-top: .5rem; }
.ba-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ba-scale span:first-child { transform: none; }
.ba-scale span:last-child { transform: translateX(-100%); }
.ba-key { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: var(--muted); margin: 1rem 0 0; }
.ba-key i { display: inline-block; width: 22px; height: 10px; border-radius: 2px; border: 1.5px solid var(--ink-2); vertical-align: -1px; margin-right: .4rem; }
.ba-key i.solid { background: var(--ink-2); }
.ba-key i.hatch { background: repeating-linear-gradient(135deg, var(--ink-2) 0 1.5px, transparent 1.5px 5px); }
@media (min-width: 48rem) {
  .ba-row, .ba-foot { display: grid; grid-template-columns: 13rem minmax(0, 1fr) 6.5rem; align-items: center; gap: 1.5rem; }
  .ba-foot .ba-scale { grid-column: 2; }
}

/* ---------- Key-value strip (replaces repeated stat cards) ---------- */
.strip { display: grid; margin: 0; border-top: 1px solid var(--hairline-2); }
.strip > div { padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
.strip dt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.strip dd { margin: .25rem 0 0; font-size: .9375rem; color: var(--ink-2); max-width: 32ch; }
@media (min-width: 48rem) {
  .strip { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
  .strip > div { padding: 1.1rem 1.5rem 0 0; border-bottom: 0; }
  .strip > div + div { border-left: 1px solid var(--hairline); padding-left: 1.5rem; }
}

/* ---------- Chart SVG classes ---------- */
.c-axis { stroke: var(--line); stroke-width: 1; fill: none; }
.c-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.c-tick { font-family: var(--mono); font-size: 12px; fill: var(--faint); }
.c-ref { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.c-lbl { font-family: var(--sans); font-size: 13px; fill: var(--ink-2); }
.c-lbl-b { font-family: var(--sans); font-size: 13.5px; font-weight: 600; fill: var(--ink); }
.c-lbl-a { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--accent); }
.c-lbl-s { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--stop); }
.c-lbl-n { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--now); }
.c-own { stroke: var(--ink); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.c-assess { stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 7 5; fill: none; stroke-linecap: round; }
.c-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.c-stem { stroke: var(--accent); stroke-width: 1.25; }
.c-span { fill: var(--accent-soft); }
.c-span-n { fill: var(--now-soft); }
.c-close { stroke: var(--stop); stroke-width: 1.5; stroke-dasharray: 3 3; }
.c-hatch { stroke: var(--line-soft); stroke-width: 1; }
.c-cap { stroke: var(--line-soft); stroke-width: 1; }
.c-cap-on { stroke: var(--now); stroke-width: 1.5; }
.c-blue { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.c-amber { stroke: var(--now); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.c-node { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.c-node-n { fill: var(--surface); stroke: var(--now); stroke-width: 1.5; }
.c-fill-a { fill: var(--accent); } .c-fill-n { fill: var(--now); } .c-fill-s { fill: var(--stop); }
.c-cell { fill: var(--line-soft); }
.c-bar { fill: var(--surface-3); stroke: var(--line-soft); }
.c-bar-s { fill: var(--stop-soft); stroke: var(--stop); stroke-width: 1.25; }
.c-stopline { stroke: var(--pass); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart-key { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.chart-key svg { width: 26px; height: 12px; vertical-align: -1px; margin-right: .45rem; display: inline-block; }
.diagram .caption-note { font-size: .875rem; color: var(--muted); margin: .9rem 0 0; }

/* ---------- Source ledger under the trajectory ---------- */
.sources { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--hairline-2); }
.sources li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .25rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--hairline); font-size: .9375rem; }
.sources .when { font-family: var(--mono); font-size: .875rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.sources .what { color: var(--ink-2); }
.sources .src { grid-column: 2; font-family: var(--mono); font-size: .8125rem; color: var(--faint); }
@media (min-width: 56rem) {
  .sources { grid-template-columns: 1fr 1fr 1fr; column-gap: 2rem; }
  .sources li { grid-template-columns: 1fr; }
  .sources .src { grid-column: 1; }
}

/* ---------- Partner ledger ---------- */
.mix { display: flex; gap: 4px; margin: .75rem 0 .5rem; max-width: 24rem; }
.mix i { flex: 1; height: 12px; border-radius: 2px; background: var(--surface-3); border: 1px solid var(--line-soft); }
.mix i.d { background: var(--ink); border-color: var(--ink); }
.mix-key { font-size: .875rem; color: var(--muted); }
.ledger { display: grid; gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline-2); border-radius: var(--r-card); overflow: hidden; }
.ledger > div { background: var(--surface); padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.ledger > .direct { background: var(--accent-soft); }
.ledger .count { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 2.25rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.ledger .what { font-weight: 600; margin: .6rem 0 .2rem; }
.ledger .how { font-size: .875rem; color: var(--muted); margin: 0 0 1rem; }
.ledger ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.ledger ul:last-child { margin-bottom: 0; }
.ledger li { padding: .45rem 0; border-top: 1px solid var(--hairline); font-size: .9375rem; color: var(--ink-2); break-inside: avoid; }
.ledger .direct li { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); padding: .6rem 0; }
.ledger .direct li span { display: block; font-family: var(--mono); font-size: .8125rem; font-weight: 400; letter-spacing: 0; color: var(--accent-ink); }
.ledger .sub { font-family: var(--mono); font-size: .8125rem; color: var(--faint); margin: 0 0 .25rem; }
@media (min-width: 40rem) { .ledger .twocol { columns: 2; column-gap: 1.5rem; } }
@media (min-width: 56rem) { .ledger { grid-template-columns: 4fr 4fr 5fr; } }

/* ---------- Related card in the about split ---------- */
.related .thumb { margin: -.25rem 0 .5rem; }

/* ---------- Generic mobile/desktop SVG switch (also outside .diagram) ---------- */
.svg-mobile { display: none; }
@media (max-width: 47.99rem) { .svg-desktop { display: none; } .svg-mobile { display: block; } }

/* ---------- Run log (EDS results) ---------- */
.runlog { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline-2); }
.runlog > li { display: grid; gap: .6rem 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--hairline); }
.runlog .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.625rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.runlog .t { font-weight: 600; }
.runlog p { margin: .2rem 0 0; color: var(--ink-2); font-size: .9375rem; max-width: 52ch; }
.cells { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .75rem; }
.cells i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line-soft); }
.cells i.on { background: var(--accent); border-color: var(--accent); }
.cells.dots i { border-radius: 50%; width: 12px; height: 12px; }
.cells-key { font-family: var(--mono); font-size: .8125rem; color: var(--faint); margin-top: .5rem; }
@media (min-width: 48rem) { .runlog > li { grid-template-columns: 8.5rem minmax(0, 1fr); } }

/* ---------- Role map (EDS) ---------- */
.roles { display: grid; gap: .75rem; }
.role { padding: 1.1rem 1.25rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline-2); }
.role .who { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.role h3 { font-size: 1.0625rem; }
.role p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.role.human { border-color: rgba(196, 181, 253, .45); background: var(--human-soft); }
.role.orch { background: var(--surface-2); }
.roles .row4 { display: grid; gap: .75rem; }
.roles .rule-line { font-family: var(--mono); font-size: .8125rem; color: var(--faint); margin: .25rem 0 0; }
@media (min-width: 40rem) { .roles .row4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .roles .row4 { grid-template-columns: repeat(4, 1fr); } .roles .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; } }

/* ---------- Gate inspector (EDS) ---------- */
.gate-cards { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; }
.gate-cards li { padding: 1rem 1.1rem; border-radius: 10px; border: 1px solid var(--hairline-2); background: var(--surface-2); }
.gate-cards .id { font-family: var(--mono); font-size: .8125rem; color: var(--accent); }
.gate-cards h3 { font-size: 1rem; margin: .2rem 0 .3rem; }
.gate-cards p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
[data-trace][data-step] .gate-cards li.on { border-color: var(--accent); }
@media (min-width: 40rem) { .gate-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .gate-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Evidence panel (withdrawn variant) ---------- */
.evidence { display: grid; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r-card); background: var(--stop-soft); border: 1px solid rgba(180, 35, 24, .3); }
.evidence .stamp { display: inline-flex; gap: .5rem; align-items: center; font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--stop); border: 1px solid currentColor; border-radius: 4px; padding: .25rem .5rem; }
.evidence h2 { margin: 1rem 0 1rem; }
.evidence .panel-fig { background: var(--surface); border: 1px solid var(--hairline-2); border-radius: 10px; padding: 1rem; }
.evidence .panel-fig figcaption { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.evidence ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .9375rem; }
.evidence li + li { margin-top: .35rem; }
@media (min-width: 64rem) { .evidence { grid-template-columns: 5fr 4fr 3fr; align-items: start; } }

/* ---------- Evidence ladder (EDS) ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rung { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .1rem .75rem; padding: .9rem 1rem; border-radius: 10px; border: 1px solid var(--hairline-2); background: var(--surface); }
.rung .no { grid-row: 1 / span 3; font-family: var(--mono); font-size: .875rem; color: var(--faint); }
.rung strong { font-size: 1rem; }
.rung .st { font-family: var(--mono); font-size: .8125rem; color: var(--faint); }
.rung .d { font-size: .875rem; color: var(--ink-2); }
.rung.done { border-top: 3px solid var(--pass); }
.rung.done .st { color: var(--pass); }
.rung.todo { border-style: dashed; background: transparent; }
.rung.now { border: 1.5px solid var(--now); background: var(--now-soft); }
.rung.now .st { color: var(--now); font-weight: 550; }
.rung .pin { position: absolute; right: .75rem; top: -.7rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; padding: .15rem .45rem; border-radius: 4px; background: var(--now); color: var(--on-ink-fixed, #0a0e15); }
@media (min-width: 64rem) {
  .ladder { grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: .6rem; }
  .rung { grid-template-columns: 1fr; align-content: start; min-height: calc(5.5rem + var(--h) * 1.6rem); padding: 1rem .9rem; }
  .rung .no { grid-row: auto; }
}

/* ---------- Growth chart + four stages (EDS) ---------- */
.stages { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.stages li { padding-top: .9rem; border-top: 2px solid var(--hairline-2); }
.stages li.now { border-top-color: var(--now); }
.stages .ico { display: inline-flex; width: 32px; height: 32px; color: var(--accent); margin-bottom: .4rem; }
.stages li.now .ico { color: var(--now); }
.stages .when { display: block; font-family: var(--mono); font-size: .8125rem; color: var(--faint); }
.stages h3 { font-size: 1rem; margin: .2rem 0 .35rem; }
.stages p { font-size: .9375rem; color: var(--ink-2); margin: 0 0 .4rem; }
.stages .lesson { color: var(--muted); font-size: .875rem; }
@media (min-width: 48rem) { .stages { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .stages { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* ---------- Locked preview (EDS access) ---------- */
.peek { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hairline-2); background: #06090d; }
.peek img { display: block; width: 100%; height: auto; opacity: .85; }
.peek figcaption { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; gap: .5rem; align-items: center; padding: .5rem .8rem; border-radius: 999px; background: rgba(10, 14, 21, .88); color: #e8ecf2; font-size: .875rem; border: 1px solid rgba(148, 163, 184, .3); white-space: nowrap; }
.peek figcaption svg { width: 16px; height: 16px; }

/* ---------- Hub: proof band ---------- */
.proofs { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--hairline-2); }
.proofs > li { padding: 1.5rem 0; border-bottom: 1px solid var(--hairline); display: grid; align-content: start; gap: .35rem; }
.proofs .ctx { font-family: var(--mono); font-size: .8125rem; color: var(--faint); }
.proofs .big { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin: .4rem 0 .5rem; }
.proofs .big small { font-size: .45em; letter-spacing: 0; color: var(--muted); margin-left: .2rem; }
.proofs h3 { font-size: 1rem; }
.proofs p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 40rem) { .proofs { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
@media (min-width: 64rem) {
  .proofs { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .proofs > li { padding: 1.5rem 1.5rem 0 0; border-bottom: 0; }
  .proofs > li + li { border-left: 1px solid var(--hairline); padding-left: 1.5rem; }
}
.subpanel { --faint: var(--muted); margin-top: 3rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-card); background: var(--surface-2); display: grid; gap: 1.5rem; }
.subpanel .h3-lg { margin: .5rem 0 .5rem; }
.kvlist { margin: 0; display: grid; }
.kvlist > div { display: grid; gap: .2rem 1.5rem; padding: .8rem 0; border-top: 1px solid var(--hairline-2); }
.kvlist dt { font-family: var(--mono); font-size: .8125rem; color: var(--faint); padding-top: .15rem; }
.kvlist dd { margin: 0; color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 48rem) { .kvlist > div { grid-template-columns: 8rem minmax(0, 1fr); } }
@media (min-width: 64rem) { .subpanel { grid-template-columns: 4fr 8fr; gap: 3rem; } }

/* ---------- Hub: case cards with thumbnails ---------- */
.cases { display: grid; gap: 1rem; }
.case { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.case .thumb { border-bottom: 1px solid var(--hairline); background: var(--surface-2); padding: 1.25rem; }
.case .thumb svg { display: block; width: 100%; height: auto; }
.case.dark .thumb { background: #0a0e15; border-bottom-color: rgba(148, 163, 184, .2); }
.case .body { padding: clamp(1.25rem, 2.5vw, 1.75rem); display: flex; flex-direction: column; gap: .75rem; }
.case .body h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); letter-spacing: -0.02em; }
.case .body p { margin: 0; color: var(--ink-2); }
.case .facts { display: flex; flex-wrap: wrap; gap: .5rem; }
.case .go { margin-top: auto; padding-top: .5rem; }
@media (min-width: 56rem) { .cases { grid-template-columns: 1fr 1fr; } }
/* thumbnail palettes (fixed: they illustrate each project's own identity) */
.th-node { fill: #ffffff; stroke: rgba(15, 23, 42, .22); }
.th-gate { fill: #f4f5f7; stroke: rgba(15, 23, 42, .22); }
.th-g1 { fill: #fef3f2; stroke: #b42318; }
.th-hum { fill: #f4f0ff; stroke: #6d28d9; }
.th-line { stroke: rgba(15, 23, 42, .4); fill: none; }
.th-loop { stroke: #b42318; fill: none; stroke-dasharray: 4 3; }
.th-t { font-family: var(--mono); font-size: 11px; fill: #475569; }
.th-dk-node { fill: #101722; stroke: rgba(148, 163, 184, .35); }
.th-dk-gate { fill: #151e2b; stroke: #7cb4da; }
.th-dk-hum { fill: rgba(196, 181, 253, .12); stroke: #c4b5fd; }
.th-dk-line { stroke: rgba(198, 206, 217, .5); fill: none; }
.th-dk-stop { stroke: #f0806b; fill: none; stroke-dasharray: 4 3; }
.th-dk-t { font-family: var(--mono); font-size: 11px; fill: #a3aebd; }

/* ---------- Hub: interactive working model ---------- */
.model { padding: clamp(1.25rem, 3vw, 2rem); }
.model .trace-ctl.model-steps { margin: 0 0 1.25rem; padding: 0 0 1.25rem; border-top: 0; border-bottom: 1px solid var(--hairline); gap: .5rem; }
.model-steps button { display: inline-flex; align-items: baseline; gap: .5rem; min-height: 48px; font-family: var(--sans); font-size: .9375rem; font-weight: 550; padding: 0 1rem; }
.model-steps button .n { font-family: var(--mono); font-size: .8125rem; font-weight: 400; color: var(--faint); }
.model-steps button[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.model-steps .arrow { color: var(--faint); font-family: var(--mono); }
.model-grid { display: grid; gap: 1rem; }
.mstep { padding: 1.1rem 1.25rem; border-radius: 10px; border: 1px solid var(--hairline-2); background: var(--surface); }
.mstep .n { font-family: var(--mono); font-size: .8125rem; color: var(--faint); }
.mstep h3 { margin: .2rem 0 .75rem; font-size: 1.0625rem; }
.mstep dl { margin: 0; display: grid; gap: .6rem; }
.mstep dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.mstep dd { margin: .1rem 0 0; font-size: .9375rem; color: var(--ink-2); }
[data-trace][data-step] .tr-only:not(.on) { display: none; }
[data-trace][data-step] .mstep.on { border-color: var(--ink-2); }
@media (min-width: 48rem) { .model-grid { grid-template-columns: 1fr 1fr; } [data-trace][data-step] .model-grid { grid-template-columns: 1fr; } [data-trace][data-step] .mstep.on dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; row-gap: 1rem; } }
@media (min-width: 64rem) { .model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } [data-trace][data-step] .mstep.on dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Hub: career timeline ---------- */
.ctl { --years: 12; }
.ctl-scale { display: none; }
.ctl-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--hairline-2); }
.ctl-roles li { position: relative; padding: 0 0 1.75rem 1.5rem; }
.ctl-roles li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-2); }
.ctl-roles li.now::before { background: var(--accent); border-color: var(--accent); }
.ctl-roles .yrs { font-family: var(--mono); font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctl-roles h3 { font-size: 1.0625rem; margin: .2rem 0 .35rem; }
.ctl-roles p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 64rem) {
  .ctl-scale { display: grid; grid-template-columns: repeat(var(--years), minmax(0, 1fr)); font-family: var(--mono); font-size: .8125rem; color: var(--faint); border-bottom: 1px solid var(--hairline-2); padding-bottom: .5rem; margin-bottom: 1rem; }
  .ctl-scale span:nth-child(even) { visibility: hidden; }
  .ctl-roles { grid-template-columns: repeat(var(--years), minmax(0, 1fr)); column-gap: 0; border-left: 0; }
  .ctl-roles li { grid-column: var(--c); padding: 1.1rem 1.25rem 0 0; border-top: 6px solid var(--surface-3); margin-right: 4px; }
  .ctl-roles li.now { border-top-color: var(--accent); }
  .ctl-roles li::before { display: none; }
}

/* ---------- Hub: closing band ---------- */
.sec-close { --faint: var(--muted); background: var(--surface-2); }
.close-grid { display: grid; gap: 2rem; align-items: end; }
.close-grid .big-link { display: inline-flex; min-height: 44px; align-items: center; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 550; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.close-grid .more { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.close-grid .more a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 64rem) { .close-grid { grid-template-columns: 6fr 6fr; } }

/* =====================================================================
   EDS theme: quantitative research lab, dark. Same type and grid.
   ===================================================================== */
html[data-theme="eds"] {
  color-scheme: dark;
  --bg: #0a0e15; --surface: #101722; --surface-2: #151e2b; --surface-3: #1c2736;
  --ink: #e8ecf2; --ink-2: #c6ced9; --muted: #a3aebd; --faint: #8d99aa;
  --hairline: rgba(148, 163, 184, .14); --hairline-2: rgba(148, 163, 184, .24);
  --accent: #7cb4da; --accent-ink: #9ccbea; --accent-soft: rgba(124, 180, 218, .12);
  --stop: #f0806b; --stop-soft: rgba(240, 128, 107, .09);
  --pass: #7fc08a; --pass-soft: rgba(127, 192, 138, .1);
  --human: #c4b5fd; --human-soft: rgba(196, 181, 253, .1);
  --now: #f2b05a; --now-soft: rgba(242, 176, 90, .1);
  --on-ink: #0a0e15; --ink-hover: #ffffff;
  --line: rgba(198, 206, 217, .55); --line-soft: rgba(148, 163, 184, .32); --line-faint: rgba(148, 163, 184, .1);
  --header-bg: rgba(10, 14, 21, .8); --row-hover: rgba(148, 163, 184, .05);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 16px 40px rgba(0, 0, 0, .35);
}
html[data-theme="eds"] body { background: var(--bg); }
html[data-theme="eds"] a { text-decoration-color: rgba(124, 180, 218, .4); }
html[data-theme="eds"] a:hover, html[data-theme="eds"] a:focus-visible { text-decoration-color: currentColor; }
html[data-theme="eds"] .seg button[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--hairline-2); }
html[data-theme="eds"] .btn { box-shadow: none; }
html[data-theme="eds"] .chip.stop { border-color: rgba(240, 128, 107, .35); }
html[data-theme="eds"] .chip.pass { border-color: rgba(127, 192, 138, .35); }
html[data-theme="eds"] .chip.human { border-color: rgba(196, 181, 253, .35); }
html[data-theme="eds"] .chip.now { color: var(--now); background: var(--now-soft); border-color: rgba(242, 176, 90, .35); }
html[data-theme="eds"] .chip.now::before { background: var(--now); }
html[data-theme="eds"] .evidence { border-color: rgba(240, 128, 107, .35); }
html[data-theme="eds"] .hero { position: relative; }
html[data-theme="eds"] .hero h1 .hl { color: var(--accent); }
html[data-theme="eds"] .telemetry { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-family: var(--mono); font-size: .8125rem; color: var(--faint); margin: 0 0 1.25rem; }
html[data-theme="eds"] .telemetry b { font-weight: 500; color: var(--ink-2); }
html[data-theme="eds"] .telemetry .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--now); margin-right: .4rem; vertical-align: 1px; }
html[data-theme="eds"] .missing { border-color: rgba(148, 163, 184, .4); }
html[data-theme="eds"] .rung .pin { color: #0a0e15; }

/* ---------- Iteration 2: values that would otherwise be inline styles ---------- */
.ba-before { --hi: 100%; --lo: 80%; --c: var(--faint); }
.ba-after { --hi: 30%; --lo: 66.67%; --c: var(--accent); }
.ba-scale span:nth-child(1) { left: 0; } .ba-scale span:nth-child(2) { left: 20%; } .ba-scale span:nth-child(3) { left: 40%; }
.ba-scale span:nth-child(4) { left: 60%; } .ba-scale span:nth-child(5) { left: 80%; } .ba-scale span:nth-child(6) { left: 100%; }
.related .thumb { display: block; margin: 0 0 .5rem; padding: .75rem; border-radius: 8px; background: #0a0e15; }
.related .thumb svg { display: block; width: 100%; height: auto; }
.g-ink-0 { stop-color: var(--ink); stop-opacity: .14; } .g-ink-1 { stop-color: var(--ink); stop-opacity: 0; }
.th-hline { stroke: #6d28d9; fill: none; stroke-dasharray: 2 2; }
.c-now-line { stroke: var(--now); stroke-width: 1.5; stroke-dasharray: 3 3; }
.rung .pin { color: var(--bg); }
.rung.h1 { --h: 1; } .rung.h2 { --h: 2; } .rung.h3 { --h: 3; } .rung.h4 { --h: 4; } .rung.h5 { --h: 5; } .rung.h6 { --h: 6; } .rung.h7 { --h: 7; }
.ctl-roles .c1 { --c: 1 / span 2; } .ctl-roles .c2 { --c: 3 / span 3; } .ctl-roles .c3 { --c: 6 / span 3; } .ctl-roles .c4 { --c: 9 / span 4; }
.sec-dark + .sec { border-top: 0; }

.tail { display: block; width: 100%; height: auto; }
.close-grid h2 { margin-bottom: 1rem; max-width: 22ch; }
.case .go { margin: auto 0 0; padding-top: .5rem; }

.proofs .big small { display: block; font-size: .875rem; letter-spacing: 0; margin: .5rem 0 0; color: var(--muted); }
.model-steps button { align-items: center; }
.sec-body.cases > * + * { margin-top: 0; }
@media (min-width: 64rem) { .sec-body.cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 63.99rem) { .sec-top .intro { margin-top: 1rem; } }
@media (max-width: 47.99rem) { .model-steps .arrow { display: none; } }
.model .trace-status { margin: 0 0 1rem; }

/* =====================================================================
   Iteration 3 (home page): hero key-figures card, workflow trace, lessons grid
   ===================================================================== */
/* Key figures card */
.kf { padding: 0; overflow: hidden; }
.kf-head { margin: 0; padding: .7rem 1.25rem; background: var(--surface-2); border-bottom: 1px solid var(--hairline-2);
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kf dl { margin: 0; }
.kf-row { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 1rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--hairline-2); align-items: start; }
.kf-row:last-child { border-bottom: 0; }
.kf-num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(1.75rem, 2.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); white-space: nowrap; }
.kf-accent { color: var(--accent); }
.kf-human { color: var(--human); }
.kf dd { margin: 0; font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.kf-what { display: block; color: var(--ink); font-weight: 550; }
.kf .src { display: block; color: var(--faint); font-size: .875rem; margin-top: .45rem; }
.kf-bars { display: grid; gap: .3rem; margin-top: .6rem; }
.kf-bar { display: grid; grid-template-columns: minmax(0, 1fr) 3.4rem; gap: .5rem; align-items: center; }
.kf-bar i { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); position: relative; }
.kf-bar i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.kf-bar i.before::after { width: 100%; background: var(--faint); }
.kf-bar i.after::after { width: 30%; background: var(--accent); }
.kf-bar b { font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kf-gates { display: flex; gap: 4px; margin-top: .6rem; }
.kf-gates i { flex: 1; font-style: normal; text-align: center; font-family: var(--mono); font-size: .75rem; line-height: 1; padding: .3rem 0; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--hairline-2); color: var(--muted); }
.kf-gates i:first-child { background: var(--stop-soft); border-color: rgba(180, 35, 24, .3); color: var(--stop); }

/* Workflow: figure and stage list form one traced instrument */
.trace-wrap > .spec { margin-top: 1.5rem; }
.trace-hint { font-size: .875rem; color: var(--muted); margin: .35rem 0 0; }
[data-trace].is-live [data-goto] { cursor: pointer; }
[data-trace].is-live [data-goto]:hover .d-node { stroke: var(--ink-2); }
.trace-wrap[data-step] .tr.on .d-line { stroke: var(--ink); stroke-width: 1.6; }
.trace-wrap[data-step] .tr.on .d-arrow { fill: var(--ink); }
[data-trace][data-step="5"] .tr.on .d-node.gpass { fill: var(--pass-soft); stroke: var(--pass); }
.d-pass { font-family: var(--sans); font-size: 12.5px; font-weight: 600; fill: var(--pass); }
.spec-detail { display: none; margin-top: .75rem; padding: .7rem .9rem; border-left: 2px solid var(--stop); background: var(--stop-soft); border-radius: 0 8px 8px 0; }
.spec-detail p { font-size: .9375rem; }
.spec-detail p + p { margin-top: .25rem; }
.spec-detail .label { color: var(--stop); margin-bottom: .3rem; }
[data-trace][data-step="3"] .spec-detail.s3, [data-trace][data-step="4"] .spec-detail.s4 { display: block; }
[data-trace][data-step] .spec { border-top-color: var(--hairline-2); }

/* Lessons: both rules share one row grid, so labels, headings, case lines and bottoms align */
@media (min-width: 48rem) {
  .rules { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto; row-gap: 0; }
  .rules > .rule { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
  .rule h3 { align-self: start; }
  .rule .ev { align-self: end; }
}
@media (min-width: 48rem) { [data-trace][data-step] .spec { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); } }

/* =====================================================================
   Iteration 4 (home page only): flat metadata, one-card workflow, sub-nav
   ===================================================================== */
/* Smooth anchor scrolling, only when the user allows motion */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Flat legend: a square in the node's own border colour + sentence-case text */
.lg { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .875rem; color: var(--ink-2); }
.lg-item { display: inline-flex; align-items: center; gap: .5rem; }
.lg i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; border: 1.5px solid; }
.lg .lg-human { border-color: var(--human); background: var(--human-soft); }
.lg .lg-stop { border-color: var(--stop); background: var(--stop-soft); }
.lg .lg-gate { border-color: var(--line-soft); background: var(--surface-2); }

/* Inline metadata under stage descriptions: thin accent rule, no pill */
.flag { margin: .6rem 0 0; padding: .1rem 0 .1rem .625rem; border-left: 2px solid var(--line-soft); font-size: .875rem; font-weight: 550; line-height: 1.45; color: var(--ink-2); }
.flag-human { border-left-color: var(--human); color: var(--human); }
.flag-stop { border-left-color: var(--stop); color: var(--stop); }
.st-stop, .st-pass { font-weight: 600; }
.st-stop { color: var(--stop); }
.st-pass { color: var(--pass); }

/* Workflow: one card, two zones */
.wf { padding: 0; overflow: hidden; }
.wf .wf-top { padding: clamp(1rem, 2.5vw, 2rem); }
.wf-bottom { background: var(--surface-2); border-top: 1px solid var(--hairline); padding: clamp(1rem, 2.5vw, 2rem); }
.wf-bottom-title { margin: 0 0 .75rem; font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trace-wrap.wf > .wf-bottom > .spec { margin-top: 0; }
.wf .spec { border-top: 1px solid var(--hairline-2); }
.wf .spec li { display: block; padding: 1rem 0; }
.wf .spec h3 { display: flex; align-items: baseline; gap: .6rem; font-size: 1rem; margin-bottom: .35rem; }
.wf .spec h3 .num { flex: none; display: inline-block; padding: .1rem .35rem; border-radius: 4px; border: 1px solid var(--line-soft); background: var(--surface);
  font-family: var(--mono); font-size: .75rem; font-weight: 500; line-height: 1.3; color: var(--muted); }
.wf .spec .spec-note h3 .num { border-color: var(--accent); color: var(--accent-ink); }
.wf .spec li > div > p, .wf .spec li > div > .flag { margin-left: 0; }
.wf .spec-detail { background: var(--surface); }
/* six step buttons on one row at desktop width */
.wf .trace-ctl { gap: .4rem; flex-wrap: wrap; }
.wf .trace-ctl button { font-family: var(--sans); font-size: .875rem; font-weight: 500; padding: 0 .7rem; }
@media (min-width: 64rem) { .wf .trace-ctl { flex-wrap: nowrap; } .wf .trace-ctl .label { white-space: nowrap; } .wf .trace-ctl button { white-space: nowrap; } }

/* Section sub-nav (sticky under the main header) */
:root { --subnav-h: 2.75rem; --sticky-top: var(--header-h); }
@media (max-width: 40rem) { :root { --sticky-top: 0px; } }
html[data-subnav] { scroll-padding-top: calc(var(--sticky-top) + var(--subnav-h) + 1rem); }
@media (min-width: 64rem) { html[data-subnav] .sec-head { top: calc(var(--header-h) + var(--subnav-h) + 2rem); } }
.subnav { position: sticky; top: var(--sticky-top); z-index: 45; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--hairline); }
.subnav ul { list-style: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); display: flex; gap: .25rem; overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li { flex: none; }
.subnav a { position: relative; display: inline-flex; align-items: center; min-height: var(--subnav-h); padding: 0 .7rem; color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 500; border-radius: 0; }
.subnav li:first-child a { padding-left: 0; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="location"] { color: var(--ink); font-weight: 600; }
.subnav a[aria-current="location"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 0; height: 2px; background: var(--ink); }
.subnav li:first-child a[aria-current="location"]::after { left: 0; }
.subnav a:focus-visible { outline-offset: -2px; border-radius: 4px; }
@media (max-width: 63.99rem) {
  .subnav ul { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%); }
  .subnav ul[data-edge="start"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent 100%); }
  .subnav ul[data-edge="end"] { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.25rem); mask-image: linear-gradient(to right, transparent 0, #000 1.25rem); }
  .subnav ul[data-edge="none"] { -webkit-mask-image: none; mask-image: none; }
}
@media print { .subnav { display: none; } }

/* =====================================================================
   Release candidate (hub /lukasz-scheibinger/): scope card, proof band,
   decision deck, three systems, three rules, career drawers
   ===================================================================== */
/* Hero card: planning bar ~18 h → ~4 h */
.kf-bar i.after.w22::after { width: 22%; }

/* Proof band: figures sized to four columns, basis line pinned to the bottom */
.proofs > li { grid-template-rows: auto auto auto 1fr auto; }
.proofs .big { white-space: nowrap; }
.proofs .basis { font-family: var(--mono); font-size: .8125rem; line-height: 1.45; color: var(--faint); margin-top: .75rem; padding-top: .6rem; border-top: 1px solid var(--hairline); align-self: end; }
@media (min-width: 64rem) { .proofs .big { font-size: 1.875rem; } .proofs > li { padding-bottom: 0; } }

/* Decision deck: control buttons, one panel at a time (all four without JS) */
.deck { padding: 0; overflow: hidden; }
.deck .deck-ctl { margin: 0; padding: 1rem clamp(1rem, 2.5vw, 1.75rem); border-top: 0; border-bottom: 1px solid var(--hairline); background: var(--surface-2); gap: .4rem; }
.deck .deck-ctl button { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .9375rem; font-weight: 500; padding: 0 .85rem; }
.deck .deck-ctl .n { font-family: var(--mono); font-size: .8125rem; color: var(--faint); }
.deck .deck-ctl button[aria-pressed="true"] .n { color: inherit; opacity: .72; }
.deck .trace-status { margin: 0; padding: .75rem clamp(1rem, 2.5vw, 1.75rem) 0; font-size: .875rem; color: var(--muted); }
.deck-panels { padding: clamp(1rem, 2.5vw, 1.75rem); }
.dpanel { display: grid; gap: 1.5rem; align-items: start; }
.dpanel + .dpanel { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--hairline-2); }
.deck[data-step] .dpanel + .dpanel { margin-top: 0; padding-top: 0; border-top: 0; }
@media (min-width: 64rem) { .dpanel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 2.5rem; } }
.dpanel-fig { margin: 0; padding: 1rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--hairline); }
.dpanel-fig figcaption { display: flex; gap: .6rem; align-items: baseline; margin: 0 0 .9rem; font-size: .9375rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.dpanel-fig figcaption .n { flex: none; font-family: var(--mono); font-size: .8125rem; font-weight: 500; color: var(--accent-ink); }
.dd { display: block; width: 100%; max-width: 26rem; height: auto; margin-inline: auto; }
.deck-lg { padding: 0 clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 2.5vw, 1.5rem); }
.lg .lg-acc { border-color: var(--accent); background: var(--accent-soft); }
.dossier-meta { margin: 0 0 .5rem; font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dossier-wrap h3 { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 1rem; }
.dossier { margin: 0; display: grid; border-bottom: 1px solid var(--hairline-2); }
.dossier > div { display: grid; gap: .2rem 1.25rem; padding: .75rem 0; border-top: 1px solid var(--hairline-2); }
.dossier dt { font-family: var(--mono); font-size: .8125rem; color: var(--faint); padding-top: .15rem; }
.dossier dd { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.dossier .limit dd { border-left: 2px solid var(--stop); padding-left: .7rem; }
@media (min-width: 48rem) { .dossier > div { grid-template-columns: 8.5rem minmax(0, 1fr); } }
.deck[data-trace][data-step] .tr.on .d-node, .deck .d-node { stroke-width: 1.25; }
/* decision diagram nodes and labels */
.d-node.acc { fill: var(--accent-soft); stroke: var(--accent); }
.d-node.pass { fill: var(--pass-soft); stroke: var(--pass); }
.dd .d-node.hum { stroke: var(--human); }
.dd-t { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--ink); }
.dd-s { font-family: var(--sans); font-size: 12px; fill: var(--muted); }
.dd-bt { font-family: var(--sans); font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.dd-bs { font-family: var(--sans); font-size: 11.5px; fill: var(--muted); }
.dd-cap { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.dd-stopt { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--stop); }
.dd-peer { fill: none; stroke: var(--line); stroke-width: 1.25; stroke-dasharray: 2 3; }
.dd .d-pass { font-size: 12.5px; }

/* Three systems: two equal case cards (light / dark) and a wide prototype card */
.case-meta { margin: 0; font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.case-facts { margin: 0; padding-top: .7rem; border-top: 1px solid var(--hairline); font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.case.dark { background: #0a0e15; border-color: rgba(148, 163, 184, .22); color: #cbd5e1;
  --ink: #f8fafc; --ink-2: #cbd5e1; --muted: #a3aebd; --faint: #a3aebd; --hairline: rgba(148, 163, 184, .18); --on-ink: #0a0e15; --ink-hover: #e2e8f0; --accent: #7cb4da; }
.case.dark h3 { color: #f8fafc; }
.case.dark .btn { background: #f8fafc; color: #0a0e15; }
.case.dark .btn:hover, .case.dark .btn:focus-visible { background: #e2e8f0; color: #0a0e15; }
.case.dark :focus-visible { outline-color: #7cb4da; }
.case-wide { grid-column: 1 / -1; display: grid; overflow: hidden; }
.cw-text { padding: clamp(1.25rem, 2.5vw, 1.75rem); display: grid; gap: .75rem; align-content: start; }
.cw-text h3 { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); letter-spacing: -0.015em; }
.cw-text p { margin: 0; color: var(--ink-2); font-size: .96875rem; }
.cw-text .cw-note { font-size: .875rem; color: var(--muted); }
.cw-fig { padding: 1rem clamp(1rem, 2.5vw, 1.75rem); background: var(--surface-2); border-top: 1px solid var(--hairline); }
.cw-fig .dd-wide { max-width: 38rem; margin: 0; }
@media (max-width: 39.99rem) { .cw-fig { display: none; } }

/* Three rules on one row grid (labels, headings, case lines align) */
@media (min-width: 48rem) {
  .rules .rule .ev { align-self: start; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .rules.r3 { grid-template-columns: 1fr; grid-template-rows: none; }
  .rules.r3 > .rule { display: block; grid-row: auto; }
  .rules.r3 > .rule:first-child { padding-right: 0; }
  .rules.r3 > .rule + .rule { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 2.5rem; margin-top: 2.5rem; }
}
@media (min-width: 64rem) {
  .rules.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rules.r3 > .rule:first-child { padding-right: 2rem; }
  .rules.r3 > .rule + .rule { padding-left: 2rem; padding-right: 2rem; }
  .rules.r3 > .rule:last-child { padding-right: 0; }
  .rules.r3 .rule h3 { font-size: clamp(1.25rem, 1rem + .55vw, 1.5rem); }
}
@media (max-width: 47.99rem) { .rules.r3 > .rule + .rule { border-top: 1px solid var(--hairline); padding-top: 2.5rem; } .rules.r3 { gap: 2.5rem; } }

/* Career drawers */
.drawers { margin-top: 2rem; border-top: 1px solid var(--hairline-2); }
.drawers details { border-bottom: 1px solid var(--hairline-2); }
.drawers summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: .75rem 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.drawers summary::-webkit-details-marker { display: none; }
.drawers summary:hover { color: var(--accent); }
.drawers summary .chev { flex: none; color: var(--muted); }
.drawers details[open] summary .chev { transform: rotate(180deg); }
.drawer-body { padding: 0 0 1.5rem; }
@media (prefers-reduced-motion: no-preference) { .drawers summary .chev { transition: transform .16s ease; } }

/* Closing band */
.close-scope { color: var(--ink-2); margin: 0 0 1rem; }
.nda-note { margin: 1rem 0 0; font-size: .875rem; color: var(--muted); max-width: 46ch; }
/* decision diagrams: wide two-column version on desktop, single column on phones */
.dd-m { display: none; }
@media (max-width: 39.99rem) { .dd-d { display: none; } .dd-m { display: block; max-width: none; } .dpanel-fig { padding: .75rem; } .deck-panels { padding: 1rem; } }
.ddm-t { font-family: var(--sans); font-size: 14.5px; font-weight: 600; fill: var(--ink); }
.ddm-s { font-family: var(--sans); font-size: 13px; fill: var(--muted); }
.ddm-stop { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--stop); }
.ddm-peer { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: var(--ink-2); }
.ddm-pass { font-family: var(--sans); font-size: 13.5px; font-weight: 600; fill: var(--pass); }
.ddm-cap { font-family: var(--mono); font-size: 12.5px; fill: var(--muted); }
/* hub hero: wider scope card, no offset */
@media (min-width: 64rem) {
  .hero-scope .hero-main { grid-column: 1 / span 7; }
  .hero-scope .hero-aside { grid-column: 8 / span 5; margin-top: 0; }
}
.kf.scope .kf-row { grid-template-columns: 6rem minmax(0, 1fr); padding-block: 1rem; }
/* proof band: the four items share rows, so figures, headings and basis lines align */
@media (min-width: 64rem) {
  .proofs { grid-template-rows: auto auto auto 1fr auto; }
  .proofs > li { display: grid; grid-template-rows: subgrid; grid-row: span 5; gap: 0; }
  .proofs > li > .big { margin: .5rem 0 .75rem; }
  .proofs > li > h3 { margin-bottom: .35rem; }
}
/* EDS (RC decision 7): dimmed nodes stay readable on the dark #101722 surface during a trace; firmer access field */
html[data-theme="eds"] [data-trace][data-step] .tr { opacity: .42; }
html[data-theme="eds"] [data-trace][data-step] .tr.on { opacity: 1; }
html[data-theme="eds"] .access input { border: 1px solid rgba(198, 206, 217, .55); background: #0d131c; }
html[data-theme="eds"] .access input:hover { border-color: rgba(198, 206, 217, .75); }
html[data-theme="eds"] .subnav a[aria-current="location"]::after { background: var(--accent); }
/* RC: flat metadata labels everywhere (no rounded pills, no dots): thin accent rule + mono text */
.chip, html[data-theme="eds"] .chip { border-radius: 0; border: 0; border-left: 2px solid var(--line-soft); background: none; padding: .05rem 0 .05rem .5rem; min-height: 0; }
.chip::before { display: none; }
.chip.stop, html[data-theme="eds"] .chip.stop { border-left-color: var(--stop); background: none; }
.chip.pass, html[data-theme="eds"] .chip.pass { border-left-color: var(--pass); background: none; }
.chip.human, html[data-theme="eds"] .chip.human { border-left-color: var(--human); background: none; }
.chip.now, html[data-theme="eds"] .chip.now { border-left-color: var(--now); background: none; }
.chip + .chip { margin-left: .9rem; }
.cw-name { margin: 0; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
/* gap between a lead paragraph and the step list (".trace" resets its own margin) */
.sec-body > * + .trace { margin-top: 1.5rem; }
/* figure strips: three equal columns, each with its own top rule (no half-height dividers) */
@media (min-width: 48rem) {
  .strip { border-top: 0; column-gap: 2rem; }
  .strip > div { padding: 1.1rem 0 0; border-top: 1px solid var(--hairline-2); }
  .strip > div + div { border-left: 0; padding-left: 0; }
}
/* home hero: key figures stacked full width (number + label on one line, visual below, one note line) */
.kf-stack .kf-row { display: block; padding: 1.05rem 1.25rem 1.1rem; }
.kf-stack .kf-top { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.kf-stack .kf-num { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; font-size: clamp(1.75rem, 2vw, 2.125rem); flex: none; }
.kf-stack .kf-num .u { font-size: .68em; margin-left: .06em; letter-spacing: 0; }
.kf-stack .kf-what { display: inline; font-size: .9375rem; font-weight: 550; color: var(--ink); line-height: 1.35; }
.kf-stack dd { margin: .7rem 0 0; }
.kf-stack .kf-bars { margin-top: 0; }
.kf-stack .kf-bar { grid-template-columns: minmax(0, 1fr) 3.6rem; }
.kf-stack .kf-gates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 0; }
.kf-stack .kf-gates i { flex: none; }
.kf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.kf-steps i { display: flex; align-items: center; justify-content: center; gap: .35rem; font-style: normal; font-family: var(--mono); font-size: .75rem; line-height: 1; padding: .3rem .25rem; border-radius: 4px; border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.kf-steps i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--human); flex: none; }
.kf-steps i.rel { background: var(--human-soft); border-color: rgba(109, 40, 217, .35); color: var(--human); }
.kf-steps i.rel::before { background: var(--human); }
.kf-stack .src { margin-top: .55rem; }
.spec-detail .go-case { margin-top: .45rem; font-size: .875rem; font-weight: 500; }
/* #control-case: one evidence record (blocked claim → primary sources → approved version) */
.sec-body > * + .case-record { margin-top: 1.5rem; }
.case-record { padding: 0; overflow: hidden; }
.cr-part { padding: 1.1rem 1.25rem 1.15rem 1.15rem; border-left: 3px solid transparent; }
.cr-part + .cr-part { border-top: 1px solid var(--hairline-2); }
.cr-stop { border-left-color: var(--stop); }
.cr-pass { border-left-color: var(--pass); }
.cr-src { border-left-color: var(--line-soft); }
.cr-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin: 0 0 .55rem; }
.cr-label { font-weight: 600; color: var(--ink); }
.cr-stop .cr-label { color: var(--stop); }
.cr-pass .cr-label { color: var(--pass); }
.cr-tag { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.cr-tag.cr-ok { color: var(--pass); }
.cr-claim { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.cr-note { margin: .45rem 0 0; font-size: .875rem; color: var(--muted); }
.cr-cols { display: grid; gap: .75rem; }
@media (min-width: 48rem) { .cr-cols { grid-template-columns: 1fr 1fr; } }
.cr-col { padding: .8rem .9rem; border: 1px solid var(--hairline-2); border-radius: 8px; background: var(--surface-2); }
.cr-col p { margin: 0; font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }
.cr-col .cr-src-name { font-family: var(--mono); font-size: .8125rem; color: var(--ink); margin-bottom: .35rem; }
.cr-col .cr-link { margin-top: .5rem; font-size: .875rem; }
.note.note-limit { background: var(--surface-2); border-left: 2px solid var(--ink-2); border-radius: 0 var(--r-card) var(--r-card) 0; }
/* traffic chart: measured-era line 2.25px, short leader for the rebuild label */
.c-own { stroke-width: 2.25; stroke-linejoin: round; }
.c-lead { stroke: var(--accent); stroke-width: 1; fill: none; }
/* #control-case stepper: one light card, one step at a time, no nested boxes */
.cr-panel { padding: 1.1rem 1.25rem 1.15rem 1.15rem; border-left: 3px solid transparent; }
.cr-panel + .cr-panel { border-top: 1px solid var(--hairline-2); }
.case-record[data-active] .cr-panels { display: grid; }
.case-record[data-active] .cr-panel { grid-area: 1 / 1; visibility: hidden; border-top: 0; }
.case-record[data-active] .cr-panel.on { visibility: visible; }
.cr-col { padding: 0; border: 0; border-radius: 0; background: none; }
.cr-cols { gap: 1rem; }
@media (max-width: 47.99rem) { .cr-col + .cr-col { border-top: 1px solid var(--hairline); padding-top: 1rem; } }
@media (min-width: 48rem) {
  .cr-cols { gap: 0; }
  .cr-col:first-child { padding-right: 1.25rem; }
  .cr-col + .cr-col { border-left: 1px solid var(--hairline); padding-left: 1.25rem; }
}
.cr-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1.25rem; border-top: 1px solid var(--hairline-2); }
.cr-nav[hidden] { display: none; }
.cr-tabs, .cr-seq { display: flex; flex-wrap: wrap; gap: .35rem; }
.cr-nav button { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .65rem; font: 500 .8125rem/1 var(--sans); color: var(--ink-2); background: var(--surface); border: 1px solid var(--hairline-2); border-radius: var(--r-ctl); cursor: pointer; white-space: nowrap; }
.cr-nav button:hover { border-color: var(--ink-2); color: var(--ink); }
.cr-nav .n { font-family: var(--mono); color: var(--muted); }
.cr-nav button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cr-nav button[aria-pressed="true"] .n { color: inherit; opacity: .75; }
.cr-nav button[aria-disabled="true"] { color: var(--faint); border-color: var(--hairline); cursor: default; }
.cr-nav button[aria-disabled="true"]:hover { color: var(--faint); border-color: var(--hairline); }
@media (min-width: 64rem) {
  .cr-nav { flex-wrap: nowrap; gap: .5rem; }
  .cr-tabs, .cr-seq { flex-wrap: nowrap; gap: .25rem; }
  .cr-nav button { padding: 0 .5rem; font-size: .78125rem; gap: .3rem; }
}
.cr-panel.cr-stop { border-left-color: var(--stop); } .cr-panel.cr-pass { border-left-color: var(--pass); } .cr-panel.cr-src { border-left-color: var(--line-soft); }
/* control-case: no decorative left rules on the stepper panels */
.cr-panel, .cr-panel.cr-stop, .cr-panel.cr-pass, .cr-panel.cr-src { border-left: 0; padding-left: 1.25rem; }
/* gate-limit accordion (BTE): title and lead always visible, cause and rule on expand */
.sec-body > * + .note-acc { margin-top: 1.5rem; }
.note-acc { background: var(--surface-2); border-radius: var(--r-card); }
.note-acc summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; border-radius: var(--r-card); }
.note-acc summary::-webkit-details-marker { display: none; }
.note-acc summary:hover .na-title { color: var(--accent); }
.note-acc .na-title { display: block; color: var(--ink); font-size: .9375rem; margin-bottom: .3rem; }
.note-acc .na-lead { display: block; font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
.note-acc .chev { flex: none; width: 16px; height: 16px; margin-top: .2rem; color: var(--muted); }
.note-acc[open] .chev { transform: rotate(180deg); }
.note-acc .na-body { padding: 0 1.25rem 1.1rem; font-size: .9375rem; color: var(--ink-2); max-width: 70ch; }
.note-acc .na-body p + p { margin-top: .5rem; }
.note-acc .na-body strong { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .note-acc .chev { transition: transform .16s ease; } }

/* note-acc: visible CTA under the lead */
.note-acc summary { display: block; }
.note-acc .na-cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; font-size: .9375rem; font-weight: 600; color: var(--accent); }
.note-acc summary:hover .na-cta { text-decoration: underline; text-underline-offset: 3px; }
.note-acc .na-cta .chev { margin-top: 0; color: currentColor; }
.note-acc .na-less, .note-acc[open] .na-more { display: none; }
.note-acc[open] .na-less { display: inline; }
.nw { white-space: nowrap; }
/* hub final polish: scope card micro-elements, case buttons, contact */
.kf-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.kf-tiles i { font-style: normal; text-align: center; font-family: var(--mono); font-size: .75rem; line-height: 1; padding: .3rem 0; border-radius: 4px; border: 1px solid var(--hairline-2); background: var(--surface-2); color: var(--ink-2); }
.kf-sys { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.kf-sys i { font-style: normal; display: grid; gap: .15rem; padding: .45rem .6rem; border-radius: 4px; border: 1px solid var(--hairline-2); background: var(--surface-2); }
.kf-sys b { font-size: .8125rem; font-weight: 550; color: var(--ink); line-height: 1.25; }
.kf-sys i > span { font-family: var(--mono); font-size: .75rem; color: var(--muted); line-height: 1.2; }
.case .go .btn { width: 100%; justify-content: center; text-align: center; white-space: nowrap; }
.contact-mail { margin: 0; }
@media (min-width: 64rem) { .proofs > li > .basis { align-self: start; } }
/* hub contact: dark closing panel */
.sec-contact { padding-block: clamp(3rem, 6vw, 5rem); }
.cpanel { background: #0f172a; color: #cbd5e1; border: 1px solid rgba(148, 163, 184, .18); border-radius: 16px; box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 2rem; }
.cpanel :focus-visible { outline: 2px solid #7cb4da; outline-offset: 2px; }
.cp-kicker, .cp-label { margin: 0 0 .9rem; font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.cpanel h2 { color: #f8fafc; margin: 0 0 .75rem; max-width: 22ch; }
.cp-lead { margin: 0 0 1.5rem; color: #cbd5e1; }
.cp-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cp-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-ctl); font-size: .9375rem; font-weight: 550; text-decoration: none; }
.cp-primary { background: #f8fafc; color: #0f172a; }
.cp-primary:hover { background: #e2e8f0; color: #0f172a; }
.cp-arr { transition: transform .15s ease; }
.cp-primary:hover .cp-arr { transform: translateX(2px); }
.cp-copy { border: 1px solid rgba(148, 163, 184, .35); color: #e2e8f0; background: transparent; font-weight: 500; user-select: text; overflow-wrap: anywhere; }
button.cp-copy { cursor: pointer; font: inherit; font-size: .9375rem; font-weight: 500; }
button.cp-copy:hover { background: rgba(255, 255, 255, .05); border-color: rgba(148, 163, 184, .55); }
.cp-copy svg { flex: none; width: 16px; height: 16px; color: #94a3b8; }
.cp-copy.done { border-color: rgba(110, 231, 183, .5); }
.cp-copy.done svg { color: #6ee7b7; }
.cp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.cp-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; padding: .75rem .9rem; margin-inline: -.9rem; border-radius: var(--r-ctl); text-decoration: none; }
.cp-links a:hover { background: rgba(255, 255, 255, .05); }
.cp-t { color: #f8fafc; font-weight: 550; grid-column: 1; }
.cp-s { color: #94a3b8; font-size: .875rem; grid-column: 1; }
.cp-go { grid-column: 2; grid-row: 1 / span 2; color: #94a3b8; transition: transform .15s ease; }
.cp-links a:hover .cp-go { transform: translateX(3px); color: #f8fafc; }
.cp-note { margin: 1.25rem 0 0; font-size: .875rem; color: #94a3b8; max-width: 46ch; }
@media (prefers-reduced-motion: reduce) { .cp-arr, .cp-go { transition: none; } }
@media (min-width: 56rem) {
  .cpanel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; }
  .cp-main { padding-right: clamp(2rem, 4vw, 3rem); }
  .cp-side { padding-left: clamp(2rem, 4vw, 3rem); border-left: 1px solid rgba(148, 163, 184, .18); }
}
.contact-note { margin: 1rem 0 0; font-size: .875rem; font-style: italic; color: var(--muted); }

/* ===== Mobile pass 28.11 ===== */
/* Case stepper: the card takes the height of the step in view, no empty space under short steps */
/* Case stepper: fixed height (no jumping between steps); the short steps keep their source note at the bottom */
.case-record[data-active] .cr-panels { display: grid; }
.case-record[data-active] .cr-panel { grid-area: 1 / 1; visibility: hidden; display: flex; flex-direction: column; }
.case-record[data-active] .cr-panel.on { visibility: visible; }
.case-record[data-active] .cr-panel > .cr-note { margin-top: auto; padding-top: .6rem; }

/* Workflow: "What each stage does" is a disclosure, closed on every screen until opened or a step is picked */
.wf-bottom > summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; cursor: pointer; min-height: 44px; margin: 0; }
.wf-bottom > summary::-webkit-details-marker { display: none; }
.wf-bottom > summary .chev { flex: none; transition: transform .15s ease; color: currentColor; }
.wf-bottom[open] > summary { margin-bottom: .75rem; }
.wf-bottom[open] > summary .chev { transform: rotate(180deg); }
.wf-bottom:not([open]) { padding-block: clamp(.75rem, 1.6vw, 1.25rem); }
.wf-bottom .wb-cta { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--sans); font-size: .9375rem; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--accent); }
.wf-bottom > summary:hover .wb-cta { text-decoration: underline; text-underline-offset: 3px; }
.wf-bottom .wb-less, .wf-bottom[open] .wb-more { display: none; }
.wf-bottom[open] .wb-less { display: inline; }
@media (prefers-reduced-motion: reduce) { .wf-bottom > summary .chev { transition: none; } }

@media (max-width: 47.99rem) {
  /* Step and tab controls: a tidy two-column grid, everything visible, nothing hidden off-screen */
  .trace-ctl, .wf .trace-ctl, .deck .deck-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; overflow: visible; }
  .trace-ctl .label { grid-column: 1 / -1; margin: 0 0 .1rem; }
  .trace-ctl button, .wf .trace-ctl button, .deck .deck-ctl button { white-space: normal; text-align: left; justify-content: flex-start; min-height: 44px; line-height: 1.25; padding: .45rem .7rem; }
  .trace-hint { display: none !important; }

  /* Phone slider for card rows */
  .m-slider { display: flex !important; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); padding-bottom: .25rem; }
  .m-slider::-webkit-scrollbar { display: none; }
  .m-slider > * { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; margin-top: 0 !important; }
  .proofs.m-slider { border-top: 0; padding-top: 0; }
  .m-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .rules.r3.m-slider { border-top: 0; padding-top: 0; margin-top: 2rem; }
  .rules.r3.m-slider > .rule { border: 1px solid rgba(148, 163, 184, .22); border-radius: var(--r-card); padding: 1.25rem; }

  /* Closure timeline: date above text, tighter rows */
  .sources li { display: block; padding: .6rem 0; }
  .sources .when { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: .1rem; }

  /* Business ledger: partner and brand names as compact chips */
  .ledger ul, .ledger .twocol { display: flex; flex-wrap: wrap; gap: .4rem; columns: auto; margin-bottom: .75rem; }
  .ledger li, .ledger .direct li { border: 1px solid var(--hairline-2); border-radius: 999px; padding: .3rem .7rem; font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--ink); background: var(--surface); line-height: 1.3; }
  .ledger .direct li span { display: none; }
  .ledger .how { margin-bottom: .75rem; }
}
.m-ctl { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .75rem; }
.m-ctl[hidden] { display: none; }
.m-dots { display: flex; justify-content: center; gap: .15rem; }
.m-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.m-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-soft, #cbd5e1); }
.m-dots button[aria-current="true"]::before { width: 20px; border-radius: 4px; background: var(--ink); }
.m-arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--hairline-2); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; font: 500 1.125rem/1 var(--sans); }
.m-arrow[aria-disabled="true"] { color: var(--faint); border-color: var(--hairline); cursor: default; }
.m-count { font-family: var(--mono); font-size: .8125rem; color: var(--muted); min-width: 3ch; text-align: center; }
.sec-dark .m-dots button::before { background: rgba(148, 163, 184, .4); }
.sec-dark .m-dots button[aria-current="true"]::before { background: #f8fafc; }
.sec-dark .m-arrow { background: transparent; color: #f8fafc; border-color: rgba(148, 163, 184, .35); }
.sec-dark .m-arrow[aria-disabled="true"] { color: rgba(148, 163, 184, .5); border-color: rgba(148, 163, 184, .2); }
@media (prefers-reduced-motion: no-preference) { .m-dots button::before { transition: width .15s ease; } }
@media (min-width: 48rem) { .m-ctl { display: none !important; } }
.wf-bottom > summary .chev { width: 16px; height: 16px; }
@media (max-width: 47.99rem) {
  /* Case stepper on phones: numbered steps 1-2-3 plus Previous/Next in one row; step names stay for screen readers */
  .cr-nav { flex-wrap: nowrap; padding: .75rem 1rem; gap: .5rem; }
  .cr-tabs, .cr-seq { flex-wrap: nowrap; gap: .3rem; }
  .cr-tabs button { min-width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .cr-tabs button > span:not(.n) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cr-tabs .n { font-size: .9375rem; color: inherit; }
  .cr-seq button { min-height: 44px; }
  /* Sources step: tighter so the three steps end up close in height */
  .cr-col p { font-size: .875rem; line-height: 1.45; }
  .cr-col .cr-src-name { margin-bottom: .2rem; }
  .cr-col + .cr-col { padding-top: .75rem; }
  .cr-col .cr-link { margin-top: .35rem; }
}
@media (max-width: 47.99rem) {
  .proofs.m-slider > li { border: 1px solid var(--hairline-2); border-radius: var(--r-card); padding: 1.1rem 1.1rem 1.2rem; background: var(--surface); display: flex; flex-direction: column; }
  .proofs.m-slider > li > .basis { margin-top: auto; padding-top: .75rem; }
}
/* Smart-reveal header (< 64rem, JS only): header hides on scroll down, section bar moves to the top */
@media (max-width: 63.99rem) {
  html.js-smart .site-header { position: sticky; top: 0; }
  html.js-smart .subnav { top: var(--hdr-h-live, var(--header-h)); }
  html.js-smart[data-subnav] { scroll-padding-top: calc(var(--subnav-h) + 1rem); }
  html.js-smart.hdr-hidden .site-header { transform: translateY(-100%); }
  html.js-smart.hdr-hidden .subnav { top: 0; }
}
@media (max-width: 63.99rem) and (prefers-reduced-motion: no-preference) {
  html.js-smart .site-header { transition: transform .22s ease; }
  html.js-smart .subnav { transition: top .22s ease; }
}

/* Career on phones and tablets: each role gets a mini timeline (2014-2026) so the longer, later roles read at a glance */
.ctl-roles .c1 { --s: 0; --d: 2; } .ctl-roles .c2 { --s: 2; --d: 3; } .ctl-roles .c3 { --s: 5; --d: 3; } .ctl-roles .c4 { --s: 8; --d: 4; }
@media (max-width: 63.99rem) {
  .ctl-roles .yrs { display: flex; align-items: center; gap: .75rem; }
  .ctl-roles .yrs::after { content: ""; flex: 1; max-width: 12rem; height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, transparent calc(var(--s) / 12 * 100%), var(--ink-2) calc(var(--s) / 12 * 100%), var(--ink-2) calc((var(--s) + var(--d)) / 12 * 100%), transparent calc((var(--s) + var(--d)) / 12 * 100%)), var(--hairline-2); }
  .ctl-roles li.now .yrs::after { background: linear-gradient(90deg, transparent calc(var(--s) / 12 * 100%), var(--accent) calc(var(--s) / 12 * 100%), var(--accent) 100%), var(--hairline-2); }
}
/* Accordions: hover colour only for real pointers (no stuck blue after a tap), steady padding on phones */
.drawers summary:hover { color: inherit; }
@media (hover: hover) { .drawers summary:hover { color: var(--accent); } }
@media (max-width: 47.99rem) {
  .drawers summary { align-items: flex-start; gap: .75rem; padding: .9rem 0; min-height: 0; line-height: 1.35; }
  .drawers summary .chev { margin-top: .15rem; }
  .drawer-body { padding: .25rem 0 1.25rem; }
  .note-acc summary { padding: .9rem 1rem; }
  .note-acc .na-body { padding: 0 1rem 1rem; }
}
@media (max-width: 63.99rem) {
  .ctl-roles .yrs { display: grid; grid-template-columns: 6.25rem minmax(0, 11rem); gap: .5rem; }
  .ctl-roles .yrs::after { align-self: center; max-width: none; }
}
@media (max-width: 47.99rem) {
  .trace-ctl.ctl-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trace-ctl.ctl-compact button { justify-content: center; text-align: center; padding: 0; }
}

/* ===== Mobile navigation (< 48rem, pages with [data-dock]): static top row + floating bottom dock ===== */
.wrap { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
.dock, .dock-sheet { display: none; }
@media (max-width: 47.99rem) {
  /* Top: one static row, name left, EN | PL right; it scrolls away and never comes back */
  html[data-dock] .site-header, html[data-dock].js-smart .site-header { position: static; transform: none; transition: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html[data-dock] .site-header .wrap { flex-wrap: nowrap; padding-block: .25rem; }
  html[data-dock] .wordmark .context, html[data-dock] .site-header .nav > a { display: none; }
  html[data-dock] .site-header .nav { width: auto; margin-left: auto; }
  html[data-dock] .seg { margin-left: 0; }
  html.dock-live .subnav { display: none; }
  html.dock-live[data-subnav] { scroll-padding-top: 1rem; }
  html[data-dock] .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }

  /* Dock: centred floating pill */
  html[data-dock] .dock {
    display: block; position: fixed; z-index: 60; left: 0; right: 0; margin-inline: auto;
    bottom: calc(14px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 23rem);
  }
  .dock ul {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0; padding: 5px; list-style: none;
    background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
    border: 1px solid var(--hairline-2); border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 28px rgba(15, 23, 42, .12);
  }
  html.dock-live .dock ul { grid-template-columns: repeat(4, 1fr); }
  .dock .dock-js { display: none; }
  html.dock-live .dock .dock-js { display: block; }
  .dock a, .dock button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    width: 100%; min-height: 48px; padding: 5px 2px 4px; border: 0; border-radius: 999px; background: transparent;
    color: var(--muted); text-decoration: none; font: 500 .6875rem/1.1 var(--sans); letter-spacing: .005em; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .dock svg { width: 20px; height: 20px; flex: none; }
  .dock .dock-l { white-space: nowrap; }
  .dock a[aria-current="page"], .dock button[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .dock a:focus-visible, .dock button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  html.dock-hidden .dock { transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); opacity: 0; }

  /* Sections sheet: small card above the dock */
  html[data-dock] .dock-sheet:not([hidden]) {
    display: block; position: fixed; z-index: 61; left: 0; right: 0; margin-inline: auto;
    bottom: calc(14px + 60px + 10px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 23rem);
    max-height: min(60vh, 26rem); overflow-y: auto; overscroll-behavior: contain;
    padding: .5rem; background: var(--surface); border: 1px solid var(--hairline-2); border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 16px 40px rgba(15, 23, 42, .16);
  }
  .dock-sheet-h { margin: .35rem .75rem .25rem; font: 500 .75rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
  .dock-sheet ul { list-style: none; margin: 0; padding: 0; }
  .dock-sheet a { display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; border-radius: 10px; color: var(--ink-2, var(--ink)); text-decoration: none; font-size: .9375rem; }
  .dock-sheet a:hover { background: var(--surface-2); }
  .dock-sheet a[aria-current="location"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .dock-sheet a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
}
@media (max-width: 47.99rem) and (prefers-reduced-motion: no-preference) {
  .dock { transition: transform .24s ease, opacity .2s ease; }
  html[data-dock] .dock-sheet:not([hidden]) { animation: dock-sheet-in .18s ease-out; }
}
@keyframes dock-sheet-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media print { .dock, .dock-sheet { display: none !important; } }
/* Dock on the dark EDS theme */
@media (max-width: 47.99rem) {
  html[data-theme="eds"] .dock ul { background: rgba(16, 23, 34, .82); border-color: rgba(148, 163, 184, .24); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px rgba(0, 0, 0, .45); }
  html[data-theme="eds"] .dock-sheet:not([hidden]) { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 44px rgba(0, 0, 0, .5); }
}

/* ===== Mobile type scale and density (< 48rem): lighter and denser, like native iOS apps =====
   body 15/1.5 · lead 16/1.46 · H1 27/1.12 · H2 21/1.2 · H3 17/1.25 · meta 13 · sections 48 px · cards 16 px */
@media (max-width: 47.99rem) {
  body { font-size: .9375rem; line-height: 1.5; }
  h1 { font-size: 1.6875rem; line-height: 1.12; letter-spacing: -0.025em; }
  h2, .sec-head h2, .sec-top h2 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.02em; }
  h3 { font-size: 1.0625rem; line-height: 1.25; }
  p { margin-bottom: .75rem; }
  .lede { font-size: 1rem; line-height: 1.46; }
  .meta, .kicker, .tag, .sec-head .summary { font-size: .8125rem; }
  .kicker { margin-bottom: .6rem; }

  .hero { padding-block: .75rem 2.5rem; }
  .hero .grid { row-gap: 1.75rem; }
  .hero-main .back { min-height: 40px; font-size: .8125rem; }
  .hero-main .meta { margin: 0 0 .6rem; }
  .hero-main h1 { margin-bottom: .75rem; }
  .hero-main .lede { margin-bottom: 1.1rem; }
  .actions { gap: .35rem 1rem; }
  .btn, .btn-quiet { font-size: .9375rem; }

  .sec, .sec-contact { padding-block: 3rem; }
  .sec .grid { row-gap: 1rem; }
  .sec-head h2 { margin-bottom: .5rem; }
  .sec-body > * + *, .split .main > * + * { margin-top: 1rem; }
  .sec-body > * + .trace, .sec-body > * + .case-record, .sec-body > * + .note-acc { margin-top: 1.25rem; }
  .rules { margin-top: 1.5rem; padding-top: 1.5rem; gap: 1.5rem; }

  /* component headings and numbers */
  .rule h3, .rules.r3 .rule h3, .lead-story h3, .case .body h3, .dossier-wrap h3, .cw-text h3 { font-size: 1.0625rem; line-height: 1.25; }
  .rule h3 { margin: .5rem 0 .6rem; }
  .rule .ev { margin-top: 1rem; padding-top: .75rem; }
  .figure { font-size: 1.625rem; }
  .proofs .big { font-size: 1.875rem; }
  .kf-num, .kf-stack .kf-num { font-size: 1.625rem; }
  .close-grid .big-link { font-size: 1.125rem; }

  /* cards: 16 px inside */
  .case .body, .note, .panel, .note-acc summary, .cr-panel { padding: 1rem; }
  .note-acc .na-body { padding: 0 1rem 1rem; }
  .proofs.m-slider > li, .rules.r3.m-slider > .rule { padding: 1rem; }
}

/* Workflow card on phones: trace controls above the compact diagram, so the highlight shows right below them */
.tc-s { display: none; }
@media (max-width: 47.99rem) {
  .tc-l { display: none; }
  .tc-s { display: inline; }
  .wf .wf-top { display: flex; flex-direction: column; }
  .wf .wf-top > figcaption { order: 1; }
  .wf .wf-top > .trace-ctl { order: 2; }
  .wf .wf-top > .svg-mobile { order: 3; }
  .wf .wf-top > .trace-status { order: 4; }
  .wf .wf-top > .svg-mobile + .sr-only, .wf .wf-top > .svg-desktop-desc { order: 5; }
  .wf .trace-ctl { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .9rem 0 0; padding: 0 0 .9rem; border-top: 0; border-bottom: 1px solid var(--hairline); gap: .35rem; }
  .wf .trace-ctl .label { font-size: .8125rem; }
  .wf .trace-ctl button { min-height: 40px; padding: .3rem .45rem; justify-content: center; text-align: center; font-size: .8125rem; line-height: 1.15; }
  .wf .trace-status { margin: .75rem 0 0; font-size: .8125rem; line-height: 1.45; min-height: 0; }
  .wf .diagram .svg-mobile { max-width: 24rem; margin-top: .25rem; }
}
@media (max-width: 47.99rem) {
  .diagram figcaption { gap: .45rem 1rem; margin-bottom: .75rem; }
  .diagram figcaption .title { font-size: .9375rem; line-height: 1.3; }
  .lg { gap: .3rem .9rem; font-size: .75rem; }
  .lg i { width: 12px; height: 9px; }
  .wf .trace-ctl { margin-top: 0; }
}

/* Fact-check record on phones: named tabs on top, natural height (no empty space), compact Previous / Next below */
.cr-s { display: none; }
@media (max-width: 47.99rem) {
  .case-record { display: flex; flex-direction: column; }
  .case-record .cr-nav:not([hidden]) { display: contents; }
  .case-record .cr-tabs { order: -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; padding: .6rem .6rem .55rem; border-bottom: 1px solid var(--hairline-2); background: var(--surface-2); }
  .case-record .cr-tabs button { min-width: 0; min-height: 40px; padding: .25rem .3rem; justify-content: center; text-align: center; font-size: .78125rem; line-height: 1.15; }
  .case-record .cr-tabs button > .n, .case-record .cr-l { display: none; }
  .case-record .cr-s { display: inline; position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .case-record .cr-tabs button > span:not(.n) { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .case-record .cr-tabs button > .cr-l { display: none; }
  .case-record[data-active] .cr-panels { display: block; }
  .case-record[data-active] .cr-panel { display: none; visibility: visible; }
  .case-record[data-active] .cr-panel.on { display: block; }
  .case-record[data-active] .cr-panel > .cr-note { margin-top: .5rem; padding-top: 0; }
  .case-record .cr-seq { display: flex; justify-content: flex-end; gap: .35rem; padding: .5rem .75rem .6rem; border-top: 1px solid var(--hairline-2); }
  .case-record .cr-seq button { min-height: 36px; padding: 0 .65rem; font-size: .8125rem; }
}

/* Case study rhythm: white sections alternate with a cool light tint, so white cards stand off the background */
html[data-rhythm] body { background: #ffffff; }
.sec-tint { background: #f6f8fb; --faint: #5f6f86; }   /* faint text keeps 4.5:1 on the tint */
/* Rules band on the case study uses the same type as Operating rules on the portfolio */
.rules:not(.r3) .rule h3 { font-size: clamp(1.25rem, 1rem + .55vw, 1.5rem); }
@media (max-width: 47.99rem) { .rules:not(.r3) .rule h3 { font-size: 1.0625rem; } }
@media (max-width: 47.99rem) { .band { margin-top: 1.25rem; } }
/* iOS Safari zooms into fields with text under 16 px */
@media (max-width: 47.99rem) { input, select, textarea { font-size: 16px; } }
@media (max-width: 47.99rem) {
  .contact a { font-size: .9375rem; }
  .related .related-title { font-size: 1.0625rem; }
}

/* ===== Same phone pattern on every interactive diagram: controls on top, compact diagram right below ===== */
@media (max-width: 47.99rem) {
  /* EDS cycle (figure is the trace root). The EDS gates figure keeps its order: chart, then the gate selector right above the gate list it filters. */
  #cycle figure.diagram[data-trace] { display: flex; flex-direction: column; }
  #cycle figure.diagram[data-trace] > figcaption { order: 1; }
  #cycle figure.diagram[data-trace] > .trace-ctl { order: 2; margin: 0; padding: 0 0 .9rem; border-top: 0; border-bottom: 1px solid var(--hairline); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  #cycle figure.diagram[data-trace] > .svg-mobile { order: 3; margin-top: .75rem; }
  #cycle figure.diagram[data-trace] > .trace-status { order: 4; margin: .75rem 0 0; font-size: .8125rem; line-height: 1.45; min-height: 0; }
  #cycle figure.diagram[data-trace] > .trace-ctl .label { font-size: .8125rem; }
  #cycle figure.diagram[data-trace] > .trace-ctl button { min-height: 40px; padding: .3rem .4rem; justify-content: center; text-align: center; font-family: var(--sans); font-size: .8125rem; line-height: 1.15; letter-spacing: 0; }
  /* EDS gates: compact gate list under the gate selector */
  .gate-cards { gap: .4rem; margin-top: .9rem; }
  .gate-cards li { padding: .6rem .8rem; border-radius: 8px; }
  .gate-cards .id { font-size: .75rem; }
  .gate-cards h3 { display: inline; font-size: .9375rem; margin: 0 0 0 .4rem; }
  .gate-cards p { margin-top: .15rem; font-size: .8125rem; line-height: 1.4; }
  /* headings: no automatic hyphenation at the smaller sizes */
  h1, h2, h3 { -webkit-hyphens: manual; hyphens: manual; }
}
@media (max-width: 47.99rem) {
  .deck .deck-ctl { gap: .35rem; }
  .deck .deck-ctl button { min-height: 40px; padding: .3rem .55rem; font-size: .8125rem; line-height: 1.2; }
}
