/* Build-time syntax highlighting (Shiki, dual-theme). Tokens carry
   --shiki-light/--shiki-dark custom properties; the active site mode picks
   one. The block chrome (background, border, radius, padding) stays the
   theme's own .prose pre styling. */

html[data-theme="light"] .prose pre.shiki span {
  color: var(--shiki-light);
}
html[data-theme="dark"] .prose pre.shiki span {
  color: var(--shiki-dark);
}

/* Keep the site's surface, not the Shiki theme's background. */
.prose pre.shiki {
  background: var(--surface) !important;
}

/* TeX that failed to compile (build warns; shows the source) */
.math-error {
  color: var(--muted);
  border-style: dashed;
}
