/* remake docs — the marketing site's register on MkDocs Material.
   Light first on a white page ground (Annex DN: every marketing page is
   white), the teal family (the brand teal #1199b8 on fills, Annexes GH and GI), Plus Jakarta
   Sans for text and Geist Mono for code, self-hosted. The header, footer,
   page heading, docs home and 404 are our own templates (overrides/).
   Dark mode mirrors the app's dark tokens. Values come from
   frontend/src/assets/main.css and frontend/src/site. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-var.woff2") format("woff2");
}

:root {
  --md-text-font: "Plus Jakarta Sans";
  --md-code-font: "Geist Mono";
  --hf-teal: #1199b8;
  --hf-teal-ink: #1199b8;
  --hf-tint: #eafaff;
  --hf-line: #c8edf8;
}

/* ── light ─────────────────────────────────────────────────────────── */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #ffffff;               /* header ground */
  --md-primary-fg-color--light: #ffffff;
  --md-primary-fg-color--dark: var(--hf-tint);
  --md-primary-bg-color: #03080a;               /* header text */
  --md-primary-bg-color--light: rgba(3, 8, 10, 0.69);
  --md-accent-fg-color: var(--hf-teal);
  --md-accent-fg-color--transparent: rgba(17, 153, 184, 0.1);
  --md-accent-bg-color: #ffffff;
  --md-default-bg-color: #ffffff;
  --md-default-fg-color: #03080a;
  --md-default-fg-color--light: rgba(3, 8, 10, 0.69);
  --md-default-fg-color--lighter: rgba(3, 8, 10, 0.42);
  --md-default-fg-color--lightest: rgba(3, 8, 10, 0.08);
  --md-typeset-color: #03080a;
  --md-typeset-a-color: var(--hf-teal-ink);
  --md-code-bg-color: #f4f4f8;
  --md-code-fg-color: #03080a;
  --md-footer-bg-color: #000f14;
  --md-footer-bg-color--dark: #000f14;
  --hf-ground: #ffffff;
  --hf-rule: #e3eef2;
  --hf-panel: #f6f8fa;                          /* the site's picture plate */
  --hf-dots: rgba(226, 232, 240, 0.7);
  --hf-card-shadow: 0 1px 2px rgba(3, 8, 10, 0.04), 0 6px 18px rgba(10, 120, 145, 0.07);
}

/* ── dark (the app's .dark tokens) ─────────────────────────────────── */
[data-md-color-scheme="slate"] {
  --md-hue: 195;
  --md-primary-fg-color: #000f14;
  --md-primary-fg-color--light: #000f14;
  --md-primary-fg-color--dark: #00161d;
  --md-primary-bg-color: #fcfcfe;
  --md-primary-bg-color--light: rgba(252, 252, 254, 0.627);
  --md-accent-fg-color: #7bc9e1;
  --md-accent-fg-color--transparent: rgba(123, 201, 225, 0.12);
  --md-default-bg-color: #000f14;
  --md-default-fg-color: #fcfcfe;
  --md-default-fg-color--light: rgba(252, 252, 254, 0.627);
  --md-default-fg-color--lighter: rgba(252, 252, 254, 0.4);
  --md-default-fg-color--lightest: rgba(252, 252, 254, 0.08);
  --md-typeset-color: #fcfcfe;
  --md-typeset-a-color: #7bc9e1;
  --md-code-bg-color: #072530;
  --md-code-fg-color: #fcfcfe;
  --md-footer-bg-color: #00161d;
  --hf-ground: #000f14;
  --hf-rule: rgba(86, 181, 209, 0.22);
  --hf-panel: #031d26;
  --hf-dots: rgba(86, 181, 209, 0.14);
  --hf-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ── the shell ─────────────────────────────────────────────────────── */
body { -webkit-font-smoothing: antialiased; }

.md-header {
  box-shadow: none;
  border-bottom: 1px solid var(--hf-rule);
}
.md-tabs {
  background: var(--md-primary-fg-color);
  border-bottom: 1px solid var(--hf-rule);
  color: var(--md-default-fg-color--light);
}
.md-tabs__link { font-weight: 500; opacity: 1; }
.md-tabs__item--active .md-tabs__link,
.md-tabs__link:hover { color: var(--md-typeset-a-color); }

/* the full logo as drawn; the site name is never typed beside it */
.md-header__button.md-logo img,
.md-nav__button.md-logo img { height: 1.05rem; width: auto; }
.md-header__title .md-header__topic:first-child { visibility: hidden; }
[data-md-color-scheme="slate"] .md-logo img { content: url("brand/remake-logo-dark.svg"); }

/* one white page, no wash and no column rules (Annex DN) */
.md-main { background: var(--hf-ground); }
.md-main__inner { margin-top: 0; }
.md-sidebar { padding-top: 1.6rem; }
.md-nav__item--section > .md-nav__link {
  font-weight: 600;
  color: var(--md-default-fg-color);
}
.md-nav__link--active { font-weight: 600; }

.md-search__form { border-radius: 8px; background: var(--hf-panel); }
[data-md-toggle="search"]:checked ~ .md-header .md-search__form { border-radius: 8px 8px 0 0; }

/* ── reading type (the marketing body: 15px at 450, the app's 14 below
   it; the root is 20px, so 0.75rem = 15px). The titles keep their size —
   h1 32px, h2 24px — outside the API reference, whose own scale stands. ── */
.md-typeset { font-size: 0.75rem; line-height: 1.625; font-weight: 450; }
.md-typeset h1 { font-weight: 600; letter-spacing: -0.02em; color: var(--md-default-fg-color); margin-bottom: 0.8em; }
.md-typeset h2 { font-weight: 600; letter-spacing: -0.01em; margin-top: 2em; }
.md-typeset h1:where(:not(#hf-redoc *)) { font-size: 1.6rem; }
.md-typeset h2:where(:not(#hf-redoc *)) { font-size: 1.2rem; }
.md-typeset h3 { font-weight: 600; }
.md-typeset strong { font-weight: 600; }
.md-typeset code { border-radius: 4px; font-size: 0.86em; }
.md-typeset pre > code { border-radius: 8px; }
.md-typeset a { text-underline-offset: 2px; }
.md-typeset a:hover { text-decoration: underline; }

.md-typeset blockquote {
  border-left: 3px solid var(--hf-teal);
  background: var(--md-accent-fg-color--transparent);
  color: var(--md-default-fg-color);
  padding: 0.75em 1.1em;
  border-radius: 0 10px 10px 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.md-typeset blockquote p { margin: 0.2em 0; }

.md-typeset table:not([class]) {
  border: 1px solid var(--hf-rule);
  border-radius: 8px;
  font-size: 0.7rem;
  box-shadow: none;
}
.md-typeset table:not([class]) th {
  background: var(--hf-panel);
  font-weight: 600;
}
.md-typeset table:not([class]) td { border-top: 1px solid var(--hf-rule); }

.md-typeset .admonition, .md-typeset details {
  border-radius: 8px;
  border-width: 1px;
  box-shadow: none;
  font-size: 0.71rem;
}
.md-typeset .admonition.note, .md-typeset details.note { border-color: var(--hf-teal); }
.md-typeset .note > .admonition-title, .md-typeset .note > summary {
  background: var(--md-accent-fg-color--transparent);
}
.md-typeset .note > .admonition-title::before,
.md-typeset .note > summary::before { background-color: var(--hf-teal); }

/* ── kept pieces ───────────────────────────────────────────────────── */

/* Verdict chips (the four per-answer verdicts) */
.hf-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: middle;
}
.hf-chip-cited { background: rgba(17, 153, 184, 0.14); color: #1199b8; }
.hf-chip-lead  { background: rgba(74, 161, 90, 0.16); color: #2e7d3a; }
.hf-chip-named { background: rgba(90, 120, 200, 0.14); color: #3a55a0; }
.hf-chip-miss  { background: rgba(200, 90, 90, 0.14); color: #a33c3c; }
[data-md-color-scheme="slate"] .hf-chip-cited { color: #7bc9e1; }
[data-md-color-scheme="slate"] .hf-chip-lead { color: #7fd18c; }
[data-md-color-scheme="slate"] .hf-chip-named { color: #9fb4ee; }
[data-md-color-scheme="slate"] .hf-chip-miss { color: #e09a9a; }

/* Screenshot frames */
.hf-shot, .md-typeset img[src*="img/"] {
  border: 1px solid var(--hf-rule);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(3, 8, 10, 0.04), 0 8px 24px rgba(10, 120, 145, 0.08);
}
.hf-shot { margin: 0.6rem 0 1.2rem; }
.hf-shot img { display: block; border: 0; box-shadow: none; }

/* Full-bleed Redoc on the reference page: break out of the article
   column on wide screens only (on a phone the bleed made the page scroll
   sideways); its "API docs by" credit line is hidden (MIT licence). */
/* clip, not hidden: a hidden overflow makes the wrapper a scroll box and
   Redoc's sticky endpoint menu scrolled away with the page */
.redoc-bleed { margin: 1.2rem 0 -2rem; min-height: 80vh; overflow-x: clip; }
@media screen and (min-width: 60em) { .redoc-bleed { margin: 1.2rem -1.2rem -2rem; } }
#hf-redoc { display: block; min-height: 80vh; }
#hf-redoc a[href*="redocly.com"],
#hf-redoc div:has(> a[href*="redocly.com"]) { display: none !important; }
#hf-redoc .menu-content { border-right: 1px solid var(--hf-rule); }
#hf-redoc h1, #hf-redoc h2, #hf-redoc h3, #hf-redoc h5 { letter-spacing: -0.01em; }
#hf-redoc pre, #hf-redoc code { font-family: var(--md-code-font), ui-monospace, monospace; }
#hf-redoc table { font-size: 0.68rem; }
[data-md-color-scheme="slate"] #hf-redoc table td,
[data-md-color-scheme="slate"] #hf-redoc table th { color: var(--md-default-fg-color); }
[data-md-color-scheme="slate"] #hf-redoc .menu-content label,
[data-md-color-scheme="slate"] #hf-redoc .menu-content li { color: var(--md-default-fg-color); }
/* the "schema: application/json" label after a heading is drawn black */
[data-md-color-scheme="slate"] #hf-redoc h5 > span,
[data-md-color-scheme="slate"] #hf-redoc h3 > span { color: var(--md-default-fg-color); }
/* the phone's round menu button covered the text wherever it sat: on a
   phone the reference reads top to bottom without it */
#hf-redoc div:has(> div > svg[viewBox="0 0 926.23699 573.74994"]) { display: none !important; }
/* the code samples: the page's inline-code box (a pale chip) stays out of
   the dark panel, and punctuation reads light grey on it */
#hf-redoc .redoc-json code { background: transparent !important; color: rgba(252, 252, 254, 0.82); padding: 0; box-shadow: none; }
#hf-redoc .redoc-json .token.punctuation,
#hf-redoc .redoc-json .ellipsis,
#hf-redoc .redoc-json .collapser { color: rgba(252, 252, 254, 0.62) !important; }
/* the samples' status chips (200, 401, 404, 429) share one row */
#hf-redoc .react-tabs__tab-list { display: flex !important; flex-wrap: nowrap !important; gap: 3px; margin: 0 !important; padding: 0 !important; overflow-x: auto; scrollbar-width: thin; }
/* a chip never shrinks below its code: a row too long for the panel
   scrolls sideways inside it instead */
#hf-redoc .react-tabs__tab-list > li { flex: 0 0 auto !important; min-width: 0 !important; width: auto !important; margin: 0 !important; padding: 5px 3px !important; white-space: nowrap !important; text-align: center; }
/* in dark mode the chosen chip is a dark teal tint, not a white box */
[data-md-color-scheme="slate"] #hf-redoc .react-tabs__tab-list > li[aria-selected="true"] { background: #0b3a47 !important; box-shadow: inset 0 0 0 1px rgba(123, 201, 225, 0.45); }
/* the lone arrow under "Authorizations" opened nothing a reader needs */
#hf-redoc h5 + svg { display: none; }
/* a chip row that runs on past the panel (phones) fades at its right
   edge until scrolled there, like the phone pictures (redoc-init.js) */
#hf-redoc .react-tabs__tab-list.hf-chips-more {
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent);
  mask-image: linear-gradient(to right, #000 80%, transparent);
}

/* sidebar titles sit on the ground, not in a box */
.md-nav__title { background: transparent !important; box-shadow: none !important; }
.md-sidebar--secondary .md-nav__title { color: var(--md-default-fg-color--light); font-weight: 600; }
/* the right menu's title stays on top of a long menu that scrolls under
   it: the page's own ground, and once the menu has scrolled a soft fade
   under it (assets/docs.js), so no line ever shows through */
.md-sidebar--secondary .md-nav__title { background: var(--md-default-bg-color) !important; z-index: 1; }
.md-sidebar--secondary.hf-toc-scrolled .md-nav__title { padding-bottom: 0.5rem; margin-bottom: -0.5rem; box-shadow: 0 0.55rem 0.6rem var(--md-default-bg-color) !important; }
.md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__link {
  background: transparent;
  box-shadow: none;
  color: var(--md-default-fg-color--light);
}

/* the tab already names the section; its sticky repeat in the left menu
   overlapped long lists */
@media screen and (min-width: 76.25em) {
  .md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__link { display: none; }
}

/* ── the header (overrides/partials/header.html): the site's nav shape ── */
.md-header { border-bottom: 0; }
.md-header__inner { padding: 0.35rem 0.4rem; }
.md-header__button.md-logo { display: block; margin: 0.2rem 0.2rem 0.2rem 0.4rem; padding: 0.2rem; }
.md-header__button.md-logo img { height: 1.1rem; }
.hf-docs-home {
  margin-left: 0.15rem;
  padding: 0.1rem 0.55rem 0.1rem 0.6rem;
  border-left: 1px solid var(--hf-rule);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--md-default-fg-color--light) !important;
  line-height: 1.2;
  white-space: nowrap;
}
.hf-docs-home:hover { color: var(--md-typeset-a-color) !important; }
.md-header__title { visibility: hidden; flex-grow: 1; }
.md-header__option { order: 2; }
.hf-acts { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.4rem; order: 3; flex: none; }
.hf-acts a {
  display: inline-flex;
  align-items: center;
  height: 1.8rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 150ms, color 150ms;
}
.hf-signin { color: var(--md-default-fg-color) !important; }
.hf-signin:hover { background: var(--md-default-fg-color--lightest); }
.hf-start { background: #1199b8; color: #ffffff !important; }
.hf-start:hover { background: #0d819b; }
/* dark wears the same brand teal (Annex GI); hover steps one deeper */
[data-md-color-scheme="slate"] .hf-start { background: #1199b8; }
[data-md-color-scheme="slate"] .hf-start:hover { background: #0d819b; }
@media screen and (max-width: 59.9844em) { .hf-signin { display: none !important; } }
@media screen and (max-width: 29.9844em) {
  .hf-docs-home { display: none; }
  .hf-acts a.hf-start { padding: 0 0.6rem; }
}
/* the menu button stays on phones and tablets, beside the logo */
@media screen and (min-width: 76.25em) { .hf-drawer { display: none; } }
.md-tabs { border-bottom: 1px solid var(--hf-rule); }
.md-tabs__link { font-size: 0.68rem; }

/* search: the Ctrl K hint, our words, no struck-through "Missing" line */
.md-search__form { position: relative; }
.hf-kbd {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--hf-rule);
  border-radius: 6px;
  background: var(--md-default-bg-color);
  font: 500 0.6rem/1.5 var(--md-text-font-family), sans-serif;
  color: var(--md-default-fg-color--light);
  pointer-events: none;
}
[data-md-toggle="search"]:checked ~ .md-header .md-search__form .hf-kbd,
.md-search__input:not(:placeholder-shown) ~ .hf-kbd { display: none; }
@media screen and (max-width: 59.9844em) { .md-search__form .hf-kbd { display: none; } }
.md-search-result__terms { display: none; }
.md-search-result__meta { font-weight: 500; }
/* a result's title at the body's 15px; the field too, on a laptop (a
   phone keeps 16px and up, so it never zooms in on tap) */
.md-search-result .md-typeset h1 { font-size: 0.75rem; }
@media screen and (min-width: 60em) { .md-search__input { font-size: 0.75rem; } }
/* a match reads as a soft teal highlight, not an underline on every word */
.md-typeset .md-search-result mark, .md-search-result mark {
  text-decoration: none;
  background: rgba(17, 153, 184, 0.14);
  color: inherit;
  border-radius: 3px;
  padding: 0 0.1em;
}
[data-md-color-scheme="slate"] .md-search-result mark { background: rgba(123, 201, 225, 0.2); }
/* no keyboard hint on touch screens */
@media (hover: none) { .hf-kbd { display: none !important; } }

/* ── the left menu: one open group at a time, quiet titles ─────────── */
/* both side menus one step under the 15px body (the theme's 14px, 16px
   in the phone's drawer, were sized for a 16px body) */
.md-nav { font-size: 0.68rem; }
@media screen and (max-width: 76.1875em) {
  .md-nav--primary .md-nav__title, .md-nav--primary .md-nav__item { font-size: 0.75rem; }
}
.md-nav--primary .md-nav__item--nested > .md-nav__link {
  font-weight: 600;
  color: var(--md-default-fg-color);
  margin-top: 0.55em;
}
.md-nav--primary .md-nav__item--nested > .md-nav__link .md-nav__icon { color: var(--md-default-fg-color--lighter); }
.md-nav--primary .md-nav__item .md-nav__item .md-nav__link { color: var(--md-default-fg-color--light); }
.md-nav--primary .md-nav__link--active,
.md-nav--primary .md-nav__item .md-nav__item .md-nav__link--active { color: var(--md-typeset-a-color); }
.md-nav__link:hover { color: var(--md-typeset-a-color) !important; }

/* ── the page heading (hooks/heading.py) ──────────────────────────── */
.md-typeset .hf-head { margin: 0 0 1.4rem; }
.md-typeset .hf-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--md-typeset-a-color);
}
.md-typeset .hf-titlerow { display: flex; align-items: flex-start; gap: 1rem; }
.md-typeset .hf-titlerow h1 { flex: 1; margin: 0; }
.md-typeset .hf-lede {
  margin-top: -0.6rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--md-default-fg-color--light);
}
.hf-copy-page {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  padding: 0.25rem 0.6rem;
  font: 500 0.6rem/1.4 var(--md-text-font-family), sans-serif;
  color: var(--md-default-fg-color--light);
  background: var(--md-default-bg-color);
  border: 1px solid var(--hf-rule);
  border-radius: 8px;
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
}
.hf-copy-page svg { width: 0.75rem; height: 0.75rem; fill: currentColor; }
.hf-copy-page:hover { color: var(--md-typeset-a-color); border-color: var(--md-accent-fg-color); }
.hf-copy-page[hidden] { display: none; }
@media screen and (max-width: 44.9844em) { .hf-copy-page span { display: none; } }

/* ── cards: Related, the docs home, the 404 ───────────────────────── */
.md-typeset .hf-related,
.md-typeset .hf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.7rem;
  margin: 0.8rem 0 1.4rem;
  padding: 0;
  list-style: none;
}
.md-typeset ul.hf-related:not([hidden]) { display: grid; margin-left: 0; }
/* the cards line up with the text, no list indent */
[dir] .md-typeset ul.hf-related { margin-left: 0; margin-right: 0; padding-left: 0; }
[dir] .md-typeset ul.hf-related > li { margin-left: 0; margin-right: 0; }
.md-typeset .hf-related > li { margin: 0; padding: 0; }
/* three Related cards to a row on a laptop, so a third never sits alone */
@media screen and (min-width: 45em) {
  .md-typeset ul.hf-related:not([hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* four make a 2×2, seven four across: no card ever sits alone */
  .md-typeset ul.hf-related:has(> li:nth-child(4):last-child),
  .md-typeset ul.hf-related:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-typeset ul.hf-related:has(> li:nth-child(7):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.md-typeset .hf-cards--2 { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.md-typeset .hf-cards--3 { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.md-typeset .hf-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--hf-rule);
  border-radius: 12px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  box-shadow: 0 1px 2px rgba(3, 8, 10, 0.03);
  transition: border-color 150ms, box-shadow 150ms;
}
.md-typeset a.hf-card:hover { text-decoration: none; border-color: var(--md-accent-fg-color); box-shadow: var(--hf-card-shadow); }
.md-typeset .hf-card strong { font-size: 0.72rem; font-weight: 600; color: var(--md-default-fg-color); }
.md-typeset .hf-card span { font-size: 0.68rem; line-height: 1.5; color: var(--md-default-fg-color--light); }
.md-typeset .hf-card .hf-ico {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.45rem;
  border-radius: 9px;
  background: var(--md-accent-fg-color--transparent);
  color: var(--md-typeset-a-color);
}
.md-typeset .hf-card .hf-ico svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.md-typeset .hf-card .hf-num {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  background: #1199b8;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 600;
}
.md-typeset .hf-btn {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.95rem;
  border-radius: 8px;
  background: #1199b8;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 500;
}
.md-typeset .hf-btn:hover { background: #0d819b; text-decoration: none; }
/* the dark theme's button teal is the header's Start free */
[data-md-color-scheme="slate"] .md-typeset .hf-btn { background: #1199b8; }
[data-md-color-scheme="slate"] .md-typeset .hf-btn:hover { background: #0d819b; }

/* a big search box (the docs home, the 404) that opens the header's search */
.md-typeset .hf-searchbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 30rem;
  height: 2.6rem;
  margin: 1.2rem 0 1.6rem;
  padding: 0 0.9rem;
  border: 1px solid var(--hf-rule);
  border-radius: 12px;
  background: var(--md-default-bg-color);
  box-shadow: var(--hf-card-shadow);
  color: var(--md-default-fg-color--light);
  font-size: 0.74rem;
  cursor: text;
  /* a button (reachable by Tab) that looks like the search field */
  width: 100%;
  font-family: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
.md-typeset .hf-searchbox:focus-visible { outline: 2px solid var(--md-accent-fg-color); outline-offset: 2px; }
.md-typeset .hf-searchbox svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.md-typeset .hf-searchbox .hf-kbd { right: 0.8rem; }
.md-typeset .hf-searchbox:hover { border-color: var(--md-accent-fg-color); }

/* ── pictures: the site's picture plate (frontend/src/site/parts/
   PicturePlate.vue) — a tinted, dotted plate, the crop on it with a soft
   shadow, the bottom fading out. Light and dark crops swap with the
   theme (#only-light / #only-dark). ─────────────────────────────── */
.md-typeset .hf-plate {
  position: relative;
  margin: 1rem 0 1.6rem;
  padding: 1.6rem 1.6rem 0;
  overflow: hidden;
  border-radius: 14px;
  background-color: var(--hf-panel);
  background-image: radial-gradient(circle, var(--hf-dots) 1px, transparent 1.4px);
  background-size: 16px 16px;
  background-position: 8px 8px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.md-typeset .hf-plate p { margin: 0; }
.md-typeset .hf-plate img {
  display: block;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--hf-rule);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(3, 8, 10, 0.05), 0 12px 32px rgba(10, 120, 145, 0.1);
}
.md-typeset .hf-plate--narrow img { max-width: 30rem; }
/* a dialog shown near the size the app draws it: its text lands at the
   page's own 15px, never larger than the words around it */
.md-typeset .hf-plate--dialog { width: auto; }
.md-typeset .hf-plate--dialog img { max-width: 26.5rem; }
.md-typeset .hf-plate--mid img { max-width: 38rem; }
/* a small close-up stays near its own size instead of blowing up */
.md-typeset .hf-plate--small img { max-width: 26rem; }
.md-typeset .hf-plate--small { margin-left: auto; margin-right: auto; }
.md-typeset .hf-plate--tiny img { max-width: 14rem; }
.md-typeset .hf-plate--tiny { margin-left: auto; margin-right: auto; }
/* a picture beside its table: the sidebar strip at its own size, the
   table in the rest of the column; stacked on a phone */
.md-typeset .hf-beside { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.md-typeset .hf-beside > figure { margin: 0; }
.md-typeset .hf-plate--side { padding-bottom: 1.6rem; -webkit-mask-image: none; mask-image: none; }
.md-typeset .hf-plate--side img { width: 12.35rem; }
@media screen and (max-width: 44.9844em) { .md-typeset .hf-beside { grid-template-columns: 1fr; } }
/* a close-up cut through a card at its right edge fades out there too */
.md-typeset .hf-plate--fade-r {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent), linear-gradient(to right, #000 58%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent), linear-gradient(to right, #000 58%, transparent 96%);
  mask-composite: intersect;
}
.md-typeset .hf-plate--flat { -webkit-mask-image: none; mask-image: none; padding-bottom: 1.6rem; }
[data-md-color-scheme="slate"] .md-typeset .hf-plate img { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
@media screen and (max-width: 44.9844em) {
  .md-typeset .hf-plate { padding: 1rem 1rem 0; }
  .md-typeset .hf-plate--flat, .md-typeset .hf-plate--side { padding-bottom: 1rem; }
}
/* phones: a picture that would shrink below its own size keeps it and
   scrolls sideways in its frame (assets/docs.js sets its width), fading
   at the right edge until scrolled there — the diagram's way */
@media screen and (max-width: 37.5em) {
  .md-typeset .hf-plate.hf-plate--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent), linear-gradient(to right, #000 80%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 72%, transparent), linear-gradient(to right, #000 80%, transparent);
    mask-composite: intersect; }
  .md-typeset .hf-plate.hf-plate--scroll.hf-scrolled { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  .md-typeset .hf-plate--scroll img { max-width: none !important; }
}

/* the page end: once the footer has scrolled up under the header, the
   side menus' last sliver hides with them (assets/docs.js) */
@media screen and (min-width: 60em) {
  .md-sidebar--secondary { transition: opacity 150ms, visibility 150ms; }
  .hf-at-end .md-sidebar--secondary { opacity: 0; visibility: hidden; }
}
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary { transition: opacity 150ms, visibility 150ms; }
  .hf-at-end .md-sidebar--primary { opacity: 0; visibility: hidden; }
}

/* the How we measure diagram (inline SVG, drawn in the theme's colours) */
.md-typeset .hf-diagram { margin: 1rem 0 1.6rem; padding: 1.2rem 0.9rem; border: 1px solid var(--hf-rule); border-radius: 14px; background: var(--md-default-bg-color); }
.md-typeset .hf-diagram svg { display: block; width: 100%; height: auto; }
/* on a phone the diagram keeps a readable size and scrolls sideways in
   its frame, rather than shrinking to unreadable text */
@media screen and (max-width: 37.5em) {
  .md-typeset .hf-diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .md-typeset .hf-diagram svg { width: 728px; max-width: none; }
  /* a hint that the diagram goes on: a soft fade at the frame's right
     edge, and a small "Scroll" tag that leaves once you do */
  .md-typeset .hf-diagram { position: relative; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .md-typeset .hf-diagram.hf-scrolled { -webkit-mask-image: none; mask-image: none; }
}
.hf-diagram .d-line { fill: none; stroke: var(--md-default-fg-color--lighter); stroke-width: 1; }
.hf-diagram .d-card { fill: var(--md-default-bg-color); stroke: var(--hf-rule); stroke-width: 1; filter: drop-shadow(0 1px 2px rgba(3, 8, 10, 0.06)); }
.hf-diagram .d-hub { fill: var(--md-default-bg-color); stroke: #1199b8; stroke-width: 1.2; }
.hf-diagram .d-port { fill: var(--md-default-bg-color); stroke: #1199b8; stroke-width: 1.2; }
.hf-diagram .d-title { fill: var(--md-default-fg-color--light); font: 600 12.5px var(--md-text-font-family), sans-serif; letter-spacing: 0.03em; }
.hf-diagram .d-text { fill: var(--md-default-fg-color); font: 500 15px var(--md-text-font-family), sans-serif; }
.hf-diagram .d-meta { fill: var(--md-default-fg-color--light); font: 450 12.5px var(--md-text-font-family), sans-serif; }
.hf-diagram .d-teal { fill: var(--md-typeset-a-color); }
.hf-diagram .d-dot { fill: #1199b8; }

/* ── code ─────────────────────────────────────────────────────────── */
.md-typeset pre > code { padding-right: 2.6rem; }
.md-typeset .highlight .filename,
.md-typeset .highlight span.filename {
  display: block;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 8px 8px 0 0;
  background: var(--md-code-bg-color);
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  font: 600 0.6rem/1.4 var(--md-text-font-family), sans-serif;
  color: var(--md-default-fg-color--light);
}
.md-typeset .highlight .filename + pre > code { border-radius: 0 0 8px 8px; }
.md-typeset .tabbed-labels > label { font-size: 0.68rem; font-weight: 500; }

/* ── the black footer (overrides/partials/footer.html) ─────────────── */
.md-footer { background: #000f14; color: #ffffff; }
/* the side menus are sticky (positioned), so at a page's very end they
   painted over the footer: the footer sits above them */
.md-footer { position: relative; z-index: 2; }
.hf-pager { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.hf-ft { color: rgba(226, 236, 240, 0.66); font-size: 0.7rem; }
.hf-ft__inner { padding: 2.8rem 1.2rem 0; }
.hf-ft__cols { display: grid; gap: 2rem 1.2rem; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
.hf-ft__brand img { display: block; height: 30px; width: auto; }
.hf-ft__brand p { max-width: 12rem; margin: 0.6rem 0 0.8rem; line-height: 1.45; }
.hf-ft__start {
  display: inline-flex;
  align-items: center;
  height: 1.6rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 500;
}
.hf-ft__start:hover { border-color: #1199b8; color: #ffffff; }
.hf-ft__group { display: grid; align-content: start; gap: 0.5rem; }
.hf-ft__title { margin-bottom: 0.2rem; color: #ffffff; font-weight: 600; }
.hf-ft a { color: inherit; transition: color 150ms; }
.hf-ft__group a:hover, .hf-ft__base a:hover { color: #5cc8de; }
.hf-ft__base { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 2.4rem; }
.hf-ft__giant { display: block; width: min(50%, 440px); height: auto; margin: 2rem auto 0; padding-bottom: 2rem; pointer-events: none; user-select: none; }
@media screen and (max-width: 59.9844em) {
  .hf-ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-ft__brand { grid-column: 1 / -1; }
  .hf-ft__giant { width: 84%; }
}

/* ── the 404 ───────────────────────────────────────────────────────── */
.md-typeset .hf-404 { max-width: 40rem; padding: 1.2rem 0 1rem; }
.md-typeset .hf-404 h1 { margin: 0 0 0.9rem; }

/* ── the docs home (overrides/home.html) ───────────────────────────── */
.md-typeset .hf-home { max-width: 52rem; margin: 0 auto; padding: 1.4rem 0 1rem; }
.md-typeset .hf-home > h1 { margin: 0.6rem 0 0.5rem; text-align: center; font-size: 2.1rem; letter-spacing: -0.025em; }
.md-typeset .hf-home > h1 + p { max-width: 34rem; margin: 0 auto; text-align: center; font-size: 0.9rem; color: var(--md-default-fg-color--light); }
.md-typeset .hf-home > .hf-searchbox { margin: 1.5rem auto 2.2rem; height: 3rem; font-size: 0.78rem; }
.md-typeset .hf-home h2 { margin-top: 2.2em; font-size: 1.05rem; }
.md-typeset .hf-home h2 .headerlink { display: none; }
.md-typeset .hf-home > h1 .headerlink { display: none; }

/* the cards on the home: whole card is the link (the title's link
   stretches over it), an icon tile on top */
.md-typeset .grid.cards.hf-grid > ul,
.md-typeset .grid.cards.hf-grid > ol { display: contents; }
.md-typeset .grid.cards.hf-grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; }
.md-typeset .grid.cards.hf-grid--2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.md-typeset .grid.cards.hf-grid > ul > li,
.md-typeset .grid.cards.hf-grid > ol > li {
  position: relative;
  margin: 0;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--hf-rule);
  border-radius: 14px;
  background: var(--md-default-bg-color);
  box-shadow: 0 1px 2px rgba(3, 8, 10, 0.03);
  transition: border-color 150ms, box-shadow 150ms;
}
.md-typeset .grid.cards.hf-grid > ul > li:hover,
.md-typeset .grid.cards.hf-grid > ol > li:hover { border-color: var(--md-accent-fg-color); box-shadow: var(--hf-card-shadow); }
.md-typeset .grid.cards.hf-grid li > p { margin: 0.25em 0 0; font-size: 0.68rem; line-height: 1.5; color: var(--md-default-fg-color--light); }
.md-typeset .grid.cards.hf-grid li > p:first-child:has(.twemoji) { margin: 0 0 0.6rem; }
.md-typeset .grid.cards.hf-grid li strong { font-size: 0.75rem; font-weight: 600; }
/* a word in bold inside a card's text keeps the text's size */
.md-typeset .grid.cards.hf-grid li > p strong:not(:has(a)) { font-size: inherit; }
.md-typeset .grid.cards.hf-grid li strong a { color: var(--md-default-fg-color); }
.md-typeset .grid.cards.hf-grid li strong a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.md-typeset .grid.cards.hf-grid li strong a:hover { text-decoration: none; }
.md-typeset .grid.cards.hf-grid li:hover strong a { color: var(--md-typeset-a-color); }
.md-typeset .grid.cards.hf-grid .twemoji {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: var(--md-accent-fg-color--transparent);
  color: var(--md-typeset-a-color);
}
.md-typeset .grid.cards.hf-grid .twemoji svg { width: 1.1rem; height: 1.1rem; max-height: none; }
/* Start here: numbered steps */
.md-typeset .grid.cards.hf-steps { counter-reset: hf-step; }
.md-typeset .grid.cards.hf-steps > ol > li { counter-increment: hf-step; padding-top: 3rem; }
.md-typeset .grid.cards.hf-steps > ol > li::before {
  content: counter(hf-step);
  position: absolute;
  top: 0.95rem;
  left: 1.05rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #1199b8;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 600;
}
.md-typeset .hf-home .hf-plate { margin-top: 0.8rem; }

/* callouts: a soft card with a coloured edge, the title in ink */
.md-typeset .admonition, .md-typeset details { border: 0; border-left: 3px solid var(--hf-teal); background: var(--md-accent-fg-color--transparent); border-radius: 0 10px 10px 0; }
.md-typeset .admonition > .admonition-title, .md-typeset details > summary { background: transparent !important; font-weight: 600; color: var(--md-default-fg-color); }
.md-typeset .admonition.warning { border-left-color: #c98a14; background: rgba(201, 138, 20, 0.08); }
.md-typeset .warning > .admonition-title::before { background-color: #c98a14; }
/* a fold (??? info / question / example) reads as "click to open", in
   the house teal: no type icon, a teal edge and a teal arrow, light and
   dark — the theme's per-type cyan, lime and purple never show */
.md-typeset details.info, .md-typeset details.question, .md-typeset details.example,
.md-typeset details.note, .md-typeset details.tip {
  border-left-color: var(--hf-teal) !important;
  background: var(--md-accent-fg-color--transparent);
  box-shadow: none;
}
.md-typeset details > summary::before { display: none; }
[dir] .md-typeset details > summary { padding-left: 0.9rem; }
.md-typeset details > summary::after { background-color: var(--hf-teal) !important; }
.md-typeset details > summary:hover { color: var(--hf-teal-ink); }
[data-md-color-scheme="slate"] .md-typeset details > summary:hover { color: #7bc9e1; }

/* the theme's picture swap wins over the plate's display rule */
[data-md-color-scheme="default"] .md-typeset .hf-plate img[src$="#only-dark"],
[data-md-color-scheme="slate"] .md-typeset .hf-plate img[src$="#only-light"] { display: none; }

/* phones: logo, menu, search, theme and Start free on one line */
@media screen and (max-width: 29.9844em) {
  .md-header__inner { padding: 0.35rem 0.2rem; }
  .md-header__button.md-logo { margin: 0.2rem 0 0.2rem 0.2rem; }
  .md-header__button.md-logo img { height: 0.85rem; }
  .md-header__button { margin: 0.2rem 0.1rem; }
  .hf-acts { margin-left: 0.1rem; }
  .hf-acts a.hf-start { height: 1.6rem; padding: 0 0.5rem; font-size: 0.64rem; }
}
.md-search-result__meta { background: var(--hf-panel); color: var(--md-default-fg-color--light); }
@media screen and (min-width: 60em) { .md-search__input { padding-right: 3.4rem; } }
