/* PML Globals — genuine exceptions only.
   ACSS's body/heading colour tokens are static, so the page base colours that
   must follow the light/dark switch live here. Everything else is on element records. */
html,
body {
  background-color: var(--bg-light);
  background-color: light-dark(var(--bg-light), var(--bg-dark));
  color: light-dark(var(--text-dark), var(--text-light));
}

/* Fallback for browsers without light-dark(): the chosen or system scheme still sets the base. */
html.scheme--dark,
html.scheme--dark body { background-color: var(--bg-dark); color: var(--text-light); }
@media (prefers-color-scheme: dark) {
  html:not(.scheme--light),
  html:not(.scheme--light) body { background-color: var(--bg-dark); color: var(--text-light); }
}
