/* Site theme on top of Material. Colors that are ours, not Material's, are
   variables here so the design export (docs/site/design/) can name them.

   The typography and the navigation below are the graphist's design, adopted
   from the design panel (docs/site/design/tweaks.json, 2026-11-09). Rules start
   with `body` so they win over Material's equivalent rules, as in the panel. */

/* Fonts, as variable fonts so any weight renders exactly (mkdocs.yml sets
   `font: false`, so Material loads none itself). */
@import url("https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,100..900;1,100..900&family=Geist:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

:root {
  --equine-nav-bg-color: #7e8185;
  --md-text-font: "Aleo";
  --md-code-font: "Roboto Mono";
}

body[data-md-color-scheme="default"] {
  --equine-nav-bg-color: #3f4650;
}

/* Left column (navigation) background, every page. The scroll area and the
   sticky title paint their own background, and the title fades into the page
   with a shadow, so all three are set. */
.md-sidebar--primary,
.md-sidebar--primary .md-sidebar__scrollwrap,
.md-sidebar--primary .md-nav--primary > .md-nav__title {
  background-color: var(--equine-nav-bg-color);
}

.md-sidebar--primary .md-nav--primary > .md-nav__title {
  box-shadow: 0 0 0.4rem 0.4rem var(--equine-nav-bg-color);
}

/* Material insets the scroll area from the column's edges; with a colored
   column that shows as a step under the title, so it spans the full width. */
.md-sidebar--primary .md-sidebar__scrollwrap {
  margin-inline: 0;
}

/* Header and content */

body .md-header__topic {
  font-family: "Aleo", sans-serif;
  font-weight: 700;
}

body .md-content .md-typeset {
  line-height: 1.5;
  letter-spacing: 0.01em;
}

body .md-content .md-typeset strong,
body .md-content .md-typeset b {
  font-weight: 1000;
}

body .md-typeset h1 {
  font-size: 60px;
  font-weight: 296;
  margin-bottom: 16px;
}

body .md-typeset h2 {
  font-size: 30px;
  line-height: 1.35;
}

body .md-typeset .admonition,
body .md-typeset details {
  border-radius: 4px;
}

/* The home page's lede (`{ .chapo }` in index.md): named by the graphist, no
   style of its own yet. */

/* Navigation */

body .md-sidebar--primary .md-sidebar__inner {
  padding-right: 14px;
  padding-left: 0;
}

body .md-sidebar--primary .md-nav__link {
  font-family: "Geist", sans-serif;
  font-size: 18px;
  line-height: 1.15;
}

/* A link's color leaves hover and focus to Material's accent color. */
:root body[data-md-color-scheme="default"] .md-sidebar--primary .md-nav__link:not(:hover):not(:focus) {
  color: #fffafa;
}

/* Section titles. A section with an index page has its title as a link inside
   a container; the text properties reach that link too. */
body .md-sidebar--primary .md-nav__item--section > .md-nav__link,
body .md-sidebar--primary .md-nav__item--section > .md-nav__container > .md-nav__link {
  font-family: "Geist", sans-serif;
  font-size: 25px;
  font-weight: 350;
  font-style: normal;
}

body .md-sidebar--primary .md-nav__item--section > .md-nav__link strong,
body .md-sidebar--primary .md-nav__item--section > .md-nav__link b {
  font-weight: 1;
}

/* The current page's link */
body .md-sidebar--primary .md-nav__link--active {
  font-family: "Geist", sans-serif;
  font-size: 18px;
  font-weight: 350;
  line-height: 0.7;
  padding-left: 15px;
  padding-right: 0;
}

body .md-sidebar--primary .md-nav__link--active strong,
body .md-sidebar--primary .md-nav__link--active b {
  font-weight: 1;
}
