/* Hearth docs: the TestZeus look, matching the Hearth web UI.
   Manrope for text, JetBrains Mono for code, Silkscreen for the product name; slate ink,
   TestZeus blue as the one accent, square corners. Fonts are self-hosted (SIL OFL 1.1,
   licences in assets/fonts). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/manrope-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/manrope-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/manrope-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("fonts/manrope-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/silkscreen-latin-400-normal.woff2") format("woff2");
}

:root {
  --md-text-font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --md-code-font-family: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --hearth-pixel: "Silkscreen", ui-monospace, monospace;
}

[data-md-color-scheme="default"] {
  --md-default-bg-color: #ffffff;
  --md-default-fg-color: #0f172a;
  --md-default-fg-color--light: #475569;
  --md-default-fg-color--lighter: #64748b;
  --md-default-fg-color--lightest: #e2e8f0;
  --md-primary-fg-color: #ffffff;
  --md-primary-fg-color--light: #f8fafc;
  --md-primary-fg-color--dark: #f1f5f9;
  --md-primary-bg-color: #0f172a;
  --md-primary-bg-color--light: #475569;
  --md-accent-fg-color: #1d4ed8;
  --md-accent-fg-color--transparent: rgba(37, 99, 235, 0.1);
  --md-typeset-a-color: #2563eb;
  --md-code-bg-color: #f1f5f9;
  --md-code-fg-color: #0f172a;
  --md-footer-bg-color: #0f172a;
  --md-footer-bg-color--dark: #020617;
  --md-footer-fg-color: #f1f5f9;
  --md-typeset-color: #0f172a;
  --md-typeset-mark-color: #dbeafe;
  --md-admonition-bg-color: #ffffff;
  --hearth-line: #e2e8f0;
}

[data-md-color-scheme="slate"] {
  color-scheme: dark;
  --md-hue: 222;
  --md-default-bg-color: #020617;
  --md-default-fg-color: #f1f5f9;
  --md-default-fg-color--light: #a3b0c2;
  --md-default-fg-color--lighter: #8391a7;
  --md-default-fg-color--lightest: #1e293b;
  --md-primary-fg-color: #0b1120;
  --md-primary-fg-color--light: #111a2e;
  --md-primary-fg-color--dark: #020617;
  --md-primary-bg-color: #f1f5f9;
  --md-primary-bg-color--light: #a3b0c2;
  --md-accent-fg-color: #93c5fd;
  --md-accent-fg-color--transparent: rgba(96, 165, 250, 0.14);
  --md-typeset-a-color: #60a5fa;
  --md-code-bg-color: #111a2e;
  --md-code-fg-color: #f1f5f9;
  --md-footer-bg-color: #0b1120;
  --md-footer-bg-color--dark: #01040f;
  --md-footer-fg-color: #f1f5f9;
  --md-typeset-color: #f1f5f9;
  --md-typeset-table-color: #1e293b;
  --md-typeset-mark-color: #172554;
  --md-code-hl-comment-color: #8391a7;
  --md-shadow-z1: 0 1px 0 rgba(0, 0, 0, 0.4);
  --md-admonition-fg-color: #f1f5f9;
  --md-admonition-bg-color: #0b1120;
  --hearth-line: #1e293b;
}

/* Header: white (or slate-950) with a hairline, like the Hearth top bar. */
.md-header {
  border-bottom: 1px solid var(--hearth-line);
  box-shadow: none;
}

.md-header--shadow {
  box-shadow: none;
}

.md-tabs {
  border-bottom: 1px solid var(--hearth-line);
}

/* The product name in the TestZeus pixel face. */
.md-header__topic:first-child .md-ellipsis {
  font-family: var(--hearth-pixel);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.md-search__form,
.md-search__input {
  border-radius: 0;
}

[data-md-color-scheme="default"] .md-search__form {
  background: #f1f5f9;
}

/* Tight Manrope headings; h2 labels carry the "///" accent. */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--md-default-fg-color);
}

.md-typeset h1 {
  font-weight: 700;
}

.md-typeset h2::before {
  content: "/// ";
  font-family: var(--md-code-font-family);
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--md-typeset-a-color);
}

/* Square corners everywhere. */
.md-typeset code,
.md-typeset pre,
.md-typeset pre > code,
.md-typeset .admonition,
.md-typeset details,
.md-typeset table:not([class]),
.md-typeset .tabbed-set,
.md-typeset kbd,
.md-typeset .md-button,
.md-clipboard,
.md-search__output,
.md-top,
.md-source__fact {
  border-radius: 0;
}

.md-typeset .md-button {
  font-weight: 600;
}

.md-typeset .md-button--primary {
  background: var(--md-typeset-a-color);
  border-color: var(--md-typeset-a-color);
  color: var(--md-default-bg-color);
}

.md-typeset table:not([class]) {
  border: 1px solid var(--hearth-line);
  box-shadow: none;
}

.md-typeset table:not([class]) th {
  font-family: var(--md-code-font-family);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md-default-fg-color--lighter);
}

.md-typeset .admonition,
.md-typeset details {
  border-width: 0 0 0 3px;
  box-shadow: none;
}

.md-typeset :focus-visible,
.md-nav__link:focus-visible,
.md-header__button:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 2px;
}
