/* GitLab-inspired document typography, with responsive MkDocs navigation. */
:root {
  --md-text-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --md-primary-fg-color: #29253b;
  --md-accent-fg-color: #1f75cb;
}
[data-md-color-scheme="default"] {
  --md-default-fg-color: #1f1e24;
  --md-default-fg-color--light: #626168;
  --md-default-bg-color: #fff;
  --md-typeset-a-color: #1068bf;
  --md-code-bg-color: #f2f1f5;
  --notes-border: #dcdcde;
  --notes-muted-bg: #fbfafd;
}
[data-md-color-scheme="slate"] {
  --md-typeset-a-color: #9dc7f1;
  --notes-border: #45434d;
  --notes-muted-bg: #292834;
}
.md-grid { max-width: 76rem; }
.md-header { box-shadow: none; }
.md-tabs { background: var(--md-default-bg-color); color: var(--md-default-fg-color); border-bottom: 1px solid var(--notes-border); }
.md-tabs__link { opacity: 1; }
.md-tabs__item--active { border-bottom: 2px solid var(--md-typeset-a-color); }
.md-tabs__item--active .md-tabs__link { color: var(--md-typeset-a-color); }
.md-nav__link--active { color: var(--md-typeset-a-color); }
.md-typeset { font-size: .8rem; line-height: 1.6; }
.md-typeset h1 { font-size: 1.75em; font-weight: 600; line-height: 1.3; letter-spacing: normal; color: var(--md-default-fg-color); margin: 0 0 1rem; padding-bottom: .3em; border-bottom: 1px solid var(--notes-border); }
.md-typeset h2 { font-size: 1.5em; font-weight: 600; line-height: 1.3; margin: 1.5em 0 .65em; padding-bottom: .3em; border-bottom: 1px solid var(--notes-border); }
.md-typeset h3 { font-size: 1.25em; font-weight: 600; }
.md-typeset p { margin: 0 0 1em; }
.md-typeset a:hover { text-decoration: underline; }
.md-typeset li { margin-bottom: .25em; }
.md-typeset img { max-width: 100%; height: auto; }
.md-typeset .arithmatex { overflow-x: auto; overflow-y: hidden; }
.md-typeset table:not([class]) { font-size: 1em; border: 1px solid var(--notes-border); border-radius: 0; display: table; width: 100%; border-collapse: collapse; }
.md-typeset table:not([class]) th { background: var(--notes-muted-bg); font-weight: 600; }
.md-typeset table:not([class]) th, .md-typeset table:not([class]) td { padding: .5em .8em; border: 1px solid var(--notes-border); }
.md-typeset__table { display: block; }
.md-typeset blockquote { border-color: var(--notes-border); color: var(--md-default-fg-color--light); }
.md-typeset .repo-intro { text-align: center; }
.md-typeset .repo-intro p { margin: .8rem 0; }
.md-typeset .repo-intro h1 { margin-bottom: .75rem; }
.repo-map { display: block; margin: 1rem auto .5rem; }
.repo-map img { display: block; margin: auto; }
.repo-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.repo-badge { display: inline-flex; overflow: hidden; border-radius: 2px; color: white; font-size: 11px; line-height: 20px; }
.repo-badge span { background: #525e71; padding: 0 9px; }
.repo-badge strong { background: #1f63d5; padding: 0 10px; }
.repo-badge:nth-child(2) strong { background: #00838f; }
.repo-badge:nth-child(3) strong { background: #6f42c1; }
.md-typeset .grid.cards > ul > li { border-radius: 4px; border-color: var(--notes-border); box-shadow: none; }
@media (max-width: 600px) {
  .md-typeset { font-size: .8rem; }
  .md-typeset h1 { font-size: 1.55em; }
  .md-typeset table:not([class]) th, .md-typeset table:not([class]) td { padding: .45em .6em; }
}

/* The restore controls stay in the sticky header even when a sidebar is hidden. */
.reading-controls { display: flex; align-items: center; flex-shrink: 0; gap: .3rem; }
.reading-toggle { display: none; color: inherit; background: transparent; border: 1px solid #ffffff60; border-radius: 4px; padding: .25rem .45rem; font: inherit; font-size: .65rem; cursor: pointer; white-space: nowrap; }
.reading-toggle:hover { background: #ffffff18; }
.reading-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (min-width: 60em) {
  .reading-toggle--secondary { display: block; }
  .reading-hide-secondary .md-sidebar--secondary { display: none; }
}
@media (min-width: 76.25em) {
  .reading-toggle--primary { display: block; }
  .reading-hide-primary .md-sidebar--primary { display: none; }
}

.md-typeset .topic-hero { margin: 1.2rem 0 1.5rem; }

/* Constrain only the article: header, navigation and mobile drawers stay stable. */
.reading-width-control { display: none; align-items: center; gap: .35rem; font-size: .65rem; white-space: nowrap; }
.reading-width-control input { width: 5rem; accent-color: #a9ccff; cursor: pointer; }
.reading-width-control output { min-width: 3.2em; font-variant-numeric: tabular-nums; }
.reading-width-reset { color: inherit; font: inherit; cursor: pointer; border: 1px solid #ffffff60; border-radius: 4px; padding: .25rem .35rem; }
.reading-width-control :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.reading-width-help { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 60em) {
  .reading-width-control { display: flex; }
  .md-content__inner { max-width: min(var(--reading-width, 960px), calc(100% - 2.4rem)); margin-left: auto !important; margin-right: auto !important; }
}
