@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/static/docs/inter.3100e775e8.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* SiteAuro Docs.
 *
 * Self-contained on purpose: no Tailwind, and none of the app's src/index.css, whose global
 * reset and light repaint (.bg-gray-900 -> #ffffff, !important) would land on the docs too.
 * The docs are LIGHT ONLY, like the rest of the marketing site: there is no dark theme.
 *
 * Brand values are the ones the app SERVES (read from the built index-*.css, not from
 * class names): primary #2563eb, hover #1447e6 (data-color-theme 2, the default), the
 * slate text scale the light repaint uses (#0f172a, #334155, #64748b), cards with a 1px
 * #e2e8f0 border, 12-16px radius and a soft shadow, and the dark marketing footer
 * (#0a0f1a). The app asks for Inter from Google Fonts; the docs fetch no web font (privacy,
 * and the EU move), so Inter is used only where it is installed and the system UI font
 * otherwise.
 *
 * EVERY colour is a variable in the one token block below. Nothing outside it may name a
 * colour: the contrast test in
 * __tests__/contrast.test.mjs reads these blocks and fails any text/background pair under
 * 4.5:1, and it fails a hex or rgb() written anywhere else.
 */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  /* The landing page's colours, as Chromium computes them on / (Tailwind v4's gray scale,
     which it writes in oklch: gray-900 #101828, gray-600 #4a5565, gray-500 #6a7282). Its
     gray-500 falls under 4.5:1 on the soft panels, so --muted, used there, is the nearest
     grey that passes; the hero intro uses the landing page's own gray-500 (--hero-sub). */
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --border-strong: #d1d5dc;
  --text: #101828;
  --text-2: #4a5565;
  --muted: #646b78;
  --hero-sub: #6a7282;
  /* The landing page's address field writes its own colours inline (#111827 text,
     #9ca3af icon), Tailwind v3 values, so the docs field copies those. */
  --field-text: #111827;
  --field-icon: #9ca3af;
  --primary-text: #2563eb;
  --primary-text-hover: #1447e6;
  --primary-soft: #eff6ff;
  --primary-soft-text: #1d4ed8;
  --primary-line: #bfdbfe;
  --btn-bg: #2563eb;
  --btn-bg-hover: #1447e6;
  --on-btn: #ffffff;
  --focus: #2563eb;
  --code-bg: #111827;
  --code-bar: #1f2937;
  --code-text: #e2e8f0;
  --code-muted: #a3b1c6;
  --code-ok: #6ee7b7;
  /* "Choose your platform": the app's own picker and its dark steps card (Tailwind
     gray-600 pills, slate-900 card with slate-300 text, slate-700 step numbers). */
  --tab-text: #4b5563;
  /* The contents card, in the blog's own colours (frontend/src/pages/blog/posts/_post.css:
     --line, --ink, --body, --accent). */
  --toc-line: #e4e9f2;
  --toc-title: #0b1220;
  --toc-text: #3c4759;
  --toc-accent: #1447e6;
  /* The blog's masthead tint, behind an article's header. (The blog's own trail grey is
     4.36:1 on it, so the trail uses the docs' --muted, which passes.) */
  --band-tint: #f7f9fd;
  /* The green check badge in a header drawing (Tailwind green-700). */
  --ok: #15803d;
  --steps-bg: #0f172a;
  --steps-title: #ffffff;
  --steps-text: #cbd5e1;
  --steps-num-bg: #334155;
  --steps-num-text: #e2e8f0;
  --steps-note: #94a3b8;
  --steps-line: #1e293b;
  --steps-link: #7dd3fc;
  --inline-code-bg: #f3f4f6;
  --inline-code-text: #1f2937;
  --mark-code-bg: #111827;
  --mark-code-line: #111827;
  --mark-code-text: #ffffff;
  /* Tip and note boxes are the brand blue (the landing page's), not a shade of their own:
     the same values as --primary-soft, --primary-line and --primary-text above. */
  --note-bg: #eff6ff;
  --note-line: #bfdbfe;
  --note-accent: #2563eb;
  --note-title: #2563eb;
  --tip-bg: #eff6ff;
  --tip-line: #bfdbfe;
  --tip-accent: #2563eb;
  --tip-title: #2563eb;
  --warning-bg: #fffbeb;
  --warning-line: #fcd34d;
  --warning-title: #92400e;
  --important-bg: #f5f3ff;
  --important-line: #ddd6fe;
  --important-title: #6d28d9;
  --badge-bg: #fef3c7;
  --badge-text: #92400e;
  --mark-bg: #dbeafe;
  --mark-text: #0f172a;
  --hero-glow: #2563eb;
  /* Not painted: the darkest pixel behind the hero intro, sampled in Chromium at 1440px and
     375px (the same value as behind the landing page's intro), so the contrast test
     measures the hero's text against the darkest point behind it. */
  --hero-tint: #eef3fd;
  --scrim: #11182773;
  --elev-md: 0 8px 24px -8px #11182729;
  --elev-lg: 0 24px 48px -16px #1118273d;
  /* Tailwind's shadow-lg, the landing page's hovered card. */
  --elev-card: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  /* A screenshot's browser window: a drop-shadow, so it follows the window's corners. */
  --elev-shot: drop-shadow(0 10px 18px #0f172a1a) drop-shadow(0 2px 4px #0f172a0f);
  --elev-btn: 0 6px 24px color-mix(in srgb, var(--btn-bg) 32%, transparent); /* as the landing button writes it */
  color-scheme: light;
  /* The sales pages' band (the blog index hero, the blog post masthead, the header's tint):
     the site's primary mixed with white. --color-primary comes with the shared header's CSS. */
  --band-primary: var(--color-primary, #2563eb);
  --band-white: #ffffff;
  --band-primary-dark: var(--color-primary-dark, #2563eb);
  /* The blog hero picture's cards (BlogArt.tsx): Tailwind's gray-200 and gray-100 lines,
     ring-black/5, shadow-lg, shadow-xl and shadow-2xl. */
  --fan-line-1: #e5e7eb;
  --fan-line-2: #f3f4f6;
  --fan-ring: 0 0 0 1px #0000000d;
  /* Tailwind's shadow-xs, under the menu's search field. */
  --field-shadow: 0 1px 2px #0000000d;
  --fan-shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  --fan-shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
  --fan-shadow-2xl: 0 25px 50px -12px #00000040;
  /* The hero picture's window dots (as on every screenshot in these docs) and the docs'
     annotation red (the outline, arrow and label on every picture). */
  --ill-dot-red: #ff5f57;
  --ill-dot-amber: #febc2e;
  --ill-dot-green: #28c840;
  --ill-mark: #ea4025;
  /* A picture still loading: a soft grey box with a lighter band passing over it. */
  --img-wait: #eef0f3;
  --img-shine: #f8f9fb;
  /* A section the reader was just taken to: a light blue that fades within a second. */
  --section-flash: #dbeafe;
}


/* End of tokens. No colour literal below this line. */

:root {
  /* The shared marketing header's row is 64px, 72px from 768px up (its own `h-16
     md:h-[72px]`). Its wide bar (main 944927ac) has no bottom border, so nothing is added
     (it was 65/73 with the old bar's 1px line). It is the only sticky bar, so everything
     sticky below offsets by it. */
  --site-h: 64px;
  --header-h: var(--site-h);
  --sidebar-w: 272px;
  --toc-w: 304px;            /* the blog's contents rail */
  --read-w: 720px;
  --docs-radius: 12px;
  --docs-radius-lg: 16px;
  /* The landing page's shapes: cards are `rounded-md`, fields and buttons `rounded-xl`. */
  --card-radius: 6px;
  --field-radius: 12px;
  /* The landing page's stack, exactly. "Inter" is the self-hosted copy declared at the top
     of the built stylesheet (build.mjs), never a font fetched from another host. */
  --font: Inter, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (min-width: 768px) {
  :root { --site-h: 72px; }
}

/* ── Base ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6; /* the landing page's body: 16px / 25.6px */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Scoped to the docs' own parts. The shared header and footer bring their own reset
 * (lib/chrome.mjs), and an unlayered rule on bare `a` here would beat their utilities. */
:where(.docs-shell) :where(img, svg) { display: block; max-width: 100%; }

:where(.docs-shell, .docs-skip) a,
.docs-skip { color: var(--primary-text); text-decoration: none; }
:where(.docs-shell) a:hover { color: var(--primary-text-hover); text-decoration: underline; text-underline-offset: 3px; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

button { font: inherit; }
/* The colour reset stays out of the shared header: an unlayered rule beats Tailwind's layered
   utilities, so it turned the header's menu button from the app's text-gray-600 to the ink. */
button:not(body > header button) { color: inherit; }

.docs-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.docs-skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--on-btn);
  font-weight: 600;
  transform: translateY(-160%);
}
.docs-skip:focus { transform: none; color: var(--on-btn); text-decoration: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.docs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--on-btn);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--elev-btn);
  transition: background-color .15s, transform .15s;
}
.docs-cta:hover { background: var(--btn-bg-hover); color: var(--on-btn); text-decoration: none; transform: translateY(-1px); }
.docs-cta-lg { height: 48px; padding: 0 24px; font-size: 15px; }

.docs-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.docs-icon-button:hover { background: var(--surface-2); color: var(--text); }

/* ── The shared marketing header ─────────────────────────────────────────── */
/* Rendered from src/components/marketing/MarketingHeader.tsx and styled by the compiled
 * chrome.css; nothing here changes its links, sizes or layout. */

/* The app colours a section link on hover from JavaScript (React's onMouseEnter). The docs
 * carry the same markup without React, so CSS does it. The resting colour is an inline
 * style on the component, hence !important. */
body > header nav a:hover { color: var(--primary-text) !important; }

/* ── Search ─────────────────────────────────────────────────────────────── */

.docs-search { position: relative; }
/* The field and, on the home page, its button side by side, like the landing page's form. */
.docs-search-row { display: flex; gap: 10px; }
.docs-search-field { position: relative; flex: 1; min-width: 0; }

.docs-side-search { margin: 0 0 20px; }
/* The sidebar scrolls (overflow-y: auto), which clips anything wider than it, so the
   results panel keeps to the sidebar's width rather than hanging over the article. */
.docs-side-search .docs-search-panel { width: 100%; }

.docs-search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* The landing page's "yourwebsite.com" field: white, a 2px gray-200 border, rounded-xl,
 * and the border turns primary on focus. */
.docs-search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 40px;
  border: 2px solid var(--border);
  border-radius: var(--field-radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.docs-search-input::placeholder { color: var(--muted); opacity: 1; }
.docs-search-input::-webkit-search-cancel-button { display: none; }
.docs-search-input:hover { border-color: var(--border-strong); }
.docs-search-input:focus,
.docs-search-input:focus-visible {
  outline: none;
  border-color: var(--focus);
}

.docs-search-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px; /* px-6 py-3.5, text-sm bold: 48px, stretched to the field's 52 in a row */
  border: 0;
  border-radius: var(--field-radius);
  background: var(--btn-bg);
  color: var(--on-btn);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--elev-btn);
  transition: background-color .15s, transform .15s;
}
.docs-search-button:hover { background: var(--btn-bg-hover); transform: translateY(-2px); }
.docs-search-button svg { width: 16px; height: 16px; }

.docs-kbd {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: 600 12px/18px var(--mono);
  text-align: center;
  pointer-events: none;
}
.docs-search-input:focus ~ .docs-kbd { display: none; }

.docs-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: max(100%, 480px);
  max-height: min(70vh, 520px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--field-radius);
  background: var(--surface);
  box-shadow: var(--elev-lg);
  padding: 6px;
}
.docs-search-panel[hidden] { display: none; }

.docs-search-results { list-style: none; margin: 0; padding: 0; }
.docs-search-results:empty { display: none; }
.docs-search-results li { margin: 0; }
.docs-search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  overflow-wrap: anywhere; /* a URL in a snippet must not run past the narrow side panel */
}
.docs-search-results a:hover,
.docs-search-results [aria-selected="true"] a {
  background: var(--surface-2);
  text-decoration: none;
  color: var(--text);
}
.docs-search-results [aria-selected="true"] a { box-shadow: inset 3px 0 0 var(--primary-text); }

/* One row per article: its title in blue and a short excerpt; under it, indented, up to
 * two of its sections by name. Matched words are bold. */
.docs-hit-page {
  display: block;
  color: var(--primary-text);
  font-size: 15px;
  font-weight: 500;          /* medium, so a matched word in bold stands out */
  line-height: 1.4;
}
.docs-hit-text {
  display: block;
  margin-top: 3px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.docs-search-results .docs-hit-sub a { padding: 6px 12px 6px 28px; }
.docs-hit-heading {
  display: block;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.docs-search-results mark { background: none; color: inherit; font-weight: 700; padding: 0; }

.docs-search-empty:empty { display: none; }
.docs-search-empty {
  padding: 18px 14px;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
}
.docs-search-empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ── Shell: sidebar + main ──────────────────────────────────────────────── */

.docs-shell {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
}

/* The column runs the full height of the page, with its border; what is IN it is sticky,
 * as tall as it needs to be and no taller than the window, scrolling inside itself when
 * it is longer. A full-window-tall sticky box was pushed up by the footer at the end of a
 * page, taking the menu out of view and leaving an empty column behind. */
.docs-sidebar {
  position: relative;
  flex: none;
  align-self: stretch;
  width: var(--sidebar-w);
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.docs-sidebar-inner {
  position: sticky;
  top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 16px 40px 24px;
}

.docs-drawer-head { display: none; }

/* The menu (owner, 2026-11-18: "more professional"): each section headed by its icon on a
 * small tinted tile and its name in normal case, its guides indented under a fine line,
 * the open guide on a tint with a primary bar; a slim scrollbar that darkens on hover. */
.docs-sidebar-inner { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.docs-sidebar-inner:hover { scrollbar-color: var(--fan-line-1) transparent; }
.docs-sidebar-inner::-webkit-scrollbar { width: 6px; }
.docs-sidebar-inner::-webkit-scrollbar-thumb { border-radius: 3px; background: transparent; }
.docs-sidebar-inner:hover::-webkit-scrollbar-thumb { background: var(--fan-line-1); }

/* The icon tile, the same on "Docs home" and on each section. */
.docs-nav-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--band-primary) 8%, var(--band-white));
  color: var(--primary-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band-primary) 12%, transparent);
}
.docs-nav-icon svg { width: 15px; height: 15px; }

.docs-nav-home {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.docs-nav-home:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.docs-nav-home[aria-current="page"] { background: var(--primary-soft); color: var(--primary-soft-text); }

.docs-nav-group { margin-bottom: 10px; }
.docs-nav-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.docs-nav-title { flex: 1; min-width: 0; }
.docs-nav-group summary::-webkit-details-marker { display: none; }
.docs-nav-group summary:hover { background: var(--surface-2); }
.docs-nav-group summary > svg { flex: none; color: var(--muted); transition: transform .15s; }
.docs-nav-group[open] summary > svg { transform: rotate(90deg); }

/* The guides, indented under the section's name, on a fine line. */
.docs-nav-group ul {
  list-style: none;
  margin: 4px 0 0 21px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--border);
}
.docs-nav-group li { margin: 1px 0; }
.docs-nav-group li a {
  display: block;
  position: relative;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}
.docs-nav-group li a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.docs-nav-group li a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-soft-text);
  font-weight: 600;
}
.docs-nav-group li a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--primary-text);
}

/* The menu's search: slimmer than the hero's, a 1px line, a soft ring on focus. */
.docs-side-search .docs-search-input {
  height: 40px;
  border-width: 1px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--field-shadow);
}

.docs-main { flex: 1 1 auto; min-width: 0; }
.docs-main:focus { outline: none; }

.docs-scrim { display: none; }

/* ── Article layout ─────────────────────────────────────────────────────── */

.docs-article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--read-w)) var(--toc-w);
  justify-content: center;
  gap: 56px;
  padding: 36px 40px 72px;
}

.docs-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}
.docs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.docs-back svg { width: 16px; height: 16px; }
.docs-shell .docs-back:hover { color: var(--primary-text); text-decoration: none; }

/* "Table of Contents": the blog's contents card, value for value
 * (frontend/src/pages/blog/posts/_post.css, .toc). Sticky, as before; the card is bounded
 * by the window and its list scrolls, so the title keeps its place. The entry for the
 * section being read is the blog's current entry: accent blue, semi-bold, solid square. */
/* The blog's contents card since the sales page redesign (main 944927ac): 18px corners and
   a soft accent shadow. */
.docs-toc:not(.docs-toc-empty) {
  position: sticky;
  top: calc(var(--header-h) + 36px);
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 72px);
  overflow: hidden;
  border: 1px solid var(--toc-line);
  border-radius: 18px;
  box-shadow: 0 14px 36px -24px color-mix(in srgb, var(--toc-accent) 40%, transparent);
  background: var(--surface);
  color: var(--toc-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: "ss01", "cv05";
}
.docs-toc-title {
  margin: 0;
  padding: 18px 22px 13px;
  border-bottom: 1px solid var(--toc-line);
  color: var(--toc-title);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.docs-toc ol {
  list-style: none;
  margin: 0;
  padding: 10px 22px 16px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.docs-toc li { margin: 0; }
.docs-toc li a {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0 12px;
  align-items: baseline;
  padding: 7px 0;
  color: var(--toc-text);
  text-decoration: none;
  transition: color .15s ease;
}
.docs-toc li a::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--toc-accent);
  opacity: .45;
  transform: translateY(2px);
  transition: opacity .15s ease;
}
.docs-toc li a:hover { color: var(--toc-accent); text-decoration: none; }
.docs-toc li a:hover::before { opacity: 1; }
.docs-toc li a.docs-active { color: var(--toc-accent); font-weight: 600; }
.docs-toc li a.docs-active::before { opacity: 1; }

.docs-toc-mobile { display: none; }
/* `toc: nested`: a section with its ### headings folded under it. */
.docs-toc-row { display: flex; align-items: center; gap: 4px; }
.docs-toc-row > a { flex: 1; min-width: 0; }
.docs-toc-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.docs-toc-toggle:hover { background: var(--bg-soft); color: var(--toc-accent); }
.docs-toc-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.docs-toc-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.docs-toc ol.docs-toc-sub { margin: 2px 0 6px 14px; padding: 0; }
.docs-toc ol.docs-toc-sub li a { font-size: 13px; padding-top: 4px; padding-bottom: 4px; }

/* ── Article content ────────────────────────────────────────────────────── */

.docs-article { min-width: 0; }

/* The article's header: the blog's masthead (frontend/src/pages/blog/posts/_post.css,
 * .post-head and .crumbs). A full-width band under the site header, a light tint fading
 * to white with a thin line under it, holding the trail (Docs / section), the title, the
 * intro and the facts line. Its text lines up with the article column below. */
.docs-band { background: transparent; }
/* The band itself (owner, 2026-11-18: the docs follow the redesigned sales pages): the blog
 * post's new masthead, character for character (_post.css .post-head: two soft glows over a
 * 9% -> 3% primary tint, no line under it). It runs edge to edge, behind the menu too, from
 * under the header (whose own tint is the same 9%, so they meet with no seam) to the end of
 * the article header (--band-bottom, measured by docs.js). */
body.docs-page-article {
  background:
    radial-gradient(480px 240px at 0% 78%,color-mix(in srgb,var(--band-primary) 10%,transparent),transparent 70%) 0 var(--header-h) / 100% calc(var(--band-bottom, 360px) - var(--header-h)) no-repeat,
    radial-gradient(480px 240px at 100% 78%,color-mix(in srgb,var(--band-primary) 9%,transparent),transparent 70%) 0 var(--header-h) / 100% calc(var(--band-bottom, 360px) - var(--header-h)) no-repeat,
    linear-gradient(180deg,color-mix(in srgb,var(--band-primary) 9%,var(--band-white)) 0%,color-mix(in srgb,var(--band-primary) 3%,var(--band-white)) 100%) 0 var(--header-h) / 100% calc(var(--band-bottom, 360px) - var(--header-h)) no-repeat,
    var(--bg);
}
@media (min-width: 900px) {
  /* The menu column starts in the band's 9% and fades to white by the band's end, rather
     than cutting across its links with the band's edge; the drawer (narrow) stays white. */
  body.docs-page-article .docs-sidebar {
    background: linear-gradient(180deg, color-mix(in srgb, var(--band-primary) 9%, var(--band-white)) 0, var(--band-white) calc(var(--band-bottom, 360px) - var(--header-h))) var(--band-white);
  }
}
.docs-band-inner {
  display: grid;
  grid-template-columns: minmax(0, var(--read-w)) var(--toc-w);
  justify-content: center;
  gap: 56px;
  padding: 40px 40px 48px;
}
.docs-band .docs-page-top { margin: 0 0 18px; flex-wrap: wrap; row-gap: 12px; }
.docs-band .docs-menu-button { white-space: nowrap; }
/* The picture on the right of the header, where the blog has its cover: a white card with
 * a light blue panel down its right side, the section and title in blue, the section's
 * icon on a raised tile, and "SiteAuro Docs" at the foot. Wide screens only. */
.docs-band-art { display: flex; align-items: center; }
/* The blog post's cover since the sales page redesign (main 944927ac): 22px corners and an
   accent shadow (_post.css .cover img). */
.docs-art-card {
  position: relative;
  width: 100%;
  min-height: 176px;
  padding: 20px 22px 46px;
  overflow: hidden;
  border: 1px solid var(--toc-line);
  border-radius: 22px;
  background: linear-gradient(115deg, var(--surface) 0%, var(--surface) 58%, var(--primary-soft) 58.2%, var(--band-tint) 100%);
  box-shadow: 0 28px 60px -28px color-mix(in srgb, var(--toc-accent) 45%, transparent);
}
.docs-art-label {
  display: block;
  padding-left: 8px;
  border-left: 2px solid var(--toc-accent);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.docs-art-title {
  display: block;
  max-width: 58%;
  margin-top: 10px;
  color: var(--toc-accent);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.docs-art-tile {
  position: absolute;
  right: 22px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  transform: translateY(-50%);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--elev-md);
  color: var(--primary-text);
}
.docs-art-foot {
  position: absolute;
  left: 22px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.docs-art-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--btn-bg); }

/* The small drawing in the header picture (build.mjs COVERS), where the icon tile sits for
 * an article without one: right of the title, over the card's blue panel, raised with the
 * screenshots' soft shadow. Every colour is a docs token. */
.docs-art-svg {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 108px;
  height: 101px;
  transform: translateY(-50%);
  filter: var(--elev-shot);
}
.docs-art-svg svg { display: block; width: 100%; height: 100%; }
.docs-art-svg .m-card { fill: var(--surface); stroke: var(--toc-line); }
.docs-art-svg .m-line { fill: var(--steps-num-bg); }
.docs-art-svg .m-line-soft { fill: var(--border); }
.docs-art-svg .m-field { fill: var(--bg-soft); stroke: var(--border); }
.docs-art-svg .m-blue { fill: var(--btn-bg); }
.docs-art-svg .m-on-blue, .docs-art-svg .m-on-ok { stroke: var(--on-btn); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.docs-art-svg .m-dot { fill: var(--border); }
.docs-art-svg .m-edge { stroke: var(--toc-line); }
.docs-art-svg .m-dark { fill: var(--steps-bg); }
.docs-art-svg .m-code { stroke: var(--steps-link); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.docs-art-svg .m-pulse { stroke: var(--btn-bg); stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.docs-art-svg .m-ok { fill: var(--ok); }
.docs-art-svg .m-path { stroke: var(--btn-bg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.docs-art-svg .m-path-soft { stroke: var(--toc-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.docs-art-svg .m-select { fill: var(--surface); stroke: var(--btn-bg); stroke-width: 2; }

.docs-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.docs-shell .docs-crumbs a { color: var(--toc-accent); text-decoration: none; }
.docs-shell .docs-crumbs a:hover { text-decoration: underline; }
/* The blog's light "/" between them, drawn as a thin slanted stroke: it is decoration
 * (hidden from screen readers), not text to read. */
.docs-crumbs span[aria-hidden] {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  margin: 0 3px;
  overflow: hidden;
  font-size: 0;
  background: var(--toc-line);
  transform: skewX(-20deg);
}
.docs-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 18px 0 0 !important;
  color: var(--muted) !important;
  font-size: 14px;
  line-height: 1.5 !important;
}
.docs-article-dot { color: var(--muted); }

.docs-article h1,
.docs-band h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.docs-lede { margin: 0; color: var(--text-2); font-size: 19px; line-height: 1.6; }

.docs-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* One rhythm for every article: sections 56px apart, a heading sits close to what it
 * introduces, and prose lines stay near 70 characters (the 720px column). */
.docs-article h2 {
  position: relative;
  margin: 56px 0 16px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.docs-article > h2:first-child { margin-top: 8px; }
.docs-article h3 {
  position: relative;
  margin: 32px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
}
.docs-article h4 { margin: 24px 0 8px; font-size: 16px; color: var(--text); }

.docs-article p, .docs-article ul, .docs-article ol { margin: 0 0 18px; color: var(--text-2); line-height: 1.75; }
.docs-article ul, .docs-article ol:not(.docs-steps) { padding-left: 22px; }
.docs-article li { margin: 8px 0; padding-left: 2px; }
.docs-article li::marker { color: var(--muted); }
.docs-article strong { color: var(--text); font-weight: 650; }
.docs-article a { text-decoration: underline; text-decoration-color: var(--primary-line); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.docs-article a:hover { text-decoration-color: currentColor; }

.docs-article :not(pre) > code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--inline-code-bg);
  color: var(--inline-code-text);
  font-family: var(--mono);
  font-size: .875em;
  /* Cascadia Code draws "->" as an arrow; code is copied, so show the real characters. */
  font-variant-ligatures: none;
  word-break: break-word;
}

blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--border-strong);
  color: var(--text-2);
}

/* Callouts */
/* Tip and note boxes: a tinted card with a thin accent on the left, a small labelled title,
 * and body text one size down from the prose so it reads as an aside. */
.docs-callout {
  margin: 28px 0;
  padding: 16px 20px 16px 18px;
  border: 1px solid var(--note-line);
  border-left: 3px solid var(--note-accent);
  border-radius: var(--docs-radius);
  background: var(--note-bg);
}
.docs-callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px !important;
  color: var(--note-title) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}
.docs-callout-title svg { flex: none; }
.docs-callout-body > :last-child { margin-bottom: 0; }
.docs-callout-body p, .docs-callout-body li { color: var(--text); font-size: 15px; line-height: 1.65; }
/* Bold code in a callout (**`go.siteauro.net`**) is the thing the callout is about: highlighted. */
.docs-article .docs-callout-body strong > code { border-color: var(--mark-code-line); background: var(--mark-code-bg); color: var(--mark-code-text); font-weight: 650; }
.docs-callout-tip { border-color: var(--tip-line); border-left-color: var(--tip-accent); background: var(--tip-bg); }
.docs-callout-tip .docs-callout-title { color: var(--tip-title) !important; }
/* Warnings stay amber, so a real warning still stands out from the blue tips and notes. */
.docs-callout-warning { border-color: var(--warning-line); background: var(--warning-bg); }
.docs-callout-warning .docs-callout-title { color: var(--warning-title) !important; }
.docs-callout-important { border-color: var(--important-line); background: var(--important-bg); }
.docs-callout-important .docs-callout-title { color: var(--important-title) !important; }

/* Steps. The number circle is the same blue circle the screenshots use for their markers,
 * so "step 3" in the text and "3" on the picture read as one thing. The text of a step is
 * ordinary inline prose: bold labels, code and links stay inside the sentence. (A rule
 * that made a leading <strong> a block -- a "step title" -- broke "On the **X** screen"
 * into three lines, because :first-child ignores the text before the <strong>.) */
.docs-article ol.docs-steps {
  list-style: none;
  counter-reset: docs-step;
  margin: 28px 0 32px;
  padding: 0;
}
.docs-steps > li {
  position: relative;
  counter-increment: docs-step;
  margin: 0;
  padding: 3px 0 22px 48px;
  color: var(--text-2);
  line-height: 1.7;
}
.docs-steps > li::before {
  content: counter(docs-step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--on-btn);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.docs-steps > li::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--border);
}
.docs-steps > li:last-child { padding-bottom: 0; }
.docs-steps > li:last-child::after { display: none; }
.docs-steps > li > p { margin: 0 0 10px; }
.docs-steps > li > :last-child { margin-bottom: 0; }
.docs-steps > li .docs-shot { margin: 16px 0 6px; }

/* Code */
.docs-code {
  margin: 20px 0 24px;
  border: 1px solid var(--code-bar);
  border-radius: var(--docs-radius);
  background: var(--code-bg);
  overflow: hidden;
}
.docs-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 8px 0 16px;
  background: var(--code-bar);
}
.docs-code-lang {
  color: var(--code-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.docs-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--code-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.docs-copy:hover { background: var(--code-bg); }
.docs-copy.docs-copied { color: var(--code-ok); }
.docs-code pre {
  margin: 0;
  padding: 16px 18px;
  /* Long lines wrap instead of scrolling sideways: a snippet is read whole. Copy still
     copies the exact text (the line breaks here are only how it is drawn). */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 14px;
  font-variant-ligatures: none;
  line-height: 1.6;
  tab-size: 2;
}
.docs-code code { font-family: inherit; }

/* Tables */
.docs-table {
  margin: 20px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--docs-radius);
  overflow-x: auto;
}
.docs-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.docs-table th, .docs-table td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.docs-table th { background: var(--bg-soft); color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.docs-table td { color: var(--text-2); }
.docs-table tr:last-child td { border-bottom: 0; }

/* Screenshots. Each picture is a Mac-style browser window drawn by the capture tool
 * (web-portal/tools/docs_capture.py): top bar, rounded corners and a thin border, with
 * see-through corners and no panel. The page adds only the soft shadow, as a drop-shadow
 * so it follows the window's rounded shape. A screenshot shows at its own size (the
 * builder writes its width and height, captured at 2x) and never wider than the text
 * column. Click to see it full size (docs.js). */
.docs-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px 0 32px;
}
.docs-zoom {
  display: block;
  max-width: 100%;
  cursor: zoom-in;
  transition: opacity .15s;
}
.docs-zoom:hover { opacity: .94; }
.docs-zoom img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: var(--elev-shot);
  transition: opacity .3s ease;
}
/* While a picture loads (docs.js adds the class, so with no script nothing changes): the
   space it will take, which its width and height already reserve, shows a soft grey box
   with a gentle shimmer; then the picture fades in. A picture that fails becomes a small
   neutral "Image unavailable" box, never a broken-image icon. */
.docs-zoom.docs-img-loading {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--img-wait);
}
.docs-zoom.docs-img-loading img { opacity: 0; }
.docs-zoom.docs-img-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--img-shine), transparent);
  transform: translateX(-100%);
  animation: docs-img-shimmer 1.6s ease-in-out infinite;
}
/* A picture whose size the page does not know still gets a box to wait in. */
.docs-zoom.docs-img-loading.docs-img-unsized { width: min(100%, 560px); min-height: 160px; }
@keyframes docs-img-shimmer { to { transform: translateX(100%); } }
.docs-img-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* A section the reader was taken to (the panel's start, a contents link, a shared link):
   a soft light-blue background that fades away. Focus still moves to the heading, for
   keyboard and screen-reader users, but a heading the script made focusable draws no
   outline: it is not a control, and the outline read as a hard box around it. */
[data-docs-jump]:focus, [data-docs-jump]:focus-visible { outline: none; }
.docs-section-flash {
  border-radius: 6px;
  background-color: var(--section-flash);
  box-shadow: 0 0 0 6px var(--section-flash);
  animation: docs-section-flash 1s ease-out forwards;
}
@keyframes docs-section-flash {
  0%, 35% { background-color: var(--section-flash); box-shadow: 0 0 0 6px var(--section-flash); }
  100% { background-color: transparent; box-shadow: 0 0 0 6px transparent; }
}
/* Reduced motion for the picture placeholder and the highlight: the last block of this file. */
.docs-shot figcaption {
  max-width: 560px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* "Choose your platform" tabs (build.mjs tabsHtml, docs.js "Tabs"). One dark card per
 * option, in the app's own look. Without the script every card shows, one after another,
 * each under its own title; with it, a row of pills picks one. */
.docs-tabs { margin: 20px 0 28px; }
/* An even grid of equal buttons: 4 to a row, 2 on a phone. Every button the same height,
 * its text centred, however long the name. The standard layout for the picker. */
.docs-tablist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
@media (max-width: 639px) { .docs-tablist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.docs-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--tab-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.docs-tab:hover { border-color: var(--primary-line); }
.docs-tab[aria-selected="true"] { border-color: var(--primary-text); background: var(--primary-soft); color: var(--primary-text); }
.docs-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Tabs with an app's mark (`::tab Claude {logo=claude}`): square tiles, the mark above the
 * name, as on the AI Connector page's "Add it to your AI app" tiles. Four to a row (the
 * owner, 2026-11-19: platforms 4 + 4, AI apps 4 + 3), three on a phone. */
.docs-tablist:has(.docs-tab-logo) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 639px) { .docs-tablist:has(.docs-tab-logo) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.docs-tab.docs-tab-logo { flex-direction: column; gap: 8px; min-height: 84px; padding: 12px 8px 10px; border-radius: 12px; }
.docs-tab-mark { position: relative; display: inline-flex; width: 28px; height: 28px; flex-shrink: 0; }
.docs-tab-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.docs-tab-tint {
  display: block; width: 100%; height: 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.docs-tab-terminal {
  position: absolute; right: -6px; bottom: -4px;
  padding: 0 3px; border-radius: 4px;
  background: var(--steps-bg); color: var(--steps-title);
  font: 700 8px/12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.docs-tab-name { line-height: 1.3; }
.docs-tabpanel {
  margin: 0 0 12px;
  padding: 14px 18px 12px;
  border-radius: 12px;
  background: var(--steps-bg);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.docs-tabpanel[hidden] { display: none; }
.docs-tabpanel:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.docs-article .docs-tabpanel-title {
  margin: 0 0 10px;
  color: var(--steps-title);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.docs-article ol.docs-tab-steps { list-style: none; margin: 0; padding: 0; counter-reset: docs-tab-step; }
.docs-article ol.docs-tab-steps > li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 34px;
  color: var(--steps-text);
  font-size: 14px;
  line-height: 24px;
  counter-increment: docs-tab-step;
}
.docs-article ol.docs-tab-steps > li::before {
  content: counter(docs-tab-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--steps-num-bg);
  color: var(--steps-num-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}
.docs-tabpanel strong { color: var(--steps-title); }
.docs-article .docs-tabpanel .docs-platform-note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--steps-line);
  color: var(--steps-note);
  font-size: 13px;
  line-height: 1.6;
}
.docs-tabpanel a { color: var(--steps-link); }
/* Text and lists written in a :::tabs panel sit on the dark card: the light text of the
 * platform steps, never the page's dark text (which was all but unreadable there; the
 * owner's report, 2026-11-14). The muted note colour stays for the platform notes only. */
.docs-article .docs-tabpanel > p {
  margin: 12px 0 0;
  color: var(--steps-text);
  font-size: 14px;
  line-height: 1.6;
}
.docs-article .docs-tabpanel > :is(ol, ul) { margin: 10px 0 0; }
.docs-article .docs-tabpanel > :is(ol, ul) > li {
  color: var(--steps-text);
  font-size: 14px;
  line-height: 1.6;
}
.docs-article .docs-tabpanel > :is(ol, ul) > li::marker { color: var(--steps-note); }
.docs-article .docs-tabpanel :not(pre) > code {
  border-color: var(--steps-num-bg);
  background: var(--code-bar);
  color: var(--code-text);
}

.docs-article-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); }
.docs-updated { margin: 0 !important; color: var(--muted) !important; font-size: 14px; }

/* Previous / next: two equal cards across the content width, Previous on the left and
 * Next on the right. A missing one leaves its half empty, so a lone Next card keeps the
 * right half. The whole card is the link. Each card has the arrow in a round button on its
 * outer edge, and beside it the label, the title and a one-line description. On hover the
 * card tints, the circle fills and the arrow slides outward. On a phone they stack, Next
 * first. */
.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.docs-pager-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.docs-shell .docs-pager-card:hover {
  border-color: var(--primary-text);
  background: var(--primary-soft);
  color: var(--text);
  text-decoration: none;
}
.docs-pager-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.docs-next { flex-direction: row-reverse; text-align: right; }
.docs-pager-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary-text);
  transition: background-color .2s, border-color .2s, color .2s;
}
.docs-pager-icon svg { flex: none; width: 18px; height: 18px; transition: transform .2s; }
.docs-shell .docs-pager-card:hover .docs-pager-icon {
  border-color: var(--primary-text);
  background: var(--primary-text);
  color: var(--on-btn);
}
.docs-shell .docs-prev:hover .docs-pager-icon svg { transform: translateX(-3px); }
.docs-shell .docs-next:hover .docs-pager-icon svg { transform: translateX(3px); }
.docs-pager-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.docs-pager-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.docs-pager-title { color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.4; }
.docs-pager-desc {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── Home ───────────────────────────────────────────────────────────────── */

.docs-page-home .docs-sidebar { display: none; }
/* The home runs edge to edge, so the hero's band meets the header across any screen width (the
   shell stops at 1600px for the menu and article); the home's own sections keep their widths. */
.docs-page-home .docs-shell { max-width: none; }

/* The hero must not clip: its search dropdown hangs below it. Only the glow layer clips. */
/* The blog index's hero band (BlogIndexPage.tsx, the landing page's own): a pale primary
 * tint, 9% -> 5% -> 3%, two soft glows and a faint dot grid, all faded in from the top so the
 * band meets the header (tinted the same 9%) with no seam. Values copied from that page. */
.docs-hero {
  position: relative;
  z-index: 2;
  padding: 64px 20px 56px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--band-primary) 9%, var(--band-white)) 0%, color-mix(in srgb, var(--band-primary) 5%, var(--band-white)) 70%, color-mix(in srgb, var(--band-primary) 3%, var(--band-white)) 100%);
  text-align: center;
}
.docs-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 96px);
  mask-image: linear-gradient(to bottom, transparent 0, black 96px);
}
.docs-hero-glow {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  opacity: .3;
  filter: blur(64px);
  pointer-events: none;
}
.docs-hero-glow-left { left: -96px; top: 40px; background: color-mix(in srgb, var(--band-primary) 40%, var(--band-white)); }
.docs-hero-glow-right { right: -96px; top: 112px; background: color-mix(in srgb, var(--band-primary) 35%, var(--band-white)); }
.docs-hero-dots {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--band-primary) 22%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 55%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 55%, black 20%, transparent 100%);
}
/* The blog index's hero (BlogIndexPage.tsx), class for class: px-5 sm:px-8 lg:px-10, pt-16
 * sm:pt-20, pb-14, a 1280px frame (the header's), words on the left (centred until lg), the
 * picture on the right (3fr / 2fr from lg, gap-14 / lg:gap-12), and under both, centred, the
 * bar the blog fills with its categories, here holding the search. */
.docs-hero-inner { position: relative; max-width: 1280px; margin: 0 auto; }
.docs-hero-grid { display: grid; align-items: center; gap: 56px; }
.docs-hero-text { text-align: center; }
@media (min-width: 640px) { .docs-hero { padding: 80px 32px 56px; } }
@media (min-width: 1024px) {
  .docs-hero { padding-left: 40px; padding-right: 40px; }
  .docs-hero-grid { grid-template-columns: 3fr 2fr; gap: 48px; }
  .docs-hero-text { text-align: left; }
}

/* The badge: rounded-full, border at 30% of the primary, white, px-3.5 py-1.5, text-xs
 * semibold uppercase tracking-widest, mb-7. */
.docs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--band-primary) 30%, transparent);
  border-radius: calc(infinity * 1px); /* Tailwind v4's rounded-full */
  background: var(--band-white);
  color: var(--primary-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.docs-eyebrow svg { flex: none; }

/* text-[2.2rem] sm:text-5xl lg:text-[3rem] xl:text-[3.4rem]; extrabold, leading-[1.08],
 * tracking-tight, mb-5. */
.docs-hero h1 {
  margin: 0 0 20px;
  font-size: 35.2px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}
@media (min-width: 640px) { .docs-hero h1 { font-size: 48px; } }
@media (min-width: 1280px) { .docs-hero h1 { font-size: 54.4px; } }
/* The second line: the primary to the primary-dark, painted through the text. */
.docs-hero-accent {
  color: transparent;
  background-image: linear-gradient(135deg, var(--band-primary) 0%, var(--band-primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* text-lg leading-relaxed gray-500, max-w-xl, centred until lg. */
.docs-hero-sub {
  margin: 0 auto;
  max-width: 576px;
  color: var(--hero-sub);
  font-size: 18px;
  line-height: 1.625;
}
@media (min-width: 1024px) { .docs-hero-sub { margin: 0; } }

/* Under the search: the popular guides as small white chips. */
.docs-hero-popular { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
@media (min-width: 1024px) { .docs-hero-popular { justify-content: flex-start; } }
.docs-hero-popular-label { color: var(--hero-sub); font-size: 13px; font-weight: 600; }
.docs-hero-chip {
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--band-primary) 18%, var(--band-white));
  border-radius: calc(infinity * 1px);
  background: var(--band-white);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.docs-hero-chip:hover { border-color: color-mix(in srgb, var(--band-primary) 45%, var(--band-white)); color: var(--primary-text); box-shadow: var(--fan-shadow-lg); text-decoration: none; }

/* The search, under the words: the blog's white bar (rounded-2xl, white, p-1.5, shadow-lg,
 * ring-black/5, which there holds its category chips), centred until lg, then on the
 * words' left edge. */
.docs-hero-bar { margin-top: 32px; text-align: center; }
@media (min-width: 1024px) { .docs-hero-bar { text-align: left; } }
.docs-hero-bar .docs-hero-search {
  display: inline-block;
  width: 100%;
  max-width: 560px;
  padding: 6px;
  border-radius: 16px;
  background: var(--band-white);
  box-shadow: var(--fan-shadow-lg), var(--fan-ring);
  text-align: left;
}
.docs-hero-search .docs-search-input {
  height: auto;
  padding: 10px 16px 10px 40px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--field-text);
  font-size: 14px;
  line-height: 20px;
}
.docs-hero-search .docs-search-icon { left: 14px; width: 16px; height: 16px; color: var(--field-icon); }
.docs-hero-search .docs-kbd { display: none; }
.docs-hero-search .docs-search-panel { width: 100%; }
/* The button is the blog's chosen chip: rounded-xl, the primary gradient, its soft shadow. */
.docs-hero-search .docs-search-button {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--band-primary) 0%, var(--band-primary-dark) 100%);
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--band-primary) 60%, transparent);
}
@media (max-width: 639px) {
  .docs-hero-search .docs-search-row { flex-direction: column; }
  .docs-hero-search .docs-search-button { width: 100%; }
}

/* The picture: a small drawing of the docs being used (build.mjs heroArt). A docs window
 * with the menu, a section as numbered steps and a screenshot marked in the docs' own red;
 * its search's results floating beside it; a tinted panel and a soft glow behind. Shadows, rings and radii are the blog picture's (BlogArt.tsx). */
.docs-ill { position: relative; width: 100%; max-width: 480px; margin: 0 auto; padding: 8px 0 16px; text-align: left; }
@media (min-width: 1024px) { .docs-ill { max-width: 400px; margin-right: 0; } }
.docs-ill-glow {
  position: absolute;
  inset: 24px;
  border-radius: 40px;
  background: color-mix(in srgb, var(--band-primary) 45%, var(--band-white));
  opacity: .4;
  filter: blur(64px);
}
/* A second, tilted sheet behind the window, as the blog's cards sit behind its front one. */
.docs-ill-back {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 0;
  bottom: 48px;
  border-radius: 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--band-primary) 16%, var(--band-white)) 0%, var(--band-white) 70%);
  box-shadow: var(--fan-shadow-lg), var(--fan-ring);
  transform: rotate(-5deg) translateX(-5%);
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.docs-ill:hover .docs-ill-back { transform: rotate(-7deg) translateX(-8%); }
.docs-ill-win {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: var(--band-white);
  box-shadow: var(--fan-shadow-2xl), var(--fan-ring);
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.docs-ill:hover .docs-ill-win { transform: translateY(-6px); }
.docs-ill-bar { height: 6px; background: linear-gradient(135deg, var(--band-primary) 0%, var(--band-primary-dark) 100%); }

/* The window's top: three dots and the search box with a query typed in. */
.docs-ill-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--fan-line-2); }
.docs-ill-dots { display: flex; gap: 6px; }
.docs-ill-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ill-dot-red); }
.docs-ill-dots i:nth-child(2) { background: var(--ill-dot-amber); }
.docs-ill-dots i:nth-child(3) { background: var(--ill-dot-green); }
.docs-ill-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--band-primary) 35%, var(--band-white));
  border-radius: 9px;
  background: var(--band-white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--band-primary) 10%, transparent);
  color: var(--hero-sub);
  font-size: 11px;
  font-weight: 500;
}
.docs-ill-search span { color: var(--text); }
.docs-ill-caret { width: 1.5px; height: 12px; margin-left: -4px; background: var(--primary-text); animation: docs-ill-blink 1.1s steps(1) infinite; }
@keyframes docs-ill-blink { 50% { opacity: 0; } }

/* The window's body: the menu, then the section. */
.docs-ill-body { display: grid; grid-template-columns: 136px minmax(0, 1fr); }
.docs-ill-menu {
  margin: 0;
  padding: 14px 8px;
  list-style: none;
  border-right: 1px solid var(--fan-line-2);
  background: color-mix(in srgb, var(--band-primary) 3%, var(--band-white));
}
.docs-ill-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 6px 7px;
  border-radius: 7px;
  overflow: hidden;
  color: var(--tab-text);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.2;
}
.docs-ill-menu-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-ill-menu-item svg { flex: none; }
.docs-ill-menu-on { background: color-mix(in srgb, var(--band-primary) 12%, var(--band-white)); color: var(--primary-text); }
.docs-ill-main { display: flex; flex-direction: column; padding: 14px 16px 18px; min-width: 0; }
.docs-ill-crumb { color: var(--primary-text); font-size: 9px; font-weight: 600; }
.docs-ill-title { margin-top: 4px; color: var(--text); font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.docs-ill-lines { display: flex; flex-direction: column; gap: 5px; margin: 10px 0 12px; }
.docs-ill-lines i { display: block; height: 6px; border-radius: 3px; background: var(--fan-line-1); }
.docs-ill-lines i + i { width: 70%; background: var(--fan-line-2); }

/* The steps: two done (a green tick), the third in progress (the primary). */
.docs-ill-steps { display: flex; flex-direction: column; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; }
.docs-ill-step { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--tab-text); font-size: 10.5px; font-weight: 600; }
.docs-ill-step-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-ill-step-mark {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 9.5px;
  font-weight: 800;
}
.docs-ill-step-done .docs-ill-step-mark { background: color-mix(in srgb, var(--ok) 14%, var(--band-white)); }
.docs-ill-step-done .docs-ill-step-mark svg { stroke: var(--ok); }
.docs-ill-step-done .docs-ill-step-text { color: var(--hero-sub); text-decoration: line-through; text-decoration-color: var(--fan-line-1); }
.docs-ill-step-now .docs-ill-step-mark { background: linear-gradient(135deg, var(--band-primary) 0%, var(--band-primary-dark) 100%); color: var(--on-btn); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--band-primary) 70%, transparent); }
.docs-ill-step-now .docs-ill-step-text { color: var(--text); }

/* The screenshot, marked as every picture in these docs is: a red outline with a glow round
 * the thing to click, a dashed arrow, and a red label. */
.docs-ill-shot { container-type: inline-size; overflow: hidden; border: 1px solid var(--fan-line-1); border-radius: 10px; background: var(--band-white); box-shadow: var(--fan-shadow-lg); }
.docs-ill-shot-bar { display: flex; gap: 4px; padding: 6px 8px; background: var(--fan-line-2); }
.docs-ill-shot-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--fan-line-1); }
.docs-ill-shot-body { position: relative; display: block; height: 78px; padding: 10px 12px; }
.docs-ill-shot-row { display: block; width: 58%; height: 6px; margin-bottom: 6px; border-radius: 3px; background: var(--fan-line-1); }
.docs-ill-shot-short { width: 38%; background: var(--fan-line-2); }
.docs-ill-shot-target {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 4px;
  border: 2px solid var(--ill-mark);
  border-radius: 9px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ill-mark) 18%, transparent);
}
.docs-ill-shot-button { display: block; width: 64px; height: 18px; border-radius: 6px; background: var(--band-primary); }
.docs-ill-shot-arrow { position: absolute; left: 86px; top: 18px; stroke: var(--ill-mark); }
.docs-ill-shot-label {
  position: absolute;
  left: 150px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ill-mark) 88%, var(--band-white)) 0%, var(--ill-mark) 100%);
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--ill-mark) 80%, transparent);
  color: var(--on-btn);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
/* A narrow screenshot has no room for the arrow: the label sits right beside the outline. */
@container (max-width: 240px) {
  .docs-ill-shot-arrow { display: none; }
  .docs-ill-shot-label { left: 96px; top: auto; bottom: 13px; }
}


.docs-home-body { max-width: 1120px; margin: 0 auto; padding: 56px 24px 80px; }
.docs-home-section { margin-bottom: 56px; }
.docs-home-section > h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Browse by topic: an even grid of compact cards, 3 to a row (2 on a tablet, 1 on a phone),
 * the same width whether there is one topic or twelve. The docs card style: a thin border,
 * rounded corners; on hover a blue border, a small lift and a soft shadow. */
.docs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .docs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .docs-cards { grid-template-columns: minmax(0, 1fr); } }
/* A topic card: the icon on a tile with the guide count beside it, the title and a
 * one-line description, a short list of the topic's guides under a thin rule, and "Start
 * with this topic". The whole card opens the first guide: its title link is stretched over
 * the card, and the guide links sit above that. */
.docs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.docs-shell .docs-card:hover {
  border-color: var(--primary-text);
  box-shadow: var(--elev-card);
  transform: translateY(-2px);
}
.docs-card:focus-within { border-color: var(--primary-text); }
@media (prefers-reduced-motion: reduce) {
  .docs-shell .docs-card:hover { transform: none; }
  .docs-pager-icon svg { transition: none; }
  .docs-shell .docs-pager .docs-pager-card:hover .docs-pager-icon svg { transform: none; }
  .docs-ill-back, .docs-ill-win { transition: none; }
  .docs-ill-caret { animation: none; }
}
.docs-card:target { border-color: var(--primary-text); }
.docs-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.docs-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--primary-line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 100%);
  color: var(--primary-text);
}
.docs-card-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-soft-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.docs-card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.docs-shell .docs-card-link { color: var(--text); text-decoration: none; }
.docs-card-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.docs-card-link:focus-visible { outline: none; }
.docs-card:has(.docs-card-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* At most two lines, and room for two, so the cards in a row are the same height. */
.docs-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3em;
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}
.docs-card-guides {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
}
.docs-card-guides li { margin: 0 0 8px; }
.docs-card-guides li:last-child { margin-bottom: 0; }
.docs-card-guides a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}
.docs-card-guides a::before { content: "›"; flex: none; color: var(--primary-text); font-weight: 700; }
.docs-shell .docs-card-guides a:hover { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.docs-card-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--primary-text);
  font-size: 14px;
  font-weight: 600;
}
.docs-card-count svg { transition: transform .15s; }
.docs-card:hover .docs-card-count svg { transform: translateX(3px); }

/* Popular guides: one list card, a row per guide (a page icon, the title, a one-line
 * description, an arrow), thin lines between the rows, a soft blue row on hover. */
.docs-popular {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.docs-popular li + li { border-top: 1px solid var(--border); }
.docs-popular a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--text);
  transition: background-color .15s;
}
.docs-shell .docs-popular a:hover { background: var(--primary-soft); color: var(--text); text-decoration: none; }
.docs-popular-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-text);
}
.docs-popular a > svg { flex: none; margin-left: auto; color: var(--primary-text); transition: transform .15s; }
.docs-popular a:hover > svg { transform: translateX(2px); }
.docs-popular-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.docs-popular-title { font-weight: 600; color: var(--text); }
.docs-popular-desc { overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }

.docs-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--primary-line);
  border-radius: var(--docs-radius-lg);
  background: var(--primary-soft);
}
.docs-help h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--text); }
.docs-help p { margin: 0; color: var(--text-2); }
.docs-help p a { color: var(--primary-soft-text); font-weight: 600; }
.docs-help-actions { display: flex; flex: none; gap: 12px; }
.docs-help-actions .docs-cta svg { flex: none; }
.docs-help-actions .docs-cta { gap: 8px; }

/* ── 404 ────────────────────────────────────────────────────────────────── */

.docs-page-404 .docs-article h1 { font-size: clamp(32px, 5vw, 48px); }

/* ── Lightbox ───────────────────────────────────────────────────────────── */

.docs-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
}
.docs-lightbox::backdrop { background: var(--scrim); }
.docs-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.docs-lightbox img {
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 96px);
  border-radius: var(--docs-radius);
  background: var(--surface);
  box-shadow: var(--elev-lg);
  cursor: zoom-out;
}
.docs-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--elev-md);
}
.docs-lightbox-close:hover { background: var(--surface-2); }

/* ── Responsive ─────────────────────────────────────────────────────────── */

.docs-menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.docs-menu-button:hover { border-color: var(--primary-text); color: var(--primary-text); }

@media (max-width: 1199px) {
  .docs-article-layout, .docs-band-inner { grid-template-columns: minmax(0, var(--read-w)); }
  .docs-band-art { display: none; }
  .docs-toc, .docs-toc:not(.docs-toc-empty) { display: none; }
  .docs-toc-mobile {
    display: block;
    margin: 0 0 24px;
    border: 1px solid var(--border);
    border-radius: var(--docs-radius);
    background: var(--bg-soft);
  }
  .docs-toc-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .docs-toc-mobile summary::-webkit-details-marker { display: none; }
  .docs-toc-mobile summary svg { color: var(--muted); transition: transform .15s; }
  .docs-toc-mobile[open] summary svg { transform: rotate(90deg); }
  .docs-toc-mobile ol { list-style: none; margin: 0; padding: 0 16px 12px; }
  .docs-toc-mobile li a { display: block; padding: 6px 0; color: var(--text-2); font-size: 15px; }
}

@media (max-width: 899px) {
  .docs-menu-button { display: inline-flex; }
  /* No keyboard hint in the drawer: it is opened by touch. */
  .docs-side-search .docs-kbd { display: none; }

  .docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 80;
    width: min(320px, 86vw);
    height: auto;
    overflow-y: auto;
    padding: 0 16px 24px;
    border-right: 1px solid var(--border);
    box-shadow: var(--elev-lg);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
  }
  /* In the drawer the drawer scrolls, and nothing in it is sticky. */
  .docs-sidebar-inner { position: static; max-height: none; overflow: visible; padding: 0; }
  .docs-page-home .docs-sidebar { display: block; }
  .docs-sidebar.docs-open { transform: none; visibility: visible; transition: transform .2s ease; }
  .docs-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    margin: 0 -4px 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .docs-drawer-title { color: var(--text); font-weight: 700; }
  .docs-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: var(--scrim);
  }
  .docs-scrim[hidden] { display: none; }

  .docs-article-layout { padding: 24px 20px 56px; }
  .docs-band-inner { padding: 24px 20px 32px; }
  .docs-help { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 599px) {
  .docs-home-body { padding: 40px 16px 56px; }
  .docs-cards { grid-template-columns: minmax(0, 1fr); }
  .docs-article-layout { padding: 20px 16px 48px; }
  .docs-band-inner { padding: 20px 16px 28px; }
  .docs-lede { font-size: 17px; }
  .docs-article h2 { font-size: 23px; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager-gap { display: none; }
  .docs-pager .docs-next { order: -1; }
  .docs-help { padding: 24px 20px; }
  .docs-help-actions { flex-direction: column; width: 100%; }
  .docs-help-actions > a { width: 100%; }
  .docs-steps > li { padding-left: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .docs-card:hover, .docs-cta:hover { transform: none; }
  /* A picture loading: just the grey box, no shimmer, and no fade once it is here. */
  .docs-zoom.docs-img-loading::after { display: none; animation: none; }
  .docs-zoom img { transition: none; }
  /* The section reached: the light blue shows, then goes when the script takes the class
     away, with no fade. */
  .docs-section-flash { animation: none !important; }
}

@media print {
  body > header, body > footer, .docs-sidebar, .docs-toc, .docs-toc-mobile, .docs-pager, .docs-copy { display: none !important; }
  .docs-article-layout { display: block; padding: 0; }
}
