/* Unidatum Speech site. The product family's dark ground (powercloud,
   powerbook, powerconduit sites) with this product's amber, plus a light theme.
   Theme: data-theme="auto" follows the system; "light" / "dark" are the toggle. */
:root {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
  /* dark (default) */
  --bg: #080c16;
  --bg-grad: linear-gradient(180deg, #0a1220 0%, #090f1b 30%, #080c16 60%, #06090f 100%);
  --ink: #f0f0f0;
  --dim: rgba(240, 240, 240, 0.72);
  --faint: rgba(240, 240, 240, 0.54);
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.08);
  --code-bg: rgba(0, 0, 0, 0.4);
  --accent: #fbbf24;
  --accent-ink: #1f1300;
  --accent-soft: rgba(251, 191, 36, 0.14);
  --header-bg: rgba(7, 10, 22, 0.85);
  --band-lit: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(251, 191, 36, 0.16), transparent 70%), radial-gradient(ellipse 60% 50% at 90% 100%, rgba(124, 45, 18, 0.28), transparent 70%), linear-gradient(180deg, #0e1226 0%, #070b18 100%);
  --band-deep: radial-gradient(ellipse 80% 60% at 80% 0%, rgba(251, 191, 36, 0.22), transparent 70%), linear-gradient(180deg, #1a1630 0%, #0b0d22 100%);
  /* chart series: the validated dark steps */
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --grid: rgba(255, 255, 255, 0.09);
  --surface: #0b1020;
  --ok: #34d399; --warn: #fbbf24;
}
/* The light values, under both the OS setting (auto) and the toggle. */
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f7f6f2; --bg-grad: linear-gradient(180deg, #fbfaf7 0%, #f7f6f2 50%, #f1efe9 100%);
    --ink: #14120f; --dim: #45413b; --faint: #6b665e; --line: rgba(20, 18, 15, 0.12); --panel: rgba(20, 18, 15, 0.035); --panel-2: rgba(20, 18, 15, 0.07);
    --code-bg: #15181f; --accent: #b45309; --accent-ink: #ffffff; --accent-soft: rgba(180, 83, 9, 0.12); --header-bg: rgba(247, 246, 242, 0.88);
    --band-lit: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(245, 158, 11, 0.18), transparent 70%), radial-gradient(ellipse 60% 50% at 90% 100%, rgba(180, 83, 9, 0.12), transparent 70%), linear-gradient(180deg, #fdf6e7 0%, #f7f6f2 100%);
    --band-deep: radial-gradient(ellipse 80% 60% at 80% 0%, rgba(245, 158, 11, 0.22), transparent 70%), linear-gradient(180deg, #f3e9d4 0%, #f7f6f2 100%);
    --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
    --grid: rgba(20, 18, 15, 0.08); --surface: #fcfcfb; --ok: #047857; --warn: #b45309;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6f2; --bg-grad: linear-gradient(180deg, #fbfaf7 0%, #f7f6f2 50%, #f1efe9 100%);
  --ink: #14120f; --dim: #45413b; --faint: #6b665e; --line: rgba(20, 18, 15, 0.12); --panel: rgba(20, 18, 15, 0.035); --panel-2: rgba(20, 18, 15, 0.07);
  --code-bg: #15181f; --accent: #b45309; --accent-ink: #ffffff; --accent-soft: rgba(180, 83, 9, 0.12); --header-bg: rgba(247, 246, 242, 0.88);
  --band-lit: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(245, 158, 11, 0.18), transparent 70%), radial-gradient(ellipse 60% 50% at 90% 100%, rgba(180, 83, 9, 0.12), transparent 70%), linear-gradient(180deg, #fdf6e7 0%, #f7f6f2 100%);
  --band-deep: radial-gradient(ellipse 80% 60% at 80% 0%, rgba(245, 158, 11, 0.22), transparent 70%), linear-gradient(180deg, #f3e9d4 0%, #f7f6f2 100%);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --grid: rgba(20, 18, 15, 0.08); --surface: #fcfcfb; --ok: #047857; --warn: #b45309;
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg-grad); background-attachment: fixed; min-height: 100vh; line-height: 1.55; -webkit-font-smoothing: antialiased; font-size: 17px; }
body.writeup { background-attachment: scroll; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; margin-top: 0; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
code, pre { font-family: var(--mono); }
:not(pre) > code { background: var(--panel-2); border-radius: 5px; padding: 0.1em 0.4em; font-size: 0.88em; color: var(--ink); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.narrow { max-width: 48rem; }
.muted, .faint { color: var(--faint); }
.dim { color: var(--dim); }
.small { font-size: 0.9rem; }
.eyebrow { margin: 0 0 0.8rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: 999px; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 4px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.brand img { border-radius: 6px; }
.site-nav { margin-left: auto; display: none; gap: 1.3rem; font-size: 0.95rem; }
.site-nav a, .mobile-nav a { color: var(--dim); }
.site-nav a:hover, .mobile-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.theme-toggle, .menu-toggle, .chart-btn, .legend-item, .copy, .tab { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.theme-toggle { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.site-nav + .theme-toggle { margin-left: 0; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun, :root[data-theme="auto"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon, :root[data-theme="auto"] .theme-toggle .moon { display: inline; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] .theme-toggle .sun { display: inline; } :root[data-theme="auto"] .theme-toggle .moon { display: none; } }
.menu-toggle { padding: 0.45rem 0.8rem; font-size: 0.9rem; }
.mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 0.5rem 5% 1rem; }
.mobile-nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .site-nav { display: flex; } .menu-toggle, .mobile-nav { display: none !important; } }

/* sections */
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 5.5rem 0; } }
.band-lit { background: var(--band-lit); }
.band-deep { background: var(--band-deep); }
.band-plain { border-top: 1px solid var(--line); }
.lead { font-size: 1.2rem; color: var(--dim); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 10px; padding: 0.8rem 1.3rem; font-weight: 600; border: 1px solid transparent; transition: background-color 0.15s, border-color 0.15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--panel-2); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 1.5rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.chip { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); padding: 0.1rem 0.7rem; font-size: 0.78rem; font-weight: 600; vertical-align: middle; }
.chip-done { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip-planned { color: var(--faint); background: var(--panel); }
.chip-now { border-color: var(--ok); color: var(--ok); }
.placeholder { border: 1px dashed var(--line); border-radius: 12px; padding: 1rem 1.2rem; color: var(--faint); background: var(--panel); }
.placeholder::before { content: "Placeholder: "; font-weight: 700; color: var(--warn); }
.callout { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1.1rem; color: var(--dim); margin: 1.5rem 0; }

/* hero */
.hero { padding: 4rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } .hero { padding: 5.5rem 0 5rem; } }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { max-width: 36rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.4rem; padding: 0; list-style: none; color: var(--dim); font-size: 0.95rem; }
.hero-facts li::before { content: "\2713\00a0"; color: var(--accent); font-weight: 700; }
.hero-demo { border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 1.2rem 1.3rem; font-family: var(--mono); font-size: 0.86rem; min-height: 15rem; position: relative; overflow: hidden; }
.hero-demo .demo-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--faint); font-family: var(--sans); font-size: 0.82rem; margin-bottom: 0.9rem; }
.hero-demo .demo-head .live { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-demo .demo-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.demo-line { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.6rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--line); min-height: 1.9rem; align-items: baseline; }
.demo-line .t { color: var(--faint); }
.demo-line .partial { color: var(--dim); }
.demo-line .final { color: var(--ink); font-weight: 600; }
.demo-line .event { color: var(--accent); }
.wave { display: flex; align-items: center; gap: 3px; height: 1.6rem; }
.wave i { display: block; width: 3px; height: 30%; background: var(--accent); border-radius: 2px; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: 0.15s; } .wave i:nth-child(3n) { animation-delay: 0.3s; } .wave i:nth-child(5n) { animation-delay: 0.45s; }
.wave.quiet i { animation: none; height: 15%; background: var(--faint); }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 95%; } }

/* stat tiles */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-top: 2rem; }
.stat { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 1.1rem 1.2rem; }
.stat .n { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat .n small { font-size: 1rem; font-weight: 600; color: var(--dim); margin-left: 0.2rem; }
.stat .l { color: var(--dim); font-size: 0.92rem; margin-top: 0.3rem; }
.stat .s { color: var(--faint); font-size: 0.78rem; margin-top: 0.4rem; }

/* diagrams */
.diagram-wrap { margin: 1.5rem 0; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 1rem; overflow-x: auto; }
.diagram { display: block; width: 100%; height: auto; max-width: 900px; margin: 0 auto; font-family: var(--sans); }
.dg-node { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.dg-accent { stroke: var(--accent); fill: var(--accent-soft); }
.dg-muted { fill: transparent; stroke-dasharray: 4 3; }
.dg-text { fill: var(--ink); font-size: 12.5px; }
.dg-text-accent { font-weight: 600; }
.dg-group { fill: var(--panel); stroke: var(--line); stroke-dasharray: 5 4; }
.dg-group-label { fill: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.dg-edge { fill: none; stroke: var(--dim); stroke-width: 1.5; }
.dg-edge.dashed { stroke-dasharray: 5 4; stroke: var(--faint); }
.dg-arrow { fill: var(--dim); }
.dg-edge-label { fill: var(--dim); font-size: 11px; }
.dg-edge-bg { fill: var(--surface); opacity: 0.92; }
.dg-lifeline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.dg-note { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.dg-note-text { fill: var(--ink); font-size: 11px; }
.dg-loop { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 3; }
.dg-loop-label { fill: var(--faint); font-size: 10.5px; font-weight: 600; }

/* charts */
.chart { margin: 1.8rem 0; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 1.1rem 1.2rem 1rem; }
.chart.placeholder { padding: 1rem; }
.chart-head { position: relative; padding-right: 5rem; }
.chart-title { margin: 0; font-weight: 700; font-size: 1.02rem; }
.chart-sub { margin: 0.25rem 0 0; color: var(--dim); font-size: 0.88rem; }
.chart-tools { position: absolute; right: 0; top: 0; }
.chart-btn { padding: 0.25rem 0.7rem; font-size: 0.8rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin: 0.8rem 0 0.2rem; }
.legend-item { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.65rem; font-size: 0.82rem; color: var(--dim); border-radius: 999px; }
.legend-item.is-off { opacity: 0.45; text-decoration: line-through; }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend-swatch.legend-line { height: 3px; width: 16px; border-radius: 2px; }
.chart-plot { position: relative; }
.chart-plot svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.chart-plot .grid { stroke: var(--grid); stroke-width: 1; }
.chart-plot .axis { stroke: var(--line); stroke-width: 1; }
.chart-plot .tick { fill: var(--faint); font-size: 11.5px; }
.chart-plot .axis-label { fill: var(--dim); font-size: 11.5px; }
.chart-plot .value { fill: var(--ink); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.chart-plot .flag { fill: var(--warn); font-size: 10.5px; font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.chart-plot .line { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-plot .line.dashed { stroke-dasharray: 5 4; }
.chart-plot .band { opacity: 0.12; }
.chart-plot .ring { fill: var(--surface); }
.chart-plot .mark { transition: opacity 0.1s; }
.chart-plot .mark.is-hover { opacity: 0.8; }
.chart-plot .hit { fill: transparent; cursor: default; }
.chart-plot .marker { stroke: var(--warn); stroke-width: 1.2; stroke-dasharray: 6 4; }
.chart-plot .marker-label { fill: var(--warn); font-size: 11px; font-weight: 600; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.6rem; font-size: 0.8rem; line-height: 1.35; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); max-width: 240px; z-index: 5; }
.chart-table { overflow-x: auto; margin-top: 0.6rem; }
.chart-note { margin: 0.7rem 0 0; color: var(--dim); font-size: 0.88rem; }
.chart-source { margin: 0.3rem 0 0; color: var(--faint); font-size: 0.78rem; font-family: var(--mono); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 1.2rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
caption { text-align: left; padding: 0.7rem 0.9rem 0.2rem; color: var(--dim); font-size: 0.85rem; caption-side: top; }
th, td { padding: 0.55rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--panel-2); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 500; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-table th, .chart-table td { font-size: 0.82rem; padding: 0.35rem 0.6rem; }
details.raw { border: 1px solid var(--line); border-radius: 12px; margin: 0.6rem 0; background: var(--panel); }
details.raw summary { padding: 0.8rem 1rem; cursor: pointer; font-weight: 600; }
details.raw summary code { font-weight: 400; margin-left: 0.5rem; }
details.raw .table-wrap { border: 0; margin: 0; border-top: 1px solid var(--line); border-radius: 0; }
details.raw table { font-size: 0.8rem; }

/* code */
pre.code { position: relative; margin: 1.2rem 0; background: var(--code-bg); color: #e6e6e6; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: 0.84rem; line-height: 1.5; }
pre.code code { color: inherit; background: none; padding: 0; font-size: inherit; }
pre.code .copy { position: absolute; top: 0.5rem; right: 0.5rem; color: #cfcfcf; border-color: rgba(255, 255, 255, 0.18); padding: 0.15rem 0.6rem; font-size: 0.75rem; opacity: 0.7; }
pre.code .copy:hover { opacity: 1; }
.tok-c { color: #8b949e; font-style: italic; }
.tok-s { color: #f6c177; }
.tok-k { color: #79c0ff; }
.tok-n { color: #d2a8ff; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0; }
.tab { padding: 0.4rem 0.9rem; font-size: 0.9rem; color: var(--dim); border-radius: 999px; }
.tab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.tab-panel[hidden] { display: none; }

/* prose */
.prose { max-width: 48rem; color: var(--dim); }
.prose h2, .prose h3, .prose h4, .prose strong { color: var(--ink); }
.prose h2 { margin-top: 2.6rem; scroll-margin-top: 5rem; }
.prose h3 { margin-top: 2rem; scroll-margin-top: 5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--accent); }
.wide { max-width: none; }
.two-col { display: grid; gap: 2rem; }
.two-col > *, .hero-grid > *, .grid > * { min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.92rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.toc a { color: var(--dim); } .toc a:hover { color: var(--ink); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.2rem; margin: 1rem 0; }
dl.kv dt { font-weight: 600; } dl.kv dd { margin: 0; color: var(--dim); }
.release .assets { padding-left: 1.2rem; }
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--faint); }
.timeline > li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline > li.now::before { background: var(--ok); border-color: var(--ok); }
.timeline h3 { margin-bottom: 0.3rem; }
.timeline .card ul { padding-left: 1.2rem; margin: 0.5rem 0; } .timeline .card li { margin: 0.4rem 0; color: var(--dim); }

/* barge-in showcase */
.barge { border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 1.2rem 1.3rem; }
.barge-controls { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-bottom: 0.8rem; }
.barge svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.barge .lane-label { fill: var(--dim); font-size: 12px; font-weight: 600; }
.barge .lane-line { stroke: var(--line); }
.barge .tts-bar { fill: var(--s7); }
.barge .mic-bar { fill: var(--s3); }
.barge .ev { fill: var(--surface); stroke: var(--accent); stroke-width: 1.2; }
.barge .ev-text { fill: var(--ink); font-size: 11px; }
.barge .cursor { stroke: var(--accent); stroke-width: 2; }
.barge .axis-t { fill: var(--faint); font-size: 10.5px; }
.barge .ruler { stroke: var(--grid); }
.barge .cut { stroke: var(--s8); stroke-width: 2; stroke-dasharray: 4 3; }
.barge-log { font-family: var(--mono); font-size: 0.82rem; color: var(--dim); min-height: 6.5rem; margin: 0.6rem 0 0; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.barge-log div { padding: 0.12rem 0; } .barge-log .k { color: var(--accent); } .barge-log .f { color: var(--ink); font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 3rem 0 2.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1.4fr auto; } }
.footer-name, .footer-head { font-weight: 600; margin-bottom: 0.3rem; }
.sibling-grid { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.sibling { display: flex; gap: 0.8rem; align-items: flex-start; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 0.8rem; color: var(--ink); }
.sibling:hover { background: var(--panel-2); text-decoration: none; }
.sibling img { border-radius: 8px; flex: none; }
.sibling-name { display: block; font-weight: 600; }
.sibling-line { display: block; font-size: 0.85rem; color: var(--faint); }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: var(--dim); } .footer-nav a:hover { color: var(--ink); }
.trademarks { margin-top: 2rem; max-width: 60rem; font-size: 0.78rem; }
.footer-legal { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; text-align: center; color: var(--faint); font-size: 0.88rem; }

/* writeup */
.writeup main { max-width: 64rem; margin: 0 auto; padding: 2rem 5%; }
.writeup h1 { font-size: 2.4rem; }
.writeup .doc-meta { color: var(--faint); font-size: 0.92rem; margin-bottom: 2rem; }
.writeup section { padding: 1.5rem 0; }
.writeup h2 { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.writeup .prose { max-width: none; }
@media print { .site-header, .theme-toggle, .chart-tools, .copy, .barge-controls { display: none !important; } body { background: #fff; color: #000; } .chart, .card { break-inside: avoid; } }
