/* The docs, in Mintlify's layout and sizes (its "Mint" theme, measured on mintlify.com/docs): a 48px
   header with tabs, a 248px page list on the left, a 648px column centred on the window, "On this
   page" on the right; Inter throughout, zinc greys and Artifacts blue as the primary colour. */

@font-face { font-family: 'Inter'; src: url('/docs/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Rethink Sans'; src: url('/docs/fonts/rethink-sans.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --primary: #3764e0;
  --primary-soft: rgb(55 100 224 / 0.1);
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --heading: #09090b;
  --text: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: rgb(9 9 11 / 0.1);
  --line-soft: rgb(9 9 11 / 0.06);
  --tint: rgb(9 9 11 / 0.035);
  --tint-strong: rgb(9 9 11 / 0.06);
  --code-bg: #ffffff;
  --code-frame: #f6f6f7;
  --inline-code: rgb(9 9 11 / 0.05);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 40px -12px rgb(0 0 0 / 0.18);
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Rethink Sans', var(--sans);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --nav-h: 48px;
  --side-w: 248px;
  --col: 648px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --primary: #7d9cf5;
  --primary-soft: rgb(125 156 245 / 0.14);
  --bg: #0b0b0d;
  --bg-soft: #111114;
  --heading: #fafafa;
  --text: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --line: rgb(255 255 255 / 0.1);
  --line-soft: rgb(255 255 255 / 0.06);
  --tint: rgb(255 255 255 / 0.05);
  --tint-strong: rgb(255 255 255 / 0.08);
  --code-bg: #0f0f12;
  --code-frame: #18181b;
  --inline-code: rgb(255 255 255 / 0.07);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 40px -12px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/24px var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg.i { width: 16px; height: 16px; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ---- header ---- */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); display: flex; align-items: center; gap: 16px; padding: 0 36px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--heading); font: 500 18px/1 var(--display); letter-spacing: -0.01em; }
.logo .mark { width: 26px; height: 26px; }
.tabs { display: flex; align-items: center; gap: 4px; }
.tab { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -0.35px; color: var(--muted); transition: color 0.15s, background 0.15s; white-space: nowrap; }
.tab:hover { color: var(--heading); }
.tab.active { color: var(--heading); background: var(--tint); }
.nav-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: var(--tint); color: var(--muted); transition: color 0.15s, background 0.15s; }
.icon-btn:hover { color: var(--heading); background: var(--tint-strong); }
.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 0.15s, border-color 0.15s; }
.pill.outline { border: 1px solid var(--line); color: var(--heading); }
.pill.outline:hover { background: var(--tint); }
.pill.primary { background: var(--primary); color: #fff; }
:root[data-theme='dark'] .pill.primary { color: #0b0b0d; }
.pill.primary:hover { filter: brightness(1.08); }
.theme-btn .moon { display: none; }
:root[data-theme='dark'] .theme-btn .sun { display: none; }
:root[data-theme='dark'] .theme-btn .moon { display: block; }
.menu-btn { display: none; }

/* ---- page list ---- */
.sidebar { position: fixed; top: var(--nav-h); bottom: 0; left: 0; width: var(--side-w); overflow-y: auto; padding: 20px 20px 32px; z-index: 20; background: var(--bg); scrollbar-width: thin; }
.side-tabs { display: none; }
.side-group + .side-group { margin-top: 32px; }
.side-title { margin: 0 0 6px; padding-left: 16px; font-size: 12px; line-height: 20px; font-weight: 600; color: var(--heading); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a { display: block; padding: 6px 12px 6px 16px; font-size: 14px; line-height: 20px; color: var(--text); border-radius: 12px; transition: color 0.12s; }
.sidebar li a:hover { color: var(--heading); }
.sidebar li a.active { color: var(--primary); font-weight: 500; }
.scrim { display: none; }

/* ---- the page ---- */
.frame { margin-left: var(--side-w); min-width: 0; }
.content { width: 100%; max-width: calc(var(--col) + 48px); padding: 24px 24px 0; margin-left: max(0px, calc(50vw - var(--col) / 2 - 24px - var(--side-w))); }
.page-head { padding-top: 8px; }
.eyebrow { margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--primary); }
.title-row { display: flex; align-items: center; gap: 12px; }
.title-row h1 { flex: 1; min-width: 0; margin: 0; font-size: 36px; line-height: 40px; font-weight: 500; letter-spacing: -0.5px; color: var(--heading); overflow-wrap: anywhere; }
.description { margin: 8px 0 0; font-size: 18px; line-height: 28px; letter-spacing: -0.2px; color: var(--text); text-wrap: pretty; }

/* Copy page */
.copy-page { position: relative; display: flex; flex: none; }
.copy-page > button { display: inline-flex; align-items: center; gap: 8px; height: 34px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 14px; font-weight: 500; transition: background 0.15s; }
.copy-page > button:hover { background: var(--tint); }
.copy-main { padding: 0 12px; border-radius: 12px 0 0 12px; }
.copy-more { padding: 0 8px; border-left: 0 !important; border-radius: 0 12px 12px 0; }
.copy-menu { position: absolute; right: 0; top: 40px; z-index: 25; width: 280px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.copy-menu > * { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; }
.copy-menu > *:hover { background: var(--tint); }
.copy-menu svg.i { margin-top: 3px; color: var(--muted); }
.copy-menu b { display: block; font-size: 14px; font-weight: 500; color: var(--heading); line-height: 20px; }
.copy-menu small { display: block; font-size: 13px; color: var(--muted); line-height: 18px; }

/* ---- text ---- */
.prose { margin-top: 32px; font-size: 16px; line-height: 28px; letter-spacing: -0.2px; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; }
.prose h2 { position: relative; margin: 40px 0 16px; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.6px; color: var(--heading); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h3 { position: relative; margin: 32px 0 12px; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.4px; color: var(--heading); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h4 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; color: var(--heading); }
.anchor { position: absolute; left: -32px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; color: var(--muted); opacity: 0; transition: opacity 0.15s; }
.anchor svg.i { width: 14px; height: 14px; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { background: var(--tint); color: var(--heading); }
.prose a:not(.card):not(.anchor) { color: var(--heading); font-weight: 600; border-bottom: 1px solid var(--primary); transition: border-width 0.1s; }
.prose a:not(.card):not(.anchor):hover { border-bottom-width: 2px; }
.prose strong { font-weight: 600; color: var(--heading); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--faint); }
.prose ol > li::marker { color: var(--muted); font-weight: 500; }
.prose li > p { margin: 0; }
.prose blockquote { margin: 0 0 20px; padding: 2px 0 2px 16px; border-left: 2px solid var(--line); color: var(--text); }
.prose blockquote p { margin: 0 0 12px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:not(pre) > code { font-family: var(--mono); font-size: 0.875em; font-weight: 500; padding: 2px 6px; border-radius: 6px; background: var(--inline-code); color: var(--heading); overflow-wrap: anywhere; }
.prose h2 code, .prose h3 code { font-size: 0.9em; }

/* tables */
.table { overflow-x: auto; margin: 0 0 24px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; letter-spacing: -0.1px; }
.prose th { text-align: left; font-weight: 600; color: var(--heading); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th:last-child, .prose td:last-child { padding-right: 0; }
.prose td:first-child { white-space: nowrap; }

/* the facts at the top of a kind's page: guide topic, tools, more guides */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0 24px; margin: 0 0 28px; font-size: 14px; line-height: 22px; }
.facts dt, .facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.facts dt { color: var(--muted); }
.facts dd { color: var(--text); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }

/* ---- callouts ---- */
.callout { display: flex; gap: 12px; margin: 16px 0 20px; padding: 16px 20px; border: 1px solid; border-radius: 16px; font-size: 15px; line-height: 26px; }
.callout-icon { flex: none; margin-top: 4px; }
.callout-icon svg.i { width: 18px; height: 18px; }
.callout-body { min-width: 0; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-body p { margin: 0 0 12px; }
.callout.note { background: #f0f9ff; border-color: #bae6fd; color: #0c4a6e; }
.callout.note .callout-icon { color: #0284c7; }
.callout.tip { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.callout.tip .callout-icon { color: #16a34a; }
.callout.warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.callout.warning .callout-icon { color: #d97706; }
.callout.info { background: var(--bg-soft); border-color: var(--line); color: var(--text); }
.callout.info .callout-icon { color: var(--muted); }
.callout a:not(.card) { color: inherit !important; border-bottom-color: currentColor !important; }
.callout strong, .callout code { color: inherit; }
:root[data-theme='dark'] .callout.note { background: rgb(14 165 233 / 0.08); border-color: rgb(14 165 233 / 0.25); color: #bae6fd; }
:root[data-theme='dark'] .callout.note .callout-icon { color: #38bdf8; }
:root[data-theme='dark'] .callout.tip { background: rgb(34 197 94 / 0.08); border-color: rgb(34 197 94 / 0.25); color: #bbf7d0; }
:root[data-theme='dark'] .callout.tip .callout-icon { color: #4ade80; }
:root[data-theme='dark'] .callout.warning { background: rgb(245 158 11 / 0.08); border-color: rgb(245 158 11 / 0.25); color: #fde68a; }
:root[data-theme='dark'] .callout.warning .callout-icon { color: #fbbf24; }

/* ---- steps ---- */
.steps { margin: 28px 0 24px; counter-reset: step; }
.step { position: relative; display: flex; gap: 16px; padding-bottom: 20px; counter-increment: step; }
.step-mark { position: relative; flex: none; width: 28px; }
.step-mark::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--tint-strong); color: var(--heading); font-size: 12px; font-weight: 600; letter-spacing: -0.2px; }
.step-mark::after { content: ''; position: absolute; left: 13.5px; top: 40px; bottom: -8px; width: 1px; background: var(--line); }
.step:last-child .step-mark::after { display: none; }
.step-body { flex: 1; min-width: 0; }
.step-body > :last-child { margin-bottom: 0; }
.prose .step-title { margin: 0 0 8px; font-size: 16px; line-height: 28px; font-weight: 600; color: var(--heading); letter-spacing: -0.2px; }

/* ---- cards ---- */
.cards { display: grid; gap: 16px; margin: 24px 0 28px; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); transition: border-color 0.15s, box-shadow 0.15s; }
.cards.cols-1 .card { flex-direction: row; align-items: center; gap: 18px; }
.card:hover { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.card-icon { color: var(--primary); display: flex; }
.card-icon svg.i { width: 24px; height: 24px; }
.card-text { display: flex; flex-direction: column; gap: 2px; }
.card-title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--heading); letter-spacing: -0.2px; }
.card-desc { font-size: 15px; line-height: 24px; color: var(--muted); }

/* ---- code ---- */
.code-wrap { margin: 20px 0 28px; }
.step-body .code-wrap { margin: 16px 0 20px; }
.code-block { position: relative; padding: 2px; border: 1px solid var(--line); border-radius: 16px; background: var(--code-frame); }
.code-block.bare { background: var(--code-bg); }
.code-head { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 8px 0 14px; }
.code-title { font-size: 13px; font-weight: 500; color: var(--muted); }
.code-tabs { display: flex; gap: 16px; height: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.code-tabs button { position: relative; height: 100%; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 0.15s; }
.code-tabs button:hover { color: var(--heading); }
.code-tabs button[aria-selected='true'] { color: var(--primary); }
.code-tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--primary); }
.code-copy { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: var(--faint); transition: color 0.15s, background 0.15s; }
.code-copy:hover { color: var(--heading); background: var(--tint); }
.code-copy .done { display: none; color: #16a34a; }
.code-copy.copied .i:not(.done) { display: none; }
.code-copy.copied .done { display: block; }
.code-body { position: relative; background: var(--code-bg); border-radius: 14px; }
.code-block:not(.bare) .code-body { box-shadow: 0 0 0 1px var(--line-soft); }
.code-block.bare .code-copy { position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--code-bg); }
.code-body pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13.5px/24px var(--mono); letter-spacing: -0.1px; background: transparent !important; border-radius: 14px; }
.code-block.bare pre { padding-right: 52px; }
/* Plain text (a prompt, settings) wraps; code scrolls sideways, under a fade behind the copy button. */
.code-body[data-lang='text'] pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.code-block.bare .code-copy { box-shadow: -10px 0 10px 2px var(--code-bg); }
.code-body pre code { font: inherit; padding: 0; background: none; }
:root[data-theme='dark'] .shiki, :root[data-theme='dark'] .shiki span { color: var(--shiki-dark) !important; }

/* ---- MCP reference ---- */
.tool { padding-top: 8px; }
.tool + .tool { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.tool h2 { margin-top: 0; }
.tool h2 code { padding: 0; background: none; font-size: 21px; font-weight: 600; letter-spacing: -0.3px; }
.params-title { margin: 20px 0 4px !important; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.params-none { color: var(--muted); font-size: 14px; }
.param { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.params > .param:last-child { border-bottom: 0; }
.param-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.param-name { padding: 0 !important; background: none !important; font-size: 14px !important; font-weight: 600 !important; color: var(--primary) !important; }
.param-type { font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.param-req { font-size: 12px; font-weight: 500; color: #dc2626; padding: 0 6px; border-radius: 6px; background: rgb(220 38 38 / 0.08); line-height: 20px; }
:root[data-theme='dark'] .param-req { color: #f87171; background: rgb(248 113 113 / 0.12); }
.param-desc { margin-top: 6px; font-size: 14.5px; line-height: 24px; color: var(--text); }
.children { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; }
.children > summary { cursor: pointer; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--muted); list-style: none; user-select: none; }
.children > summary::-webkit-details-marker { display: none; }
.children > summary::before { content: '+'; display: inline-block; width: 14px; font-weight: 600; }
.children[open] > summary::before { content: '−'; }
.children > summary:hover { color: var(--heading); }
.children-body { padding: 0 14px; border-top: 1px solid var(--line-soft); }
.children-body > .param:last-child { border-bottom: 0; }

/* ---- previous and next ---- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 56px 0 0; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.15s; }
.pager a:hover { border-color: var(--primary); }
.pager-next { align-items: flex-end; text-align: right; }
.pager-title { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--heading); }
.pager-dir { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--muted); }
.pager-dir svg.i { width: 14px; height: 14px; }

/* ---- on this page ---- */
.toc { position: fixed; top: var(--nav-h); right: 0; width: 256px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 16px 20px 32px 0; font-size: 14px; line-height: 24px; scrollbar-width: none; }
.toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 500; color: var(--text); }
.toc ul { list-style: none; margin: 0; padding: 0 0 0 16px; }
.toc li a { position: relative; display: block; padding: 4px 0; color: var(--muted); transition: color 0.12s; }
.toc li.l3 a { padding-left: 14px; }
.toc li a:hover { color: var(--heading); }
.toc li a.active { color: var(--primary); font-weight: 500; }
.toc li a.active::before { content: ''; position: absolute; left: -15px; top: 14px; width: 5px; height: 5px; border-radius: 999px; background: var(--primary); }
.toc code { padding: 0; background: none; font-size: 13px; font-weight: inherit; color: inherit; }

/* ---- footer ---- */
.foot { max-width: 920px; margin: 120px auto 0; padding: 0 24px 40px; margin-left: max(24px, calc(50vw - 460px - var(--side-w))); }
.foot-top { display: flex; gap: 48px; justify-content: space-between; flex-wrap: wrap; }
.foot-brand p { margin: 12px 0 0; max-width: 240px; font-size: 14px; color: var(--muted); }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-cols p { margin: 0 0 2px; font-weight: 600; color: var(--heading); }
.foot-cols a { color: var(--muted); }
.foot-cols a:hover { color: var(--heading); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.theme-pick { display: flex; gap: 4px; }
.theme-pick button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: var(--faint); transition: color 0.15s, background 0.15s; }
.theme-pick button:hover { color: var(--heading); }
.theme-pick button[aria-checked='true'] { background: var(--tint-strong); color: var(--heading); }

/* ---- search ---- */
.search { position: fixed; inset: 0; z-index: 50; background: rgb(9 9 11 / 0.3); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); display: flex; justify-content: center; align-items: flex-start; padding: 56px 16px 16px; }
.search[hidden] { display: none; }
.search-box { width: 100%; max-width: 640px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.search-input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px 0 16px; color: var(--muted); }
.search-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 16px var(--sans); color: var(--heading); }
.search-input input::placeholder { color: var(--faint); }
.search-input input::-webkit-search-cancel-button { display: none; }
kbd { font: 500 11px/1 var(--sans); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: min(60vh, 520px); overflow-y: auto; border-top: 1px solid var(--line-soft); }
.search-results:empty { display: none; }
.search-results li a { display: block; padding: 10px 12px; border-radius: 10px; }
.search-results li.sel a { background: var(--tint-strong); }
.search-results .r-where { display: block; font-size: 12px; line-height: 18px; color: var(--muted); }
.search-results .r-head { display: block; font-size: 14.5px; line-height: 22px; font-weight: 500; color: var(--heading); }
.search-results .r-text { display: block; margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-results mark { background: none; color: var(--primary); font-weight: 600; }
.search-results .r-none { padding: 18px 12px; font-size: 14px; color: var(--muted); }

/* ---- smaller windows ---- */
@media (max-width: 1279px) {
  .toc { display: none; }
  .content { margin-left: max(0px, calc((100vw - var(--side-w)) / 2 - var(--col) / 2 - 24px)); }
  .foot { margin-left: auto; margin-right: auto; }
}
@media (max-width: 1023px) {
  .nav { padding: 0 16px; }
  .tabs { display: none; }
  .menu-btn { display: inline-flex; background: none; }
  .sidebar { transform: translateX(-100%); transition: transform 0.2s ease; width: 300px; padding-top: 12px; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow); }
  body.nav-open .scrim { display: block; position: fixed; inset: var(--nav-h) 0 0; z-index: 15; background: rgb(9 9 11 / 0.3); }
  .side-tabs { display: flex; flex-direction: column; gap: 2px; margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
  .side-tabs .tab { justify-content: flex-start; height: 34px; padding: 0 16px; }
  .frame { margin-left: 0; }
  .content { margin: 0 auto; }
}
@media (max-width: 640px) {
  .pill.outline { display: none; }
  .content { padding: 16px 16px 0; }
  .title-row { flex-direction: column; align-items: flex-start; }
  .title-row h1 { font-size: 30px; line-height: 36px; }
  .cards.cols-2, .cards.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: 1fr; }
  .anchor { display: none; }
  .foot { padding: 0 16px 32px; margin-top: 80px; }
  .foot-cols { gap: 32px; }
}
