/*
 * tokencharts theme. Optional: charts render with the light values below as
 * inline fallbacks. Import this file to get dark mode, then override any
 * --tc-* variable on .tc-chart / .tc-summary / .tc-dashboard (or :root).
 *
 * Dark mode follows the OS setting, and can be forced with
 * data-theme="dark" | "light" on <html>.
 */
:root {
  --tc-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tc-surface: #ffffff;
  --tc-tooltip-bg: #ffffff;
  --tc-text-primary: #191919;
  --tc-text-secondary: #666666;
  --tc-grid: #e7e7e7;
  --tc-axis: #c2c2c2;
  --tc-border: rgba(11, 11, 11, 0.1);
  --tc-track: #eef4fc;
  --tc-other: #9c9c9c;
  --tc-spark: #9c9c9c;
  --tc-delta-good: #006c10;
  --tc-delta-bad: #b42318;

  --tc-series-1: #257de0;
  --tc-series-2: #f47230;
  --tc-series-3: #00b894;
  --tc-series-4: #f2a600;
  --tc-series-5: #ee7fac;
  --tc-series-6: #008a17;
  --tc-series-7: #6a4ce2;
  --tc-series-8: #ec4647;

  --tc-seq-1: #b6d5f8;
  --tc-seq-2: #84b9f3;
  --tc-seq-3: #519ced;
  --tc-seq-4: #2370cd;
  --tc-seq-5: #0f4a96;

  --tc-status-good: #0aac23;
  --tc-status-warning: #fbb315;
  --tc-status-serious: #f18a59;
  --tc-status-critical: #dc3c3d;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --tc-surface: #191919;
    --tc-tooltip-bg: #242424;
    --tc-text-primary: #efefef;
    --tc-text-secondary: #9c9c9c;
    --tc-grid: #303030;
    --tc-axis: #474747;
    --tc-border: rgba(255, 255, 255, 0.1);
    --tc-track: #1e2a3a;
    --tc-other: #6b6b6b;
    --tc-spark: #6b6b6b;
    --tc-delta-good: #53c556;
    --tc-delta-bad: #f07171;
    --tc-series-1: #338ced;
    --tc-series-2: #e76624;
    --tc-series-3: #00a888;
    --tc-series-4: #d28e05;
    --tc-series-5: #e24d8b;
    --tc-series-6: #0aac23;
    --tc-series-7: #9887ef;
    --tc-series-8: #eb6263;
    --tc-seq-1: #0e3d7e;
    --tc-seq-2: #1757ac;
    --tc-seq-3: #2370cd;
    --tc-seq-4: #519ced;
    --tc-seq-5: #9dc8f7;
  }
}

:root[data-theme="dark"] {
  --tc-surface: #191919;
  --tc-tooltip-bg: #242424;
  --tc-text-primary: #efefef;
  --tc-text-secondary: #9c9c9c;
  --tc-grid: #303030;
  --tc-axis: #474747;
  --tc-border: rgba(255, 255, 255, 0.1);
  --tc-track: #1e2a3a;
  --tc-other: #6b6b6b;
  --tc-spark: #6b6b6b;
  --tc-delta-good: #53c556;
  --tc-delta-bad: #f07171;
  --tc-series-1: #338ced;
  --tc-series-2: #e76624;
  --tc-series-3: #00a888;
  --tc-series-4: #d28e05;
  --tc-series-5: #e24d8b;
  --tc-series-6: #0aac23;
  --tc-series-7: #9887ef;
  --tc-series-8: #eb6263;
  --tc-seq-1: #0e3d7e;
  --tc-seq-2: #1757ac;
  --tc-seq-3: #2370cd;
  --tc-seq-4: #519ced;
  --tc-seq-5: #9dc8f7;
}

.tc-plot:focus-visible {
  outline: 2px solid var(--tc-series-1);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (forced-colors: active) {
  .tc-chart svg path,
  .tc-chart svg rect,
  .tc-chart svg circle {
    forced-color-adjust: auto;
  }
}
