/* Custom primary palette: a muted indigo that reads well on both schemes.
   (Material requires explicit CSS when theme.palette.primary = "custom".) */
:root {
  --md-primary-fg-color: #2f3a56;
  --md-primary-fg-color--light: #47506e;
  --md-primary-fg-color--dark: #1d2436;
  --md-primary-bg-color: #f5f6fa;
  --md-primary-bg-color--dark: #f5f6fa;
  --md-accent-fg-color: #bf5c38;
}

/* Links. Material colours them with the primary colour, and the dark indigo
   above is unreadable on the dark (slate) background. Light scheme: keep
   the indigo for links, which has strong contrast on white. Dark scheme: the
   library's own accent blue, lightened for contrast on slate. */
[data-md-color-scheme="default"] {
  --md-typeset-a-color: #2f4fa8;
  --md-accent-fg-color: #ad5230; /* hover: a shade darker for contrast */
}
[data-md-color-scheme="slate"] {
  --md-typeset-a-color: #8fb3ff;
  --md-accent-fg-color: #f0a27f; /* hover: the light scheme's orange, lifted */
}
