:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color:        #00434F;
  --md-primary-fg-color--light: #005B6B;
  --md-primary-fg-color--dark:  #002B35;
  --md-accent-fg-color:         #005B6B;
  --md-typeset-a-color:         #0097A7;
}

.md-source__facts {
  display: none;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  color: var(--md-primary-fg-color--dark);
}

/* Material default is .8rem (~16px); bump to match JupyterBook/Sphinx */
.md-typeset {
  font-size: 0.85rem;
}

.md-typeset .admonition,
.md-typeset details {
  font-size: inherit;
}

.md-typeset table:not([class]) {
  font-size: inherit;
}

.md-tabs__link {
  font-size: 0.8rem;
}

.md-header__topic:first-child {
  font-size: 1rem;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #00434F;
  --md-primary-fg-color--light: #005B6B;
  --md-primary-fg-color--dark:  #002B35;
  --md-accent-fg-color:         #005B6B;
  --md-typeset-a-color:         #0097A7;
}

/* In dark mode the --dark heading colour is near-black and invisible
   against the slate background; use a light teal instead. */
[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3,
[data-md-color-scheme="slate"] .md-typeset h4,
[data-md-color-scheme="slate"] .md-typeset h5,
[data-md-color-scheme="slate"] .md-typeset h6 {
  color: #4DD0E1;
}
