/* Unified charcoal discovery. Shared by React, search islands and HTML pages. */
:root {
  color-scheme: dark;
  --color-bg: 210 11% 7%;
  --color-surface: 214 12% 11%;
  --color-raised: 214 12% 15%;
  --color-text: 220 14% 96%;
  --color-muted: 215 9% 73%;
  --color-accent: 225 100% 71.8%; /* = #6F93FF, channels for Tailwind hsl() */
  --color-border: 214 12% 23%;
  --color-control: 214 9% 43%;
  --color-danger: 0 84% 60%;
  --color-success: 145 65% 52%;
  --product-bg: hsl(var(--color-bg));
  --product-surface: hsl(var(--color-surface));
  --product-raised: hsl(var(--color-raised));
  --product-text: hsl(var(--color-text));
  --product-muted: hsl(var(--color-muted));
  --product-accent: #6F93FF; /* the only accent */
  --product-border: hsl(var(--color-border));
  --product-control-border: hsl(var(--color-control));
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Instrument Sans', var(--font-body);
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --text-small: .75rem;
  --text-label: .875rem;
  --text-body: 1rem;
  --h1: 600 clamp(30px, 3.2vw, 40px)/1.1;
  --h2: 600 26px/1.2;
  --h3: 600 18px/1.3;
  --tracking-tight: -0.025em; /* tightest letter-spacing allowed */
  --text-title: clamp(30px, 3.2vw, 40px);
  --text-section: 26px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  /* Two content widths, both starting at the header's left edge. */
  --page-max: 1416px;
  --prose-max: 760px;
  --layout-gutter: 24px;
  --control-height: 2.75rem;
  --radius-control: 6px;
  --radius-card: 10px;
  --radius-pill: 999px; /* filter chips only */
  --product-radius: var(--radius-card);
  --radius-overlay: var(--radius-card);
  --product-ease: cubic-bezier(.23, 1, .32, 1);
  --duration-feedback: 160ms;
  --background: var(--color-bg);
  --foreground: var(--color-text);
  --card: var(--color-surface);
  --card-foreground: var(--color-text);
  --popover: var(--color-raised);
  --popover-foreground: var(--color-text);
  --primary: var(--color-text);
  --primary-foreground: var(--color-bg);
  --secondary: var(--color-raised);
  --secondary-foreground: var(--color-text);
  --muted: var(--color-raised);
  --muted-foreground: var(--color-muted);
  --accent: var(--color-accent);
  --accent-foreground: var(--color-bg);
  --destructive: var(--color-danger);
  --destructive-foreground: 0 0% 100%;
  --success: var(--color-success);
  --border: var(--color-border);
  --input: var(--color-control);
  --ring: var(--color-accent);
  --radius: var(--product-radius);
}
/* Legacy decision surface hook now shares the same dark theme. */
.decision-paper { --product-bg: hsl(var(--color-surface)); color-scheme: dark; }
@media (max-width: 600px) { :root { --layout-gutter: 16px; } }
