/* ─────────────────────────────────────────────────────────────
   Color system (dark mode)
   Low-contrast palette: reduced brightness / saturation so the
   black-leaning background never competes with content.
────────────────────────────────────────────────────────────── */
:root {
  --bg: #0f1217;           /* base bg — lifted off pure black */
  --bg-soft: #12171f;      /* softer surface */
  --panel: #151b23;        /* raised panels */
  --panel-2: #0f141b;      /* subtle inset */
  --border: #f2c744;         /* gold/orange borders */
  --border-soft: #d9a92c;    /* softer gold/orange */
  --border-code: #f2c744;    /* code border gold */
  --text: #c6d1dc;         /* soft text, lower contrast */
  --text-strong: #dde4ee;  /* weaker strong text */
  --text-strong-rgb: 221 228 238;
  --muted: #98a2ae;        /* softer muted */
  --faint: #6d7680;        /* faint label */
  --gold: #f2c744;         /* muted warm accent */
  --gold-soft: #f2c74480;  /* 50% opacity gold tint */
  --bg-gold-gradient: radial-gradient(1200px 600px at 0% 20%, #f2c74414, #f2c74400 60%);
  --link: #7a9bc0;         /* softer link */
  --green: #6fbe74;       /* softer green */
  --red: #ff6b6b;          /* softer red */
  --code-bg: #0a0e12;
  --bg-hover: rgba(255, 255, 255, 0.03);
  --arch-items-bg: rgba(255, 255, 255, 0.025);
  --asset-play-color: #1b160a;
  --badge-bg: rgba(5, 8, 10, 0.82);
  --badge-border: rgba(255, 255, 255, 0.14);
  --badge-text: #d8dde4;
  --font: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --topbar-h: 58px;
  --sidebar-w: 250px;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --panel: #f0f2f5;
  --panel-2: #e9ecf0;
  --border: #e8c97a;         /* gold/orange borders */
  --border-soft: #f0ddae;    /* softer gold/orange */
  --border-code: #e8c97a;    /* code border gold */
  --text: #1a1a2e;
  --text-strong: #0f0f0f;
  --muted: #5f6b78;
  --faint: #8c97a2;
  --gold: #d9a92c;
  --gold-soft: #d9a92c80;  /* 50% opacity gold tint */
  --bg-gold-gradient: radial-gradient(1200px 600px at 0% 20%, #d9a92c14, #d9a92c00 60%);
  --link: #1d65b0;
  --green: #1e7e34;
  --red: #c44545;
  --code-bg: #f1f3f5;
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .topbar-nav a:hover {
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .topbar-install {
  color: #b8860b; /* dark yellow on light background */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(242, 199, 68, 0.28); color: #fff; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { color: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--gold);
  color: #17130a;
  border-radius: 4px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Top bar ------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  background: rgba(12, 15, 19, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.topbar-inner {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand-text { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.brand-text strong { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; color: var(--text-strong); }
.brand-text span { font-size: 11.5px; color: var(--faint); letter-spacing: 0.02em; }
.version-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}
.topbar-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.topbar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12.5px;
}
.topbar-nav a:hover { color: var(--text-strong); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.topbar-nav .icon { width: 14px; height: 14px; }
.topbar-install {
  flex: none;
  padding: 6px 12px;
  border: 1px solid rgba(242, 199, 68, 0.45);
  border-radius: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  background: var(--gold-soft);
}
.topbar-install:hover { background: rgba(242, 199, 68, 0.16); text-decoration: none; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12.5px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text-strong); border-color: var(--border-soft); }
.theme-icon { display: inline-flex; align-items: center; justify-content: center; }
.theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-sun { display: inline-flex; }
[data-theme="light"] .theme-icon-moon { display: none; }
.theme-icon-moon { display: inline-flex; }

/* Shell --------------------------------------------------------------- */
.docs-shell {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  align-items: stretch;
  background: var(--bg) var(--bg-gold-gradient), var(--bg);
}
.docs-sidebar { border-right: 1px solid var(--border-soft); min-height: calc(100vh - var(--topbar-h)); }
.sidebar-sticky {
  position: sticky;
  top: var(--topbar-h);
  max-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 32px 18px 28px 22px;
  scrollbar-width: thin;
  scrollbar-color: #2a313a transparent;
}
.sidebar-heading {
  margin: 0 0 10px;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.toc { display: flex; flex-direction: column; gap: 1px; }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 6px 8px 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); text-decoration: none; }
[data-theme="light"] .toc a:hover { background: rgba(33, 33, 33, 0.035); }
.toc a.active { color: var(--text-strong); background: rgba(242, 199, 68, 0.03); border-left-color: var(--gold); }
[data-theme="light"] .toc a.active { background: rgba(221, 176, 28, 0.03); }
.toc-num { font-family: var(--mono); font-size: 9.5px; color: var(--faint); letter-spacing: 0.03em; }
.toc a.active .toc-num { color: var(--gold); }
.sidebar-footer {
  margin-top: 26px;
  padding: 14px 8px 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10.5px;
  color: var(--faint);
}
.sidebar-footer a { color: var(--muted); font-size: 11px; }
.sidebar-footer a:hover { color: var(--text); }

.doc-main { min-width: 0; padding: 48px 56px 72px; }
.doc-article { max-width: 860px; }

/* Header -------------------------------------------------------------- */
.doc-header { padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.doc-eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.pronunciation {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--faint);
  vertical-align: middle;
  margin-left: 6px;
}
.doc-lede {
  max-width: 740px;
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
}
.doc-lede strong { color: var(--text); font-weight: 600; }
.doc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.doc-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-soft);
  font-size: 11px;
  color: var(--muted);
}
.doc-facts code { font-size: 10.5px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 33px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
}
.button:hover { background: #171d24; border-color: #3a4450; text-decoration: none; }
.button .icon { width: 14px; height: 14px; }
.button.primary { background: var(--gold); border-color: #d9a92c; color: #1b160a; }
.button.primary:hover { background: #ffcf55; }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); padding-left: 7px; padding-right: 7px; }
.button.ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
[data-theme="light"] .button.ghost:hover { background: rgba(33, 33, 33, 0.04); }

/* Prose --------------------------------------------------------------- */
p { margin: 0 0 14px; color: var(--text); }
strong { color: var(--text-strong); font-weight: 600; }
em { color: var(--text); }
ul, ol { margin: 14px 0 18px; padding-left: 22px; }
li { margin: 6px 0; color: var(--text); }
li::marker { color: var(--faint); }
li strong { color: var(--text); }
h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 640;
}
h3 {
  margin: 30px 0 10px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 620;
}
h4 { margin: 22px 0 8px; color: var(--text); font-size: 14px; }
p code, li code, td code, th code, .doc-facts code, .callout code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--text);
  background: var(--code-bg);
  border: 1px solid var(--border-code);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: break-spaces;
}
a code { color: var(--link); }
.muted { color: var(--faint); font-size: 13px; }

.doc-section {
  margin-top: 54px;
  padding-top: 38px;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: calc(var(--topbar-h) + 18px);
}
.section-head { display: flex; align-items: baseline; gap: 11px; margin-bottom: 16px; }
.section-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 0.08em;
  flex: none;
  transform: translateY(-1px);
}
.anchor {
  margin-left: 6px;
  color: var(--faint);
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.15s ease;
}
h2:hover .anchor, .anchor:focus { opacity: 1; text-decoration: none; }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { position: relative; padding-left: 30px; margin: 9px 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
}
.callout {
  margin: 20px 0;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--bg-soft);
}
.callout-title {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.callout p { margin: 0; font-size: 13.5px; line-height: 1.65; }

/* Tables -------------------------------------------------------------- */
.table-wrap {
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
thead th {
  padding: 8px 13px;
  border-bottom: 1px solid var(--gold-soft);
  background: var(--gold-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
td, tbody th {
  padding: 9px 13px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
  text-align: left;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: rgba(var(--text-strong-rgb), 0.04); }
[data-theme="light"] tbody tr:hover td, [data-theme="light"] tbody tr:hover th { background: rgba(var(--text-strong-rgb), 0.04); }
tbody th { width: 150px; color: var(--muted); font-weight: 500; }
td { color: var(--text); }
td code { white-space: nowrap; }
.table-wrap table td:first-child { color: var(--text); }

/* Code ---------------------------------------------------------------- */
.code-block {
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--code-bg);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}
.code-head .copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 10.5px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.code-head .copy:hover { color: var(--text); border-color: var(--border); background: var(--bg-hover); }
.code-head .copy .icon { width: 12px; height: 12px; }
.code-head .copy.copied { color: var(--green); }
pre {
  margin: 0;
  padding: 15px 16px;
  overflow-x: auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.25px;
  line-height: 1.7;
  tab-size: 2;
}
pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}
.repo-tree {
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* Architecture -------------------------------------------------------- */
.arch {
  margin: 20px 0 22px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 70%),
    var(--panel);
}
[data-theme="light"] .arch {
  background:
    linear-gradient(180deg, rgba(33, 33, 33, 0.018), transparent 70%),
    var(--panel);
}
.arch-tier {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--code-bg);
}
.arch-tier.muted { border-style: dashed; background: transparent; }
.arch-tier-title {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.arch-tier.muted .arch-tier-title { margin-bottom: 0; color: var(--muted); }
.arch-items { display: flex; flex-wrap: wrap; gap: 6px; }
.arch-items span {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--arch-items-bg);
  color: var(--muted);
}
.arch-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 34px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.arch-link::before, .arch-link::after { content: ""; width: 26px; height: 1px; background: var(--border); }

/* Assets -------------------------------------------------------------- */
.asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 8px; }
.asset-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel);
  overflow: hidden;
}
.asset-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--code-bg);
  overflow: hidden;
  cursor: pointer;
}
.asset-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 0.2s ease, transform 0.35s ease; }
.asset-poster:hover img { opacity: 1; transform: scale(1.015); }
.asset-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gold);
  color: var(--asset-play-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}
.asset-play .icon { width: 18px; height: 18px; margin-left: 2px; }
.asset-poster:hover .asset-play { transform: translate(-50%, -50%) scale(1.07); }
.asset-badge {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 3px 7px;
  border: 1px solid var(--badge-border);
  border-radius: 3px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.asset-body { padding: 13px 14px 15px; }
.asset-body h3 { margin: 0 0 5px; font-size: 13.5px; }
.asset-body p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.asset-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.5;
}
.youtube-pill {
  flex: none;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(1px);
}
.asset-note code { font-size: 10.5px; }
.asset-note.pulse { animation: note-pulse 0.75s ease 2; }
@keyframes note-pulse {
  0%, 100% { color: var(--faint); }
  50% { color: var(--gold); }
}
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550; }
.text-link .icon { width: 13px; height: 13px; }
.text-link:hover { text-decoration: none; }
.text-link:hover .icon { transform: translateX(2px); }

/* Footer -------------------------------------------------------------- */
.doc-footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 11.5px;
}
.footer-left { display: flex; align-items: center; gap: 7px; }
.footer-left img { width: 20px; height: 20px; opacity: 0.8; }
.footer-sep { opacity: 0.5; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 11.5px; }
.footer-links a:hover { color: var(--text); }

/* Mobile contents ----------------------------------------------------- */
.mobile-toc { display: none; margin-bottom: 26px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); }
.mobile-toc summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  list-style: none;
}
.mobile-toc summary::-webkit-details-marker { display: none; }
.mobile-toc[open] summary { border-bottom: 1px solid var(--border); }
.mobile-toc .toc { padding: 6px 10px 10px; }
.mobile-toc .toc a { padding: 7px 9px; }

/* 404 ----------------------------------------------------------------- */
.notfound { min-height: calc(100vh - var(--topbar-h)); display: grid; place-items: center; padding: 36px 20px; }
.notfound-card { width: 100%; max-width: 560px; }
.notfound .doc-eyebrow { margin-bottom: 10px; }
.notfound h1 { font-size: clamp(56px, 12vw, 88px); line-height: 0.95; margin-bottom: 12px; }
.notfound p { font-size: 15px; }
.notfound .doc-actions { margin-top: 20px; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1060px) {
  :root { --sidebar-w: 220px; }
  .doc-main { padding: 40px 38px 64px; }
  .topbar-nav a { padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 860px) {
  :root { --topbar-h: 54px; }
  .topbar-nav { display: none; }
  .topbar-inner { padding: 0 18px; gap: 10px; }
  .version-pill { margin-left: auto; }
  .docs-shell { display: block; }
  .docs-sidebar { display: none; }
  .mobile-toc { display: block; }
  .doc-main { padding: 26px 22px 56px; }
  .doc-article { max-width: none; }
  .doc-header { padding-bottom: 24px; }
  .doc-lede { font-size: 15.5px; }
  .doc-section { margin-top: 44px; padding-top: 30px; }
  .asset-grid { grid-template-columns: 1fr; }
  .doc-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .topbar-inner { padding: 0 14px; }
  .brand-text span { display: none; }
  .version-pill { display: none; }
  .topbar-install { margin-left: auto; }
  .doc-main { padding: 22px 16px 48px; }
  h1 { font-size: 36px; }
  h2 { font-size: 23px; }
  .doc-lede { font-size: 14.5px; margin-top: 14px; }
  .doc-facts { gap: 5px; }
  .doc-facts span { font-size: 10px; padding: 2px 6px; }
  .section-head { gap: 8px; }
  .table-wrap { border-radius: 4px; }
  table { font-size: 12px; }
  thead th, td, tbody th { padding: 7px 9px; }
  tbody th { width: 110px; }
  .code-head { padding: 6px 9px; }
  pre { padding: 12px; font-size: 11.25px; }
  .arch { padding: 14px; }
  .arch-items span { font-size: 9.5px; }
  .doc-actions .button { flex: 1 1 auto; }
  .asset-badge { font-size: 7.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .topbar, .docs-sidebar, .mobile-toc, .doc-actions, .code-head .copy { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .docs-shell { display: block; max-width: none; }
  .doc-main { padding: 0; }
  .doc-article { max-width: none; }
  .doc-header, .doc-section, .doc-footer { border-color: #ccc; }
  h1, h2, h3, strong { color: #000; }
  p, li, td, tbody th { color: var(--text); }
  a { color: #0645ad; }
  pre, .code-block, .table-wrap, .arch, .asset-card { break-inside: avoid; }
  .code-block, .table-wrap, .arch, .asset-card { background: #fff; border-color: #ccc; }
  pre { color: #111; }
}
