/* US-21 overview panel (kindacritic/ui_overview.py). Tokens only: every colour
 * comes from kindacritic/assets/tokens.css. Bars take the chart blue
 * (--series-1); the score numeral takes the amber accent, never the chart. */

.ov {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--pad);
  min-width: 0;
}
.ov-main { display: grid; gap: 18px; min-width: 0; }
.ov-score { min-width: 0; }

.ov-num {
  margin: 0; display: flex; align-items: baseline; gap: 4px;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.ov-num b {
  color: var(--accent); font-size: 52px; font-weight: 800; letter-spacing: -.03em;
}
.ov-den { color: var(--ink-muted); font-size: 18px; font-weight: 600; }
.ov-verdict { margin: 10px 0 2px; color: var(--ink); font-size: 17px; font-weight: 700; }
.ov-count { margin: 0; color: var(--ink-muted); font-size: 13px; }
.ov-none { margin: 0; color: var(--ink-muted); font-style: italic; font-size: 13px; }

.ov-hist { margin: 0; min-width: 0; }
.ov-chart { display: block; width: 100%; max-width: 360px; }
/* The SVG scales its own labels, so its width is capped to keep them near 13px. */
.ov-axis { stroke: var(--baseline); stroke-width: 1; }
.ov-tick { stroke: var(--ink-muted); stroke-width: 2; }
.ov-bar { fill: var(--series-1); }
.ov-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ov-labels { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); margin-top: 4px;
             color: var(--ink-muted); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.ov-hist figcaption { margin-top: 6px; color: var(--ink-muted); font-size: 12px; }

.ov-stats {
  list-style: none; margin: 16px 0 0; padding: 12px 0 0;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  color: var(--ink-2); font-size: 14px;
}
.ov-stats b { color: var(--ink); font-weight: 800; }

/* Desktop: the score sits left, the histogram beside it, the stats row below. */
@media (min-width: 900px) {
  .ov-main { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
  .ov-num b { font-size: 64px; }
}

/* Phones: a 16px gutter and no widening. The stacked order is score, histogram, stats. */
@media (max-width: 640px) {
  .ov { padding: 14px; }
  .ov-num b { font-size: 44px; }
}
