/* Navy-blue brand primary for the header and navigation bar.

   Keyed to the colour *scheme* (always "default" or "slate"), not to
   `primary: custom`: the first palette entry in mkdocs.yml is the "follow the
   system" one, which carries no primary, so the statically rendered page — what
   a first-time visitor sees before any JavaScript resolves the palette — falls
   back to Material's default (indigo) for `data-md-color-primary`. Overriding by
   scheme applies the navy in that state too. This file loads after Material's
   stylesheet, so with equal specificity it wins. */
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #16284d;
  --md-primary-fg-color--light: #2a3f6e;
  --md-primary-fg-color--dark:  #0d1a35;
  --md-primary-bg-color:        #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
}

/* In dark mode the default link colour (and the active navigation item) is the
   primary, i.e. navy, which is unreadable on the dark background. Use a light
   azure of the same blue family instead. */
[data-md-color-scheme="slate"] {
  --md-typeset-a-color: #8ab4f8;
}
