/* Blog theme for the chart kit: a dark stage (.fig) on a paper page.
   Values are the kit's own dark block (tokens.css html[data-theme=dark], native-charts.css) with the blog text, muted
   and lime accent. Needs <html data-theme="dark"> (shim.js sets it): the kit's tooltip, dossier and tracker rules
   are keyed on that attribute. tokens.css is not copied; this file defines the few tokens the kit CSS reads. */
.fig {
  /* fonts and shape tokens read by chart-kit.css */
  --font-ui: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --font-display: "Fraunces", Georgia, serif;
  --om-font-display: var(--font-display);
  --om-r-control: 10px; --om-t-body: 14px; --om-track-display: -.015em; --om-num: tabular-nums slashed-zero;
  --om-focus: #baf44c; --om-focus-w: 2px; --ck-focus: #baf44c;
  --om-e3: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .55);

  /* --ck-*: chart-kit.css tokens (dark values; accent = blog lime) */
  --ck-fg-loud: #f1efe6;         /* KPI value, legend hover, tooltip text */
  --ck-fg-normal: #9aa99e;       /* axis tick text, legend text, bar-value labels */
  --ck-fg-soft: #7f8a80;         /* tooltip title / label, pill scale */
  --ck-fg-disable: #4a554d;
  --ck-fg-on-loud: #ffffff;      /* tooltip values */
  --ck-surface-white: #131c16;   /* marker ring, tooltip (light shell) */
  --ck-surface-disable: #162019; /* empty meter cells, heat cells */
  --ck-surface-soft: #2a372e;    /* grid lines and axis lines (kit #1b251f, lifted to show on #0d1410) */
  --ck-surface-subdued: #34423a; /* neutral bars */
  --ck-surface-loud: #1f2a23;    /* dark tooltip shell */
  --ck-surface-muted: #2f3b33;   /* tooltip ring */
  --ck-tip-ring: rgba(241, 239, 230, .12);
  --ck-accent-50: rgba(186, 244, 76, .11);
  --ck-accent-100: rgba(186, 244, 76, .24);
  --ck-accent-300: #93c83a;
  --ck-accent-500: #baf44c;      /* focus bar, band, line, active tick, lit meter cells */
  --ck-accent-600: #a3dc36;
  --ck-accent-800: #5f8a1c;
  --ck-on-accent: #0f1c16;
  --ck-danger-50: rgba(244, 121, 159, .12); --ck-danger-500: #f4799f;
  --ck-good-50: rgba(111, 180, 255, .12);   --ck-good-500: #6fb4ff;
  --ck-shadow-ink: 0 0 0;

  /* --nc-*: native-charts.css theme read by core.js theme() and mini.js */
  --nc-bg: transparent;
  --nc-surface: #131c16;
  --nc-text: #f1efe6;
  --nc-muted: #9aa99e;
  --nc-grid: rgba(241, 239, 230, .085);
  --nc-axis: rgba(241, 239, 230, .18);
  --nc-signal: #baf44c;
  --nc-border: rgba(241, 239, 230, .14);
  --nc-tooltip-bg: #0e120f;
  --nc-tooltip-text: #f1efe6;
  --nc-1: #F0E442; --nc-2: #CC79A7; --nc-3: #7FB5FF; --nc-4: #009E73;
  --nc-5: #D55E00; --nc-6: #C7C7C7; --nc-7: #F0E442; --nc-8: #CC79A7;
  --nc-font-ui: var(--font-ui); --nc-font-mono: var(--font-mono); --nc-font-num: var(--font-display);
  color: #f1efe6;
}
/* the plot box needs a height: every chart fills it (set it per figure) */
.fig .fig-plot { position: relative; width: 100%; }
.fig .nc-root--inline { min-height: inherit; }
/* mini charts: tooltip colours come from --nc-tooltip-*, give it the kit's dark ring */
.fig .mc-tip { box-shadow: 0 0 0 1px rgba(241, 239, 230, .14); font-family: var(--font-ui) !important; }
.fig .mc-svg text { font-family: var(--font-ui); }
/* bars.js "YTD" tag (current-year bar): the kit styles it in the app's sw-analytics.css, not in the copied files */
.fig .nc-ytd { paint-order: stroke; stroke: #0d1410; stroke-width: 3px; stroke-linejoin: round; fill: var(--nc-muted); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; pointer-events: none; }
/* tracker readout box and hover card: the kit styles these in the app's sw-tracker.css, not in the copied files */
.fig .nct-note { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 8px 12px; font-family: var(--font-ui); white-space: nowrap; }
.fig .nct-note__eyebrow, .fig .nct-note__k { font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--nct-dim); }
.fig .nct-note__hero { display: flex; align-items: baseline; gap: 6px; }
.fig .nct-note__total { font: 500 28px/1 var(--font-display); color: var(--nc-signal); font-variant-numeric: tabular-nums; }
.fig .nct-note__unit, .fig .nct-note__meta { font: 500 11px/1.2 var(--font-mono); color: var(--nct-dim); }
.fig .nct-note__top { display: flex; align-items: baseline; gap: 6px; font: 500 11px/1.2 var(--font-ui); }
.fig .nct-note__name { color: var(--nct-text); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.fig .nct-note__v { color: var(--nct-neon); font-family: var(--font-mono); }
.fig .nct-tip__title { font: 600 13px/1.2 var(--font-ui); color: var(--ck-fg-on-loud); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.fig .nct-tip__ledger { display: grid; gap: 2px; margin: 4px 0 0; }
.fig .nct-tip__ledger div { display: flex; justify-content: space-between; gap: 14px; }
.fig .nct-tip__ledger dt { color: var(--ck-fg-normal); }
.fig .nct-tip__ledger dd { margin: 0; color: var(--ck-fg-on-loud); }
.fig .nct-tip__hero { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.fig .nct-tip__value { font: 500 20px/1 var(--font-display); color: var(--nc-signal); }
.fig .nct-tip__unit, .fig .nct-tip__hint { font: 500 10px/1.2 var(--font-mono); color: var(--ck-fg-normal); }
