/* Type: BenchFlow Sans, Sans Display and Mono (SIL OFL 1.1, licenses/), declared in wb.css. */
/* WeightBench site chrome and sub-pages (nav, footer, hero, task explorer, task pages, docs).
   Layout and tokens adapted from SkillsBench (https://github.com/benchflow-ai/skillsbench, commit
   f860ecf02ef53412a030f8661c83d644b739ff01: Navbar.tsx, Footer.tsx, TaskCards.tsx, TaskExplorer.tsx,
   tasks/[taskName]/components/task-tabs.tsx, app/docs, app/globals.css), Apache License 2.0
   (licenses/skillsbench-LICENSE.txt). Ported from React/Tailwind to plain CSS. */
:root { --sb-bg: #17170f; --sb-card: #17170f; --sb-fg: #ebe6d0; --sb-muted: #222219; --sb-mfg: #a29e8b; --sb-border: #35342a; --sb-radius: 2px; --sb-focus: #ebe6d0; --sb-warn: #e0a24f; --sb-scheme: dark; }

body.sb { margin: 0; background: var(--sb-bg); color: var(--sb-fg); font-family: "BenchFlow Sans Display", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; }
.sb a { color: inherit; }
.sb :focus-visible { outline: 2px solid var(--sb-focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--sb-card); padding: 6px 10px; border-radius: 6px; }

/* Floating navbar (SkillsBench Navbar.tsx). */
.sb-nav { box-sizing: border-box; position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; width: calc(100% - 2rem); max-width: 64rem; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 16px; border: 1px solid var(--sb-border); border-radius: 999px; background: color-mix(in srgb, var(--sb-bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sb-nav .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.sb-nav .brand svg { width: 20px; height: 20px; }
.sb-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.sb-nav ul a { display: block; font-size: 14px; font-weight: 400; color: var(--sb-mfg); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.sb-nav ul a:hover { color: var(--sb-fg); background: var(--sb-muted); }
.sb-nav ul a[aria-current="page"] { color: var(--sb-fg); }

.sb-main { max-width: 64rem; margin: 0 auto; padding: 40px 16px 64px; box-sizing: border-box; }
.sb-main section { scroll-margin-top: 80px; margin: 0 0 64px; }
.sb h1 { font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 10px; }
.sb h2 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 0 0 10px; }
.sb h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.sb .lede { color: var(--sb-mfg); font-size: 16px; max-width: 44rem; margin: 0 0 12px; }
.sb p.body, .sb .prose p, .sb .prose li { max-width: 44rem; }
.sb code, .sb .mono { font: 13px "BenchFlow Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 400; }
.sb :not(pre) > code { background: var(--sb-muted); padding: 1px 5px; border-radius: 4px; }
.crumb { font-size: 13px; color: var(--sb-mfg); margin: 0 0 4px; } .crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }

/* Home hero (SkillsBench app/(main)/page.tsx), without the background animation. */
.hero { text-align: center; padding: 72px 16px 40px; max-width: 48rem; margin: 0 auto; }
.sb .hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 400; letter-spacing: -.025em; line-height: 1.1; margin: 0 0 18px; }
.sb .hero h1 b { font-weight: 600; }
.hero p { font-size: 18px; color: var(--sb-mfg); max-width: 36rem; margin: 0 auto; }
.hero-weights { max-width: none; padding: 40px 0 32px; }
.hero-weights h1 { max-width: 50rem; margin-left: auto !important; margin-right: auto !important; }
.hero-weights > p { max-width: 42rem; }

.weight-explainer { margin: 32px 0 18px; text-align: left; }
.weight-explainer figcaption { display: flex; flex-direction: column; gap: 5px; margin: 0 0 18px; }
.eyebrow { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-mfg); }
.weight-explainer figcaption strong { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.analogy-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border: 1px solid var(--sb-border); border-radius: 10px; margin-bottom: 16px; font-size: 12px; color: var(--sb-mfg); }
.analogy-strip > a { color: var(--sb-fg); font-weight: 500; text-decoration: none; }
.analogy-strip > span { display: flex; align-items: center; gap: 8px; }
.analogy-strip > i { font-style: normal; }
.analogy-strip svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.code-symbol { font: 18px ui-monospace, monospace; font-weight: 400; }
.weight-story { background: var(--sb-card); border: 1px solid color-mix(in srgb, var(--sb-focus) 30%, var(--sb-border)); border-radius: 14px; padding: 22px; }
.story-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.story-heading > span { font-size: 17px; font-weight: 600; color: var(--sb-focus); }
.story-heading small { font-size: 11px; color: var(--sb-mfg); }
.visual-stages { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; list-style: none; padding: 0; margin: 0; }
.visual-stages > li { position: relative; min-width: 0; }
.visual-stages > li:not(:last-child)::after { content: '→'; position: absolute; top: 108px; right: -23px; color: var(--sb-mfg); font-size: 20px; }
.stage-kicker { font-size: 10px; color: var(--sb-mfg); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.sb .visual-stages h3 { font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.hero .visual-stages p { font-size: 12px; line-height: 1.55; color: var(--sb-mfg); }
.spec-art, .constructor-art, .tensor-art, .inference-art { height: 174px; box-sizing: border-box; }
.spec-art { position: relative; padding: 8px 10px 0; }
.paper { border: 1px solid var(--sb-border); border-radius: 7px; background: var(--sb-card); }
.paper.back { position: absolute; top: 3px; left: 15px; right: 12px; bottom: 10px; transform: rotate(-6deg); background: var(--sb-muted); }
.paper.front { position: relative; padding: 15px 12px; box-shadow: 0 4px 12px #00000007; }
.paper > span { display: block; font: 9px ui-monospace,monospace; letter-spacing: .08em; color: var(--sb-mfg); font-weight: 400; }
.paper > b { display: block; font-size: 12px; margin: 9px 0; }
.paper-line { height: 3px; border-radius: 2px; background: var(--sb-border); margin: 5px 0; width: 90%; }.paper-line.short { width: 64%; }
.architecture-mini { display: flex; align-items: center; gap: 3px; margin: 11px 0; }.architecture-mini i { width: 11px; height: 16px; border: 1px solid var(--sb-focus); border-radius: 2px; background: color-mix(in srgb,var(--sb-focus) 9%,transparent); }.architecture-mini em { font-size: 9px; font-style: normal; color: var(--sb-mfg); margin-left: 4px; }
.sb .paper code { font-size: 10px; }
.writer-badge { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 10px; font-weight: 500; height: 28px; color: var(--sb-focus); }
.writer-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.code-window { border: 1px solid #334155; border-radius: 7px; overflow: hidden; background: #121b2a; color: #e5edf7; }
.window-top { display: flex; align-items: center; gap: 3px; height: 23px; padding: 0 8px; border-bottom: 1px solid #334155; }
.window-top i { height: 4px; width: 4px; border-radius: 50%; background: #64748b; }.window-top span { margin-left: 4px; color: #a9bbcf; font-size: 8px; }
.code-window pre { border: 0; background: none; padding: 9px; margin: 0; font: 10px/1.65 ui-monospace,monospace; white-space: pre; overflow-x: auto; color: #dce8f5; font-weight: 400; }.code-window pre span { color: #93c5fd; }.code-window pre b { color: #7dd3fc; font-weight: 400; }
.tensor-art { padding: 2px 2px 0; }
.tensor-top { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; }.tensor-top span { font: 11px ui-monospace,monospace; font-weight: 400; }.tensor-top small { font-size: 9px; color: var(--sb-mfg); }
.tensor-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.tensor-cell { display: grid; place-items: center; min-width: 0; height: 23px; border-radius: 3px; font: 10px ui-monospace,monospace; background: color-mix(in srgb,var(--sb-focus) calc(var(--strength)*40% + 5%),var(--sb-card)); color: var(--sb-fg); transition: background .25s; font-weight: 400; }
.tensor-cell.neg { background: color-mix(in srgb,#e28b54 calc(var(--strength)*40% + 5%),var(--sb-card)); }
.is-zero .tensor-cell { background: var(--sb-muted); color: var(--sb-mfg); }
.tensor-toggle { font: inherit; font-size: 10px; color: var(--sb-focus); background: none; border: 0; padding: 7px 0 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.inference-art { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 2px; }
.input-chip, .output-chip { padding: 5px 9px; border: 1px solid var(--sb-border); border-radius: 6px; font-size: 10px; white-space: nowrap; }.output-chip { color: var(--sb-focus); border-color: color-mix(in srgb,var(--sb-focus) 30%,var(--sb-border)); background: color-mix(in srgb,var(--sb-focus) 5%,var(--sb-card)); }
.network-art { width: 100%; height: 110px; overflow: visible; }.net-edge { stroke: var(--sb-border); stroke-width: 1; }.net-edge.lit { stroke: var(--sb-focus); stroke-width: 1.8; }.net-node { fill: var(--sb-card); stroke: var(--sb-focus); stroke-width: 1.8; }
.artifact-boundary { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 10px; color: var(--sb-mfg); }.artifact-boundary b { font-weight: 400; white-space: nowrap; }.boundary-line { height: 1px; background: var(--sb-border); flex: 1; }.boundary-arrow { color: var(--sb-focus); }
.hero p.explainer-note { font-size: 11px; margin: 10px 0 0; max-width: none; color: var(--sb-mfg); }
.hero p.hero-rule { font-size: 13px; max-width: 42rem; }
.task-sketch { height: 74px; display: flex; gap: 5px; align-items: center; justify-content: center; margin-bottom: 12px; background: var(--sb-muted); border-radius: 7px; padding: 8px; box-sizing: border-box; color: var(--sb-mfg); }
.task-sketch span { font: 11px ui-monospace,monospace; font-weight: 400; }.task-sketch i { font-style: normal; }.token-sketch span, .sentiment-sketch span { padding: 5px; border: 1px solid var(--sb-border); border-radius: 4px; background: var(--sb-card); }.task-sketch .next-token, .task-sketch .sentiment-label { color: var(--sb-focus); border-color: var(--sb-focus); }.control-sketch svg { width: 100px; height: 62px; stroke: var(--sb-focus); fill: none; stroke-width: 2; }
.explain-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 20px 0; }.explain-columns h3 { line-height: 1.5; }.explain-columns p { font-size: 13px; color: var(--sb-mfg); line-height: 1.7; }
@media(max-width:850px) {
 .visual-stages { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }.visual-stages > li:not(:last-child)::after { display:none; }
 .spec-art, .constructor-art, .tensor-art, .inference-art { max-width: 230px; margin: 0 auto; }
 .analogy-strip { justify-content: flex-start; gap: 10px 15px; }.analogy-strip > a { flex-basis:100%; }
}

/* Current original-track draws remain separate from the historical combined index. */
.small-snapshot { margin: 24px 0 56px; }
.small-snapshot h3 { font-size: 23px; margin-bottom: 12px; }
.small-targets { display: flex; gap: 8px; margin: 22px 0 18px; flex-wrap: wrap; }
.small-target { border: 1px solid var(--sb-border); border-radius: 999px; padding: 9px 16px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.small-target[aria-pressed="true"] { background: var(--sb-fg); color: var(--sb-bg); border-color: var(--sb-fg); }
.small-target:focus-visible { outline: 2px solid var(--sb-focus); outline-offset: 3px; }
.small-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.small-writer { border: 1px solid var(--sb-border); border-radius: 14px; padding: 20px; min-width: 0; background: var(--sb-card); }
.small-writer h4 { font-size: 17px; margin: 0 0 8px; }
.small-coverage { font-size: 11px; color: var(--sb-mfg); line-height: 1.6; margin: 0 0 15px; }
.small-arms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.small-arm { min-width: 0; }
.small-arm h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 13px; color: var(--sb-mfg); }
.small-draw { min-height: 52px; margin-bottom: 12px; }
.small-draw-label { display: flex; align-items: baseline; gap: 6px; font-size: 11px; line-height: 1.4; }
.draw-id { color: var(--sb-mfg); font-family: monospace; flex-shrink: 0; font-weight: 400; }
.draw-value { font-variant-numeric: tabular-nums; }
.scored .draw-value { font-weight: 600; font-size: 13px; }
.small-score-track { height: 5px; border-radius: 3px; background: var(--sb-muted); margin: 7px 0; overflow: hidden; }
.small-score-fill { display: block; height: 100%; background: #a86346; border-radius: inherit; }
.small-raw { font-size: 10px; color: var(--sb-mfg); }
.small-raw summary { cursor: pointer; }
.small-raw p { margin: 5px 0; line-height: 1.4; font-variant-numeric: tabular-nums; }
.infrastructure_failed .draw-value, .unstarted .draw-value { color: var(--sb-mfg); }
@media (max-width: 1000px) { .small-results { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .small-results { grid-template-columns: 1fr; } .small-writer { padding: 18px; } }
@media(max-width:520px) {
 .weight-story { padding: 18px 14px; }.visual-stages { gap: 26px 16px; }
 .stage-kicker { font-size: 8px; }.spec-art { padding:8px 3px 0; }.paper.front { padding:12px 8px; }.paper > b { font-size: 10px; }.architecture-mini em { display:none; }
 .window-top span { font-size: 6px; }.code-window pre { padding:7px 5px; font-size:8px; line-height:1.9; }.input-chip,.output-chip { font-size:8px; padding:5px; }
 .sb .visual-stages h3 { font-size:13px; }.hero .visual-stages p { font-size:11px; }.artifact-boundary { gap:5px; font-size:8px; }
 .weight-explainer figcaption strong { font-size:18px; }.analogy-strip { padding:12px; gap:8px; }.analogy-strip span { font-size:9px; gap:4px; }.analogy-strip svg { width:17px;height:17px; }.code-symbol { font-size:14px; }
 .explain-columns { grid-template-columns:1fr; gap:10px; }
}
.campaign-update { border-left: 3px solid var(--sb-focus); border-radius: 0 8px 8px 0; background: var(--sb-card); padding: 16px 20px; margin: 12px 0 40px; font-size: 13px; }
.campaign-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.sb .campaign-heading h2 { font-size: 15px; margin: 0; }
.campaign-heading time { font-size: 12px; color: var(--sb-mfg); }
.campaign-update p { margin: 8px 0; }
.campaign-update ul { padding-left: 18px; margin: 8px 0; }
.campaign-update li { margin: 6px 0; }
.campaign-update a { text-underline-offset: 3px; }
@media (max-width: 639px) { .campaign-update { padding: 14px; } }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 8px; font-size: 14px; font-weight: 400; text-decoration: none; border: 1px solid var(--sb-border); background: var(--sb-card); color: var(--sb-fg); }
.btn:hover { background: var(--sb-muted); }
.btn.primary { background: var(--sb-fg); color: var(--sb-bg); border-color: var(--sb-fg); }
.btn.primary:hover { opacity: .88; background: var(--sb-fg); }

/* How it works (SkillsBench HowItWorks.tsx): a numbered vertical list beside a side column. */
.how { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.how ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.how ol li { counter-increment: s; position: relative; padding: 0 0 22px 44px; }
.how ol li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--sb-border); display: grid; place-items: center; font-size: 13px; font-weight: 500; color: var(--sb-mfg); background: var(--sb-card); }
.how ol li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 1px; background: var(--sb-border); }
.how ol li:last-child::after { display: none; }
.how ol li b { display: block; font-size: 15px; margin: 3px 0 2px; }
.how ol li p { margin: 0; color: var(--sb-mfg); font-size: 14px; }
.how aside { border-left: 1px solid var(--sb-border); padding-left: 32px; font-size: 14px; color: var(--sb-mfg); }
.how aside h3 { color: var(--sb-fg); }
.how aside dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.how aside dt { color: var(--sb-fg); font-weight: 400; } .how aside dd { margin: 0; }

/* Task cards and explorer (SkillsBench TaskCards.tsx, TaskExplorer.tsx). */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.sec-head a { font-size: 14px; color: var(--sb-mfg); text-decoration: none; } .sec-head a:hover { color: var(--sb-fg); }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tcard { display: flex; flex-direction: column; gap: 8px; background: var(--sb-card); border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 16px; text-decoration: none; transition: border-color .15s; }
a.tcard:hover { border-color: color-mix(in srgb, var(--sb-fg) 35%, var(--sb-border)); }
.tcard h3 { font-size: 16px; margin: 0; }
.tcard p { margin: 0; font-size: 13px; color: var(--sb-mfg); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.tools input[type="search"] { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--sb-border); background: var(--sb-card); color: var(--sb-fg); min-width: 0; flex: 1 1 220px; max-width: 360px; }
.sb .seg { display: inline-flex; border: 1px solid var(--sb-border); border-radius: 8px; overflow: hidden; }
.sb .seg button { font: inherit; font-size: 13px; padding: 7px 12px; border: 0; background: var(--sb-card); color: var(--sb-mfg); cursor: pointer; }
.sb .seg button + button { border-left: 1px solid var(--sb-border); }
.sb .seg button[aria-pressed="true"] { background: var(--sb-fg); color: var(--sb-bg); }
/* A switch's label, and a tag inside a button (the Tasks page's "leaderboard"). */
.seg-lbl { font-size: 13px; color: var(--sb-mfg); }
.sb .seg button .seg-tag { margin-left: 6px; font-size: 11px; opacity: .75; }
.seg-grp { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; }
.count { font-size: 13px; color: var(--sb-mfg); }
.empty-note { color: var(--sb-mfg); font-size: 14px; padding: 24px 0; }

/* Task page (SkillsBench tasks/[taskName]): header facts, tabs, panels. */
.sb .facts { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--sb-mfg); margin: 0 0 20px; }
.sb .facts b { color: var(--sb-fg); font-weight: 400; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--sb-border); margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { font: inherit; font-size: 14px; font-weight: 400; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--sb-mfg); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--sb-fg); border-bottom-color: var(--sb-fg); }
.sb .panel[hidden] { display: none; }
.sb .panel h3 { font-size: 16px; margin: 24px 0 8px; } .sb .panel h3:first-child { margin-top: 0; }
.sb .panel p, .sb .panel li { font-size: 14px; max-width: 46rem; }
.sb .panel ul { padding-left: 20px; }
.kv { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 6px 18px; font-size: 14px; margin: 0; max-width: 46rem; }
.kv dt { color: var(--sb-mfg); } .kv dd { margin: 0; }
pre.block { background: var(--sb-card); border: 1px solid var(--sb-border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; font: 12.5px/1.55 "BenchFlow Mono", ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; font-weight: 400; }
pre.block.code { white-space: pre; overflow-wrap: normal; }
.fine { font-size: 12px; color: var(--sb-mfg); }
.warn { color: var(--sb-warn); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--sb-border); border-radius: var(--sb-radius); background: var(--sb-card); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th, table.t td { padding: 9px 12px; text-align: left; border-top: 1px solid var(--sb-border); vertical-align: top; }
table.t thead th { border-top: 0; font-size: 12px; font-weight: 400; color: var(--sb-mfg); background: color-mix(in srgb, var(--sb-muted) 60%, var(--sb-card)); }
table.t .r { text-align: right; } table.t .v { font: 600 12.5px "BenchFlow Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
table.t .na { color: var(--sb-mfg); }
table.t .why { display: block; font-size: 11px; color: var(--sb-mfg); font-weight: 300; }

/* Docs (SkillsBench app/docs): sticky table of contents beside the article. */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.docs nav.toc { position: sticky; top: 84px; font-size: 13px; }
.docs nav.toc p { font-weight: 500; margin: 0 0 6px; }
.docs nav.toc a { display: block; padding: 4px 0; color: var(--sb-mfg); text-decoration: none; } .docs nav.toc a:hover { color: var(--sb-fg); }
.docs article section { margin: 0 0 48px; }
.docs article h2 { font-size: 20px; }
.docs article p, .docs article li { font-size: 15px; max-width: 44rem; }
.docs article ul, .docs article ol { padding-left: 20px; }

/* Homepage charts (SkillsBench TimePerformance.tsx, DomainRadar.tsx). */
.sb h2.sub-h { margin-top: 40px; }
.chart-card { padding: 16px; }
.chart-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.chart-ctl .fam { margin: 0; }
.sb .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sb .panel-t h3 { font-size: 14px; margin: 0 0 10px; } .panel-t h3 a { text-decoration: none; } .panel-t h3 a:hover { text-decoration: underline; }
.prow { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--sb-border); }
.prow .pn { font-size: 12px; line-height: 1.3; color: var(--sb-fg); }
.pline { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 6px; align-items: center; }
.pbar { position: relative; height: 12px; margin: 2px 0; background: color-mix(in srgb, var(--sb-muted) 80%, transparent); border-radius: 2px; }
.pbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 2px 2px 0; }
.pbar.ghost .fill { opacity: .5; } .pbar.solid .fill { opacity: .9; }
.pline .pv { font: 11px "BenchFlow Mono", ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--sb-fg); text-align: right; white-space: nowrap; font-weight: 400; } .pline .pv.na { color: var(--sb-mfg); font-family: inherit; }
.pbar.none { background: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--sb-border) 70%, transparent) 4px 5px); }
svg.radar, svg.scatter { display: block; margin: 0 auto; max-width: 100%; height: auto; }
svg .grid { fill: none; stroke: color-mix(in srgb, var(--sb-mfg) 30%, transparent); } svg .axis { stroke: color-mix(in srgb, var(--sb-mfg) 30%, transparent); }
svg .trace { fill: none; stroke-width: 2.5; stroke-linejoin: round; opacity: .9; }
svg .al { font-size: 11px; fill: var(--sb-fg); } svg .tick { font-size: 10px; fill: var(--sb-mfg); } svg .axl { font-size: 11px; fill: var(--sb-mfg); }
svg .fail line { stroke-width: 2; }
.legend2 { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--sb-mfg); margin: 10px 0 0; justify-content: center; }

/* Hint packet, set as prose. */
.packet { background: var(--sb-card); border: 1px solid var(--sb-border); border-radius: 8px; padding: 16px 18px; max-width: 46rem; }
.packet h4 { font-size: 15px; margin: 0 0 10px; } .packet p, .packet li { font-size: 14px; line-height: 1.6; } .packet a { overflow-wrap: anywhere; }

/* Results page. */
.sb .status { font-size: 14px; color: var(--sb-mfg); max-width: 46rem; margin: 6px 0 0; } .sb .status b { color: var(--sb-fg); }
.findings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.finding { background: var(--sb-card); border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 16px; }
.finding h3 { font-size: 15px; margin: 0 0 6px; } .finding p { margin: 0; font-size: 14px; color: var(--sb-mfg); }
.sb ul.plain { padding-left: 20px; max-width: 46rem; } .sb ul.plain li { font-size: 14px; color: var(--sb-mfg); margin: 4px 0; }
table.t th.c { text-align: center; } table.t thead tr + tr th { border-top: 1px solid var(--sb-border); }
.sticky1 table.t tbody th, .sticky1 table.t thead tr:first-child th:first-child { position: sticky; left: 0; background: var(--sb-card); z-index: 1; }
.sticky1 table.t thead tr:first-child th:first-child { background: color-mix(in srgb, var(--sb-muted) 60%, var(--sb-card)); }

/* Article pages (updates, lab notebook, safety framing) keep their own body styles; this bar holds their data snapshot. */
.snapbar { max-width: 64rem; margin: 12px auto 0; padding: 0 16px; display: flex; justify-content: flex-end; box-sizing: border-box; position: relative; }

/* Footer (SkillsBench Footer.tsx). */
.sb-foot { border-top: 1px solid var(--sb-border); background: var(--sb-muted); margin-top: 48px; }
.sb-foot .in { max-width: 64rem; margin: 0 auto; padding: 40px 16px 28px; box-sizing: border-box; }
.sb-foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin: 0 0 28px; }
.sb-foot .about { max-width: 22rem; font-size: 13px; color: var(--sb-mfg); } .sb-foot .about b { display: block; color: var(--sb-fg); font-size: 15px; margin: 0 0 8px; }
.sb-foot .links { display: flex; gap: 48px; flex-wrap: wrap; }
.sb-foot h4 { font-size: 13px; font-weight: 500; margin: 0 0 10px; }
.sb-foot ul { list-style: none; margin: 0; padding: 0; font-size: 13px; } .sb-foot li { margin: 0 0 6px; }
.sb-foot ul a { color: var(--sb-mfg); text-decoration: none; } .sb-foot ul a:hover { color: var(--sb-fg); }
.sb-foot .base { border-top: 1px solid var(--sb-border); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--sb-mfg); }
.sb-foot .base p { margin: 0; }
.sb-foot .canary { font-size: 10px; letter-spacing: .02em; opacity: .7; }

@media (max-width: 899px) {
  .how { grid-template-columns: 1fr; gap: 24px; } .how aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--sb-border); padding-top: 20px; }
  .pgrid { grid-template-columns: 1fr; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; } .docs nav.toc { position: static; display: flex; flex-wrap: wrap; gap: 2px 14px; } .docs nav.toc p { width: 100%; }
}
@media (max-width: 639px) {
  .tabs button { padding: 10px 9px; font-size: 13px; }
  table.t { min-width: 560px; } table.t th[scope="row"] { min-width: 120px; }
  pre.block.code, pre.cite { white-space: pre-wrap; overflow-wrap: anywhere; }
  .sb-foot .links { gap: 28px; }
  .sb .sb-nav { border-radius: 999px; padding: 6px 8px 6px 14px; } .sb .sb-nav ul { flex-wrap: nowrap; gap: 0; } .sb .sb-nav ul a { padding: 6px 7px; font-size: 13px; }
  .sb-nav .brand span { display: none; }
  .hero { padding: 40px 0 24px; } .hero p { font-size: 16px; }
  .sb h1 { font-size: 26px; }
}

/* Tasks page (tasks/index.html): the version switch and one row per task, each linking to the task's page. */
.tver > .fine { margin: 0 0 12px; } .tver > .fine b { color: var(--sb-fg); font-weight: 400; }
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trow { display: grid; grid-template-columns: 208px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 18px 12px 12px; background: var(--sb-card);
  border: 1px solid var(--sb-border); border-radius: var(--sb-radius); text-decoration: none; transition: border-color .15s; }
.trow:hover { border-color: color-mix(in srgb, var(--sb-fg) 35%, var(--sb-border)); }
.trow .task-sketch { margin: 0; height: 64px; } .trow .task-sketch span { white-space: nowrap; }
.tmain { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tname { font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.tmeta { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; color: var(--sb-mfg); }
.tmeta b { color: var(--sb-fg); font-weight: 400; }
.tgo { font-size: 18px; color: var(--sb-mfg); transition: transform .15s, color .15s; }
.trow:hover .tgo { color: var(--sb-fg); transform: translateX(2px); }
.digit-sketch svg { width: 46px; height: 46px; } .digit-sketch rect { fill: var(--sb-card); stroke: var(--sb-border); stroke-width: .6; }
.digit-sketch rect.on { fill: var(--sb-focus); stroke: none; }
.digit-sketch rect.sky { fill: color-mix(in srgb, var(--sb-focus) 30%, var(--sb-card)); stroke: none; }
@media (max-width: 639px) {
  .trow { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .trow .task-sketch { display: none; }
}

/* A task's folders (the Files tab of a task page, or a pilot page's folder): the arm switch, the shown folder's header,
   download and digests, then its file browser. The browser is the BenchFlow file browser (assets/bf-filetree/), which
   brings its own styles; its slot keeps the browser's height before it mounts, so nothing below it moves. */
.files-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; }
.files-top .fine { margin: 0; }
.folder-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.sb .folder-name { font: 600 15px "BenchFlow Mono", ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0; overflow-wrap: anywhere; }
.sb .folder-sub { font-size: 13px; color: var(--sb-mfg); margin: 2px 0 0; }
.folder .btn { gap: 8px; height: 36px; padding: 0 14px; white-space: nowrap; }
.folder .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.folder .kv { font-size: 13px; }
.folder .why { display: block; font: 300 11px "BenchFlow Sans Display", system-ui, sans-serif; color: var(--sb-mfg); }
.folder .hash { font: 12px "BenchFlow Mono", ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; color: var(--sb-mfg); font-weight: 400; }
.folder > .fine { margin: 0 0 10px; }
/* On large screens the browser is wider than the text column, so it has room for code. */
.files-browser { margin: 20px 0 8px; min-height: 640px; width: max(100%, min(1240px, 100vw - 48px)); margin-left: calc((100% - max(100%, min(1240px, 100vw - 48px))) / 2); box-sizing: border-box; }
@media (max-width: 639px) { .files-browser { min-height: 842px; } }
/* Narrow screens: the nav links scroll inside the pill instead of widening the page. */
.sb-nav ul { min-width: 0; }
@media (max-width: 560px) {
  .sb-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .sb-nav ul::-webkit-scrollbar { display: none; }
  .sb-nav ul a { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
  .sb-nav .brand span { display: none; }
}
