/* ─────────────────────────────────────────────────────────────
   Focospectralics Knowledge Base — shared stylesheet
   Tokens extracted from engine.html so the KB and engine
   sites share a visual language. Prose styles added for docs.
   ───────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --vault:          #fbfef8;
  --vault-raised:   #ffffff;
  --panel:          #ffffff;
  --panel-soft:     #f3f7f5;
  --border:         #dce4e7;
  --border-bright:  #afbdc5;
  --accent:         #005eb8;
  --accent-deep:    #004a94;
  --accent-soft:    rgba(0, 94, 184, 0.08);
  --text:           #0b1220;
  --muted:          #5d6d7e;
  --faint:          #71808d;
  --derived:        #009e73;
  --baseline:       #d55e00;
  --fitted:         #7f3c8d;
  --alert:          #c43c35;
  --header:         #0b1220;
  --header-muted:   #8aa0bd;
  --shadow-sm:      0 4px 12px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md:      0 12px 30px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.02);
  --radius:         10px;
  --radius-sm:      6px;
  --font-sans:      "Inter", sans-serif;
  --font-mono:      "JetBrains Mono", monospace;
}

body {
  font-family: var(--font-sans);
  background: var(--vault);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 68px;
  display: flex; align-items: center;
  padding: 0 32px;
  background: rgba(11, 18, 32, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #243348;
  color: #fbfef8;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: 40px; text-decoration: none; color: inherit; }
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid #34465c;
  border-radius: 50%;
  color: #4fc3f7;
  box-shadow: inset 0 0 14px rgba(79,195,247,0.1);
}
.brand__copy { display: flex; flex-direction: column; gap: 2px; }
.brand__copy strong {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; font-weight: 600;
}
.brand__copy small {
  font-size: 8px; letter-spacing: 0.14em; color: var(--header-muted);
}
.topbar__nav { display: flex; gap: 4px; height: 100%; align-items: center; }
.nav-link {
  background: none; border: none;
  padding: 0 14px; height: 100%;
  font-size: 12px; color: var(--header-muted);
  cursor: pointer; font-weight: 500;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.nav-link:hover, .nav-link--active { color: #fff; }
.nav-link--active { border-bottom-color: #4fc3f7; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.closure-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid #243348;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--header-muted);
}
.closure-chip i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--derived);
  box-shadow: 0 0 8px var(--derived);
}
.closure-chip strong { color: #4fc3f7; font-weight: 500; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.main-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

/* ── LANDING HERO ───────────────────────────────────────── */
.kb-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 72px;
}
.kb-hero__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.kb-hero__eyebrow i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--derived); box-shadow: 0 0 8px var(--derived);
}
.kb-hero h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.kb-hero h1 em { color: var(--accent); font-style: normal; font-weight: 400; }
.kb-hero__lede {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 24px;
}
.kb-hero__note {
  padding: 14px 16px;
  border-left: 2px solid var(--border-bright);
  background: var(--panel-soft);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.kb-hero__note strong { color: var(--text); font-weight: 600; }

/* ── STATUS TAG BADGES ──────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}
.badge--derived  { color: var(--derived);  border-color: rgba(0,158,115,0.3);  background: rgba(0,158,115,0.08); }
.badge--frame    { color: var(--baseline); border-color: rgba(213,94,0,0.3);   background: rgba(213,94,0,0.08); }
.badge--fitted   { color: var(--fitted);   border-color: rgba(127,60,141,0.3); background: rgba(127,60,141,0.08); }

/* ── LEGEND PANEL ───────────────────────────────────────── */
.legend {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.legend h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.legend__row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.55;
}
.legend__row:first-of-type { border-top: 0; padding-top: 0; }
.legend__row:last-of-type { padding-bottom: 0; }
.legend__row .badge { flex-shrink: 0; margin-top: 1px; }
.legend__row p { color: var(--muted); }

/* ── SECTION ────────────────────────────────────────────── */
.section { margin-bottom: 64px; }
.section__head { margin-bottom: 24px; }
.section__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.section__lede {
  font-size: 14px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}
.section__lede code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--panel-soft);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── CONTENTS GRID (landing) ────────────────────────────── */
.contents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.content-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.content-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.content-card h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.content-card .count {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.content-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.content-card .cta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

/* ── DATA TABLE ─────────────────────────────────────────── */
.data-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.data-table thead th {
  padding: 11px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  background: #f7faf8;
  border-bottom: 1px solid var(--border);
}
.data-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcfb; }
.data-table .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  width: 36px;
}
.data-table .param {
  font-weight: 500;
  color: var(--text);
}
.data-table .value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.data-table .source {
  color: var(--muted);
  font-size: 12px;
}

/* ── PROSE (document pages) ─────────────────────────────── */
.prose-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.prose-sidebar {
  position: sticky;
  top: 92px;
  font-size: 12.5px;
}
.prose-sidebar h4 {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.prose-sidebar ul { list-style: none; }
.prose-sidebar li { margin-bottom: 3px; }
.prose-sidebar a {
  display: block;
  padding: 5px 10px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  font-size: 12px;
  line-height: 1.4;
}
.prose-sidebar a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.prose-sidebar a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}

.prose {
  max-width: 760px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
}
.prose__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.prose__eyebrow i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.prose h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.prose h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 12px;
}
.prose h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 28px;
  margin-bottom: 10px;
}
.prose p { margin-bottom: 16px; }
.prose strong { font-weight: 600; color: var(--text); }
.prose em { font-style: italic; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { margin: 16px 0 20px 24px; }
.prose li { margin-bottom: 6px; line-height: 1.7; }
.prose code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--panel-soft);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent-deep);
}
.prose pre {
  background: #0d1420;
  color: #c8d4e0;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 20px 0;
  color: var(--muted);
  font-style: italic;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}
.prose table th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  background: #f7faf8;
  border-bottom: 1px solid var(--border);
}
.prose table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose table tr:last-child td { border-bottom: 0; }

/* Status-tag badges inline in prose */
.prose .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid;
  vertical-align: 1px;
}
.prose .tag--d { color: var(--derived);  border-color: rgba(0,158,115,0.3);  background: rgba(0,158,115,0.08); }
.prose .tag--f { color: var(--baseline); border-color: rgba(213,94,0,0.3);   background: rgba(213,94,0,0.08); }
.prose .tag--t { color: var(--fitted);   border-color: rgba(127,60,141,0.3); background: rgba(127,60,141,0.08); }

/* Math (KaTeX) */
.katex { font-size: 1em !important; }
.katex-display { margin: 20px 0 !important; overflow-x: auto; overflow-y: hidden; }

/* ── PREV / NEXT PAGINATION ─────────────────────────────── */
.docnav {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.docnav a {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.docnav a:hover { border-color: var(--accent); }
.docnav__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.docnav__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.docnav a.next { text-align: right; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.footer p, .footer li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer__bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.footer__bottom i {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--derived);
  box-shadow: 0 0 6px var(--derived);
  margin-right: 6px;
  vertical-align: middle;
}

/* ── SIDEBAR TOGGLE ─────────────────────────────────────── */
.sidebar-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-right: 12px;
  border: 1px solid #243348;
  border-radius: 6px;
  color: var(--header-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.sidebar-toggle:hover {
  color: #4fc3f7;
  border-color: #48627e;
}
.sidebar-toggle:focus-visible {
  outline: 2px solid #4fc3f7;
  outline-offset: 3px;
}
.prose-wrap--no-sidebar {
  grid-template-columns: 1fr;
}
.prose-wrap--no-sidebar .prose-sidebar {
  display: none;
}
.prose-wrap--no-sidebar .prose {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1024px) {
  .sidebar-toggle { display: none; }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .kb-hero { grid-template-columns: 1fr; gap: 36px; }
  .contents { grid-template-columns: 1fr 1fr; }
  .prose-wrap { grid-template-columns: 1fr; gap: 32px; }
  .prose-sidebar { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 18px; height: 60px; }
  .brand__copy small { display: none; }
  .topbar__nav { display: none; }
  .main-content { padding: 36px 18px 60px; }
  .contents { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .docnav { flex-direction: column; }
  .docnav a.next { text-align: left; }
}

/* ── INLINE CITATION CHIP ───────────────────────────────── */
.cite {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 2px;
  border-radius: 3px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
  text-decoration: none;
  letter-spacing: 0.02em;
  vertical-align: 1px;
  transition: border-color 0.15s, color 0.15s;
}
.cite:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── AXIOM BLOCK ────────────────────────────────────────── */
.axiom-block {
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  max-width: 820px;
}
.axiom-block p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 14px;
}
.axiom-block p:last-of-type {
  margin-bottom: 0;
}
.axiom-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--panel-soft);
  padding: 1px 6px;
  border-radius: 3px;
}
.axiom-block__foot {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.axiom-block__foot a {
  color: var(--accent);
  text-decoration: none;
}
.axiom-block__foot a:hover { text-decoration: underline; }

/* ── STEP LIST ──────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 14px;
  max-width: 900px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding-top: 2px;
}
.step__body h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.step__body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.step__body a {
  color: var(--accent);
  text-decoration: none;
}
.step__body a:hover { text-decoration: underline; }

/* ── SIDEBAR — SECTION LIST ─────────────────────────────── */
.sidebar-mark {
  display: inline-block;
  width: 10px;
  color: var(--accent);
  font-weight: 700;
}
.sidebar-divider {
  height: 1px;
  margin: 14px 10px;
  background: var(--border);
}
.prose-sidebar a[aria-current="page"] {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}

/* ── CONSULTATION CARD IMAGE SLOT ──────────────────────── */
.content-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: -22px -22px 18px -22px;  /* pull past the card's 22px padding */
  width: calc(100% + 44px);
  border-bottom: 1px solid var(--border);
  background: var(--panel-soft);
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.content-card__placeholder {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.content-card__link {
  color: var(--accent);
  text-decoration: none;
}
.content-card__link:hover {
  text-decoration: underline;
}

/* ── ACCESSIBILITY: user preferences ─────────────────────── */

/* Font size */
html.kb-fs-large       body { font-size: 16px; }
html.kb-fs-large       .prose { font-size: 15.5px; }
html.kb-fs-largest     body { font-size: 18px; }
html.kb-fs-largest     .prose { font-size: 17px; }

/* Reduced motion */
html.kb-motion-reduced *,
html.kb-motion-reduced *::before,
html.kb-motion-reduced *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* High contrast */
html.kb-contrast-high {
  --border: #7f8c99;
  --border-bright: #4a5762;
  --muted: #2a3642;
  --faint: #3f4c59;
}
html.kb-contrast-high .prose a { text-decoration: underline; }
html.kb-contrast-high .badge { border-width: 2px; }

/* Colorblind-safe palette
   Swaps the status-tag colors to a colorblind-distinguishable set:
   blue for Derived, orange for Frame-Conditioned, magenta for Fitted. */
html.kb-colorblind {
  --derived: #0072b2;
  --frame:   #e69f00;
  --fitted:  #cc79a7;
}

/* Grayscale */
html.kb-grayscale {
  filter: grayscale(1);
}