/* Thumbfing website: site chrome and the page types added on 2026-11-16
   (navigation, footer, product sections, docs layout, keymap editor, proof chain, source browser).
   Colours and fonts come from ds/thumbfing/tokens.css; site.css holds the original page layout. */

/* ---------- Navigation bar ---------- */
.ws-nav { border-bottom: 1px solid var(--faint-rule); background: var(--background); color: var(--ink); font-family: var(--font-docs-sans); }
.ws-nav__inner { max-width: 1200px; margin: 0 auto; padding: 12px 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; box-sizing: border-box; }
.ws-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 25px/28px var(--font-docs-serif); letter-spacing: -0.01em; }
.ws-wordmark svg { width: 28px; height: 28px; }
.ws-nav__links { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; }
.ws-nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; line-height: 20px; color: var(--muted); text-decoration: none; border-radius: 8px; }
.ws-nav__link:hover { color: var(--ink); background: var(--panel); }
.ws-nav__link--current { color: var(--ink); font-weight: 600; }
.ws-nav__actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; box-sizing: border-box; border-radius: 999px; font: 500 15px/20px var(--font-docs-sans); text-decoration: none; border: 1px solid var(--ink); cursor: pointer; white-space: nowrap; }
.ws-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.ws-btn--primary, .ws-page .ws-btn--primary { background: var(--ink); color: var(--background); }
.ws-btn--secondary, .ws-page .ws-btn--secondary { background: transparent; color: var(--ink); }
.ws-btn--quiet, .ws-page .ws-btn--quiet { border-color: var(--faint-rule); color: var(--ink); background: var(--background); }
.ws-btn--small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ws-actions--center { justify-content: center; }

/* ---------- Footer ---------- */
.ws-footer { border-top: 1px solid var(--rule); background: var(--background); color: var(--ink); font-family: var(--font-docs-sans); }
.ws-footer__inner { max-width: 1200px; margin: 0 auto; padding: 56px 48px 36px; display: flex; flex-direction: column; gap: 44px; box-sizing: border-box; }
.ws-footer__grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 1fr)); gap: 32px 40px; }
.ws-footer__col { display: flex; flex-direction: column; gap: 8px; }
.ws-footer__head { margin: 0 0 4px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.06em; }
.ws-footer a { color: var(--muted); text-decoration: none; font-size: 14px; line-height: 24px; }
.ws-footer a:hover { color: var(--ink); text-decoration: underline; }
.ws-footer__blurb { margin: 0; font-size: 14px; line-height: 22px; color: var(--muted); max-width: 30ch; }
.ws-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 20px; border-top: 1px solid var(--faint-rule); font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- Product page sections ---------- */
.ws-wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; box-sizing: border-box; }
.ws-band { background: var(--panel); border-top: 1px solid var(--faint-rule); border-bottom: 1px solid var(--faint-rule); }
.ws-sec { padding: 96px 0; display: flex; flex-direction: column; gap: 44px; }
.ws-sec--tight { padding: 64px 0; }
.ws-hero-xl { padding: 88px 0 36px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.ws-hero-xl .ws-display { font-size: 92px; line-height: 92px; letter-spacing: -0.035em; }
.ws-hero-xl .ws-lead { font-size: 20px; line-height: 30px; max-width: 34em; color: var(--muted); }
.ws-status-line { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-stage__frame { position: relative; background: var(--panel); border: 1px solid var(--faint-rule); border-radius: 24px; height: 580px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ws-stage__frame img { max-width: 76%; max-height: 84%; display: block; }
.ws-stage__badge { position: absolute; left: 22px; bottom: 18px; font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-stage__controls { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 8px; }
.ws-anchor-bar { position: sticky; top: 0; z-index: 2; background: var(--background); border-bottom: 1px solid var(--faint-rule); }
.ws-anchor-bar__inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; box-sizing: border-box; }
.ws-anchor-bar a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 14px; color: var(--muted); text-decoration: none; }
.ws-anchor-bar a:hover { color: var(--ink); }
.ws-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 40px; }
.ws-stat { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--rule); padding-top: 14px; }
.ws-stat__value { margin: 0; font: 400 52px/56px var(--font-docs-serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ws-stat__label { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.ws-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.ws-split--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.ws-split__text { display: flex; flex-direction: column; gap: 18px; }
.ws-eyebrow { margin: 0; font: 500 13px/18px var(--font-sheet-mono); color: var(--muted); }
.ws-h2 { margin: 0; font: 400 48px/52px var(--font-docs-serif); letter-spacing: -0.02em; text-wrap: balance; }
.ws-h3 { margin: 0; font: 400 28px/32px var(--font-docs-serif); letter-spacing: -0.01em; }
.ws-body { margin: 0; font-size: 17px; line-height: 27px; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.ws-body a { color: var(--link); }
.ws-center { text-align: center; align-items: center; }
.ws-panel-img { background: var(--panel); border: 1px solid var(--faint-rule); border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 28px; box-sizing: border-box; }
.ws-panel-img img { display: block; width: 100%; height: auto; }
.ws-band .ws-panel-img { background: var(--background); }
.ws-placeholder { background: repeating-linear-gradient(135deg, var(--panel) 0 14px, var(--background) 14px 28px); border: 1px dashed var(--muted); border-radius: 20px; min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; box-sizing: border-box; font: 500 13px/20px var(--font-sheet-mono); color: var(--muted); }
.ws-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 40px; }
.ws-feature { display: flex; flex-direction: column; gap: 10px; }
.ws-feature svg { width: 28px; height: 28px; color: var(--ink); }
.ws-feature__title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.ws-feature__body { margin: 0; font-size: 15px; line-height: 23px; color: var(--muted); }
.ws-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ws-step { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--faint-rule); border-radius: 16px; background: var(--background); color: var(--ink); text-decoration: none; }
.ws-step:hover { border-color: var(--muted); }
.ws-step__num { font: 500 13px/18px var(--font-sheet-mono); color: var(--muted); }
.ws-step__title { margin: 0; font: 400 26px/30px var(--font-docs-serif); }
.ws-step__body { margin: 0; font-size: 14px; line-height: 21px; color: var(--muted); }
.ws-verified { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 40px; }
.ws-repo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 24px; border: 1px solid var(--faint-rule); border-radius: 16px; background: var(--background); }
.ws-repo__name { margin: 0; font: 500 17px/24px var(--font-sheet-mono); }
.ws-repo__desc { margin: 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.ws-repo__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--faint-rule); font-size: 12px; line-height: 16px; color: var(--muted); background: var(--background); white-space: nowrap; }
.ws-pill--soon { border-style: dashed; }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--passed); display: inline-block; flex-shrink: 0; }
.ws-dot--work { background: var(--warning); }
.ws-dot--open { background: transparent; border: 1.5px solid var(--muted); box-sizing: border-box; }
.ws-licences { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ws-licence { padding: 18px; border: 1px solid var(--faint-rule); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; background: var(--background); }
.ws-licence__what { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-licence__name { margin: 0; font: 500 16px/22px var(--font-sheet-mono); }

/* ---------- Documentation layout: side menu, article, on-page contents ---------- */
.ws-docs { max-width: 1280px; margin: 0 auto; padding: 36px 48px 80px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.ws-docs__side { flex: 1 1 220px; max-width: 250px; display: flex; flex-direction: column; gap: 22px; }
.ws-docs__main { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.ws-docs__toc { flex: 1 1 170px; max-width: 200px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 18px; }
.ws-docs__toc a { color: var(--muted); text-decoration: none; }
.ws-docs__toc a:hover { color: var(--ink); }
.ws-side-group { display: flex; flex-direction: column; gap: 2px; }
.ws-side-group__head { margin: 0 0 6px; padding: 0 10px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.ws-side-link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14px; line-height: 20px; color: var(--ink); text-decoration: none; }
.ws-side-link:hover { background: var(--panel); }
.ws-side-link--current { background: var(--panel); font-weight: 600; }
.ws-side-link__num { font: 500 12px/16px var(--font-sheet-mono); color: var(--muted); min-width: 18px; }
.ws-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--faint-rule); border-radius: 10px; background: var(--background); box-sizing: border-box; }
.ws-search input { border: 0; outline: 0; background: transparent; font: 14px/20px var(--font-docs-sans); color: var(--ink); width: 100%; min-width: 0; }
.ws-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.ws-crumbs { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-crumbs a { color: inherit; }
.ws-doc-title { margin: 0; font: 400 50px/54px var(--font-docs-serif); letter-spacing: -0.02em; text-wrap: balance; }
.ws-doc { display: flex; flex-direction: column; gap: 16px; }
.ws-doc h2 { margin: 16px 0 0; font: 400 30px/36px var(--font-docs-serif); letter-spacing: -0.01em; }
.ws-doc h3 { margin: 6px 0 0; font: 600 17px/24px var(--font-docs-sans); }
.ws-doc p, .ws-doc li { font-size: 16px; line-height: 26px; }
.ws-doc p { margin: 0; text-wrap: pretty; }
.ws-doc ol, .ws-doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.ws-doc a { color: var(--link); }
.ws-meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-code { margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--faint-rule); font: 13px/21px var(--font-sheet-mono); overflow-x: auto; white-space: pre; }
.ws-kbd { font: 500 13px/18px var(--font-sheet-mono); padding: 1px 6px; border: 1px solid var(--faint-rule); border-bottom-width: 2px; border-radius: 5px; background: var(--background); }
.ws-callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--faint-rule); background: var(--panel); font-size: 15px; line-height: 23px; }
.ws-callout p { margin: 0; font-size: 15px; line-height: 23px; }
.ws-callout svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--warning); }
.ws-table-box { overflow-x: auto; border: 1px solid var(--faint-rule); border-radius: 12px; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.ws-table th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--faint-rule); background: var(--panel); white-space: nowrap; }
.ws-table td { padding: 12px 14px; border-bottom: 1px solid var(--faint-rule); vertical-align: top; }
.ws-table tr:last-child td { border-bottom: 0; }
.ws-table .ws-num { font-family: var(--font-sheet-mono); white-space: nowrap; }
.ws-table a { color: var(--link); }
.ws-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 24px; border-top: 1px solid var(--faint-rule); }
.ws-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--faint-rule); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 16px; }
.ws-pager a span { font-size: 13px; color: var(--muted); }
.ws-pager a:last-child { text-align: right; }
.ws-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--faint-rule); border-radius: 12px; font-size: 14px; line-height: 20px; }
.ws-cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ws-link-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--faint-rule); border-radius: 14px; color: var(--ink); text-decoration: none; background: var(--background); }
.ws-link-card:hover { border-color: var(--muted); }
.ws-link-card svg { width: 22px; height: 22px; }
.ws-link-card strong { font-size: 16px; line-height: 22px; font-weight: 600; }
.ws-link-card span { font-size: 14px; line-height: 21px; color: var(--muted); }

/* ---------- Keymap editor ---------- */
.ws-app { max-width: 1440px; margin: 0 auto; padding: 24px 32px 56px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.ws-app__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ws-app__title { margin: 0; font: 400 34px/40px var(--font-docs-serif); letter-spacing: -0.01em; }
.ws-app__body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ws-app__canvas { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ws-app__panel { flex: 1 1 300px; max-width: 380px; border: 1px solid var(--faint-rule); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 18px; background: var(--background); box-sizing: border-box; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-tab { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--faint-rule); background: var(--background); color: var(--ink); font: 500 14px/20px var(--font-docs-sans); cursor: pointer; }
.ws-tab:hover { border-color: var(--muted); }
.ws-tab--on, .ws-tab--on:hover { background: var(--ink); color: var(--background); border-color: var(--ink); }
.ws-board { position: relative; width: 100%; aspect-ratio: 256 / 90; background: var(--panel); border: 1px solid var(--faint-rule); border-radius: 20px; box-sizing: border-box; }
.ws-key { position: absolute; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--faint-rule); border-bottom-width: 3px; background: var(--background); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; cursor: pointer; font-family: var(--font-docs-sans); overflow: hidden; }
.ws-key:hover { border-color: var(--muted); }
.ws-key--on, .ws-key--on:hover { border-color: var(--link); box-shadow: 0 0 0 2px var(--link); }
.ws-key--empty { background: transparent; border-style: dashed; color: var(--muted); }
.ws-key--trans { color: var(--muted); background: transparent; }
.ws-key__tap { font-size: clamp(11px, 1.35vw, 19px); line-height: 1.15; font-weight: 500; }
.ws-key__hold { font-size: clamp(8px, 0.72vw, 11px); line-height: 1.15; color: var(--muted); max-width: 94%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-legend-row { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-field { display: flex; flex-direction: column; gap: 6px; }
.ws-field label, .ws-field__label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.ws-select { height: 42px; padding: 0 10px; border: 1px solid var(--faint-rule); border-radius: 10px; background: var(--background); color: var(--ink); font: 14px/20px var(--font-docs-sans); }
.ws-keygrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ws-keychip { min-height: 38px; border: 1px solid var(--faint-rule); border-bottom-width: 2px; border-radius: 8px; background: var(--background); color: var(--ink); font: 500 13px/18px var(--font-sheet-mono); cursor: pointer; padding: 0 2px; }
.ws-keychip:hover { border-color: var(--muted); }
.ws-mono { font-family: var(--font-sheet-mono); }
.ws-conn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- How it's made: the proof chain ---------- */
.ws-chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ws-chain__step { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--faint-rule); border-radius: 12px; background: var(--background); min-height: 120px; box-sizing: border-box; }
.ws-chain__id { font: 500 12px/16px var(--font-sheet-mono); color: var(--muted); }
.ws-chain__name { margin: 0; font-size: 14px; line-height: 19px; font-weight: 600; }
.ws-chain__state { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--muted); }
.ws-figure-card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ws-figure-card img { display: block; width: 100%; height: auto; border: 1px solid var(--faint-rule); border-radius: 14px; background: #ffffff; }
.ws-figure-card figcaption { font: italic 17px/24px var(--font-docs-serif); }

/* ---------- Source code: repository browser ---------- */
.ws-browser { border: 1px solid var(--faint-rule); border-radius: 16px; overflow: hidden; background: var(--background); }
.ws-browser__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--faint-rule); font-size: 13px; line-height: 18px; }
.ws-tree { display: flex; flex-direction: column; }
.ws-tree__row { display: grid; grid-template-columns: 20px minmax(140px, 220px) minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--faint-rule); font-size: 14px; line-height: 20px; color: var(--ink); text-decoration: none; }
.ws-tree__row:last-child { border-bottom: 0; }
.ws-tree__row:hover { background: var(--panel); }
.ws-tree__row svg { width: 18px; height: 18px; color: var(--muted); }
.ws-tree__name { font-family: var(--font-sheet-mono); font-size: 13px; }
.ws-tree__desc { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-form { display: flex; flex-direction: column; gap: 16px; }
.ws-input, .ws-textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; min-height: 44px; border: 1px solid var(--faint-rule); border-radius: 10px; background: var(--background); color: var(--ink); font: 15px/22px var(--font-docs-sans); }
.ws-textarea { min-height: 140px; resize: vertical; }

/* ---------- Home page polish: dark hero, facts strip, proof checks, final call ---------- */
.ws-hero-band { background: var(--background); color: var(--ink); }
.ws-hero-band .ws-nav { border-bottom-color: transparent; }
.ws-hero-band .ws-hero-xl { padding-top: 72px; }
.ws-hero-band .ws-stage__frame { border-color: var(--faint-rule); border-radius: 28px; height: 620px; }
.ws-hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font: 500 13px/18px var(--font-sheet-mono); color: var(--muted); }
.ws-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--faint-rule); }
.ws-fact { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 56px 0; }
.ws-fact + .ws-fact { padding-left: 24px; border-left: 1px solid var(--faint-rule); }
.ws-fact__value { margin: 0; font: 400 46px/50px var(--font-docs-serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-fact__value small { font-size: 22px; letter-spacing: 0; color: var(--muted); }
.ws-fact__label { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.ws-key--dim { opacity: 0.38; }
/* site.css colours every link in .ws-page blue; these links keep their own colour. */
.ws-page .ws-nav__link, .ws-page .ws-anchor-bar a, .ws-page .ws-docs__toc a { color: var(--muted); }
.ws-page .ws-nav__link:hover, .ws-page .ws-nav__link--current, .ws-page .ws-anchor-bar a:hover, .ws-page .ws-docs__toc a:hover { color: var(--ink); }
.ws-page .ws-wordmark, .ws-page .ws-step, .ws-page .ws-link-card, .ws-page .ws-tree__row, .ws-page .ws-pager a, .ws-page .ws-side-link, .ws-page .ws-card { color: var(--ink); }
.ws-hero-band .ws-stage__frame { background: var(--background); }
.ws-stage__frame img { width: min(640px, 80%); max-width: none; height: auto; }
.ws-band .ws-page { background: transparent; }
.ws-licences { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ws-lead, .ws-body { text-wrap: balance; }
.tf-check .ws-work-ring { fill: none; stroke: var(--warning); stroke-width: 1.6px; }
.ws-fact__value small { line-height: 0; }
.ws-nav__menu { display: none; }
.ws-board-scroll { width: 100%; }
.ws-docs__main .ws-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws-docs__main .ws-cards-4.ws-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Home: the build-up story, one chapter per design step. */
.ws-interlude { padding: 128px 0 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.ws-interlude .ws-h2 { font-size: 64px; line-height: 68px; letter-spacing: -0.03em; max-width: 14em; }
.ws-chapter { padding: 104px 0; display: flex; flex-direction: column; gap: 44px; }
.ws-chapter__label { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.ws-chapter__num { font: 400 15px/20px var(--font-sheet-mono); color: var(--muted); }
.ws-chapter__name { font: 500 13px/18px var(--font-sheet-mono); color: var(--ink); }
.ws-specs { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 10px 24px; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--faint-rule); font-size: 15px; line-height: 22px; max-width: 34em; }
.ws-specs dt { color: var(--muted); }
.ws-specs dd { margin: 0; }
.ws-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ws-part { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--faint-rule); border-radius: 16px; background: var(--background); }
.ws-part .ws-placeholder { min-height: 140px; border-radius: 10px; font-size: 12px; }
.ws-part__name { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.ws-part__detail { margin: 0; font-size: 14px; line-height: 21px; color: var(--muted); }
.ws-drive { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--faint-rule); border-radius: 20px; background: var(--background); }
.ws-drive__bar { display: flex; justify-content: space-between; font: 500 12px/16px var(--font-sheet-mono); color: var(--muted); }
.ws-drive__files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ws-file { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--faint-rule); border-radius: 12px; background: var(--panel); }
.ws-file__name { font: 500 14px/20px var(--font-sheet-mono); }
.ws-file__note { font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-panel-img { background: var(--background); }
@media (max-width: 900px) { .ws-split--flip > :first-child { order: 2; } }
@media (max-width: 760px) {
  .ws-interlude { padding: 88px 0 48px; }
  .ws-interlude .ws-h2 { font-size: 40px; line-height: 44px; }
  .ws-chapter { padding: 72px 0; }
  .ws-drive__files { grid-template-columns: 1fr; }
}

/* Layout sketch: a dimensioned drawing in the style of a CAD sketch. */
.sk-frame { background-color: var(--background); background-image: linear-gradient(var(--faint-rule) 1px, transparent 1px), linear-gradient(90deg, var(--faint-rule) 1px, transparent 1px); background-size: 24px 24px; border: 1px solid var(--faint-rule); border-radius: 20px; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; }
.sk-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 12px/16px var(--font-sheet-mono); color: var(--muted); }
.sk-mirror { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--faint-rule); border-radius: 10px; background: var(--background); color: var(--ink); cursor: pointer; }
.sk-mirror:hover { border-color: var(--muted); }
.sk-mirror svg { width: 20px; height: 20px; }
.sk { display: block; width: 100%; height: auto; }
.sk-key { fill: var(--background); stroke: var(--ink); stroke-width: 0.3; }
.sk-key-text { font: 500 1.9px var(--font-sheet-mono); fill: var(--muted); }
.sk-dim, .sk-ext { fill: none; stroke: var(--link); stroke-width: 0.25; }
.sk-ext { stroke-width: 0.18; }
.sk-construct { stroke: var(--muted); stroke-width: 0.2; stroke-dasharray: 1.2 1; }
.sk-arrow { fill: var(--link); }
.sk-dim-text { font: 600 2.3px var(--font-sheet-mono); fill: var(--link); }
.sk-note { font: 400 2px var(--font-sheet-mono); fill: var(--muted); }

/* How it's made: each branch of the proof chain as a list of steps. */
.ws-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; align-items: start; }
@media (max-width: 760px) { .ws-branches { grid-template-columns: 1fr; } .ws-nav__menu { padding: 0 12px; } }
.ws-branch { display: flex; flex-direction: column; }
.ws-branch__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.ws-branch__note { margin: 0; padding: 10px 0 0; font-size: 13px; line-height: 19px; color: var(--muted); }
.ws-branch__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--faint-rule); font-size: 15px; line-height: 21px; }
.ws-branch__row .ws-chain__id { font-size: 12px; }
.ws-branch__row .ws-chain__state { margin: 0; white-space: nowrap; }

@media (max-width: 760px) {
  .ws-nav__inner { flex-wrap: nowrap; justify-content: space-between; }
  .ws-nav__links, .ws-nav__gh { display: none; }
  .ws-nav__menu { display: inline-flex; }
  .ws-anchor-bar__inner { flex-wrap: nowrap; overflow-x: auto; }
  .ws-anchor-bar a { white-space: nowrap; }
  .ws-stage__badge { display: none; }
  .ws-fact:last-child { grid-column: 1 / -1; }
  .ws-board-scroll { overflow-x: auto; padding-bottom: 6px; }
  .ws-board-scroll .ws-board { min-width: 640px; }
  .ws-docs__main .ws-cards-4, .ws-docs__main .ws-cards-4.ws-cards-3 { grid-template-columns: 1fr; }
}
.ws-features--ruled .ws-feature { border-top: 1px solid var(--faint-rule); padding-top: 22px; }
.ws-checks { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--faint-rule); }
.ws-checks .tf-check { padding: 14px 0; border-bottom: 1px solid var(--faint-rule); }
.tf-check .ws-open { fill: none; stroke: var(--muted); stroke-width: 1.6px; }
.tf-check .ws-work { fill: var(--warning); }
.tf-check .ws-work-mark { fill: none; stroke: var(--passed-on); stroke-width: 2.2px; stroke-linecap: round; }
.ws-final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 120px 0; }
.ws-final .ws-h2 { font-size: 68px; line-height: 70px; letter-spacing: -0.03em; }
@media (max-width: 900px) {
  .ws-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-fact, .ws-fact + .ws-fact { padding: 20px 16px 24px 0; border-left: 0; }
  .ws-hero-band .ws-stage__frame { height: 380px; }
  .ws-final .ws-h2 { font-size: 44px; line-height: 48px; }
}

@media (max-width: 900px) {
  .ws-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-split, .ws-split--flip { grid-template-columns: 1fr; gap: 32px; }
  .ws-docs__toc { display: none; }
  .ws-docs__side { max-width: none; }
}
@media (max-width: 760px) {
  .ws-nav__inner, .ws-wrap, .ws-anchor-bar__inner, .ws-docs, .ws-footer__inner { padding-left: 16px; padding-right: 16px; }
  .ws-hero-xl .ws-display { font-size: 54px; line-height: 56px; }
  .ws-h2, .ws-doc-title { font-size: 36px; line-height: 40px; }
  .ws-sec { padding: 64px 0; }
  .ws-stage__frame { height: 340px; }
  .ws-app { padding: 16px; }
  .ws-repo { grid-template-columns: 1fr; }
  .ws-tree__row { grid-template-columns: 20px minmax(0, 1fr); }
  .ws-tree__desc { display: none; }
  .ws-pager { grid-template-columns: 1fr; }
}
.sk-canvas { position: relative; container-type: inline-size; }
.sk-label { position: absolute; font: 600 1.85cqw/1 var(--font-sheet-mono); color: var(--link); white-space: nowrap; pointer-events: none; }
.sk-label--note { font-weight: 400; color: var(--muted); }

/* Shape3D: the keys in CSS 3D, from flat sketch to keycaps. */
.s3-wrap { display: flex; flex-direction: column; gap: 14px; font-family: var(--font-docs-sans); color: var(--ink); }
.s3 { position: relative; container-type: inline-size; aspect-ratio: 2.2 / 1; overflow: hidden; perspective: 160cqw; perspective-origin: 50% 30%; border: 1px solid var(--faint-rule); border-radius: 20px; background-color: var(--background); }
.s3__plane { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; transition: transform 1.4s cubic-bezier(.3,.7,.2,1); background-image: linear-gradient(var(--faint-rule) 1px, transparent 1px), linear-gradient(90deg, var(--faint-rule) 1px, transparent 1px); background-size: 4% 11%; }
.s3__key { position: absolute; transform-style: preserve-3d; }
.s3__face { position: absolute; box-sizing: border-box; transition: transform 1.2s cubic-bezier(.3,.7,.2,1), height 1.2s cubic-bezier(.3,.7,.2,1), width 1.2s cubic-bezier(.3,.7,.2,1), top 1.2s cubic-bezier(.3,.7,.2,1), left 1.2s cubic-bezier(.3,.7,.2,1), background-color .6s; backface-visibility: visible; }
.s3__face--top { inset: 0; border: 1.5px solid var(--ink); border-radius: 8%; background: var(--background); }
.s3__face--front { left: 0; width: 100%; transform-origin: bottom; transform: rotateX(-90deg); background: color-mix(in oklab, var(--ink) 30%, var(--background)); }
.s3__face--back { left: 0; width: 100%; transform-origin: top; transform: rotateX(90deg); background: color-mix(in oklab, var(--ink) 12%, var(--background)); }
.s3__face--left { top: 0; height: 100%; transform-origin: left; transform: rotateY(-90deg); background: color-mix(in oklab, var(--ink) 16%, var(--background)); }
.s3__face--right { top: 0; height: 100%; transform-origin: right; transform: rotateY(90deg); background: color-mix(in oklab, var(--ink) 22%, var(--background)); }
.s3__key--cap .s3__face--top { background: var(--ink); border-color: var(--ink); }
.s3-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.s3-caption { margin: 0; font-size: 15px; line-height: 22px; color: var(--muted); min-height: 44px; }

/* CopyBlock: a command or an assistant prompt with a copy button. */
.cb { display: flex; flex-direction: column; border: 1px solid var(--faint-rule); border-radius: 16px; background: var(--background); overflow: hidden; font-family: var(--font-docs-sans); color: var(--ink); }
.cb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--faint-rule); }
.cb__head { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; font-weight: 600; }
.cb__icon { width: 18px; height: 18px; color: var(--muted); }
.cb__for { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 16px 0; font-size: 12px; color: var(--muted); }
.cb__body { margin: 0; padding: 14px 16px 16px; font: 13px/21px var(--font-sheet-mono); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel); }
.cb__body--prompt { font: 15px/24px var(--font-docs-sans); background: var(--background); }
.ws-copy-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ws-copy-pair { grid-template-columns: 1fr; } }

/* MiniKeymap: the keymap drawing with a small edit strip. */
.mk { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--faint-rule); border-radius: 20px; background: var(--background); font-family: var(--font-docs-sans); color: var(--ink); }
.mk__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mk__edit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 14px; border-top: 1px solid var(--faint-rule); }
.mk__sel { display: flex; flex-direction: column; gap: 4px; min-width: 220px; flex: 1 1 220px; }
.mk__now { font-size: 15px; line-height: 22px; }
.mk__chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 2 1 420px; }
.mk__chips .ws-keychip { min-width: 52px; }
.ws-pill--provisional { border-style: dashed; color: var(--warning); border-color: currentColor; }
