/* THE SEVERITY RAMP. ONE DEFINITION, AND THIS IS IT.
 *
 * D142 shipped "pins colour by severity, one ramp everywhere" as CSS only, and
 * the sentence was true about the COLOURS while being false about the SOURCE:
 * the five hexes were physically written out four times in style.css -- the
 * filter chips, the list badge, the pin on the model and the on-model label --
 * with nothing tying them together but the fact that one person typed them all
 * on the same afternoon. Four copies is the state a fifth gets added to, and
 * the dashboard's severity bar was about to be the fifth.
 *
 * So the ramp moves here and every consumer references it. This is invariant
 * 14's argument ("one formatter ... never reimplemented at a call site, which
 * had happened seven times before anyone noticed") applied to a palette rather
 * than to a number.
 *
 * WHAT DOES NOT BELONG HERE:
 *
 *   - The MEASUREMENT orange. #ff9800 is also the colour of every measurement
 *     line, vertex, drag band and toolbar active state in style.css, and it is
 *     the same hex as --sev-high by coincidence rather than by meaning. Those
 *     are NOT var(--sev-high) and must never be rewritten to it, or the day
 *     "high" moves to amber it takes every measurement on the twin with it.
 *
 *   - The PRINT palette. server/src/report.js has its own darker INK map for
 *     the PDF, deliberately left alone by D142: paper is not a dark screen and
 *     #aeea00 on white is illegible. A report is not a viewer.
 *
 * Loaded by index.html (dashboard) and viewer.html (twin). It is a plain
 * same-origin stylesheet, so style-src 'self' covers it with no CSP change.
 */
:root {
  --sev-critical: #ff5252;
  --sev-high: #ff9800;
  --sev-medium: #ffd54f;
  --sev-low: #aeea00;
  --sev-info: #4caf50;

  /* No severity recorded. Not a sixth level -- the ABSENCE of one, which is
   * why it is grey rather than a colder blue that would read as "lowest".
   * A detector never sets severity (tools/import_detections.mjs), so on a
   * freshly imported project this is very nearly the whole population. */
  --sev-none: #9e9e9e;
}
