/* Unlimited Editions — foundry documentation */

:root {
  --paper: #ecebe6;
  --paper-2: #e3e2dc;
  --ink: #111110;
  --ink-2: #55544f;
  --ink-3: #8a8983;
  --rule: #c9c8c1;
  --signal: #ff3d00;
  --code-bg: #111110;
  --code-ink: #ecebe6;

  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --select: 10%; /* selection tint: the ink colour at this strength */

  --gutter: clamp(16px, 3vw, 40px);
  --measure: 68ch;

  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121211;
    --paper-2: #1b1b19;
    --ink: #ecebe6;
    --ink-2: #a9a8a1;
    --ink-3: #74736d;
    --rule: #2e2e2b;
    --code-bg: #1b1b19;
    --code-ink: #ecebe6;
    --select: 18%;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121211;
  --paper-2: #1b1b19;
  --ink: #ecebe6;
  --ink-2: #a9a8a1;
  --ink-3: #74736d;
  --rule: #2e2e2b;
  --code-bg: #1b1b19;
  --code-ink: #ecebe6;
  --select: 18%;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: color-mix(in srgb, currentColor 50%, transparent); }

img, canvas, iframe { display: block; max-width: 100%; }

/* Selection: the ink at --select, a quiet tint that darkens where lines overlap */
::selection { background: rgba(17, 17, 16, 0.1); background: color-mix(in srgb, var(--ink) var(--select), transparent); }

/* ── Bubble nav: the wordmark floats top-centre, with an About link ── */

.bubble-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  width: max-content; /* left: 50% would otherwise cap it at half the viewport */
  max-width: calc(100vw - 32px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  color: #fff;
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bubble-nav a { color: inherit; text-decoration: none; }
.bubble-logo { display: block; flex: none; padding: 3px 0; }
.bubble-logo canvas { height: 13px; width: auto; color: #fff; }
.bubble-link { padding: 3px 0 3px 18px; margin-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.18); white-space: nowrap; }
.bubble-link:hover { color: #8ab4f8; }
#about { scroll-margin-top: 56px; }

/* ── Type ─────────────────────────────────────────────── */

.label {
  font-family: var(--mono);
  font-weight: 400;
  line-height: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 24px; }
h3 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 12px; }

p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.01em; max-width: 34ch; }
.muted { color: var(--ink-2); }

code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-2);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

pre {
  position: relative;
  margin: 0 0 24px;
  padding: 18px 20px;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  max-width: 100%;
}
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--code-ink);
  background: transparent;
  border: 1px solid #ffffff33;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--signal); color: var(--signal); }

/* ── Layout ───────────────────────────────────────────── */

.section {
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.doc {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  padding: 0 var(--gutter);
}
.doc-nav {
  position: sticky;
  top: 16px;
  align-self: start;
  padding: 48px 0;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.doc-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-nav a { text-decoration: none; color: var(--ink-3); }
.doc-nav a.is-active, .doc-nav a:hover { color: var(--ink); }
.doc-main { min-width: 0; }
.doc-main > section { padding: 48px 0 64px; border-bottom: 1px solid var(--rule); scroll-margin-top: 72px; }
.doc-main > section:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 0; }
  .doc-nav { display: none; }
}

/* ── Hero / samples ───────────────────────────────────── */

.font-hero {
  border-bottom: 1px solid var(--rule);
}
/* Font page header: the UE code and tags share a line with the bubble nav, so the
   live preview starts right below it. The h1 stays for screen readers and search. */
.font-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 67px; /* bubble nav: 14px top + ~39px + 14px */
  padding: 0 var(--gutter);
}
.font-hero-head .label { margin: 0; }
.font-hero-head > div,
.font-hero-head .tags { max-width: calc(50% - 170px); } /* stay clear of the centred bubble */
.font-hero-head .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-hero-head .tags { flex-wrap: nowrap; justify-content: flex-end; overflow: hidden; }
.font-hero-head h1 {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 700px) {
  /* no room beside the bubble on phones: the row sits just below it */
  .font-hero-head { padding: 64px 16px 12px; min-height: 0; }
  .font-hero-head > div { max-width: 58%; }
  .font-hero-head .tags { max-width: 40%; justify-content: flex-start; }
}

/* Live previews: 75vh on desktop, 80vh on mobile (home strips: 60vh, below) */
.preview,
.sample-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 75vh;
  min-height: 560px;
  border: 0;
  background: var(--paper-2);
}
@media (max-width: 700px) {
  .preview,
  .sample-frame { height: 80vh; height: 80svh; }
}
/* Home strips: shorter, so the next typeface peeks in */
.preview { height: 60vh; min-height: 440px; }
@media (max-width: 700px) {
  .preview { height: 60vh; height: 60svh; min-height: 400px; }
}

.sample-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sample-controls label { display: flex; align-items: center; gap: 8px; }
.sample-controls input[type="text"],
.sample-controls select {
  font: 14px var(--sans);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 8px;
  min-width: 0;
}
.sample-controls input[type="text"] { width: min(260px, 60vw); }
.sample-controls input[type="range"] { accent-color: var(--signal); width: 120px; }

/* Hero controls take on each tool's UI */

/* Contact Grid: a LiteGraph node — title, then rounded widgets (label left, value right) */
.theme-contact .sample-controls { gap: 8px; border-top: 1px solid #000; font: 12px Arial, Helvetica, sans-serif; text-transform: none; letter-spacing: 0; color: #999; }
.theme-contact .sample-controls::before {
  content: "Grid Animator"; display: flex; align-items: center; gap: 8px; margin-right: 8px;
  color: #ddd; font-size: 13px;
}
.theme-contact .sample-controls label {
  gap: 14px; padding: 4px 6px 4px 14px; border-radius: 14px;
  background: #222; border: 1px solid #444;
}
.theme-contact .sample-controls input[type="text"],
.theme-contact .sample-controls select {
  font: 12px Arial, Helvetica, sans-serif; color: #ddd; background: transparent; border: 0; padding: 3px 4px; text-align: right;
}
.theme-contact .sample-controls select option { background: #222; color: #ddd; }
.theme-contact .sample-controls input[type="range"] { accent-color: #00ff6a; }
.theme-contact .sample-controls .btn { font: 12px Arial, Helvetica, sans-serif; text-transform: none; letter-spacing: 0; color: #ddd; background: #333; border-color: #555; border-radius: 14px; padding: 6px 16px; }
.theme-contact .sample-controls .btn:hover { background: #00ff6a; border-color: #00ff6a; color: #111; }

/* Paradigms: the tool's floating glass timeline bar */
.theme-paradigms .sample-controls {
  width: fit-content; max-width: calc(100% - 32px); margin: 0 auto 20px; justify-content: center;
  padding: 10px 16px; gap: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;
  background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.6); font: 500 11px "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: none; letter-spacing: 0;
}
.theme-paradigms .sample-controls input[type="text"],
.theme-paradigms .sample-controls select {
  font: 500 12px "Helvetica Neue", Helvetica, Arial, sans-serif; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 0; border-radius: 999px; padding: 5px 12px;
}
.theme-paradigms .sample-controls select option { background: #111; color: #fff; }
.theme-paradigms .sample-controls .btn { font: 500 12px "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: none; letter-spacing: 0; background: #fff; color: #000; border-color: #fff; }
.theme-paradigms .sample-controls .btn:hover { background: #39FF14; border-color: #39FF14; }
.theme-paradigms .sample-controls .muted { color: rgba(255, 255, 255, 0.45); }
.theme-paradigms .sample-controls code { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* TTFB Mono: the DevTools Network toolbar */
.theme-ttfb .sample-controls {
  gap: 6px 14px; padding: 6px var(--gutter); background: #292a2d; border-top: 1px solid #3c4043; border-bottom: 1px solid #3c4043;
  color: #9aa0a6; font: 12px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-transform: none; letter-spacing: 0;
}
.theme-ttfb .sample-controls label + label { padding-left: 14px; border-left: 1px solid #3c4043; }
.theme-ttfb .sample-controls input[type="text"] {
  font: 12px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #e8eaed;
  background: #202124; border: 1px solid #5f6368; border-radius: 14px; padding: 4px 12px;
}
.theme-ttfb .sample-controls input[type="text"]:focus { outline: 0; border-color: #8ab4f8; }
.theme-ttfb .sample-controls input[type="range"] { accent-color: #8ab4f8; }
.theme-ttfb .sample-controls .btn { font: 500 12px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-transform: none; letter-spacing: 0; border-radius: 14px; padding: 5px 14px; }
.theme-ttfb .sample-controls .btn[type="submit"] { background: #8ab4f8; border-color: #8ab4f8; color: #202124; }
.theme-ttfb .sample-controls .btn[type="submit"]:hover { background: #aecbfa; }
.theme-ttfb .sample-controls a.btn { color: #8ab4f8; border-color: #5f6368; }
.theme-ttfb .sample-controls a.btn:hover { background: rgba(138, 180, 248, 0.12); color: #8ab4f8; }
.theme-ttfb .sample-controls #network-label { color: #81c995; }

.btn {
  font: 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* ── Tags / facts ─────────────────────────────────────── */

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li {
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--ink-2);
}

/* Two-column text block: home About, font page overviews */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }
.case-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  margin: 32px 0;
}
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; }

/* ── Tables ───────────────────────────────────────────── */

.table-wrap { overflow-x: auto; margin: 0 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); }
th { font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); font-weight: 400; }
td code { white-space: nowrap; }

/* ── Steps / pipeline ─────────────────────────────────── */

.steps { list-style: none; margin: 24px 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  max-width: 80ch;
}
.steps li::before { content: counter(step, decimal-leading-zero); font: 12px var(--mono); color: var(--ink-3); padding-top: 3px; }

/* ── Catalogue captions ───────────────────────────────── */

.card-title { font-size: 32px; letter-spacing: -0.03em; font-weight: 500; text-decoration: none; }
.card-num { font: 12px var(--mono); color: var(--ink-3); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 24px 0; }
.thumbs figure { margin: 0; }
.thumbs img { width: 100%; height: auto; border-radius: 4px; }
.thumbs figcaption { font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 6px; }

.note {
  border-left: 2px solid var(--signal);
  padding: 4px 0 4px 16px;
  margin: 24px 0;
  max-width: var(--measure);
  color: var(--ink-2);
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.site-footer a { color: var(--ink); }
.site-footer { align-items: center; }
.footer-links { display: inline-flex; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: color-mix(in srgb, var(--ink) 50%, transparent); }
.footer-parent { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-parent img { width: 84px; height: auto; }
/* Black line art on transparent: white in dark mode, as drawn in light mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-parent img { filter: invert(1); }
}
:root[data-theme="dark"] .footer-parent img { filter: invert(1); }

.preview-wrap { position: relative; }
.press-logo { display: block; height: 22px; width: auto; max-width: 220px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .press-logo { filter: invert(1); }
}
:root[data-theme="dark"] .press-logo { filter: invert(1); }
@media (max-width: 700px) {
  /* Press on phones: logo and date on one line, the title below */
  .press-table thead { display: none; }
  .press-table tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .press-table td { padding: 0; border: 0; }
  .press-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .press-table td:nth-child(3) { white-space: nowrap; }
}

/* ── Strip themes ─────────────────────────────────────── */
/* Each typeface's strip takes on the look of its own tool. Themes are token
   scopes: they redefine the site colours, so anything inside (captions,
   controls, tags) follows. They are fixed colours and ignore light/dark. */

.theme-contact {
  --paper: #1a1a1a;
  --paper-2: transparent;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.7);
  --ink-3: rgba(255, 255, 255, 0.45);
  --rule: #333333;
  --signal: #00ff6a;
  /* LiteGraph-style canvas grid: fine 10px cells, 100px major lines */
  background-color: #1a1a1a;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 10px 10px, 10px 10px;
  color: var(--ink);
}

.theme-paradigms {
  --paper: #145AFF;
  --paper-2: #145AFF;
  --ink: #000010;
  --ink-2: rgba(0, 0, 16, 0.75);
  --ink-3: rgba(0, 0, 16, 0.55);
  --rule: rgba(0, 0, 16, 0.22);
  --signal: #FF6EC7;
  background: #145AFF;
  color: var(--ink);
}

.theme-ttfb {
  --paper: #202124;
  --paper-2: #202124;
  --ink: #e8eaed;
  --ink-2: #bdc1c6;
  --ink-3: #9aa0a6;
  --rule: #3c4043;
  --signal: #81c995;
  --select: 18%;
  --bar: #8ab4f8;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #202124;
  color: var(--ink);
}


/* ── Strips (home) ────────────────────────────────────── */

.strip { position: relative; overflow: hidden; border-bottom: 1px solid #000; }
.strip .preview { background: transparent; }
.strip .preview canvas { width: 100%; height: 100%; }
.strip-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.strip-panel { position: absolute; left: var(--gutter); bottom: var(--gutter); z-index: 2; }
/* Panel pinned to the top, leaving the bottom for a tool's own controls */
@media (min-width: 701px) {
  .strip-panel.top { top: var(--gutter); bottom: auto; }
  /* the Contact Grid node sits a third of the way down, beside the word */
  .theme-contact .strip-panel.node:not(.node-doc) { top: 33%; bottom: auto; }
}

@media (max-width: 700px) {
  .strip-panel { position: relative; left: auto; bottom: auto; margin: 0 16px 16px; }
  .strip-overlay { display: none; }
}

/* Contact Grid: caption is a LiteGraph node */
.node {
  width: min(360px, calc(100vw - 32px));
  background: #333333;
  border-radius: 8px;
  font: 13px/1.35 Arial, Helvetica, sans-serif;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px #000;
}
.node-title {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: #2a2a2a;
  border-radius: 8px 8px 0 0;
  font-size: 15px;
  color: #fff;
}
.node-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #666; }
.node-title .node-id { margin-left: auto; font: 11px var(--mono); color: rgba(255, 255, 255, 0.45); }
.node-body { padding: 8px 0 10px; display: grid; gap: 4px; }
.node-desc { padding: 2px 12px 8px; color: rgba(255, 255, 255, 0.7); margin: 0; }
.node-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 12px 3px 24px; text-decoration: none; color: inherit; }
.node-row.out { justify-content: flex-end; padding: 3px 24px 3px 12px; }
.node-row .slot { position: absolute; left: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #ffe600); }
.node-row.out .slot { left: auto; right: 9px; }
.node-widget {
  margin: 2px 12px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 12px;
  background: #222;
  border: 1px solid #555;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
}
.node-widget b { font-weight: 400; color: #fff; }
.node-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px; }
.node-pill { font: 12px var(--mono); padding: 3px 8px; border-radius: 5px; color: rgba(0, 0, 0, 0.75); }
.node-pill.good-work { background: linear-gradient(#ffc7e3, #ffe6d0); }
.node-pill.fresh-takes { background: linear-gradient(#d4d4ff, #a7abff 50%, #7ab0ff); }
.node-pill.long-views { background: #d3a3ff; }
.node-pill.big-trends { background: linear-gradient(#ff3d15, #ff8f66); }
button.node-pill { border: 0; cursor: pointer; opacity: 0.55; transition: opacity 0.15s; }
button.node-pill:hover, button.node-pill.is-active { opacity: 1; }
button.node-pill.is-active { box-shadow: 0 0 0 2px #fff; }
.node-doc { display: block; width: auto; bottom: auto; text-decoration: none; }
.node-doc .node-title::before { background: #00ff6a; }
.node-doc:hover { box-shadow: 0 0 0 1px #00ff6a; }

.cables path { fill: none; stroke-width: 3; stroke-linecap: round; }

/* Paradigms: caption matches the tool's glass timeline bar */
.glass {
  width: min(380px, calc(100vw - 32px));
  padding: 14px 16px 12px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
.glass .glass-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.glass .glass-head a { font-size: 22px; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.glass .glass-head span { font: 11px var(--mono); color: rgba(255, 255, 255, 0.5); }
.glass p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.7); }
.glass .glass-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.devtools-table { width: min(480px, calc(100vw - 32px)); }
.glass .btn { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.glass .btn:hover { background: #fff; color: #000; }
.glass .tags li { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.2); }

/* TTFB Mono: DevTools Network panel */
.devtools-ruler {
  position: absolute; left: 0; right: 0; top: 0; height: 22px; z-index: 1;
  border-bottom: 1px solid #3c4043;
  background: #292a2d repeating-linear-gradient(90deg, transparent 0 99px, #3c4043 99px 100px);
  font: 11px var(--mono); color: #9aa0a6;
  display: flex; gap: 0;
}
.devtools-ruler span { flex: 0 0 100px; padding: 4px 6px; }
.strip.theme-ttfb .preview { padding-top: 22px; }
.devtools-table {
  width: min(560px, calc(100vw - 32px));
  background: #202124;
  border: 1px solid #3c4043;
  font: 12px var(--sans);
  color: #e8eaed;
}
.devtools-table .dt-row { display: grid; grid-template-columns: 1.6fr 0.6fr 0.8fr 0.6fr 0.6fr; }
.devtools-table .dt-row > * { padding: 5px 8px; border-right: 1px solid #3c4043; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.devtools-table .dt-row > *:last-child { border-right: 0; }
.devtools-table .dt-head { background: #292a2d; color: #9aa0a6; border-bottom: 1px solid #3c4043; }
.devtools-table .dt-sel { background: #394457; }
.devtools-table .dt-sel a { color: #8ab4f8; text-decoration: none; }
.devtools-table .dt-desc { padding: 8px; border-top: 1px solid #3c4043; color: #bdc1c6; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.devtools-table .btn { color: #8ab4f8; border-color: #5f6368; }
.devtools-table .btn:hover { background: #8ab4f8; color: #202124; }
.devtools-table .btn:disabled { opacity: 0.5; cursor: progress; }
.devtools-table.speedtest .dt-row { grid-template-columns: 1.3fr 0.7fr 0.65fr 0.7fr 1fr; }
.devtools-table.speedtest #speedtest-result { font-variant-numeric: tabular-nums; }
.devtools-table .dt-spark { padding: 2px 8px 4px; border-bottom: 1px solid #3c4043; }
.devtools-table .dt-spark svg { display: block; width: 100%; height: 20px; }
@media (min-width: 701px) {
  /* Two panels side by side along the bottom of the strip */
  .theme-ttfb .devtools-table { width: min(560px, calc(50vw - 36px)); }
  .theme-ttfb .devtools-table.speedtest { width: min(440px, calc(50vw - 36px)); left: auto; right: var(--gutter); }
}

/* Font page heroes adopt the same themes */
.font-hero[class*="theme-"] { border-bottom-color: #000; }
.font-hero[class*="theme-"] .sample-frame { background: transparent; }

/* Contact Grid page: controls sit on the canvas like nodes in the editor */
.cg-stage .cg-brushes,
.cg-stage .cg-text { position: absolute; z-index: 2; }

/* Presets: bottom centre of the canvas, between the text input and the client logo */
.cg-stage .cg-presets { position: absolute; z-index: 2; bottom: var(--gutter); left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: max-content; max-width: calc(100% - 2 * var(--gutter) - 2 * 200px); }
.cg-presets .node-pill { font-size: 13px; padding: 5px 12px; border: 0; cursor: pointer; opacity: 0.55; transition: opacity 0.15s; }
.cg-presets .node-pill:hover, .cg-presets .node-pill.is-active { opacity: 1; }
.cg-presets .node-pill.is-active { box-shadow: 0 0 0 2px #fff; }
@media (max-width: 700px) {
  /* phones: centred above the text input */
  .cg-stage .cg-presets { bottom: 132px; max-width: calc(100% - 32px); }
}

/* Brush picker, top right */
.cg-brushes { top: var(--gutter); right: var(--gutter); width: auto; }
.cg-brushes .node-id { text-transform: capitalize; }
.cg-brush-grid { display: grid; grid-template-columns: repeat(6, 30px); gap: 5px; padding: 8px 10px 10px; }
.cg-brush-grid button { width: 30px; height: 30px; padding: 5px; border-radius: 6px; border: 1px solid #444; background: #222; color: #aaa; cursor: pointer; }
.cg-brush-grid button:hover { color: #fff; border-color: #777; }
.cg-brush-grid button.is-active { color: #fff; border-color: #00ff6a; box-shadow: 0 0 0 1px #00ff6a; }
.cg-brush-grid svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* scribbly stroke re-jitters every frame in the plugin */
@keyframes cg-jitter { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(0.4px, -0.3px); } 50% { transform: translate(-0.3px, 0.4px); } 75% { transform: translate(0.3px, 0.3px); } }
.cg-brush-grid .jitter { animation: cg-jitter 0.25s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .cg-brush-grid .jitter { animation: none; } }
.cg-size { margin: 0 10px 10px; gap: 10px; }
.cg-size input { flex: 1; min-width: 0; accent-color: #00ff6a; }
.cg-size output { min-width: 2.2em; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }

/* Small text input, bottom left */
.cg-text { left: var(--gutter); bottom: var(--gutter); width: min(260px, calc(100vw - 120px)); }
.cg-textbox {
  display: flex; align-items: center; margin: 10px 12px 12px; padding: 9px 12px; min-height: 40px;
  background: #1b1b1b; border: 1px solid #555; border-radius: 6px; cursor: text;
  font: 18px/1.2 Arial, Helvetica, sans-serif; color: #fff;
}
.cg-textbox:focus-within { border-color: #00ff6a; }
#cg-text { outline: 0; white-space: pre; overflow: hidden; caret-color: #00ff6a; min-width: 1px; }
.cg-caret { flex: none; width: 2px; height: 1.15em; margin-left: 2px; background: #fff; animation: cg-blink 1.06s steps(1) infinite; }
.cg-textbox:focus-within .cg-caret { display: none; } /* the real caret takes over while editing */
@keyframes cg-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cg-caret { animation: none; } }

@media (max-width: 700px) {
  .cg-brush-grid { grid-template-columns: repeat(6, 26px); gap: 5px; padding: 8px 10px 10px; }
  .cg-brush-grid button { width: 26px; height: 26px; padding: 4px; }
  .cg-text { left: 16px; }
}

/* Contact Grid header: selected text sits on black */
.theme-contact ::selection { background: #000; color: #fff; }

/* Glyph viewer: Frame and Hairline */
.glyph-viewer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.gv-preview { position: sticky; top: 72px; display: grid; gap: 14px; }
.gv-glyph {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 8px;
  background-color: #1a1a1a;
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 10% 10%;
  color: #fff; font-size: clamp(160px, 26vw, 380px); line-height: 1;
}
.gv-glyph span { grid-area: 1 / 1; }
.gv-frame { font-family: "Cranny Frame"; }
.gv-hair { font-family: "Cranny Hairline"; color: #00ff6a; }
.glyph-viewer[data-base="frame"] .gv-hair,
.glyph-viewer[data-base="hairline"] .gv-frame { display: none; }
.glyph-viewer[data-base="hairline"] .gv-hair { color: #fff; }
.gv-meta { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--ink-3); }
.gv-switch, .gv-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.gv-switch button, .gv-filters button {
  font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.gv-filters button { text-transform: none; }
.gv-switch button.is-active, .gv-filters button.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.gv-intro { margin-top: 0; color: var(--ink-2); }
.gv-filters { margin: 18px 0 12px; }
.gv-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 1px;
  max-height: 520px; overflow: auto; border: 1px solid var(--rule); background: var(--rule);
  font-family: "Cranny Frame"; font-size: 26px;
}
.gv-grid button { aspect-ratio: 1; border: 0; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.gv-grid button:hover { background: var(--paper-2); }
.gv-grid button.is-active { background: #00ff6a; color: #000; }
.gv-grid button[hidden] { display: none; }
@media (max-width: 860px) {
  .glyph-viewer { grid-template-columns: 1fr; gap: 24px; }
  .gv-preview { position: static; }
  .gv-glyph { font-size: 52vw; }
}

/* Isoline: glyph viewer in Isoline Contour */
.pg-viewer .gv-glyph { background-color: #145AFF; color: #000; background-image: linear-gradient(rgba(0,0,0,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px); }
.pg-contour { font-family: "Isoline Contour"; }
.pg-grid { font-family: "Isoline Contour"; font-size: 38px; }
.pg-grid button.is-active { background: #145AFF; color: #000; }

/* Behind the scenes: four small canvases */
.bts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bts figure { margin: 0; }
.bts canvas { display: block; width: 100%; aspect-ratio: 1; background: #1a1a1a; border-radius: 8px; }
.bts figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.bts figcaption b { display: block; font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 860px) { .bts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* In use: press-pack films */
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.reels figure, .wild figure, .bts-tools figure { margin: 0; }
.reels video { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--paper-2); }
.reels figcaption, .wild figcaption { margin-top: 8px; font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.wild-label { margin-top: 48px; }
.wild { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
.wild video { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--paper-2); }
.wild figcaption { text-transform: none; letter-spacing: 0; font: 14px var(--sans); color: var(--ink); }
.bts-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.bts-tools video { display: block; width: 100%; height: auto; border-radius: 8px; background: #1a1a1a; }
.bts-tools figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.bts-tools figcaption b { display: block; font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 860px) {
  /* reels scroll sideways on phones */
  .reels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .reels figure { flex: 0 0 62%; scroll-snap-align: start; }
  .wild { grid-template-columns: 1fr; }
  .bts-tools { grid-template-columns: 1fr; }
}

/* Paradigms: films */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pair figure, .film { margin: 0; }
.pair video, .film video { display: block; width: 100%; height: auto; border-radius: 8px; background: #145AFF; }
.pair figcaption, .film figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }

.facts .dd-lines a { display: block; width: fit-content; }

/* Contact Grid: type generator v2 */
.v2 { margin: 56px 0 48px; }
.v2-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; margin-bottom: 20px; }
.v2-head p:not(.label) { margin: 0; color: var(--ink-2); max-width: 62ch; }
.v2-film video { background: #1a1a1a; }
@media (max-width: 860px) { .v2-head { grid-template-columns: 1fr; gap: 8px; } }

/* Contact Grid: the system, behind the scenes */
.sys { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; margin-top: 88px; padding-top: 32px; border-top: 1px solid var(--rule); }
.sys-text h3 { margin: 8px 0 14px; font-size: 26px; }
.sys-text p:not(.label) { color: var(--ink-2); max-width: 46ch; }
.sys-demo { margin: 0; }
.sys-demo canvas { display: block; width: 100%; aspect-ratio: 16 / 10; background: #1a1a1a; border-radius: 8px; }
.sys figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.sys-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.sys-controls button {
  font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.sys-controls button.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.sys-readout { margin-left: 8px; font: 11px var(--mono); color: var(--ink-3); }

/* one engine, two front ends */
.shells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shell { position: relative; padding: 16px; border: 1px solid var(--rule); border-radius: 8px; }
.shell ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.shell-kicker { margin: 0; font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.shell-name { margin: 4px 0 0; font: 15px var(--mono); }
.shell-core { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.shell-core .shell-kicker { color: #00ff6a; }
.shell-core ul { color: rgba(255, 255, 255, 0.7); font-family: var(--mono); font-size: 13px; }
.shell-core::before, .shell-core::after { /* the core feeds both sides */
  content: ""; position: absolute; top: 50%; width: 12px; border-top: 1px dashed #00ff6a;
}
.shell-core::before { right: 100%; }
.shell-core::after { left: 100%; }
.shell-code { grid-column: 1 / -1; margin: 4px 0 0; }
.shell-code pre { margin: 0; }

/* arrival patterns */
.patterns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.patterns figure { margin: 0; }
.patterns canvas { display: block; width: 100%; aspect-ratio: 1; background: #1a1a1a; border-radius: 6px; }
.patterns figcaption { margin-top: 6px; font: 11px var(--mono); color: var(--ink-2); }
.patterns figcaption em { font-style: normal; color: var(--ink-3); }

/* drivers */
.drivers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.driver { margin: 0; padding: 12px 14px 10px; background: #1a1a1a; border-radius: 8px; color: #fff; }
.driver canvas { display: block; width: 100%; height: 72px; margin-top: 8px; }
.driver-head { display: flex; justify-content: space-between; gap: 8px; font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.driver-head span:last-child { color: #00ff6a; text-transform: none; letter-spacing: 0; text-align: right; }
.driver-code { margin-top: 6px; font: 11px var(--mono); color: rgba(255, 255, 255, 0.5); }

/* font export */
.fx { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.fx canvas { display: block; width: 100%; aspect-ratio: 1; background: #1a1a1a; border-radius: 4px; outline: 1px solid transparent; outline-offset: 1px; }
.fx canvas.is-capturing { outline-color: #00ff6a; }
.fx-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: fx; }
.fx-steps li { font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px; }
.fx-steps li.is-active { color: #000; background: #00ff6a; border-color: #00ff6a; }

@media (max-width: 860px) {
  .sys { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .shells { grid-template-columns: 1fr; }
  .shell-core::before, .shell-core::after { top: auto; left: 50%; right: auto; width: 0; height: 12px; border-top: 0; border-left: 1px dashed #00ff6a; }
  .shell-core::before { bottom: 100%; }
  .shell-core::after { top: 100%; }
  .patterns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drivers { grid-template-columns: 1fr; }
  .fx { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* TTFB Mono hero: a Network panel that sends real requests */
.dt-panel {
  position: relative; display: flex; flex-direction: column;
  height: 75vh; min-height: 560px; background: #202124; color: #e8eaed;
  border-top: 1px solid #3c4043; font: 12px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.dt-toolbar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: #292a2d; border-bottom: 1px solid #3c4043; white-space: nowrap; }
.dt-rec { width: 10px; height: 10px; border-radius: 50%; background: #f28b82; box-shadow: 0 0 0 3px rgba(242, 139, 130, 0.18); flex: none; }
.dt-icon { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #9aa0a6; cursor: pointer; }
.dt-icon:hover { background: #3c4043; color: #e8eaed; }
.dt-icon svg { width: 15px; height: 15px; }
.dt-sep { width: 1px; height: 18px; background: #3c4043; flex: none; }
.dt-type input {
  width: 220px; height: 24px; padding: 0 8px; border: 1px solid #5f6368; border-radius: 4px;
  background: #202124; color: #e8eaed; font: 13px ui-monospace, "SF Mono", Menlo, monospace;
}
.dt-type input:focus { outline: 0; border-color: #8ab4f8; }
.dt-type input::placeholder { color: #80868b; }
.dt-select select { height: 24px; padding: 0 6px; border: 1px solid #5f6368; border-radius: 4px; background: #202124; color: #e8eaed; font: inherit; cursor: pointer; }
.dt-status { color: #81c995; overflow: hidden; text-overflow: ellipsis; }
.dt-link { margin-left: auto; color: #8ab4f8; text-decoration: none; }
.dt-link:hover { text-decoration: underline; }
.dt-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dt-ruler { position: relative; overflow: hidden; height: 20px; border-bottom: 1px solid #3c4043; font: 10px ui-monospace, "SF Mono", Menlo, monospace; color: #9aa0a6; }
.dt-ruler span { position: absolute; top: 0; height: 100%; padding: 4px 4px 0; border-left: 1px solid #3c4043; }
.dt-overview { position: relative; flex: 1 1 auto; min-height: 0; border-bottom: 1px solid #3c4043; }
.dt-overview canvas { display: block; width: 100%; height: 100%; }
.dt-table { flex: none; }
.dt-table .dt-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 0.7fr 0.6fr 0.6fr 0.7fr minmax(0, 2fr); height: 21px; border-bottom: 1px solid #2d2e31; }
.dt-table .dt-row > span { padding: 3px 8px; border-right: 1px solid #3c4043; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-table .dt-row > span:last-child { border-right: 0; }
.dt-table .dt-head { background: #292a2d; color: #9aa0a6; border-bottom: 1px solid #3c4043; }
.dt-table #dt-rows { height: calc(8 * 21px); overflow: hidden; }
.dt-table .dt-row.is-failed { color: #f28b82; }
.dt-wf { position: relative; }
.dt-wf i { position: absolute; top: 6px; height: 8px; background: #8ab4f8; border-radius: 1px; }
.dt-wf i.ping { background: #80868b; top: 9px; height: 2px; }
.dt-wf i.is-wait { background: #81c995; }
.dt-foot { flex: none; height: 24px; padding: 4px 10px; background: #292a2d; color: #9aa0a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .dt-panel { height: 80vh; }
  .dt-toolbar { flex-wrap: wrap; height: auto; padding: 6px 10px; row-gap: 6px; }
  .dt-type input { width: 150px; }
  .dt-status, .dt-link, .dt-sep { display: none; }
  .dt-table .dt-row { grid-template-columns: minmax(0, 2fr) 0.7fr 0.8fr minmax(0, 1.4fr); }
  .dt-table .dt-row > span:nth-child(3), .dt-table .dt-row > span:nth-child(4) { display: none; }
  .dt-table #dt-rows { height: calc(5 * 21px); }
}

/* TTFB Mono: captures */
.captures { display: grid; gap: 10px; }
.capture { margin: 0; padding: 10px 12px 8px; background: #202124; border-radius: 8px; }
.capture figcaption { display: flex; justify-content: space-between; gap: 12px; font: 11px var(--mono); color: #bdc1c6; margin-bottom: 6px; }
.capture figcaption span:last-child { color: #81c995; }
.capture canvas { display: block; width: 100%; height: 110px; }
#captures-cal .capture canvas { height: 130px; }
.captures-note { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); max-width: 62ch; }
.captures-intro { margin-bottom: 24px; }
.captures-intro h3 { margin: 8px 0 0; font-size: 26px; }
#captures-load-note { margin-top: 14px; font-size: 14px; }

/* TTFB Mono: glyph viewer */
.tg-glyph { display: grid; gap: 4px; padding: 18px; background: #202124; border-radius: 8px; color: #e8eaed; }
.tg-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.tg-cells { display: grid; grid-template-columns: repeat(5, clamp(26px, 4.2vw, 52px)); gap: 4px; }
.tg-cells i { aspect-ratio: 1; background: rgba(255, 255, 255, 0.06); border-radius: 2px; }
.tg-cells i.on { background: #8ab4f8; }
.tg-glyph.is-render { padding: 18px 18px 18px 14px; }
.tg-render { display: block; width: 100%; height: calc(7 * clamp(26px, 4.2vw, 52px) + 24px); }
.tg-source { margin: 0; font-size: 13px; color: var(--ink-3); }
.gv-switch button:disabled { opacity: 0.4; cursor: progress; }
.tg-host { font: 11px var(--mono); color: #9aa0a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-requests { margin: 0; padding: 0; list-style: none; font: 11px var(--mono); color: var(--ink-2); max-height: 220px; overflow: auto; }
.tg-requests li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, auto); gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.tg-requests li span:first-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-grid { font-family: var(--mono); background: none; border: 0; gap: 0; }
.tg-grid button { box-shadow: 0 0 0 0.5px var(--rule); }
.tg-grid button { padding: 9px; color: var(--ink); }
.tg-grid button canvas { display: block; width: 100%; height: 100%; }
.tg-grid button.is-active { background: #8ab4f8; color: #202124; }

/* sliders inside the system demos */
.sys-range { display: flex; align-items: center; gap: 10px; font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.sys-range input { width: 180px; accent-color: #8ab4f8; }
.sys-range span { min-width: 52px; text-transform: none; letter-spacing: 0; color: var(--ink); }
#lanes-demo, #sched-demo { background: #202124; aspect-ratio: 16 / 8 }

