/* Figures are drawn twice, once per palette (see tools/docs/figstyle.py);
   give them a little air and keep a caption close underneath. */
.md-typeset figure img {
  border-radius: 0.2rem;
}

.md-typeset figcaption {
  max-width: none;
  margin-top: 0.4em;
}

/* The logo's colours: deep navy for the header, its teal for accents. The
   teal is darkened on the light scheme, where the bright one is unreadable
   as link text on white. */
:root {
  --md-primary-fg-color: #0b1530;
  --md-primary-fg-color--light: #1a2a55;
  --md-primary-fg-color--dark: #060c1d;
  --md-accent-fg-color: #0f9c87;
  --md-accent-fg-color--transparent: rgba(15, 156, 135, 0.1);
}

/* Links take the primary colour by default, and the navy one vanishes on the
   dark background: they get the logo's teal there instead. */
[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #2ef2d0;
  --md-accent-fg-color--transparent: rgba(46, 242, 208, 0.1);
  --md-typeset-a-color: #5ce1c8;
}

.md-header__button.md-logo img {
  height: 1.8rem;
}
