/* ==========================================================================
   CENTAURI 0.5.0 — the chart layer (authored; copied through)
   GENERATED by scripts/generate.mjs from scripts/tokens.source.mjs. Do not edit.
   A local edit is not a disagreement to adjudicate; it is a build that no
   longer reproduces, and scripts/check.mjs will say so.
   ========================================================================== */
/* -----------------------------------------------------------------------------
   CENTAURI — the chart layer. Charts, graphs and stat tiles as first-class objects
   of Centauri Console (ADR-010 §6), drawn to the same grammar as the table.

   What this layer decides, so a chart does not have to:

     - MAGNITUDE IS LENGTH OR POSITION; COLOR ONLY CONFIRMS (invariant 7). The
       bar chart is a column of dimension lines drawn to one stated domain.
     - SERIES COLOR IS IDENTITY, not a library default: --color-series-1..6 were
       solved to clear 3:1 on surface and card in both themes and to separate
       under every color-vision deficiency. Six is the ceiling; a seventh series
       is small multiples.
     - DIRECT LABELS, not a legend. The label sits at the end of its line.
     - NO MOTION ON DATA. A chart that updates redraws; nothing tweens a value
       someone is reading (Carbon, SAP and Primer independently forbid it).
     - Every axis is a hairline, every gridline is a hairline, every tick is
       the tick. Text is the micro label and the centauri value.

   The marks themselves are SVG the product draws (or a library renders); this
   layer supplies the classes that give them the system's color, weight and
   type. data-visualization's chart_check.py lints the chart's spec; this lints
   nothing and styles everything.
   -------------------------------------------------------------------------- */

/* ---- the bar list: a column of dimensions to one domain ------------------- */
.centauri-bars { --domain: 100; margin: 0; padding: 0; list-style: none; display: grid; gap: var(--centauri-scaled-2); }
.centauri-bars > li {
  display: grid;
  grid-template-columns: minmax(6ch, 10rem) minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: var(--centauri-scaled-3);
  min-block-size: var(--centauri-scaled-row-height);
  border-block-end: var(--centauri-static-stroke-hairline) solid var(--color-hairline);
}
.centauri-bars > li > .centauri-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.centauri-bars > li > .centauri-dimension { --centauri-dimension-length: 100%; --domain: inherit; }
.centauri-bars > li > .centauri-value { text-align: end; }
/* the domain is stated on the sheet, under the bars */
.centauri-bars__domain {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--text-micro); color: var(--color-subtle);
  padding-block-start: var(--centauri-scaled-1);
}

/* ---- series ----------------------------------------------------------------- */
.centauri-series-1 { color: var(--color-series-1); }
.centauri-series-2 { color: var(--color-series-2); }
.centauri-series-3 { color: var(--color-series-3); }
.centauri-series-4 { color: var(--color-series-4); }
.centauri-series-5 { color: var(--color-series-5); }
.centauri-series-6 { color: var(--color-series-6); }
/* a sequential encoding reads the seven --color-seq-* steps in order; the
   product sets them on its cells or marks by class or inline style */

/* ---- SVG charts: the drawing conventions ------------------------------------ */
.centauri-chart {
  display: block; inline-size: 100%; block-size: auto;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--color-prose);
  overflow: visible;
}
.centauri-chart .axis { stroke: var(--color-edge); stroke-width: 1; fill: none; shape-rendering: crispEdges; }
.centauri-chart .grid { stroke: var(--color-hairline); stroke-width: 1; fill: none; shape-rendering: crispEdges; }
.centauri-chart .tick { stroke: var(--color-edge); stroke-width: 1; shape-rendering: crispEdges; }
.centauri-chart .label { fill: var(--color-muted); letter-spacing: 0.06em; }
.centauri-chart .value { fill: var(--color-strong); font-variant-numeric: tabular-nums lining-nums; }
.centauri-chart .line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.centauri-chart .area { fill: currentColor; opacity: 0.12; stroke: none; }
.centauri-chart .point { fill: currentColor; stroke: var(--color-surface); stroke-width: 1.5; }
.centauri-chart .bar { fill: currentColor; stroke: var(--color-edge); stroke-width: 1; shape-rendering: crispEdges; }
/* the direct label: the series name at the end of its line, in its color */
.centauri-chart .series-label { fill: currentColor; font-family: var(--font-sans); font-size: var(--text-small); }
/* a mark that is not the point of the chart recedes */
.centauri-chart .muted { opacity: 0.4; }
/* nothing tweens a value someone is reading */
.centauri-chart [data-live], .centauri-chart .line, .centauri-chart .bar, .centauri-chart .point { transition: none; }

/* ---- the sparkline: a line in a cell ----------------------------------------- */
.centauri-sparkline {
  display: inline-block; vertical-align: middle;
  inline-size: 5rem; block-size: 1.25em;
  overflow: visible;
  color: var(--color-edge-strong);
}
.centauri-sparkline .line { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; }
.centauri-sparkline .end { fill: currentColor; }
.centauri-sparkline .base { stroke: var(--color-hairline); stroke-width: 1; shape-rendering: crispEdges; }

/* ---- the stat: one number, its label, its context ----------------------------- */
/* A stat tile is not a card. It is a label, a figure and a dimension, separated
   from its neighbors by a rule. The figure reads at the title step, in mono and
   tabular, because a standalone figure at the centauri step is a table cell. */
.centauri-stat { display: grid; gap: var(--centauri-scaled-1); padding-block: var(--centauri-scaled-3); }
.centauri-stat__value {
  font-family: var(--font-mono);
  font-size: var(--text-title-lg); line-height: var(--text-title-lg--line-height);
  letter-spacing: var(--text-title-lg--letter-spacing);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--color-strong);
}
.centauri-stat__unit { font-size: var(--text-small); color: var(--color-muted); margin-inline-start: var(--centauri-scaled-1); font-family: var(--font-sans); letter-spacing: 0; }
.centauri-stat__context { font-size: var(--text-small); color: var(--color-muted); }
/* `min(10rem, 100%)`, not `10rem`. Under `repeat(auto-fit, ...)` the track
   count is resolved against INDEFINITE available space when the container's
   own intrinsic size is being computed, which gives one track per item -- so
   `minmax(10rem, 1fr)` has a min-content width of items x 10rem, here 620px,
   and a grid parent then sizes its track to that and the page scrolls
   sideways at every width below it. Measured 2026-09-10: an 880px document at
   a 600px viewport, from four stats that would not reflow. `min-inline-size: 0`
   is the other half -- as a grid or flex ITEM this section must be allowed
   under its own min-content, or it re-floors whatever contains it. */
.centauri-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  column-gap: var(--centauri-scaled-6);
  min-inline-size: 0;
}
.centauri-stats > .centauri-stat + .centauri-stat { border-inline-start: var(--centauri-static-stroke-hairline) solid var(--color-hairline); padding-inline-start: var(--centauri-scaled-5); }
@media (max-width: 599.98px) {
  .centauri-stats { grid-template-columns: 1fr; }
  .centauri-stats > .centauri-stat + .centauri-stat { border-inline-start: 0; padding-inline-start: 0; border-block-start: var(--centauri-static-stroke-hairline) solid var(--color-hairline); }
}

/* ---- small multiples: the answer to a seventh series -------------------------- */
/* Same trap as .centauri-stats above, and fixed before it is reported rather
   than after: auto-fill floors at items x 12rem when sized intrinsically. */
.centauri-multiples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr));
  gap: var(--centauri-scaled-5) var(--centauri-scaled-6);
  min-inline-size: 0;
}
.centauri-multiples > figure { margin: 0; display: grid; gap: var(--centauri-scaled-1); }
.centauri-multiples > figure > figcaption { order: -1; }
