/* Design tokens. Colour roles (--bg, --surface, --text, --accent, etc.) come from the suite's
   shared theme (/_wb/wb.css, loaded alongside this file) so Cheatsheets follows the same
   light/dark toggle (the dock, bottom left) as every other app instead of switching on its own.
   Only layout tokens and the syntax-highlight colours stay local. */
:root {
  --accent-text: var(--wb-on-accent);
  --code-bg: var(--wb-surface-2);
  --code-text: var(--wb-ink);
  --tok-kw: #6d28d9;
  --tok-str: #0b6b3a;
  --tok-num: #9a3f08;
  --tok-com: var(--wb-ink-2);

  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-hero: clamp(2rem, 5vw, 3rem);

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 40px;
  --radius: 10px;
  --radius-sm: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-wb-theme="light"]) { --tok-kw: #c4a5ff; --tok-str: #8fdc9c; --tok-num: #ffb27a; }
}
:root[data-wb-theme="dark"] { --tok-kw: #c4a5ff; --tok-str: #8fdc9c; --tok-num: #ffb27a; }

/* bridge: this app's own token names onto the suite's */
:root {
  --bg: var(--wb-bg); --surface: var(--wb-surface); --text: var(--wb-ink); --muted: var(--wb-ink-2);
  --border: var(--wb-line); --accent: var(--wb-accent); --danger: var(--wb-danger);
}
