/* SPDX-FileCopyrightText: 2026 Jeremy Martinon */
/* SPDX-License-Identifier: GPL-3.0-or-later */

:root {
  --md-text-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --md-code-font: ui-monospace, SFMono-Regular, Consolas, monospace;
}
[data-md-color-scheme="default"] {
  color-scheme: light;
  --md-primary-fg-color: #18394e;
  --md-typeset-a-color: #086f72;
  --md-accent-fg-color: #087f82;
}
[data-md-color-scheme="slate"] {
  color-scheme: dark;
  --md-primary-fg-color: #18394e;
  --md-typeset-a-color: #8ddbd3;
  --md-accent-fg-color: #8ddbd3;
}
.md-grid { max-width: 74rem; }
.md-typeset { font-size: .84rem; line-height: 1.7; }
.md-typeset h1 { color: var(--md-default-fg-color); font-weight: 650; letter-spacing: -.025em; }
.md-typeset h2 { font-weight: 600; letter-spacing: -.015em; }
.md-typeset .grid.cards > ul > li { border-radius: .45rem; padding: 1rem; }
.md-typeset .grid.cards > ul > li:focus-within { border-color: var(--md-accent-fg-color); }
.md-typeset .grid.cards > ul > li > p:first-child { font-size: .92rem; }
.md-typeset .arithmatex { overflow-x: auto; overflow-y: hidden; padding-block: .25rem; }
.md-typeset table:not([class]) { font-size: .75rem; }
.md-typeset img { max-width: 100%; height: auto; }
.md-typeset .theory-figure { margin: 2rem auto; }
.md-typeset .theory-figure img {
  display: block;
  width: 82%;
  max-width: 620px;
  margin-inline: auto;
}
.md-typeset .overview-figure {
  display: block;
  width: 82%;
  max-width: 460px;
  margin: 1.5rem auto;
}
.md-typeset .theory-figure figcaption {
  max-width: none;
  margin: .8rem 0 0;
  font-size: .76rem;
  font-style: normal;
  line-height: 1.65;
  text-align: left;
}
@media print {
  [data-md-color-scheme] { color-scheme: light; }
  .md-typeset { font-size: 10pt; }
}
@media (max-width: 600px) {
  .md-typeset .theory-figure img,
  .md-typeset .overview-figure { width: 100%; }
}
