/* ── CHART PALETTE — the costs-by-type donut on the Money page ─────────────
   (docs/decisions/project_money.md, step 4)

   OUR OWN TOKEN FILE, beside tokens.css rather than inside it: tokens.css is
   the design handoff verbatim, so a value added there would be lost the next
   time a revision is dropped in, and a literal anywhere else breaks the rule
   that colour values live in token files (tests/test_design_system.py,
   CSS_FILES_ALLOWED_LITERAL_COLOUR).

   ONE COLOUR PER CATEGORY, NEVER PER RANK. A slice is coloured by what it is
   (Lodging is always slot 1), so a trip whose food overtakes its transport
   does not repaint either. Sorted biggest-first on the page; the colour does
   not follow the sort.

   VALIDATED, NOT CHOSEN BY EYE — dataviz validate_palette.js, ALL pairs
   (a donut's neighbours depend on which slices are biggest, so any two can
   touch), against --wp-raised in each theme:
     light (#fefdfb): every check passes; worst CVD ΔE 9.2, normal 16.4.
       Food (aqua) sits at 2.77:1 against the surface — relief is the HTML
       legend beside the chart, which names every slice with its amount and
       share in ink.
     dark  (#1c1914): every check passes; worst CVD ΔE 9.1, normal 18.2.
   Dark is SELECTED from the same hues for the dark surface, not flipped.

   THE HUE WHEEL IS ALREADY SPOKEN FOR on the board — status holds 27/72/150,
   the five parties 185/230/268/305/340 — so a four-hue chart cannot avoid
   both. These sit near status green (Food, 162) and party azure/magenta
   (Lodging 256, Sights 357/333). They never meet: the Money page draws no
   party wash and no status ring, and every slice is named in the legend.
   "Other" is neutral and mixed from the theme, so it flips with it. */
:root {
  --wp-chart-lodging:   oklch(57.5% 0.163 256);   /* #2a78d6 blue    */
  --wp-chart-transport: oklch(67.1% 0.175 41);    /* #eb6834 orange  */
  --wp-chart-food:      oklch(66.9% 0.141 162);   /* #1baf7a aqua    */
  --wp-chart-sights:    oklch(57.2% 0.174 357);   /* #c2407a magenta */
  --wp-chart-other:     color-mix(in oklch, var(--wp-ink) 38%, var(--wp-raised));
}
html[data-theme="dark"] {
  --wp-chart-lodging:   oklch(62.2% 0.161 255);   /* #3987e5 */
  --wp-chart-transport: oklch(62.2% 0.173 40);    /* #d95926 */
  --wp-chart-food:      oklch(62.1% 0.128 163);   /* #199e70 */
  --wp-chart-sights:    oklch(60.3% 0.152 333);   /* #b45aa8 */
}
