/* Colour themes for the landing, legal and not-found pages.
   /js/theme.js sets data-theme on <html> before the page paints. */
:root {
  color-scheme: light;
  --ma-bg: #ffffff;
  --ma-text: #444444;
  --ma-heading: #1c2b36;
  --ma-muted: #6b6b6b;
  --ma-rule: #d2d2d2;
  --ma-sep: #c4c4c4;
  --ma-underline: rgba(107, 107, 107, 0.5);
  --ma-doc-underline: rgba(68, 68, 68, 0.4);
  --ma-panel: #ffffff;
  --ma-panel-border: rgba(28, 43, 54, 0.12);
  --ma-panel-shadow: rgba(28, 43, 54, 0.25);
  --ma-backdrop: rgba(28, 43, 54, 0.35);
  --ma-hover: rgba(28, 43, 54, 0.06);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ma-bg: #0f1215;
  --ma-text: #b4b7bc;
  --ma-heading: #f1efe9;
  --ma-muted: #8a8e95;
  --ma-rule: #2a2f35;
  --ma-sep: #3a4047;
  --ma-underline: rgba(138, 142, 149, 0.6);
  --ma-doc-underline: rgba(180, 183, 188, 0.45);
  --ma-panel: #171b1f;
  --ma-panel-border: rgba(255, 255, 255, 0.09);
  --ma-panel-shadow: rgba(0, 0, 0, 0.6);
  --ma-backdrop: rgba(0, 0, 0, 0.6);
  --ma-hover: rgba(255, 255, 255, 0.07);
}

/* The logo comes in two versions; only the one for the current theme shows. */
.ma-logo-dark,
:root[data-theme="dark"] .ma-logo-light {
  display: none;
}
:root[data-theme="dark"] .ma-logo-dark {
  display: inline;
}
