/* ── epicdomain re-theme for the Periodic Table app ─────────────────────
   Overrides ONLY the chrome variables declared at the top of styles.css
   (light + dark themes). The ten element-category colours (.cat-*) are
   intentionally left untouched — they encode scientific meaning.

   Selectors are scoped to html[data-theme=…] so they win over the site's
   own :root tokens regardless of stylesheet load order. The app's theme
   toggle (light/dark) therefore keeps working on the site. */

html[data-theme="light"] {
  --bg: #f7f2fb;
  --bg-panel: #ffffff;
  --bg-tile: #fdfbff;
  --fg: #251338;
  --fg-dim: #6f618c;
  --border: #e4dcf0;
  --tile-fg: #1c0f2b;
  --shadow: 0 1px 3px rgba(40, 20, 70, 0.14);
  --hover: rgba(86, 11, 173, 0.1);
  --accent: #7209b7;
}

html[data-theme="dark"] {
  --bg: #0a0113;
  --bg-panel: #120720;
  --bg-tile: #1a0c2e;
  --fg: #f2eefb;
  --fg-dim: #b7abd4;
  --border: rgba(183, 171, 212, 0.22);
  --tile-fg: #f2eefb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  --hover: rgba(255, 255, 255, 0.1);
  --accent: #4cc9f0;
}

/* Park the app's sticky top bar just below the site's minimal header. */
.topbar {
  top: var(--header-h-minimal, 52px);
}
