/* The documentation in the site's own colors: a black header in both schemes, the brand blue
   for links and accents, and the site's reading surfaces. Copied into the build by gen_pages.py. */

:root {
  --md-primary-fg-color: #000000;
  --md-primary-fg-color--light: #0b1626;
  --md-primary-fg-color--dark: #000000;
  --md-primary-bg-color: #e6ebf1;
  --md-primary-bg-color--light: #b6c1ce;
  --md-accent-fg-color: #168fff;
  --md-text-font: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --md-code-font: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

[data-md-color-scheme='default'] {
  --md-default-bg-color: #ffffff;
  --md-default-fg-color: #10161d;
  --md-default-fg-color--light: #566372;
  --md-code-bg-color: #f1f4f8;
  --md-accent-fg-color: #0b62c4;
  --md-typeset-a-color: #0b62c4;
  --md-typeset-mark-color: rgba(11, 98, 196, 0.14);
}

[data-md-color-scheme='slate'] {
  --md-default-bg-color: #070b11;
  --md-default-fg-color: #e4ebf2;
  --md-default-fg-color--light: #8f9cab;
  --md-code-bg-color: #0a1119;
  --md-accent-fg-color: #8ce4ff;
  --md-typeset-a-color: #5cb2ff;
  --md-typeset-mark-color: rgba(22, 143, 255, 0.2);
}

/* MaterialX colors its top bar from these two; black in both schemes, as on the site. */
body[data-md-color-scheme] {
  --mx-topbar-bg: rgba(0, 0, 0, 0.9);
  --mx-topbar-fg: #e6ebf1;
  --mx-search-outline: rgba(150, 175, 205, 0.35);
}
.md-header {
  border-bottom: 1px solid rgba(22, 143, 255, 0.24);
}
.md-tabs {
  background: #000000;
}
.md-header .md-search__form:not(:focus-within) .md-search__input,
.md-header .md-search__form:not(:focus-within) .md-search__input::placeholder,
.md-header .md-search__form:not(:focus-within) .md-search__icon {
  color: #b6c1ce;
}

/* The current entry in the navigation is a link; color it like one. */
body[data-md-color-scheme] .md-nav__link--active,
body[data-md-color-scheme] .md-nav__link--active code {
  color: var(--md-typeset-a-color) !important;
}

/* A signature is read like code and should break at the commas, not scroll sideways. */
.doc-signature > pre > code {
  font-size: 0.72rem;
}
.doc-contents table td:first-child {
  white-space: nowrap;
}
.md-typeset table:not([class]) {
  font-size: 0.72rem;
}
