:root {
  --cobalt: #235990;
  --signal: #a04412;
  --emerald: #19624c;
  --cpu: #687b74;
}

.num { font-variant-numeric: tabular-nums; }
.runtime { display: grid; gap: 1.05rem; }
.runtime-result { margin-top: .14rem; color: var(--mint); font-size: clamp(3.25rem, 7vw, 6.25rem); line-height: .94; letter-spacing: -.08em; }
.runtime-context { margin-top: .55rem; max-width: 40ch; }
.runtime-chart { display: grid; gap: .9rem; margin: 0; }
.runtime-chart dt, .runtime-chart dd { margin: 0; }
.runtime-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .37rem .75rem; }
.runtime-row dt { color: #edf7ee; font-size: .9rem; }
.runtime-row dd { font: 700 .91rem/1.4 var(--figure-type); }
.runtime-row::after { content: ""; grid-column: 1 / -1; height: 8px; background: #b8cbc2; }
.runtime-row:last-child::after { background: linear-gradient(90deg, var(--mint) 2.1974%, #35514a 2.1974%); }
.runtime-note { border-top: 1px solid #4a6d63; margin-top: .25rem; padding-top: .75rem; }
.runtime-note .figure-meta { margin-top: 0; }
.runtime-note a { display: inline-block; margin-top: .4rem; font-size: .875rem; font-weight: 700; }

.project-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.project-links a { display: grid; gap: .28rem; align-content: start; min-width: 0; padding: 1.12rem 1rem 1.12rem 0; text-decoration: none; }
.project-links a + a { border-left: 1px solid var(--line); padding-left: 1rem; }
.project-links a strong { font-size: 1.07rem; color: var(--accent); }
.project-links a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.project-links a small { font-size: .875rem; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.tab-btn { appearance: none; min-height: 40px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); padding: .48rem .72rem; font-size: .87rem; font-weight: 640; cursor: pointer; }
.tab-btn:hover { border-color: var(--accent); }
.tab-btn[aria-selected="true"] { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.panel, .fig-frame { min-width: 0; padding: clamp(.8rem, 2.2vw, 1.65rem); border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.bench-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 1.7rem; }
.bar-list { display: grid; gap: .95rem; }
.bar-row-top { display: flex; flex-wrap: wrap; gap: .12rem .55rem; justify-content: space-between; align-items: baseline; margin-bottom: .27rem; font-size: .9rem; }
.bar-name { font-weight: 640; }
.bar-stat { overflow-wrap: anywhere; }
.bar-track { height: 10px; background: var(--soft); }
.bar-fill { height: 100%; }
.metrics-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.metrics-table tr + tr { border-top: 1px solid var(--line); }
.metrics-table :is(td, th) { padding: .55rem 0 .55rem .55rem; vertical-align: top; }
.metrics-table th { text-align: left; font-weight: 550; padding-left: 0; }
.metrics-table td { text-align: right; overflow-wrap: anywhere; font-weight: 680; }
.fig-frame img { width: 100%; }
.fig-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.fig-cap a { font-weight: 700; }

.report { border-top: 1px solid var(--line); }
.report:last-child { border-bottom: 1px solid var(--line); }
.report summary { padding: .9rem .25rem; color: var(--accent); font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.report summary small { margin-left: .5rem; color: var(--muted); font-weight: 450; font-size: .85rem; }
.report[open] { padding-bottom: .95rem; }
.report .data-table { min-width: 670px; font-size: .875rem; }
.data-table :is(td, th).num { text-align: right; white-space: nowrap; }
.data-table tr.highlight { background: #f9f3e7; }
.pill { display: inline-block; padding: .12rem .4rem; font-size: .82rem; font-weight: 700; background: var(--soft); color: var(--accent); }
.pill.best { color: var(--signal); background: #f8ebdc; }
.pill.ok { color: var(--emerald); background: #e6f3eb; }
.report-note { margin-top: .7rem; color: var(--muted); font-size: .875rem; }
.reproduce pre { margin-block: 1rem; }
.ecosystem-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 2rem; padding: 0; list-style: none; }
.ecosystem-list li { padding-block: .65rem; border-top: 1px solid var(--line); }
.ecosystem-list span { display: block; color: var(--muted); font-size: .9rem; }

@media (max-width: 740px) {
  .bench-grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
}
@media (max-width: 510px) {
  .project-links { grid-template-columns: minmax(0, 1fr); }
  .project-links a + a { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .ecosystem-list { grid-template-columns: minmax(0, 1fr); }
}
