/* MIRA SDK docs (/docs). Standalone layout; nothing here touches store pages. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --d-bg: #f7f7f7;
  --d-panel: #ffffff;
  --d-line: #e8e8e8;
  --d-line-strong: #d9d9d9;
  --d-text: #111111;
  --d-body: #3b3b3b;
  --d-muted: #6b6b6b;
  --d-subtle: #8c8c8c;
  --d-hover: rgba(17, 17, 17, 0.045);
  --d-active: rgba(17, 17, 17, 0.075);
  --d-accent: #ff5e2b;
  --d-focus: #2d62ff;
  --d-inline-code: #f2f2f2;
  --d-code-frame: #f5f5f5;
  --d-code-bg: #ffffff;
  --d-solid-bg: #111111;
  --d-solid-text: #ffffff;
  --d-scrim: rgba(17, 17, 17, 0.32);
  --d-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.06);
  --d-note: #2d62ff; --d-note-bg: rgba(45, 98, 255, 0.06); --d-note-line: rgba(45, 98, 255, 0.2);
  --d-tip: #15803d; --d-tip-bg: rgba(21, 128, 61, 0.06); --d-tip-line: rgba(21, 128, 61, 0.2);
  --d-warn: #b45309; --d-warn-bg: rgba(217, 119, 6, 0.08); --d-warn-line: rgba(217, 119, 6, 0.25);
  --t-k: #8250df; --t-s: #0a3069; --t-c: #6e7781; --t-n: #0550ae; --t-f: #953800; --t-t: #116329; --t-m: #8250df; --t-a: #953800; --t-tag: #116329; --t-attr: #953800;
  --d-top: 64px;
  --d-side: 272px;
  --d-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --d-bg: #0a0a0a; --d-panel: #111111; --d-line: rgba(255, 255, 255, 0.09); --d-line-strong: rgba(255, 255, 255, 0.15);
    --d-text: #f3f3f3; --d-body: #c7c7c7; --d-muted: #9b9b9b; --d-subtle: #7c7c7c;
    --d-hover: rgba(255, 255, 255, 0.06); --d-active: rgba(255, 255, 255, 0.1); --d-focus: #7aa2ff;
    --d-inline-code: rgba(255, 255, 255, 0.08); --d-code-frame: #171717; --d-code-bg: #0d0d0d;
    --d-solid-bg: #f3f3f3; --d-solid-text: #111111; --d-scrim: rgba(0, 0, 0, 0.6);
    --d-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --d-note: #7aa2ff; --d-note-bg: rgba(122, 162, 255, 0.08); --d-note-line: rgba(122, 162, 255, 0.22);
    --d-tip: #4ade80; --d-tip-bg: rgba(74, 222, 128, 0.07); --d-tip-line: rgba(74, 222, 128, 0.2);
    --d-warn: #fbbf24; --d-warn-bg: rgba(251, 191, 36, 0.07); --d-warn-line: rgba(251, 191, 36, 0.22);
    --t-k: #d2a8ff; --t-s: #a5d6ff; --t-c: #8b949e; --t-n: #79c0ff; --t-f: #ffa657; --t-t: #7ee787; --t-m: #d2a8ff; --t-a: #ffa657; --t-tag: #7ee787; --t-attr: #ffa657;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --d-bg: #0a0a0a; --d-panel: #111111; --d-line: rgba(255, 255, 255, 0.09); --d-line-strong: rgba(255, 255, 255, 0.15);
  --d-text: #f3f3f3; --d-body: #c7c7c7; --d-muted: #9b9b9b; --d-subtle: #7c7c7c;
  --d-hover: rgba(255, 255, 255, 0.06); --d-active: rgba(255, 255, 255, 0.1); --d-focus: #7aa2ff;
  --d-inline-code: rgba(255, 255, 255, 0.08); --d-code-frame: #171717; --d-code-bg: #0d0d0d;
  --d-solid-bg: #f3f3f3; --d-solid-text: #111111; --d-scrim: rgba(0, 0, 0, 0.6);
  --d-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --d-note: #7aa2ff; --d-note-bg: rgba(122, 162, 255, 0.08); --d-note-line: rgba(122, 162, 255, 0.22);
  --d-tip: #4ade80; --d-tip-bg: rgba(74, 222, 128, 0.07); --d-tip-line: rgba(74, 222, 128, 0.2);
  --d-warn: #fbbf24; --d-warn-bg: rgba(251, 191, 36, 0.07); --d-warn-line: rgba(251, 191, 36, 0.22);
  --t-k: #d2a8ff; --t-s: #a5d6ff; --t-c: #8b949e; --t-n: #79c0ff; --t-f: #ffa657; --t-t: #7ee787; --t-m: #d2a8ff; --t-a: #ffa657; --t-tag: #7ee787; --t-attr: #ffa657;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--d-top) + 20px); background: var(--d-bg); }
body.docs-body {
  margin: 0;
  background: var(--d-bg);
  color: var(--d-body);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.docs-body a { color: inherit; }
.docs-body button { font: inherit; color: inherit; }
.docs-body :focus-visible { outline: 2px solid var(--d-focus); outline-offset: 2px; border-radius: 6px; }
.docs-i { flex: none; display: block; }
.docs-skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--d-solid-bg); color: var(--d-solid-text) !important; text-decoration: none; font-size: 14px; font-weight: 500; }
.docs-skip:focus { top: 12px; }

/* Top bar */
.docs-topbar { position: sticky; top: 0; z-index: 40; height: var(--d-top); display: flex; align-items: center; gap: 16px; padding: 0 20px 0 0; background: var(--d-bg); }
.docs-topbar-start { width: var(--d-side); flex: none; display: flex; align-items: center; gap: 4px; padding-left: 28px; }
.docs-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--d-text); text-decoration: none; border-radius: 8px; }
.docs-logo { width: 40px; height: 20px; color: var(--d-text); }
.docs-brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--d-text); padding-left: 10px; border-left: 1px solid var(--d-line-strong); line-height: 20px; }
.docs-tabs { display: flex; align-items: center; gap: 4px; min-width: 0; }
.docs-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--d-muted); text-decoration: none; white-space: nowrap; transition: color 0.15s, background-color 0.15s; }
.docs-tab:hover { color: var(--d-text); background: var(--d-hover); }
.docs-tab.is-active { color: var(--d-text); }
.docs-topbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.docs-button { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 13px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, opacity 0.15s; }
.docs-button--ghost { border: 1px solid var(--d-line-strong); color: var(--d-text); background: var(--d-panel); }
.docs-button--ghost:hover { background: var(--d-hover); }
.docs-button--solid { background: var(--d-solid-bg); color: var(--d-solid-text) !important; border: 1px solid var(--d-solid-bg); }
.docs-button--solid:hover { opacity: 0.86; }
.docs-icon-button { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--d-text); cursor: pointer; }
.docs-icon-button:hover { background: var(--d-hover); }

/* Layout */
.docs-layout { display: grid; grid-template-columns: var(--d-side) minmax(0, 1fr); align-items: start; }
.docs-sidebar { position: sticky; top: var(--d-top); height: calc(100vh - var(--d-top)); height: calc(100dvh - var(--d-top)); }
.docs-sidebar-inner { height: 100%; display: flex; flex-direction: column; padding: 6px 16px 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.docs-search-trigger { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px 0 13px; border: 1px solid var(--d-line-strong); border-radius: 12px; background: var(--d-panel); color: var(--d-subtle); font-size: 14.5px; cursor: pointer; text-align: left; transition: border-color 0.15s; flex: none; }
.docs-search-trigger:hover { border-color: var(--d-subtle); }
.docs-search-trigger span { flex: 1; }
.docs-body kbd { font-family: inherit; font-size: 12px; font-weight: 500; color: var(--d-subtle); padding: 1px 6px; border: 1px solid var(--d-line); border-radius: 6px; background: var(--d-bg); line-height: 18px; }
.docs-nav { margin-top: 8px; }
.docs-nav-group { margin-top: 22px; }
.docs-nav-heading { margin: 0 0 6px; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--d-text); letter-spacing: -0.005em; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.docs-nav-link { display: block; padding: 6px 12px; border-radius: 10px; font-size: 14.5px; line-height: 21px; color: var(--d-muted); text-decoration: none; transition: color 0.12s, background-color 0.12s; }
.docs-nav-link:hover { color: var(--d-text); background: var(--d-hover); }
.docs-nav-link.is-active { color: var(--d-text); background: var(--d-active); font-weight: 500; }
.docs-sidebar-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 2px; }
.docs-sidebar-link { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; font-size: 13.5px; color: var(--d-muted); text-decoration: none; }
.docs-sidebar-link:hover { color: var(--d-text); background: var(--d-hover); }
.docs-theme { margin: 12px 0 0 8px; display: inline-flex; width: max-content; gap: 2px; padding: 3px; border: 1px solid var(--d-line); border-radius: 999px; background: var(--d-panel); }
.docs-theme button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--d-subtle); cursor: pointer; }
.docs-theme button:hover { color: var(--d-text); }
.docs-theme button[aria-pressed="true"] { background: var(--d-active); color: var(--d-text); }
.docs-scrim { display: none; }
.docs-drawer-head { display: none; }

.docs-main { min-width: 0; padding: 0 12px 12px 0; outline: none; }
.docs-panel { position: relative; background: var(--d-panel); border: 1px solid var(--d-line); border-radius: 16px; min-height: calc(100vh - var(--d-top) - 12px); }
/* Keeps the panel's rounded top edge pinned under the top bar while the page scrolls. */
.docs-panel-cap { position: sticky; top: var(--d-top); z-index: 6; height: 16px; margin: -1px -1px -15px; background: var(--d-bg); pointer-events: none; }
.docs-panel-cap::before { content: ""; position: absolute; inset: 0 0 -1px; border: 1px solid var(--d-line); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--d-panel); }
.docs-panel-inner { display: grid; grid-template-columns: minmax(0, 680px) 216px; justify-content: center; gap: 72px; padding: 56px 48px 72px; }
.docs-article { min-width: 0; }

/* Page head */
.docs-page-head { margin-bottom: 40px; }
.docs-eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 500; color: var(--d-muted); }
.docs-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.docs-title-text { min-width: 0; }
.docs-title-row h1 { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 600; letter-spacing: -0.028em; color: var(--d-text); }
.docs-lede { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: var(--d-muted); }
.docs-copy-page { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; margin-top: 3px; padding: 0 12px; border: 1px solid var(--d-line-strong); border-radius: 10px; background: var(--d-panel); color: var(--d-text); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.docs-copy-page:hover { background: var(--d-hover); }
.docs-i-done { display: none; }
.is-copied .docs-i-done { display: block; }
.is-copied .docs-i-done + .docs-i, .is-copied > .docs-i:not(.docs-i-done) { display: none; }

/* Prose */
.docs-prose { font-size: 16px; line-height: 28px; color: var(--d-body); }
.docs-prose > :first-child { margin-top: 0; }
.docs-prose p { margin: 0 0 18px; }
.docs-prose strong { color: var(--d-text); font-weight: 600; }
.docs-prose a:not(.docs-card):not(.docs-anchor) { color: var(--d-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--d-line-strong); font-weight: 500; transition: text-decoration-color 0.15s; }
.docs-prose a:not(.docs-card):not(.docs-anchor):hover { text-decoration-color: var(--d-accent); }
.docs-prose h2, .docs-prose h3 { position: relative; color: var(--d-text); }
.docs-prose h2 { margin: 52px 0 14px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.docs-prose h3 { margin: 34px 0 10px; font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.docs-anchor { position: absolute; left: -26px; top: 50%; transform: translateY(-50%); display: flex; padding: 4px; border-radius: 6px; color: var(--d-subtle); opacity: 0; transition: opacity 0.12s; }
.docs-prose h2:hover .docs-anchor, .docs-prose h3:hover .docs-anchor, .docs-anchor:focus-visible { opacity: 1; }
.docs-prose ul, .docs-prose ol { margin: 0 0 20px; padding-left: 24px; }
.docs-prose li { margin: 6px 0; padding-left: 4px; }
.docs-prose li::marker { color: var(--d-subtle); }
.docs-prose hr { border: 0; border-top: 1px solid var(--d-line); margin: 40px 0; }
.docs-prose :not(pre) > code { font-family: var(--d-mono); font-size: 0.86em; padding: 0.12em 0.38em; border: 1px solid var(--d-line); border-radius: 6px; background: var(--d-inline-code); color: var(--d-text); white-space: nowrap; }
.docs-prose p > code, .docs-prose li > code { white-space: normal; overflow-wrap: anywhere; }
.docs-prose img { max-width: 100%; height: auto; }
.docs-prose figure { margin: 28px 0; }
.docs-prose figcaption { margin-top: 10px; font-size: 14px; line-height: 22px; color: var(--d-muted); text-align: center; }

/* Code blocks */
.docs-code { margin: 22px 0 26px; border: 1px solid var(--d-line); border-radius: 14px; background: var(--d-code-frame); padding: 0 4px 4px; }
.docs-code-head { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px 0 10px; }
.docs-code-title { font-size: 13px; font-weight: 500; color: var(--d-muted); padding: 0 2px; }
.docs-code-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.docs-code-tab { height: 40px; padding: 0 8px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 13px; font-weight: 500; color: var(--d-subtle); cursor: pointer; white-space: nowrap; }
.docs-code-tab:hover { color: var(--d-text); }
.docs-code-tab[aria-selected="true"] { color: var(--d-text); border-bottom-color: var(--d-text); }
.docs-code-copy { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--d-subtle); cursor: pointer; }
.docs-code-copy:hover { color: var(--d-text); background: var(--d-hover); }
.docs-pre { margin: 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--d-line); border-radius: 10px; background: var(--d-code-bg); font-family: var(--d-mono); font-size: 13.5px; line-height: 22px; color: var(--d-text); tab-size: 4; scrollbar-width: thin; }
.docs-pre code { font: inherit; white-space: pre; }
.t-k, .t-m { color: var(--t-k); }
.t-s { color: var(--t-s); }
.t-c { color: var(--t-c); font-style: italic; }
.t-n { color: var(--t-n); }
.t-f { color: var(--t-f); }
.t-t { color: var(--t-t); }
.t-a { color: var(--t-a); }
.t-tag { color: var(--t-tag); }
.t-attr { color: var(--t-attr); }

/* Tables */
.docs-table { margin: 22px 0 26px; overflow-x: auto; border: 1px solid var(--d-line); border-radius: 12px; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.docs-table th { text-align: left; font-weight: 600; color: var(--d-text); background: var(--d-code-frame); padding: 10px 14px; border-bottom: 1px solid var(--d-line); white-space: nowrap; }
.docs-table td { padding: 10px 14px; border-top: 1px solid var(--d-line); vertical-align: top; }
.docs-table tr:first-child td { border-top: 0; }
.docs-table td:first-child { white-space: nowrap; color: var(--d-text); }
.docs-table td code { white-space: nowrap; }

/* Callouts */
.docs-callout { display: flex; gap: 12px; margin: 22px 0 26px; padding: 14px 16px; border: 1px solid var(--d-note-line); border-radius: 12px; background: var(--d-note-bg); font-size: 15px; line-height: 25px; }
.docs-callout-icon { flex: none; padding-top: 3px; color: var(--d-note); }
.docs-callout-body > :last-child { margin-bottom: 0; }
.docs-callout-body p { margin: 0 0 10px; }
.docs-callout--tip { border-color: var(--d-tip-line); background: var(--d-tip-bg); }
.docs-callout--tip .docs-callout-icon { color: var(--d-tip); }
.docs-callout--warning { border-color: var(--d-warn-line); background: var(--d-warn-bg); }
.docs-callout--warning .docs-callout-icon { color: var(--d-warn); }

/* Cards */
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; margin: 22px 0 30px; }
.docs-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border: 1px solid var(--d-line); border-radius: 14px; background: var(--d-panel); text-decoration: none; color: var(--d-body); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.docs-card:hover { border-color: var(--d-line-strong); box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.18); transform: translateY(-1px); }
.docs-card-icon { color: var(--d-text); margin-bottom: 12px; }
.docs-card-title { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--d-text); letter-spacing: -0.01em; }
.docs-card-text { font-size: 14px; line-height: 21px; color: var(--d-muted); }

/* Steps */
.docs-steps { list-style: none; margin: 26px 0 30px; padding: 0 !important; counter-reset: docs-step; }
.docs-steps > li { position: relative; margin: 0; padding: 0 0 28px 46px; counter-increment: docs-step; }
.docs-steps > li::before { content: counter(docs-step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--d-line-strong); border-radius: 999px; background: var(--d-panel); font-size: 13px; font-weight: 600; color: var(--d-text); }
.docs-steps > li::after { content: ""; position: absolute; left: 14px; top: 36px; bottom: 6px; width: 1px; background: var(--d-line); }
.docs-steps > li:last-child { padding-bottom: 4px; }
.docs-steps > li:last-child::after { display: none; }
.docs-steps > li > h3 { margin: 0 0 6px !important; font-size: 16.5px !important; line-height: 28px !important; }
.docs-steps > li > p { margin-bottom: 12px; }
.docs-steps .docs-code, .docs-steps .docs-callout { margin: 14px 0 6px; }

/* Definition lists (API reference) */
.docs-api { margin: 18px 0 28px; border: 1px solid var(--d-line); border-radius: 12px; overflow: hidden; }
.docs-api > div { padding: 14px 16px; border-top: 1px solid var(--d-line); }
.docs-api > div:first-child { border-top: 0; }
.docs-api dt { margin: 0 0 4px; font-family: var(--d-mono); font-size: 13.5px; line-height: 21px; color: var(--d-text); overflow-wrap: anywhere; }
.docs-api dt .t-f { font-weight: 600; }
.docs-api dd { margin: 0; font-size: 14.5px; line-height: 23px; color: var(--d-body); }
.docs-api dd code { white-space: nowrap; }

/* Display illustrations */
.docs-display { margin: 26px 0 30px; }
.docs-display svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.docs-ramp { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; margin: 20px 0 8px; padding: 12px; border-radius: 12px; background: #000; }
.docs-ramp span { display: flex; align-items: flex-end; justify-content: center; height: 46px; border-radius: 6px; font: 600 11px/1 var(--d-mono); color: rgba(255, 255, 255, 0.55); padding-bottom: 5px; }
.docs-ramp span:nth-child(n+9) { color: rgba(0, 0, 0, 0.6); }

/* Accordions (FAQ) */
.docs-faq { margin: 18px 0 28px; border: 1px solid var(--d-line); border-radius: 12px; }
.docs-faq details { border-top: 1px solid var(--d-line); }
.docs-faq details:first-child { border-top: 0; }
.docs-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 500; color: var(--d-text); cursor: pointer; list-style: none; }
.docs-faq summary::-webkit-details-marker { display: none; }
.docs-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--d-subtle); border-bottom: 1.5px solid var(--d-subtle); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.15s; }
.docs-faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.docs-faq details > div { padding: 0 16px 6px; font-size: 15px; line-height: 25px; }
.docs-faq details > div p { margin: 0 0 12px; }

/* Pager and footer */
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.docs-pager-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--d-line); border-radius: 12px; text-decoration: none; transition: border-color 0.15s; }
.docs-pager-link:hover { border-color: var(--d-line-strong); }
.docs-pager-next { text-align: right; align-items: flex-end; }
.docs-pager-label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--d-muted); }
.docs-pager-title { font-size: 15px; font-weight: 500; color: var(--d-text); }
.docs-page-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--d-line); font-size: 14px; color: var(--d-muted); }
.docs-page-foot p { margin: 0; }
.docs-page-foot a { color: var(--d-text); text-underline-offset: 3px; text-decoration-color: var(--d-line-strong); }

/* On this page */
.docs-toc { position: sticky; top: calc(var(--d-top) + 40px); align-self: start; max-height: calc(100vh - var(--d-top) - 80px); overflow-y: auto; padding-top: 2px; font-size: 14px; scrollbar-width: none; }
.docs-toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 500; color: var(--d-text); }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--d-line); }
.docs-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 15px; border-left: 1px solid transparent; color: var(--d-muted); text-decoration: none; line-height: 20px; transition: color 0.12s, border-color 0.12s; }
.docs-toc-l3 a { padding-left: 27px; font-size: 13.5px; }
.docs-toc a:hover { color: var(--d-text); }
.docs-toc a.is-active { color: var(--d-text); border-left-color: var(--d-text); font-weight: 500; }

/* Search */
.docs-search { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: var(--d-scrim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.docs-search[hidden] { display: none; }
.docs-search-dialog { width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--d-line); border-radius: 16px; background: var(--d-panel); box-shadow: var(--d-shadow); }
.docs-search-field { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 16px; height: 56px; border-bottom: 1px solid var(--d-line); color: var(--d-subtle); flex: none; }
.docs-search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--d-text); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.docs-search-field input::-webkit-search-cancel-button { display: none; }
.docs-search-field input:focus-visible { outline: none; }
.docs-search-field:focus-within { color: var(--d-text); }
.docs-search-results { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.docs-search-empty { padding: 28px 12px; text-align: center; font-size: 14px; color: var(--d-muted); }
.docs-search-group { padding: 10px 10px 4px; font-size: 12px; font-weight: 500; color: var(--d-subtle); }
.docs-search-item { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--d-body); }
.docs-search-item.is-active, .docs-search-item:hover { background: var(--d-active); }
.docs-search-item-title { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--d-text); }
.docs-search-item-title .docs-i { color: var(--d-subtle); }
.docs-search-item-text { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--d-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.docs-search mark { background: rgba(255, 94, 43, 0.2); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Responsive */
@media (max-width: 1279px) {
  .docs-panel-inner { grid-template-columns: minmax(0, 720px); }
  .docs-toc { display: none; }
}
@media (max-width: 1023px) {
  :root { --d-top: 60px; }
  .docs-topbar { padding: 0 10px 0 6px; gap: 6px; }
  .docs-topbar-start { width: auto; padding-left: 0; gap: 2px; }
  .docs-icon-button { display: inline-flex; }
  .docs-tabs { display: none; }
  .docs-layout { display: block; }
  .docs-sidebar { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); height: auto; background: var(--d-bg); border-right: 1px solid var(--d-line); transform: translateX(-102%); transition: transform 0.22s ease; visibility: hidden; }
  .docs-sidebar-inner { padding-top: 10px; }
  .docs-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -6px 12px 0; padding-left: 4px; min-height: 40px; }
  .docs-nav-open .docs-sidebar { transform: none; visibility: visible; box-shadow: var(--d-shadow); }
  .docs-scrim { position: fixed; inset: 0; z-index: 65; background: var(--d-scrim); }
  .docs-nav-open .docs-scrim { display: block; }
  .docs-main { padding: 0 8px 8px; }
  .docs-panel { border-radius: 14px; min-height: calc(100vh - var(--d-top) - 8px); }
  .docs-panel-cap::before { border-radius: 14px 14px 0 0; }
  .docs-panel-inner { padding: 36px 22px 48px; }
  .docs-anchor { display: none; }
}
@media (max-width: 640px) {
  .docs-topbar-end .docs-button--ghost { display: none; }
  .docs-brand-name { font-size: 14px; padding-left: 8px; }
  .docs-logo { width: 36px; height: 18px; }
  .docs-panel-inner { padding: 28px 18px 40px; }
  .docs-title-row { flex-direction: column; gap: 14px; }
  .docs-title-row h1 { font-size: 30px; }
  .docs-lede { font-size: 17px; }
  .docs-copy-page { margin-top: 2px; align-self: flex-start; }
  .docs-prose h2 { font-size: 22px; line-height: 30px; margin-top: 44px; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager-next { text-align: left; align-items: flex-start; }
  .docs-ramp { gap: 2px; padding: 8px; }
  .docs-ramp span { height: 36px; font-size: 9px; border-radius: 4px; }
  .docs-search { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .docs-body *, .docs-body *::before, .docs-body *::after { transition: none !important; }
}
@media print {
  .docs-topbar, .docs-sidebar, .docs-toc, .docs-pager, .docs-copy-page, .docs-code-copy { display: none !important; }
  .docs-layout { display: block; }
  .docs-panel { border: 0; }
}
.docs-caption { margin: 0 0 22px; font-size: 14px; line-height: 22px; color: var(--d-muted); text-align: center; }
