/* AirCaps Live 1 research note: what a5s-async.css doesn't already cover (latency lines, ranges, head-to-head, tables). */
:root {
  --l1-us: #4c3a91;
  --l1-aai: #c27a4a;   /* AssemblyAI */
  --l1-dg: #3f8a7c;    /* Deepgram */
  --l1-el: #8c8a83;    /* ElevenLabs */
  --l1-ms: #5f7fb8;    /* Microsoft */
}

/* latency distribution */
.l1-line { fill: none; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; opacity: 0.85; }
.l1-line.is-us { stroke-width: 3.4; opacity: 1; }
.l1-ref { stroke: var(--l1-us); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.55; }
.l1-callout { fill: var(--l1-us); font: 600 13px/1 var(--sans); paint-order: stroke; stroke: var(--paper, #f3f0e7); stroke-width: 4px; }
.l1-callout-sub { fill: var(--muted); font: 400 12px/1 var(--sans); paint-order: stroke; stroke: var(--paper, #f3f0e7); stroke-width: 4px; }
.l1-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2); }
.l1-legend li { display: inline-flex; align-items: center; gap: 7px; }
.l1-legend li.is-us { color: var(--accent); font-weight: 600; }
.l1-legend .key-line { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--key); background: none; }
.l1-legend li.is-us .key-line { border-top-width: 3.5px; }
.l1-legend .key-line.is-dashed { border-top-style: dashed; }

/* p50-p99 ranges */
.l1-span { stroke: var(--viz-other-line); stroke-width: 2; }
.l1-span.is-us { stroke: var(--viz-us); stroke-width: 3; opacity: 0.55; }
.l1-p50, .l1-p99 { fill: var(--paper, #f3f0e7); stroke: var(--viz-other); stroke-width: 2; }
.l1-p50.is-us, .l1-p99.is-us { stroke: var(--viz-us); }
.l1-p95 { fill: var(--viz-other); }

/* head-to-head */
.l1-mid { stroke: var(--ink); stroke-width: 1.2; opacity: 0.5; }
.l1-us-text { fill: var(--accent); }

/* precision against recall: each model's 600 ms point joined to its 1,000 ms point */
.l1-link { stroke: var(--viz-other-line); stroke-width: 1.5; stroke-dasharray: 3 3; }
.l1-link.is-us { stroke: var(--viz-us); opacity: 0.6; }
.viz-dot.is-hollow, .viz-dot-us.is-hollow { fill: var(--paper, #f3f0e7); stroke: var(--viz-other); stroke-width: 1.6; }
.viz-dot-us.is-hollow { stroke: var(--viz-us); }

/* full results tables */
.l1-table-wrap { overflow-x: auto; margin: 0 0 8px; border-top: 1px solid var(--rule); }
.l1-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.l1-table th, .l1-table td { padding: 11px 12px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.l1-table thead th { font: 500 11.5px/1.3 var(--sans); color: var(--muted); vertical-align: bottom; white-space: normal; }
.l1-table th:first-child { text-align: left; padding-left: 0; white-space: normal; min-width: 200px; }
.l1-table tbody th { font-weight: 400; color: var(--ink-2); }
.l1-table tr.is-us th, .l1-table tr.is-us td { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.l1-table td.best { color: var(--accent); font-weight: 600; }
.l1-table tr.is-us td.best { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.l1-table--wide { min-width: 860px; }
.l1-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); max-width: 90ch; }

/* the headline numbers: four across */
.numbers.l1-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .numbers.l1-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hero: p95 latency and word error rate, two columns per model */
.l1-side-sub { fill: var(--muted); font: 400 11.5px/1 var(--sans); }
.l1-side-name { fill: var(--ink-2); font: 400 14px/1 var(--sans); }
.l1-side-name.is-us { fill: var(--accent); font-weight: 600; }
.l1-side-val { fill: var(--muted); font: 400 12px/1 var(--sans); font-variant-numeric: tabular-nums; }
.l1-side-val.is-us { fill: var(--accent); font-weight: 600; }
@media (max-width: 720px) {
  .splash { height: auto; max-height: none; }
  .l1-side-name { font-size: 12px; }
  .l1-side-val { font-size: 11px; }
}
.hero-chart .viz[data-chart="hero-double"] { flex: 1 1 0; min-height: 280px; overflow: hidden; }
.l1-dbl-a { fill: var(--viz-other); }
.l1-dbl-b { fill: var(--viz-other); opacity: 0.4; }
.l1-dbl-a.is-us { fill: var(--viz-us); }
.l1-dbl-b.is-us { fill: #1f2b4d; opacity: 1; }
.l1-dbl-base { stroke: var(--ink); stroke-width: 1; opacity: 0.35; }
@media (max-width: 720px) { .hero-chart .viz[data-chart="hero-double"] { flex: none; min-height: 0; overflow: visible; } }
.l1-dbl-name { font-size: 12.5px; }
