/* bench.css: the Backtest Bench page only, loaded after /assets/site.css. Colours come from its tokens. */

/* ---------- bench ---------- */

.grade-slab {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.grade {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--warn);
  border: 1px solid var(--warn);
  border-radius: 4px;
  padding: 0.2em 0.5em;
}
.grade-text { font-weight: 600; }

.findings li + li { margin-top: 0.6rem; }
.sev {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bench-fig { margin: 1.25rem 0 1.5rem; max-width: 100%; }
.bench-fig svg {
  display: block;
  width: 100%;
  height: auto;
}
.bench-scroll { max-width: 100%; overflow-x: auto; }
.bench-scroll svg { min-width: 560px; max-width: 760px; }
.bench-fig figcaption {
  margin-top: 0.5rem;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.bx-ink { stroke: var(--text); fill: none; }
.bx-ink-fill { fill: var(--text); }
.bx-warn { stroke: var(--warn); fill: none; }
.bx-warn-area { fill: var(--warn); stroke: var(--warn); }
.bx-grid { stroke: var(--rule); }
.bx-zero { stroke: var(--control); }
.bx-axl {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bx-lab {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--text);
}
.bx-small {
  font-family: var(--font-body);
  font-size: 11px;
  fill: var(--muted);
}

.dim {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 3rem;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.dim-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.dim svg {
  display: block;
  width: 100%;
  height: 0.75rem;
}
.dim-track { fill: var(--rule); }
.dim-bar { fill: var(--text); }
.dim-ref { stroke: var(--warn); stroke-width: 2; }
.dim-val { text-align: right; }

table.figures td.basis { color: var(--muted); }
