/* Bioinformatics Visualization: the series colour tokens. Link after motion.js and before
   the page's own <style>. The same values, as resolved hex for d3 scales, live in
   palette.js (BioPalette); its runChecks fails if the two files disagree.
   up = higher / gained / more, down = lower / lost / less, mid = the diverging midpoint,
   accent = the thing in focus (accent-ink for text), neutral = no direction,
   missense / truncating = oncoprint glyphs, cat-1..cat-6 = categorical identities in order.
   Dark values sit under prefers-color-scheme, which docs/lib/motion.js forces to the
   reader's saved theme. */

:root {
  --bio-up: #a83228;
  --bio-down: #245a9c;
  --bio-mid: #ebe9e6;
  --bio-accent: #14a49c;
  --bio-accent-ink: #0a7570;
  --bio-neutral: #6a6f83;
  --bio-grid: #e2e2e8;
  --bio-missense: #6e9567;
  --bio-truncating: #1a1a2e;
  --bio-cat-1: #ac7c00;
  --bio-cat-2: #9f6e98;
  --bio-cat-3: #54581e;
  --bio-cat-4: #483590;
  --bio-cat-5: #986247;
  --bio-cat-6: #870657;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bio-up: #ec6a5a;
    --bio-down: #4f8fd8;
    --bio-mid: #363644;
    --bio-accent: #36c3c0;
    --bio-accent-ink: #5fd3cf;
    --bio-neutral: #6d7286;
    --bio-grid: #2f3547;
    --bio-missense: #aad3a3;
    --bio-truncating: #e4e4ec;
    --bio-cat-1: #d2a13e;
    --bio-cat-2: #e9b3e0;
    --bio-cat-3: #71763d;
    --bio-cat-4: #7e71d2;
    --bio-cat-5: #d49a7e;
    --bio-cat-6: #bd4485;
  }
}

/* Prose helpers: colour a word the way its figure does. */
.t-up { color: var(--bio-up); }
.t-down { color: var(--bio-down); }
.t-accent { color: var(--bio-accent-ink); }
