/* Mentionloom design tokens. Loaded after the installed Orbit 0.2 runtime tokens and before every
   product stylesheet. Orbit's palette scales (--bg-*, --fg-*, --sky-*, …) stay available underneath;
   product code should reference the semantic tokens here, never the scales.
   Every colour used as text is checked against its surfaces in checks/orbit.test.mjs. */
:root {
  /* ── Colour: neutrals carry the interface ─────────────────────────────────────── */
  --canvas: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f7f7f6;
  --surface-3: #f0f1f2;
  --ink: #191a24;
  --ink-2: #676a74;          /* secondary text: ≥ 4.5:1 on every surface and tint */
  --ink-3: #9a9ea8;          /* disabled text and placeholder marks only, never body copy */
  --hairline: #e9e9eb;
  --hairline-strong: #d7d8dc;

  /* ── Colour: one signal ───────────────────────────────────────────────────────── */
  --signal: #2563eb;         /* fills, marks, selected states */
  --signal-ink: #1e40c9;     /* text and strokes on light surfaces */
  --signal-soft: #e8eefc;    /* selected row, your-brand row */
  --signal-tint: #f3f6fe;    /* hover on a selectable row */

  /* ── Colour: semantics, reserved for meaning ──────────────────────────────────── */
  --positive: #33c758;
  --positive-ink: #197333;
  --positive-soft: #effbf2;
  --negative: #ff2f00;
  --negative-ink: #d32905;
  --negative-soft: #fff3f0;
  --caution: #ffa600;
  --caution-ink: #966100;
  --caution-soft: #fff8eb;

  /* ── Colour: the answer mark's states (fill, half, ring, empty, dashed) ───────── */
  --state-recommended: var(--signal);
  --state-shortlisted: #8fb0f5;
  --state-mentioned: var(--signal);        /* drawn as a ring */
  --state-absent: #d7d8dc;
  --state-failed: #c7c9cf;                 /* drawn as a dashed ring */

  /* ── Colour: buyer stages are ordered neutrals, not hues ──────────────────────── */
  --stage-1: #f6f7f9;
  --stage-2: #edeff2;
  --stage-3: #e3e5ea;              /* primary ink only; secondary text sits on stage-1 and stage-2 */

  /* ── Type: one family, a fixed scale, tabular figures where numbers align ─────── */
  --font-sans: OpenRunde, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text-12: 0.75rem;
  --text-13: 0.8125rem;
  --text-14: 0.875rem;
  --text-16: 1rem;
  --text-18: 1.125rem;
  --text-22: 1.375rem;
  --text-28: 1.75rem;
  --text-32: 2rem;
  --text-36: 2.25rem;
  --leading-tight: 1.2;
  --leading-heading: 1.3;
  --leading-body: 1.5;
  --tracking-display: -0.02em;

  /* ── Space: the 4 px grid ─────────────────────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;

  /* ── Radius: a hierarchy, not one value ───────────────────────────────────────── */
  --radius-control: 8px;
  --radius-row: 10px;
  --radius-panel: 14px;
  --radius-card: 18px;
  --radius-feature: 24px;
  --radius-pill: 999px;

  /* ── Elevation: only what floats ──────────────────────────────────────────────── */
  --shadow-popover: 0 3px 8px #0000000b, 0 12px 32px #00000013;
  --shadow-drawer: -10px 0 60px #1819250a;
  --shadow-command: 0 20px 80px #1819251a;

  /* ── Motion: state changes only, no entrances ─────────────────────────────────── */
  --motion-fast: 140ms;
  --motion-medium: 220ms;
  --motion-panel: 280ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* ── Layout ───────────────────────────────────────────────────────────────────── */
  --content-width: 1160px;
  --gutter: 24px;
  --control-height: 2.25rem;
  --icon-size: 1.125rem;
  --border-width: 1px;
  --focus-width: 2px;
  --focus-offset: 3px;
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
}

/* ── Compatibility: the names the installed Orbit runtime and the existing product CSS read.
      Each one resolves to a token above, so the whole cascade moves together. Remove an alias
      only when its last consumer is gone. ───────────────────────────────────────────────── */
:root {
  --background: var(--canvas);
  --background-subtle: var(--surface-2);
  --surface: var(--surface-1);
  --subtle: var(--surface-2);
  --border: var(--hairline);
  --border-control: #868892;
  --text: var(--ink);
  --muted: var(--ink-2);
  --accent: var(--signal);
  --accent-soft: var(--signal-soft);
  --accent-text: var(--signal-ink);
  --selection-surface: var(--signal-tint);
  --success-text: var(--positive-ink);
  --danger-text: var(--negative-ink);
  --warning-text: var(--caution-ink);
  --danger: var(--negative);
  --warning: var(--caution);
  --focus-color: var(--signal-ink);

  --text-xs: var(--text-12);
  --text-sm: var(--text-13);
  --text-base: var(--text-14);
  --text-lg: var(--text-16);
  --text-xl: var(--text-22);
  --text-2xl: var(--text-28);
  --text-3xl: var(--text-32);
  --text-display-sm: var(--text-28);
  --text-display: var(--text-28);
  --metric-size: var(--text-28);

  --radius-input: var(--radius-control);
  --radius-badge: 6px;

  --shadow-soft: none;
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-panel: var(--shadow-popover);
  --shadow-control-hover: 0 1px 2px #1819250d, 0 3px 6px #1819250b;
  --shadow-primary: none;
  --shadow-pressed: inset 0 1px 2px #18192512;

  --chart-stroke: var(--signal-ink);
  --chart-previous: var(--ink-2);
  --chart-fill: var(--signal);
  --chart-grid: var(--hairline);
  --engine-claude: #b86743;
  --engine-perplexity: #247e89;
  --sticky-surface: #ffffffef;
  --overlay-surface: #fffffff5;
  --overlay-backdrop: #18192528;
}
