/* matematik.theme-dark.css (v1.1)
   Dark theme overrides – active when HTML has data-theme="dark"
*/

html[data-theme="dark"]{
  color-scheme: dark;

  --bg: #0f1115;
  --text: #e8eaf0;
  --muted: rgba(232,234,240,0.72);
  --card: #151923;
  --border: rgba(255,255,255,0.14);
  --shadow: 0 10px 26px rgba(0,0,0,0.35);
}

html[data-theme="dark"] .top{
  background: rgba(15,17,21,0.78);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .pill,
html[data-theme="dark"] .theme-toggle{
  background: rgba(21,25,35,0.7);
  border-color: var(--border);
}

html[data-theme="dark"] th,
html[data-theme="dark"] td{
  border-color: rgba(255,255,255,0.18);
}

html[data-theme="dark"] th{
  background: rgba(255,255,255,0.06);
}

html[data-theme="dark"] pre{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

html[data-theme="dark"] details.fold{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

html[data-theme="dark"] .crumbs a{
  border-bottom-color: rgba(232,234,240,0.35);
}
