:root {
  color-scheme: light;
  --docs-bg: #ffffff;
  --docs-paper: #ffffff;
  --docs-ink: #1a1a1a;
  --docs-muted: #5f6368;
  --docs-line: #e5e7eb;
  --docs-accent: #8e4d2b;
  --docs-accent-soft: #f7ece4;
  --docs-olive: #555b43;
  --docs-code: #f8f9fa;
  --docs-code-ink: #1f2937;
  --docs-code-muted: #59636e;
  --docs-shadow: 0 18px 60px rgba(15, 23, 42, 0.09);
  /* Border-radius scale: docs are light-only and every component is
     rounded. sm = inline chips/badges, md = buttons/pills/panels,
     lg = cards/code blocks/tables/dropdowns, pill = search field. */
  --docs-radius-sm: 6px;
  --docs-radius-md: 10px;
  --docs-radius-lg: 14px;
  --docs-radius-pill: 999px;
}

/* Docs are light-only by design: no dark theme, no prefers-color-scheme
   override, no theme toggle. Every surface stays white. */

body.docs-page {
  min-height: 100vh;
  color: var(--docs-ink);
  background-color: var(--docs-bg);
  background-image: none;
  transition: background-color 180ms ease, color 180ms ease;
}

/* The site stylesheet enables smooth scrolling globally. On this page the
   script owns scrolling instead: an in-page jump is smooth only for a real
   click and only when the reader did not ask for reduced motion, while an
   initial load (hash or legacy deep link) lands on its section instantly
   instead of flying in from the top of the page. */
html { scroll-behavior: auto; }

.docs-page a,
.docs-page button,
.docs-page input,
.docs-page summary {
  font: inherit;
}

.docs-page a:focus-visible,
.docs-page button:focus-visible,
.docs-page input:focus-visible,
.docs-page summary:focus-visible {
  outline: 2px solid var(--docs-accent);
  outline-offset: 4px;
}

.docs-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 0 clamp(18px, 3.1vw, 46px);
  border-bottom: 1px solid color-mix(in srgb, var(--docs-line) 78%, transparent);
  background: color-mix(in srgb, var(--docs-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.docs-header.is-scrolled {
  border-bottom-color: var(--docs-line);
  background: color-mix(in srgb, var(--docs-bg) 96%, transparent);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

/* Thin reading-progress bar pinned to the top of the viewport (Docs /
   Mintlify-style orientation cue). Width is set by script; it carries no
   transition so it tracks the scroll position exactly. */
.docs-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}

.docs-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--docs-accent);
}
  color: var(--docs-ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.docs-wordmark span { color: var(--docs-accent); }

.docs-header-label {
  padding-left: 18px;
  border-left: 1px solid var(--docs-line);
  color: var(--docs-muted);
  font-size: 13px;
  text-decoration: none;
}

.docs-header-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 30px);
  margin-left: auto;
}

body.docs-page .docs-header-nav a {
  color: var(--docs-ink);
  font-size: 13px;
  text-decoration: none;
  transition: color 150ms ease;
}

body.docs-page .docs-header-nav a:hover,
body.docs-page .docs-header-nav a:focus-visible { color: var(--docs-accent); }

.docs-mobile-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-md);
  color: var(--docs-muted);
  background: var(--docs-paper);
  cursor: pointer;
  font-size: 12px;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.docs-mobile-open:hover {
  border-color: var(--docs-accent);
  color: var(--docs-ink);
}

/* Inline search: one field in the header on desktop, one in the sidebar on
   mobile. Results drop down directly under the field that was typed in. */
.docs-search { position: relative; }

.docs-header .docs-search {
  width: clamp(200px, 22vw, 300px);
  flex: 0 0 auto;
}

.docs-search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-pill);
  color: var(--docs-muted);
  background: var(--docs-paper);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.docs-search-box:hover { border-color: var(--docs-accent); }

.docs-search-box:focus-within {
  border-color: var(--docs-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--docs-accent) 22%, transparent);
}

.docs-search-box > span { color: var(--docs-accent); font-size: 18px; line-height: 1; }

.docs-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--docs-ink);
  background: transparent;
  font-size: 13px;
}

.docs-search-box input::placeholder { color: var(--docs-muted); }
.docs-search-box input:focus-visible { outline: 0; }
.docs-search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.docs-search-box kbd {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-sm);
  color: var(--docs-muted);
  background: var(--docs-bg);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.docs-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: min(56vh, 420px);
  margin: 0;
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-lg);
  background: var(--docs-paper);
  box-shadow: var(--docs-shadow);
  list-style: none;
}

.docs-search-results[hidden] { display: none; }
.docs-search-results:not([hidden]) { animation: search-pop 180ms ease; }
.docs-search-results li { animation: search-item-in 160ms ease both; }
.docs-search-results li:nth-child(2) { animation-delay: 18ms; }
.docs-search-results li:nth-child(3) { animation-delay: 36ms; }
.docs-search-results li:nth-child(4) { animation-delay: 54ms; }
.docs-search-results li:nth-child(5) { animation-delay: 72ms; }

@keyframes search-item-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes search-pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.docs-search-results a {
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border-radius: var(--docs-radius-md);
  color: var(--docs-ink);
  text-decoration: none;
}

.docs-search-results a:hover,
.docs-search-results a:focus-visible,
.docs-search-results a.is-active { background: var(--docs-accent-soft); }
.docs-search-results strong { font-size: 12px; }
.docs-search-results span { color: var(--docs-accent); font-family: var(--mono); font-size: 9px; }
.docs-search-results small { color: var(--docs-muted); font-size: 10px; line-height: 1.4; }
.docs-search-empty { padding: 12px; color: var(--docs-muted); font-size: 12px; }
.docs-mobile-open { display: none; }

.docs-frame {
  display: grid;
  grid-template-columns: 245px minmax(0, 790px) 190px;
  gap: clamp(24px, 3.8vw, 60px);
  align-items: start;
  width: min(100%, 1540px);
  min-height: calc(100vh - 72px);
  margin-inline: auto;
  padding: 38px clamp(20px, 3.2vw, 48px) 72px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 122px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--docs-line) transparent;
}

.docs-sidebar { padding: 6px 4px 24px 0; }
.docs-sidebar-top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.docs-sidebar-top button { display: none; }
.docs-sidebar-kicker,
.docs-toc-heading {
  color: var(--docs-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-search-sidebar { margin-bottom: 22px; }

/* The sidebar scrolls, so its results flow in place under the field instead
   of floating over (and being clipped by) the sidebar. */
.docs-search-sidebar .docs-search-results {
  position: static;
  max-height: min(48vh, 360px);
  margin-top: 8px;
  box-shadow: none;
}

.docs-nav-group { margin: 0 0 17px; interpolate-size: allow-keywords; }
.docs-nav-group summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  color: var(--docs-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  list-style: none;
}

.docs-nav-group summary::-webkit-details-marker { display: none; }
.docs-nav-group summary::before {
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--docs-muted);
  border-bottom: 1px solid var(--docs-muted);
  content: "";
  transform: rotate(-45deg);
  transition: transform 140ms ease;
}

.docs-nav-group[open] summary::before { transform: rotate(45deg); }

/* Smooth expand/collapse. Browsers with ::details-content animate the
   group height; everywhere else the links fade and slide in on open and the
   chevron still rotates. */
.docs-nav-group::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 240ms ease, content-visibility 240ms allow-discrete;
}

.docs-nav-group[open]::details-content { block-size: auto; }
.docs-nav-group[open] ul { animation: nav-group-in 220ms ease; }

@keyframes nav-group-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.docs-nav-group ul { display: grid; gap: 2px; margin: 3px 0 0; padding: 0 0 0 15px; list-style: none; }
.docs-nav-group a {
  display: block;
  padding: 7px 10px;
  border-left: 1px solid transparent;
  border-radius: 0 var(--docs-radius-md) var(--docs-radius-md) 0;
  color: var(--docs-muted);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.docs-nav-group a:hover { color: var(--docs-ink); transform: translateX(2px); }
.docs-nav-group a[aria-current="page"] {
  border-left-color: var(--docs-accent);
  color: var(--docs-accent);
  background: var(--docs-accent-soft);
  font-weight: 650;
}

.docs-sidebar-note {
  display: flex;
  gap: 9px;
  margin-top: 30px;
  padding: 13px 12px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-md);
  color: var(--docs-muted);
  font-size: 10px;
  line-height: 1.55;
}

.docs-status-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--docs-olive);
  /* Slow breathing ring so the availability note reads as live status,
   * not a dead bullet. The global reduced-motion rule damps this to a
   * single instant frame. */
  animation: docs-dot-pulse 2.8s ease-in-out infinite;
}

@keyframes docs-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(85, 91, 67, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(85, 91, 67, 0); }
}

.docs-main { min-width: 0; padding: 0 0 12px; }
.docs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: var(--docs-muted);
  font-size: 11px;
}

.docs-breadcrumbs a { color: var(--docs-muted); text-decoration: none; }
.docs-breadcrumbs a:hover { color: var(--docs-accent); }
.docs-breadcrumbs span:last-child { color: var(--docs-ink); }

.docs-page-heading {
  margin: 0 0 38px;
  padding: 0 0 29px;
  border-bottom: 1px solid var(--docs-line);
  animation: docs-heading-in 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes docs-heading-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.docs-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--docs-accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.docs-page-heading h1 {
  margin: 0;
  color: var(--docs-ink);
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.docs-page-description {
  max-width: 650px;
  margin: 17px 0 0;
  color: var(--docs-muted);
  font-size: 15px;
  line-height: 1.65;
}

.docs-prose {
  color: var(--docs-ink);
  font-size: 14.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.docs-page ::selection {
  color: var(--docs-ink);
  background: color-mix(in srgb, var(--docs-accent) 22%, #ffffff);
}

/* Body copy stays inside a readable measure (55–80 characters a line):
 * the 790px column would otherwise run past 100 characters. Code blocks,
 * tables and callouts keep the full column width. */
.docs-prose > p,
.docs-prose > ul,
.docs-prose > ol { max-width: 68ch; }

/* One page, one section per former page. Sections after the first are set
   apart by a rule so the long page still reads as distinct chapters. */
.docs-section { scroll-margin-top: 100px; }

/* Subtle entrance as a section scrolls into view. The script adds
   .docs-animated to the body, so without JavaScript every section is
   simply visible. */
.docs-animated .docs-section {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 340ms ease, transform 340ms ease;
}

.docs-animated .docs-section.is-visible { opacity: 1; transform: none; }

.docs-section + .docs-section {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--docs-line);
}

.docs-section-heading { margin: 0 0 30px; }

.docs-section-heading h2 {
  margin: 0;
  color: var(--docs-ink);
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.docs-section-description {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--docs-muted);
  font-size: 15px;
  line-height: 1.65;
}

.docs-prose > :first-child { margin-top: 0; }
.docs-prose p { margin: 0 0 19px; }
.docs-prose h2,
.docs-prose h3 {
  scroll-margin-top: 100px;
  color: var(--docs-ink);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* Hover-reveal permalink ("#") on headings, Starlight-style: the anchor
   is invisible until the heading is hovered or the link itself is focused,
   so the text stays clean while deep links stay one click away. */
.docs-anchor {
  margin-left: 8px;
  color: var(--docs-accent);
  font-size: 0.72em;
  font-weight: 600;
  opacity: 0;
  text-decoration: none;
  transition: opacity 140ms ease;
}

.docs-prose h2:hover .docs-anchor,
.docs-prose h3:hover .docs-anchor,
.docs-section-heading h2:hover .docs-anchor,
.docs-anchor:focus-visible { opacity: 1; }

.docs-prose h2 {
  margin: 42px 0 13px;
  padding-top: 10px;
  font-size: 29px;
  line-height: 1.2;
}

.docs-prose h3 { margin: 31px 0 11px; font-size: 21px; line-height: 1.28; }
.docs-prose a { color: var(--docs-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 140ms ease, text-decoration-color 140ms ease; }
.docs-prose a:hover { color: #6f3a1f; text-decoration-thickness: 2px; }
.docs-prose strong { font-weight: 680; }
.docs-prose code:not(pre code) {
  padding: 0.13em 0.34em;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-sm);
  color: var(--docs-accent);
  background: color-mix(in srgb, var(--docs-paper) 80%, var(--docs-bg));
  font-family: var(--mono);
  font-size: 0.88em;
}

.docs-prose ul,
.docs-prose ol { margin: 0 0 22px; padding-left: 24px; }
.docs-prose li { padding-left: 4px; margin: 5px 0; }
.docs-prose li::marker { color: var(--docs-accent); }
.docs-prose blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border: 1px solid var(--docs-line);
  border-left: 3px solid var(--docs-accent);
  border-radius: var(--docs-radius-lg);
  color: var(--docs-muted);
  background: var(--docs-accent-soft);
}

.docs-prose blockquote p:last-child { margin-bottom: 0; }
.docs-prose hr { height: 1px; margin: 32px 0; border: 0; background: var(--docs-line); }
.table-scroll {
  max-width: 100%;
  margin: 22px 0 27px;
  overflow-x: auto;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-lg);
  background: var(--docs-paper);
}
.docs-prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 1.6; }
.docs-prose th,
.docs-prose td { min-width: 100px; padding: 12px 14px; border-bottom: 1px solid var(--docs-line); text-align: left; vertical-align: top; }
.docs-prose th { color: var(--docs-ink); background: var(--docs-accent-soft); font-weight: 650; letter-spacing: 0.01em; }
.docs-prose thead th:first-child { border-top-left-radius: calc(var(--docs-radius-lg) - 1px); }
.docs-prose thead th:last-child { border-top-right-radius: calc(var(--docs-radius-lg) - 1px); }
.docs-prose tr:last-child td { border-bottom: 0; }
.docs-prose tr:last-child td:first-child { border-bottom-left-radius: calc(var(--docs-radius-lg) - 1px); }
.docs-prose tr:last-child td:last-child { border-bottom-right-radius: calc(var(--docs-radius-lg) - 1px); }
.docs-prose tr:hover td { background: #fafaf9; }
.docs-prose td { color: var(--docs-muted); }
.docs-prose td strong { color: var(--docs-ink); }

/* Card-style link list: a bullet whose first element is a bold link reads
   as a destination card, so the Models index and the hub page present their
   entries as navigation rather than plain bullets. */
.docs-prose li:has(> a > strong),
.docs-prose li:has(> strong > a) {
  padding: 12px 14px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-lg);
  background: var(--docs-paper);
  list-style: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.docs-prose ul:has(> li > a > strong),
.docs-prose ul:has(> li > strong > a) {
  display: grid;
  gap: 10px;
  max-width: none;
  padding-left: 0;
}

.docs-prose li:has(> a > strong):hover,
.docs-prose li:has(> strong > a):hover {
  border-color: color-mix(in srgb, var(--docs-accent) 40%, var(--docs-line));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.docs-prose li:has(> a > strong)::marker,
.docs-prose li:has(> strong > a)::marker { content: none; }

.docs-code {
  position: relative;
  margin: 22px 0 28px;
  overflow: hidden;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-lg);
  background: var(--docs-code);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.docs-code:hover {
  border-color: color-mix(in srgb, var(--docs-accent) 32%, var(--docs-line));
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

/* Expressive Code-style header bar: muted window dots, the language label,
   and the copy button in one row, so the block reads as a finished
   component instead of a bare grey box. */
.docs-code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 8px 6px 14px;
  border-bottom: 1px solid var(--docs-line);
  background: #fbfcfd;
}

.docs-code-dots { display: flex; gap: 6px; }
.docs-code-dots i {
  width: 10px;
  height: 10px;
  border: 1px solid #dfe3e6;
  border-radius: 50%;
  background: #eceff1;
}

.docs-code-lang {
  color: var(--docs-code-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.docs-code pre {
  max-width: 100%;
  margin: 0;
  padding: 20px;
  overflow: auto;
  color: var(--docs-code-ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  tab-size: 2;
}

.docs-code code { font: inherit; white-space: pre; }
.copy-code {
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-md);
  color: var(--docs-code-muted);
  background: #ffffff;
  cursor: pointer;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.copy-code:hover { color: var(--docs-ink); border-color: var(--docs-accent); background: #f4f1ef; }
.token-keyword { color: #b91c1c; }
.token-string { color: #032f62; }
.token-number { color: #005cc5; }
.token-comment { color: #59636e; font-style: italic; }
.token-literal { color: #6f42c1; }
.token-function { color: #6f42c1; }
.token-property { color: #005cc5; }
.token-variable { color: #9a3412; }
.token-punctuation { color: #4b5563; }

.api-operation-list { display: grid; gap: 8px; margin: 20px 0 28px; }
.api-operation {
  display: grid;
  grid-template-columns: 54px minmax(0, 1.7fr) minmax(150px, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-lg);
  background: var(--docs-paper);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.api-operation:hover {
  border-color: color-mix(in srgb, var(--docs-accent) 45%, var(--docs-line));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.api-operation > code {
  color: var(--docs-ink);
  font-family: var(--mono);
  font-size: 10px;
}

.api-operation > span:last-child { color: var(--docs-muted); font-size: 11px; line-height: 1.4; }
.method {
  display: inline-grid;
  place-items: center;
  min-height: 23px;
  border-radius: var(--docs-radius-sm);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.method-get { background: #506c55; }
.method-post { background: #94643d; }
.method-delete { background: #8c5145; }

/* Previous / next pager at the end of each visible section (Starlight /
   Docusaurus pattern): two cards, previous on the left, next on the right,
   so the reader can walk the docs in sidebar order without scrolling up. */
.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 52px 0 0;
}

.docs-pager-link {
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius-lg);
  background: var(--docs-paper);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.docs-pager-link:hover {
  border-color: color-mix(in srgb, var(--docs-accent) 45%, var(--docs-line));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.docs-pager-next { text-align: right; }
.docs-pager-empty { visibility: hidden; }
.docs-pager-label {
  color: var(--docs-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.docs-pager-title {
  color: var(--docs-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.docs-pager-link:hover .docs-pager-title { color: var(--docs-accent); }

.docs-footer { display: flex; justify-content: space-between; gap: 14px; padding-top: 7px; color: var(--docs-muted); font-size: 10px; }

.docs-toc { padding: 7px 0 20px; }
.docs-toc-heading { margin: 0 0 13px; }
/* One list per section; the script shows the list of the section the
   reader is in, so the rail always matches the visible content. */
.docs-toc-list { display: none; }
.docs-toc-list.is-active { display: block; }
/* A hairline rail down the list; the heading the reader is on gets the
   accent segment, so the rail doubles as a progress marker. */
.docs-toc ol { display: grid; gap: 2px; margin: 0; padding: 0 0 0 1px; border-left: 1px solid var(--docs-line); list-style: none; }
.docs-toc li { line-height: 1.4; }
.docs-toc .toc-level-3 { padding-left: 12px; }
.docs-toc a { display: block; margin-left: -2px; padding: 4px 0 4px 11px; border-left: 2px solid transparent; color: var(--docs-muted); font-size: 10px; text-decoration: none; transition: color 140ms ease, border-color 140ms ease; }
.docs-toc a:hover { color: var(--docs-accent); }
.docs-toc a.is-active { border-left-color: var(--docs-accent); color: var(--docs-accent); font-weight: 650; }
.docs-toc-empty { color: var(--docs-muted); font-size: 10px; }
.docs-openapi-link { display: inline-block; margin-top: 24px; color: var(--docs-accent); font-family: var(--mono); font-size: 9px; text-decoration: none; }

.docs-scrim[hidden] { display: none; }

@media (max-width: 1150px) {
  .docs-frame { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
}

@media (max-width: 760px) {
  .docs-header { min-height: 62px; gap: 12px; padding-inline: 16px; }
  .docs-wordmark { font-size: 23px; }
  .docs-header-label { padding-left: 12px; font-size: 11px; }
  .docs-header-nav { display: none; }
  .docs-header .docs-search { display: none; }
  .docs-mobile-open { display: inline-grid; min-width: 44px; width: 44px; min-height: 44px; padding: 0; font-size: 17px; }
  .docs-frame { display: block; min-height: calc(100vh - 62px); padding: 25px 20px 50px; }
  .docs-sidebar {
    position: fixed;
    z-index: 42;
    inset: 0 auto 0 0;
    width: min(310px, 86vw);
    max-height: none;
    padding: 24px 20px;
    border-right: 1px solid var(--docs-line);
    background: var(--docs-bg);
    box-shadow: var(--docs-shadow);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .docs-sidebar.is-open { transform: translateX(0); }
  .docs-sidebar-top button {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--docs-line);
    border-radius: var(--docs-radius-md);
    color: var(--docs-muted);
    background: var(--docs-paper);
    font-size: 20px;
    cursor: pointer;
  }

  .docs-scrim:not([hidden]) {
    position: fixed;
    z-index: 41;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(20, 24, 20, 0.48);
  }

  .docs-breadcrumbs { margin-bottom: 25px; }
  .docs-page-heading { margin-bottom: 28px; padding-bottom: 23px; }
  .docs-page-heading h1 { font-size: clamp(37px, 11vw, 52px); }
  .docs-page-description { font-size: 14px; }
  .docs-prose { font-size: 13px; line-height: 1.75; }
  .docs-prose h2 { margin-top: 34px; font-size: 26px; }
  .docs-prose h3 { font-size: 19px; }
  .docs-code pre { padding: 19px 15px; font-size: 11px; }
  .api-operation { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
  .api-operation > span:last-child { grid-column: 2; }
  .docs-section + .docs-section { margin-top: 44px; padding-top: 38px; }
  .docs-section-heading h2 { font-size: clamp(28px, 8vw, 34px); }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager-next { text-align: left; }
  .docs-footer { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .docs-page *,
  .docs-page *::before,
  .docs-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  /* The scroll reveal leaves every section below the fold at opacity 0, so
     a printed page comes out blank past the first section. Print shows all. */
  .docs-animated .docs-section { opacity: 1; transform: none; transition: none; }
}
