/* tokens.css — Tokens, reset, base type and shared primitives.
   Split from styles.css at its original section boundary; order is unchanged. */
/* radar — night ink and highlighter.
   The chart's near-black is the site's ground; charcoal plates lift one step
   from it, warm off-white carries the type, and the highlighter is the one
   action. Green and coral carry signed money across every route. */

:root {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  /* One family for the whole terminal. Roboto carries headings, labels, body
     copy and figures; tabular numerals do the alignment that monospace used to.
     Code is the one exception and uses the platform's code face below. */
  --sans: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--sans);
  --display: var(--sans);
  --code: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;

  /* One role scale for every screen. Six sizes, four weights, one tracking
     value; no component may introduce a seventh size or a second family. */
  --text-micro: .75rem;    /* 12px: table heads, small labels and badges */
  --text-label: .8125rem;  /* 13px: dense labels, table heads, metadata */
  --text-body: 1rem;       /* 16px: body, controls, inputs, table names */
  --text-heading: 1.25rem; /* 20px: card and section heads, item figures */
  --text-title: 2rem;      /* 32px: app and public page titles */
  --text-display: 3.5rem;  /* 56px: marketing hero and price */

  --fw-display: 700;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;


  --leading-display: 1.08;
  --leading-heading: 1.25;
  --leading-body: 1.55;
  --leading-label: 1.4;
  --leading-tight: 1;

  --track-display: -.02em;
  --track-label: 0;

  /* Ground, plate, well. The chart's ground is the page; a plate lifts one
     step from it, and a field is cut back into the plate. */
  --bg: #0b0c0e;
  --bg-2: #0f1114;
  --rail: #0b0c0e;
  --card: #111316;
  --card-2: #16191d;
  --field: #191c20;
  --field-2: #21252a;
  --line: #272c32;
  --line-soft: #1b1f23;
  --line-strong: #424950;

  --ink: #f3efe7;
  --ink-2: #d9d3ca;
  --ink-3: #b6b0a7;
  --ink-4: #98938a;

  /* The highlighter carries the action and the live mark: amber on night is
     the one warm thing that means “press this” or “this is current”. */
  --accent: #f6bd3a;
  --accent-2: #ffd878;
  --on-accent: #11120f;

  /* The highlighter is a fill, never a line: yellow on paper is unreadable,
     black on highlighter is the point. --accent-soft is this fill, so every
     selected state reads as marked rather than merely tinted. */
  --marker: #f6bd3a;

  --on-marker: #11120f;
  --peri: #8b93ff;
  --accent-soft: rgba(246, 189, 58, .13);
  --accent-line: rgba(246, 189, 58, .4);

  --up: #73d7a5;
  --down: #ff858c;
  --up-soft: rgba(115, 215, 165, .1);
  --down-soft: rgba(255, 133, 140, .1);

  --radius: 10px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  /* Depth is a black lift under a plate, never a light glow. */
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);

  --shadow-pop: 0 18px 48px rgba(0, 0, 0, .55);

  --hover: rgba(255, 255, 255, .045);
  --inset-line: rgba(255, 255, 255, .065);
  --scrim: rgba(0, 0, 0, .65);
  --scroll: #424a54;

  /* One layout contract for the head and every workspace: the page fills the
     shell, and only the gutter keeps it off the glass. */
  --page-pad: 28px;
  --side-col: 350px;
  --col-gap: 18px;

  --t-quick: 120ms;
  --t-move: 220ms;
  --ease: cubic-bezier(.22, .8, .24, 1);

  /* The plot's ink, read by chart.js as it draws. The chart's ground is the
     page ground; the single line is warm white and the band/crosshair amber. */
  --lime: #f1ede4;
  --lime-dim: #757a81;


  --brand: var(--peri);

  --ch-up: #73d7a5;
  --ch-down: #ff858c;
  --ch-brand: #f6bd3a;
  --ch-axis: #9d998f;
  --ch-plate: #0b0c0e;
  --ch-grid: rgba(243, 239, 231, .055);
  --ch-grid-2: rgba(243, 239, 231, .09);
  --ch-frame: rgba(243, 239, 231, .2);
  --ch-cross: #99958d;
  --ch-note: #c7c2b8;
  --ch-vol: #343940;
  --ch-vol-hi: #49515a;
  --ch-vol-plate: #111317;
  --ch-chip: #1a1d21;
  --ch-chip-line: #3a4048;
  /* The volume lane's two sides, painted as they are: the alpha here is the
     weight of the bar, so nothing fades it a second time (chart.js). */
  --ch-up-fill: rgba(115, 215, 165, .2);
  --ch-down-fill: rgba(255, 133, 140, .16);

  /* The four compared lines, stated by the ground they are read on. */
  --cmp-1: #8b93ff;
  --cmp-2: #5fd3c4;
  --cmp-3: #e08bd1;
  --cmp-4: #a6cf6a;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

/* --------------------------------------------------------------- width --- */
/* A page the app draws is never wider than the glass, whatever a chart was
   measured at when it was drawn. The plot is capped to its own box above, and
   this is the guard under it: no screen may be dragged left and right to find a
   column, a key or a chart's right edge. */
html { background: var(--bg); overflow-x: hidden; overflow-x: clip; }
.chart-wrap, .iv-main, .iv-grid, .col-main, .chart-card, .list-card { max-width: 100%; }.chart-top{ min-width: 0; max-width: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--leading-body);
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
/* A long heading breaks on a word, not after the first orphan; short labels are
   unaffected. Kept here rather than per screen so every page gets the same
   measure. */
h2, h3, h4 {
  font-family: var(--sans);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-heading);
  letter-spacing: 0;
}
h1 {
  font-family: var(--sans);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-display);
  line-height: var(--leading-display);
}
strong, b { font-weight: var(--fw-semibold); }
em, i { font-style: normal; font-weight: var(--fw-medium); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd, samp, pre {
  font-family: var(--code); font-weight: var(--fw-regular);
  font-size: var(--text-label); letter-spacing: 0; font-variant-numeric: normal;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
svg { display: block; }

::selection { background: var(--marker); color: var(--on-marker); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  padding: 9px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font-weight: var(--fw-medium); transition: top var(--t-quick) var(--ease);
}
.skip:focus { top: 12px; }

