/* c7docs base stylesheet. Build appends :root{--primary:...} overrides per site. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("InterVariable.woff2") format("woff2");
}
/* Arial adjusted to Inter's metrics (next/font values) so the swap does not shift layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}
:root {
  color-scheme: light;
  --primary: #0d9373;
  --primary-light: #55d799;
  --primary-dark: #0c8c66;
  --bg: #ffffff;
  --bg-soft: #f7f9f8;
  --bg-elevated: #ffffff;
  --text: #404443;
  --text-strong: #181d1b;
  --text-muted: #5f6563;
  --border: #e9edec;
  --code-bg: var(--bg); /* Mintlify-style: panels sit on the page bg; themes may re-tint */
  --scrollbar: #d3d8d6;
  --tooltip-bg: #181d1b;
  --tooltip-fg: #fafafa;
  --sidebar-w: 288px;
  --toc-w: 264px;
  --navbar-h: 64px;
  --tabbar-h: 44px;
  --content-max: 720px;
  /* single source for the anchor/scroll-spy offset under the sticky chrome */
  --scroll-offset: calc(var(--navbar-h) + var(--tabbar-h) + 16px);
  --font-body: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  --shadow: 0 1px 3px rgb(0 0 0 / 0.07);
}
html.dark {
  color-scheme: dark;
  --bg: #0a0d0e;
  --bg-soft: #121616;
  --bg-elevated: #191e1e;
  --text: #a8adab;
  --text-strong: #fff;
  --text-muted: #9a9f9d;
  /* translucent like the official chrome hairlines; reads softer than a solid gray */
  --border: rgb(255 255 255 / 0.07);
  --scrollbar: #3a403e;
  --tooltip-bg: #e0e4e3;
  --tooltip-fg: #181d1b;
  --shadow: 0 0 0 0 transparent;
  --primary: var(--primary-light);
}

/* pages without a tabbar: collapse the offset everywhere it is used */
html:not(:has(.tabbar)) { --tabbar-h: 0px; }

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--scroll-offset);
  scroll-behavior: smooth;
  scrollbar-color: var(--scrollbar) transparent;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
a:hover:not(:has(div, img)) { text-decoration: underline; }

::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

html.no-transitions * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.ui-icon { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
/* raw JSX <svg> icons (Mintlify allows icon={<svg/>}): default fill to the
   text color so pathless-fill glyphs render in both themes; explicit fills
   (brand logos) win. Only unsized svgs get slot sizing — logos keep their
   declared width/height. */
.icon-jsx { display: inline-flex; }
.icon-jsx > svg { fill: currentColor; }
.icon-jsx > svg:not([width]):not([height]) { width: 1em; height: 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--bg); color: var(--primary);
  padding: 10px 16px; border-radius: 8px; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* shadcn-style tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) scale(0.96); transform-origin: bottom center;
  background: var(--tooltip-bg); color: var(--tooltip-fg); font-family: var(--font-body);
  font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after {
  opacity: 1; transform: translateX(-50%) scale(1); transition-delay: 0.3s;
}
.copy-btn.copied::after { opacity: 1; transform: translateX(-50%) scale(1); transition-delay: 0s; }

/* tooltips flip away from the nearest edge: navbar sits at the viewport top,
   so its tooltips open downward */
.navbar [data-tooltip]::after { bottom: auto; top: calc(100% + 8px); transform-origin: top center; }
/* the page-header control sits at the article's right edge: anchor its tooltip
   right so it cannot overflow. Code-block copy tooltips center like Mintlify. */
.copy-page-btn::after { left: auto; right: 0; transform: scale(0.96); }
.copy-page-btn:hover::after, .copy-page-btn:focus-visible::after { transform: scale(1); }

/* ---------- navbar ---------- */
/* opaque: content scrolling under a translucent blur left visible artifacts
   around the tab row */
/* divider lines are box-shadows, not borders: borders would add 2px the
   --navbar-h/--tabbar-h vars don't count, making the sticky sidebar/toc
   offsets off by 2px (visible jump when scrolling starts) */
.navbar {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}
.navbar-inner {
  position: relative; /* anchors the centered search button */
  display: flex; align-items: center; gap: 16px; height: var(--navbar-h);
  max-width: 1472px; margin: 0 auto; padding: 0 32px;
}
.navbar-logo { display: flex; align-items: center; flex-shrink: 0; }
.navbar-logo img { height: 26px; }
.navbar-name { font-weight: 700; font-size: 17px; color: var(--text-strong); }
html:not(.dark) .logo-dark { display: none; }
html.dark .logo-light { display: none; }
/* truly centered in the navbar, independent of logo/link widths */
.search-btn {
  position: absolute; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 8px; width: 320px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  padding: 7px 14px; color: var(--text-muted); font-size: 14px; cursor: pointer; font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.search-btn:hover { border-color: color-mix(in srgb, var(--text-muted) 40%, var(--border)); }
.search-btn kbd {
  display: inline-flex; align-items: center; gap: 1px;
  margin-left: auto; font-family: var(--font-mono); font-size: 11px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 5px;
}
.navbar-links { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-shrink: 0; }
.navbar-links > a { color: var(--text); font-size: 14px; font-weight: 500; }
/* a.navbar-cta ties with .navbar-links > a on specificity; later order wins */
a.navbar-cta {
  background: var(--primary-dark, var(--primary)); color: #fff; border-radius: 10px;
  padding: 7px 16px; font-size: 14px; font-weight: 600;
}
.navbar-cta:hover { text-decoration: none; filter: brightness(1.1); }
/* Mintlify appends a chevron to type:button navbar CTAs */
a.navbar-cta::after { content: "\203A"; margin-left: 6px; font-weight: 700; }
.navbar-github { font-size: 20px; color: var(--text); }
.theme-btn, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px; background: none; border: none; border-radius: 8px;
  color: var(--text-muted); cursor: pointer; padding: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.theme-btn:hover, .menu-btn:hover { background: var(--bg-soft); color: var(--text-strong); }
html.dark .theme-sun { display: none; }
html:not(.dark) .theme-moon { display: none; }
.menu-btn { display: none; }

.tabbar { /* no divider above the tabs: Mintlify draws a single line under the header */ }
.tabbar-inner {
  display: flex; gap: 24px; max-width: 1472px; margin: 0 auto; padding: 0 32px;
  height: var(--tabbar-h); align-items: stretch; overflow-x: auto;
}
.tabbar-link {
  display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px;
  font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tabbar-link:hover { color: var(--text-strong); text-decoration: none; }
.tabbar-link.active { color: var(--text-strong); border-bottom-color: var(--primary); }

.banner { position: relative; background: var(--banner-bg, var(--primary-dark, var(--primary))); color: #fff; text-align: center; padding: 8px 40px; font-size: 14px; }
.banner a { color: #fff; text-decoration: underline; }
.banner-warning { --banner-bg: #d97706; }
.banner-critical { --banner-bg: #dc2626; }
.banner-dismiss {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; padding: 5px;
  background: none; border: none; border-radius: 6px; color: #fff; opacity: 0.8; cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.banner-dismiss:hover { opacity: 1; background: rgb(255 255 255 / 0.15); }
html[data-banner-hidden] .banner { display: none; }

/* ---------- shell ---------- */
.shell { display: flex; max-width: 1472px; margin: 0 auto; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: calc(var(--navbar-h) + var(--tabbar-h));
  height: calc(100vh - var(--navbar-h) - var(--tabbar-h)); overflow-y: auto;
  /* 20px + 12px item padding puts link TEXT at 32px, flush with the tab labels;
     hover pills bleed 12px left of the text like Mintlify */
  padding: 48px 12px 48px 16px; border-right: 1px solid var(--border); scrollbar-width: thin;
}

.sb-list { list-style: none; margin: 0; padding: 0; }
.sb-link {
  display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 12px;
  color: var(--text-muted); font-size: 14px; cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
/* translucent overlay hover: reads correctly on any sidebar background */
.sb-link:hover { color: var(--text-strong); background: color-mix(in srgb, var(--text) 7%, transparent); text-decoration: none; }
.sb-link.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); font-weight: 500; }
.sb-icon { width: 16px; text-align: center; font-size: 12px; }
.sb-external { margin-left: auto; display: inline-flex; opacity: 0.5; }
.sb-link:hover .sb-external { opacity: 1; }
.sb-list > li { margin-bottom: 2px; }
.sb-section { margin-top: 28px; }
.sb-section:first-child { margin-top: 0; }
.sb-section-title {
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--text-strong); padding: 0 16px 10px;
}
/* group landing-page links (group `root`): label navigates, chevron toggles */
.sb-section-link, .sb-group-link { color: inherit; }
.sb-section-link:hover, .sb-group-link:hover { color: var(--primary); text-decoration: none; }
.sb-section-link.active, .sb-group-link.active { color: var(--primary); }
/* each nested group indents its list one step, with a guide line */
.sb-group > .sb-list { margin: 2px 0 4px 14px; padding-left: 6px; border-left: 1px solid var(--border); }
.sb-group summary { list-style: none; }
.sb-group summary::-webkit-details-marker { display: none; }
/* chevron sits next to the label: right when closed, down when open */
.sb-group summary .accordion-chevron { margin-left: 0; padding: 2.5px; transform: rotate(-45deg); }
.sb-group[open] > summary .accordion-chevron { transform: rotate(45deg); }
.sb-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary); border-radius: 4px; padding: 1px 5px; margin-left: auto;
}
.sb-anchors { list-style: none; margin: 0 0 20px; padding: 0 0 16px; border-bottom: 1px solid var(--border); }
.sb-anchor { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: var(--text-muted); font-size: 14px; font-weight: 500; border-radius: 8px; transition: color 0.15s ease; }
.sb-anchor:hover { color: var(--text-strong); text-decoration: none; }
.sb-anchor.active { color: var(--primary); }
.sb-anchor-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 11px; background: var(--bg-soft);
}
.sb-anchor.active .sb-anchor-icon { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.sb-selector { margin-bottom: 14px; }
.sb-selector select { width: 100%; }

/* ---------- content ---------- */
.content { flex: 1; min-width: 0; display: flex; gap: 48px; padding: 48px 48px 96px; }
.article { flex: 1; min-width: 0; max-width: var(--content-max); margin: 0 auto; }
/* wide/custom pages fill the whole main column (Mintlify behavior); center mode
   keeps the default cap, centered. Pages that render no TOC also expand. */
.mode-wide .article, .mode-custom .article { max-width: none; }
.content.no-toc .article { max-width: none; }
.eyebrow { color: var(--primary); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
/* styling.eyebrows: "breadcrumbs" — muted group › title, primary on hover only */
.eyebrow-crumbs { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 500; transition: color 0.15s ease; }
.eyebrow-crumbs:hover { color: var(--primary); }
/* vertical-align 2px: optical, lifts the icon toward the h1 cap height */
.rss-link { display: inline-flex; margin-left: 10px; color: var(--text-muted); vertical-align: 2px; transition: color 0.15s ease; }
.rss-link:hover { color: var(--primary); }
.article { overflow-wrap: break-word; }
.article-header h1 {
  margin: 0 0 10px; font-size: 36px; line-height: 40px; font-weight: 600;
  color: var(--text-strong); letter-spacing: -0.025em; text-wrap: balance;
}
.article-desc { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.article-header { margin-bottom: 28px; position: relative; }

/* page actions: copy page + AI menu */
.page-actions { position: absolute; top: 2px; right: 0; display: flex; align-items: stretch; } /* top 2px: optical alignment with the h1 first line */
.copy-page-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px 0 0 8px;
  color: var(--text-strong); font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.copy-page-btn:hover { color: var(--text-strong); background: var(--bg-soft); }
.page-menu { position: relative; }
.page-menu > summary {
  display: inline-flex; align-items: center; justify-content: center; height: 100%; padding: 0 6px;
  background: var(--bg); border: 1px solid var(--border); border-left: none; border-radius: 0 8px 8px 0;
  color: var(--text-muted); cursor: pointer; list-style: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.page-menu > summary::-webkit-details-marker { display: none; }
.page-menu > summary:hover { color: var(--text-strong); background: var(--bg-soft); }
.page-menu > summary .ui-icon { transition: transform 0.15s ease; }
.page-menu[open] > summary .ui-icon { transform: rotate(180deg); }
.page-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px;
  margin: 0; padding: 4px; list-style: none; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  transform-origin: top right;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
@starting-style {
  .page-menu[open] ul { opacity: 0; transform: scale(0.96); }
}
.page-menu li a, .page-menu li button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: 13px; cursor: pointer;
  background: none; border: none; font-family: inherit; text-align: left;
}
.page-menu li a:hover, .page-menu li button:hover { background: var(--bg-soft); text-decoration: none; color: var(--text-strong); }
.page-menu li a > .ui-icon { opacity: 0.5; }
.menu-label { display: inline-flex; align-items: center; gap: 8px; }
.menu-label .ui-icon { color: var(--text-muted); }
.menu-desc { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); }
/* single primary action (no dropdown) keeps full rounding */
.page-actions > .copy-page-btn:last-child { border-radius: 8px; }
/* contextual.display: "toc" — actions sit above the TOC, in flow */
.toc > .page-actions { position: static; margin: 0 0 18px; }
@media (max-width: 900px) { .article-header .page-actions { position: static; margin-top: 12px; } }

.prose { font-size: 16px; line-height: 1.75; }
.prose strong { font-weight: 600; color: var(--text-strong); }
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-strong); letter-spacing: -0.015em; line-height: 1.3; font-weight: 600;
  /* anchor offset comes from html scroll-padding-top alone: scroll-margin
     here would ADD to it and double the landing gap */
  text-wrap: balance; position: relative;
}
/* body h1s (content-authored `#` sections) read as top-level section headings */
.prose h1 { font-size: 32px; letter-spacing: -0.025em; margin: 56px 0 16px; }
.prose h2 { font-size: 24px; letter-spacing: -0.025em; margin: 56px 0 16px; }
.prose h3 { font-size: 20px; margin: 32px 0 12px; }
.prose h4 { font-size: 16px; margin: 24px 0 8px; }
.prose p { margin: 16px 0 20px; }
.prose li { margin: 6px 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.prose hr + h2 { margin-top: 0; }
.prose blockquote { border-left: 3px solid var(--border); margin: 16px 0; padding: 2px 16px; color: var(--text-muted); }
.prose img { max-width: 100%; border-radius: var(--radius); }
.anchor-link {
  position: absolute; left: -34px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); box-shadow: var(--shadow); color: var(--text-muted);
  opacity: 0; text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.prose h1:hover .anchor-link, .prose h2:hover .anchor-link, .prose h3:hover .anchor-link, .prose h4:hover .anchor-link,
.anchor-link:focus-visible { opacity: 1; }
/* beats the global a:hover underline (line ~72) on specificity */
.anchor-link:hover { color: var(--text-strong); background: var(--bg-soft); text-decoration: none; }
@media (max-width: 768px) { .anchor-link { display: none; } }

/* content links: dark bold text with a primary underline, Mintlify-style.
   :not(:has(div,img)) keeps card-like anchors (content-authored cards wrapping
   block markup, image links) free of text underlines */
.prose a:not(.card):not(.tile):not(.anchor-link):not(:has(div, img)) {
  color: var(--text-strong); font-weight: 600;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 65%, transparent);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease;
}
.prose a:not(.card):not(.tile):not(.anchor-link):not(:has(div, img)):hover { text-decoration-color: var(--primary); text-decoration-thickness: 2px; }

/* neutral inline code, Mintlify-style: strong text on a 5%-foreground tint, no border */
.prose code:not(pre code) {
  font-family: var(--font-mono); font-size: 14px;
  background: color-mix(in srgb, var(--text-strong) 5%, transparent);
  color: var(--text-strong); font-weight: 500;
  border-radius: 6px; padding: 2px 8px;
  /* wrapped pills: every line fragment gets its own fully rounded box */
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* inline code inside callouts follows the callout tint (Mintlify-style):
   currentColor picks up whatever body color the callout kind sets */
.prose .callout code:not(pre code) {
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: inherit;
}
/* links inside callouts tint like the body too — the content-link rule below
   would force dark text-strong + green underline, which clashes in a blue note */
.prose .callout a:not(.card):not(.tile):not(.anchor-link):not(:has(div, img)) {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 65%, transparent);
}

.table-wrap { overflow-x: auto; margin: 16px 0; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 14px; }
.table-wrap th { text-align: left; font-weight: 600; color: var(--text-strong); border-bottom: 1px solid var(--border); padding: 8px 12px; }
.table-wrap td { border-bottom: 1px solid var(--border); padding: 8px 12px; vertical-align: top; }

/* ---------- toc ---------- */
.toc {
  width: var(--toc-w); flex-shrink: 0; position: sticky; top: calc(var(--navbar-h) + var(--tabbar-h) + 48px);
  align-self: flex-start; max-height: calc(100vh - var(--navbar-h) - var(--tabbar-h) - 96px);
  overflow-y: auto; font-size: 14px; scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent;
}
.toc-title { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text-strong); margin-bottom: 10px; }
.toc a { transition: color 0.15s ease; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; color: var(--text-muted); padding: 3px 0; }
.toc a:hover { color: var(--text-strong); text-decoration: none; }
.toc li.active > a { color: var(--primary); }
.toc-d3 a { padding-left: 14px; }

/* ---------- pagination / footer ---------- */
.last-updated { margin: 40px 0 0; font-size: 13px; color: var(--text-muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; border-top: 1px solid var(--border); padding-top: 28px; }
.pagination a {
  display: inline-flex; align-items: center; gap: 6px; max-width: 48%;
  font-size: 14px; font-weight: 600; color: var(--text-strong);
  transition: color 0.15s ease;
}
.pagination a .ui-icon { color: var(--text-muted); transition: color 0.15s ease; }
.pagination a:hover, .pagination a:hover .ui-icon { color: var(--primary); text-decoration: none; }
.pagination .page-next { margin-left: auto; text-align: right; }
.footer { border-top: 1px solid var(--border); margin-top: 0; background: var(--bg); }
.footer-inner { max-width: 1472px; margin: 0 auto; padding: 32px; font-size: 14px; color: var(--text-muted); }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; margin-bottom: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* long labels (e.g. the AI-agents blurb) truncate to one line, like Mintlify */
.footer-col a { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.powered-by { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); transition: color 0.15s ease, opacity 0.15s ease; }
.powered-by:hover { color: var(--text-strong); text-decoration: none; }
/* brand wordmark: box and word invert with the theme, brackets punch through to the page bg */
.powered-by .c7-box { fill: var(--text-strong); }
.powered-by .c7-mark { fill: var(--bg); }
.powered-by .c7-word { fill: var(--text-strong); }
.footer-header { font-weight: 600; color: var(--text-strong); margin-bottom: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-socials { display: flex; gap: 16px; font-size: 17px; }
.footer-socials a { color: var(--text-muted); }
.footer-socials a:hover { color: var(--text-strong); }

/* ---------- callouts ---------- */
.callout {
  display: flex; gap: 12px; border: 1px solid; border-radius: 16px;
  padding: 16px 20px; margin: 16px 0; font-size: 14px;
}
.callout-body > :first-child { margin-top: 0; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-icon { margin-top: 3px; flex-shrink: 0; }
/* Mintlify tints each callout's whole body, not just the icon: --cal is the
   surface hue, --cal-text the body text (dark-mode text overridden below).
   Chips and links inside pick the tint up via currentColor. */
.callout {
  border-color: color-mix(in srgb, var(--cal) 22%, transparent);
  background: color-mix(in srgb, var(--cal) 7%, transparent);
  color: var(--cal-text);
}
.callout .callout-icon { color: var(--cal); }
.callout-note { --cal: #3b82f6; --cal-text: #1d4ed8; border-color: color-mix(in srgb, var(--cal) 30%, transparent); }
/* Mintlify renders Info neutral gray; only Note is blue */
.callout-info { --cal: #71717a; --cal-text: #52525b; }
.callout-tip { --cal: #22c55e; --cal-text: #15803d; }
.callout-check { --cal: #22c55e; --cal-text: #15803d; }
.callout-warning { --cal: #f59e0b; --cal-text: #b45309; background: color-mix(in srgb, var(--cal) 8%, transparent); }
.callout-danger { --cal: #ef4444; --cal-text: #b91c1c; background: color-mix(in srgb, var(--cal) 8%, transparent); }
html.dark .callout-note { --cal-text: #93c5fd; }
html.dark .callout-info { --cal-text: #d4d4d8; }
html.dark .callout-tip, html.dark .callout-check { --cal-text: #86efac; }
html.dark .callout-warning { --cal-text: #fcd34d; }
html.dark .callout-danger { --cal-text: #fca5a5; }
.callout-icon { font-size: 16px; }

/* ---------- cards ---------- */
.card-group { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
/* directory listing appended to a group root page (docs.json `directory`) */
.directory { margin-top: 32px; }
.directory-item { margin: 6px 0; }
.directory-list { list-style: none; margin: 0; padding: 0; }
.directory-list li a { display: block; padding: 5px 0; }
.card {
  --card-pad: 20px;
  position: relative; display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--card-pad);
  color: var(--text); background: var(--bg); box-shadow: var(--shadow); overflow: hidden;
  transition: border-color 0.15s ease, translate 0.15s ease;
}
a.card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); text-decoration: none; translate: 0 -1px; }
.card-main { display: flex; flex-direction: column; gap: 10px; }
.card-horizontal .card-main { flex-direction: row; align-items: flex-start; }
.card-icon { font-size: 20px; color: var(--primary); }
.card-title { font-weight: 600; color: var(--text-strong); }
.card-arrow {
  position: absolute; top: 14px; right: 14px; display: inline-flex; font-size: 14px;
  color: var(--text-muted); transition: color 0.15s ease;
}
a.card:hover .card-arrow { color: var(--text-strong); }
.card-body { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.card-body > :first-child { margin-top: 0; }
.card-body > :last-child { margin-bottom: 0; }
/* full-bleed: cancels the card padding on top and both sides */
.card-img { width: calc(100% + 2 * var(--card-pad)); margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 12px; }
.card-cta { margin-top: 10px; font-weight: 600; color: var(--primary); font-size: 14px; }
/* Card type=: callout tint over the default card surface (must sit after .card to win) */
.card-type { border-color: color-mix(in srgb, var(--ct) 22%, transparent); background: color-mix(in srgb, var(--ct) 7%, transparent); }
.card-type .card-icon { color: var(--ct); }
.card-type-note { --ct: #71717a; }
.card-type-info { --ct: #3b82f6; }
.card-type-tip, .card-type-check { --ct: #22c55e; }
.card-type-warning { --ct: #f59e0b; }
.card-type-danger { --ct: #ef4444; }

/* ---------- accordions ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); margin: 12px 0; }
.accordion-group { margin: 16px 0; }
.accordion-group .accordion { margin: 0; border-radius: 0; border-bottom: none; }
.accordion-group .accordion:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.accordion-group .accordion:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 1px solid var(--border); }
.accordion summary {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer;
  font-weight: 600; color: var(--text-strong); list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion-desc { display: block; font-weight: 400; font-size: 13px; color: var(--text-muted); }
.accordion-chevron { margin-left: auto; border: solid var(--text-muted); border-width: 0 1.5px 1.5px 0; padding: 3px; transform: rotate(45deg); transition: transform 0.15s; flex-shrink: 0; }
details[open] > summary .accordion-chevron { transform: rotate(-135deg); }
.accordion-content { padding: 0 16px 14px; }
.accordion-content > :first-child { margin-top: 0; }

/* animated expand for content accordions (not .page-menu: its dropdown is
   absolutely positioned and overflow clipping would hide it) */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .accordion, .expandable, .sb-group { interpolate-size: allow-keywords; }
    .accordion::details-content, .expandable::details-content, .sb-group::details-content {
      block-size: 0; overflow-y: clip;
      transition: block-size 0.2s ease, content-visibility 0.2s allow-discrete;
    }
    .accordion[open]::details-content, .expandable[open]::details-content, .sb-group[open]::details-content {
      block-size: auto;
    }
  }
}

.expandable { margin: 8px 0; }
.expandable > summary { cursor: pointer; list-style: none; color: var(--text-muted); font-size: 13px; }
.expandable > summary::-webkit-details-marker { display: none; }
.expandable > summary .expandable-label::before { content: "▸ " attr(data-show); }
.expandable[open] > summary .expandable-label::before { content: "▾ " attr(data-hide); }
.expandable-content { border-left: 2px solid var(--border); padding-left: 16px; margin-top: 8px; }

/* ---------- tabs ---------- */
.tabs { margin: 16px 0; }
/* overflow-y hidden + hidden scrollbar: a horizontal strip must never grow a vertical scrollbar */
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 14px;
  margin-bottom: -1px; font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover { color: var(--text-strong); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-icon { margin-right: 6px; }
.tabs.tabs-border { border-bottom: 1px solid var(--border); padding-bottom: 12px; }

/* ---------- code blocks ---------- */
.codeblock {
  position: relative; margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--code-bg);
  --code-px: 16px; /* pre horizontal padding; full-bleed .line variants cancel it */
}
.codeblock pre { border-radius: calc(var(--radius) - 1px); }
.codeblock-header {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
}
.codeblock pre {
  margin: 0; padding: 14px var(--code-px); overflow-x: auto; font-size: 14px; line-height: 1.7;
  background: transparent; scrollbar-width: thin; scrollbar-color: transparent transparent;
}
.codeblock:hover pre { scrollbar-color: var(--scrollbar) transparent; }
.codeblock pre::-webkit-scrollbar { height: 6px; }
.codeblock pre::-webkit-scrollbar-thumb { background: transparent; }
.codeblock:hover pre::-webkit-scrollbar-thumb { background: var(--scrollbar); }
.codeblock pre code { font-family: var(--font-mono); display: block; min-width: max-content; }
.codeblock pre.wrap code { white-space: pre-wrap; min-width: 0; }
.codeblock .line { display: block; min-height: 1.2em; }
.codeblock .line.hl { background: color-mix(in srgb, var(--primary) 10%, transparent); margin: 0 calc(-1 * var(--code-px)); padding: 0 var(--code-px); }
.codeblock .line.dim { opacity: 0.4; }
.codeblock .line.diff-add, .codeblock .line.diff-remove { position: relative; margin: 0 calc(-1 * var(--code-px)); padding: 0 var(--code-px); }
.codeblock .line.diff-add { background: color-mix(in srgb, #22c55e 12%, transparent); }
.codeblock .line.diff-remove { background: color-mix(in srgb, #ef4444 12%, transparent); }
/* +/- gutter marks; skipped under .show-lines to keep line-number counters clean */
.codeblock pre:not(.show-lines) .line.diff-add::before { content: "+"; position: absolute; left: 5px; color: #16a34a; }
.codeblock pre:not(.show-lines) .line.diff-remove::before { content: "-"; position: absolute; left: 5px; color: #dc2626; }
html.dark .codeblock .line.diff-add::before { color: #4ade80; }
html.dark .codeblock .line.diff-remove::before { color: #f87171; }
.codeblock pre.show-lines code { counter-reset: line; }
.codeblock pre.show-lines .line::before {
  counter-increment: line; content: counter(line); display: inline-block; width: 2em;
  margin-right: 1em; text-align: right; color: var(--text-muted); opacity: 0.5;
}
.copy-btn {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: none; border-radius: 7px;
  background: color-mix(in srgb, var(--code-bg) 75%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--text-muted); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.codeblock-header ~ .copy-btn { top: 4px; }
/* single-line blocks without a header: center the button on the one line */
.codeblock.no-header.single-line .copy-btn { top: 50%; translate: 0 -50%; }
.copy-btn:hover { background: color-mix(in srgb, var(--text-muted) 12%, transparent); color: var(--text-strong); }
/* reserved gutter: the code scroll area ends before the copy button, so
   scrolled text never slides underneath it */
.codeblock.no-header pre { margin-right: 46px; padding-right: 6px; }
.copy-btn svg { position: absolute; transition: opacity 0.15s cubic-bezier(0.2, 0, 0, 1), transform 0.15s cubic-bezier(0.2, 0, 0, 1), filter 0.15s cubic-bezier(0.2, 0, 0, 1); }
.copy-btn .icon-check { opacity: 0; transform: scale(0.25); filter: blur(4px); color: #22c55e; }
.copy-btn.copied .icon-copy { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.copy-btn.copied .icon-check { opacity: 1; transform: scale(1); filter: blur(0); }
.codeblock.expandable pre { max-height: 320px; }
.codeblock.expandable.expanded pre { max-height: none; }
.expand-btn {
  display: block; width: 100%; border: none; border-top: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text-muted); font-family: inherit; font-size: 12px; padding: 6px; cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.expand-btn:hover { color: var(--text-strong); background: color-mix(in srgb, var(--text-muted) 8%, var(--bg-soft)); }

/* shiki dual theme */
.shiki, .shiki span { color: var(--shiki-light); }
html.dark .shiki, html.dark .shiki span { color: var(--shiki-dark); }

/* code group / examples */
.code-group .tab-list { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; padding: 0 6px; }
.code-group .tab-panel .codeblock { margin: 0; border-radius: 0 0 var(--radius) var(--radius); border-top: none; }
.code-group .tab-panel .codeblock-header { display: none; }
.side-example { margin: 16px 0; }

/* ---------- steps ---------- */
.steps { margin: 20px 0; }
.step { display: flex; gap: 16px; position: relative; padding-bottom: 24px; }
.step:not(:last-child)::before {
  /* connector line centered under the 28px indicator (top clears it + the 4px gap) */
  content: ""; position: absolute; left: 14px; translate: -50% 0; top: 32px; bottom: 2px; width: 1.5px; background: var(--border);
}
.step-indicator {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
  color: var(--text-strong); flex-shrink: 0; z-index: 1;
}
.step-content { flex: 1; min-width: 0; }
.step-title { font-weight: 600; color: var(--text-strong); }
/* Step titleSize renders p/h2/h3/h4: replace prose heading margins with step
   spacing (3px top optically aligns the title with the indicator circle) */
.prose .step-title { margin: 3px 0 4px; }
.step-content > div > :first-child { margin-top: 0; }

/* ---------- frame / misc ---------- */
.frame {
  margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; background: var(--bg-soft); text-align: center;
}
.frame-body > * { margin: 0 auto; max-width: 100%; border-radius: calc(var(--radius) - 4px); }
.frame figcaption { margin: 8px 8px 4px; font-size: 13px; color: var(--text-muted); }
.docs-image { display: block; width: auto; height: auto; margin: 20px auto; border-radius: calc(var(--radius) - 4px); }
.docs-image-border { outline: 1px solid oklch(0 0 0 / 0.1); }
html.dark .docs-image-border { outline-color: oklch(1 0 0 / 0.1); }
.tooltip { border-bottom: 1px dashed var(--text-muted); cursor: help; position: relative; }
.tooltip:hover::after {
  content: attr(data-tip); position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%);
  background: var(--text-strong); color: var(--bg); font-size: 12px; padding: 6px 10px; border-radius: 6px;
  white-space: normal; width: max-content; max-width: 260px; z-index: 30;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
  border-radius: 6px; padding: 1px 8px; vertical-align: middle; margin: 0 2px;
}
.badge-gray { background: color-mix(in srgb, #71717a 15%, transparent); color: var(--text-muted); }
.badge-blue { background: color-mix(in srgb, #3b82f6 15%, transparent); color: #2563eb; }
.badge-green { background: color-mix(in srgb, #22c55e 15%, transparent); color: #16a34a; }
.badge-yellow { background: color-mix(in srgb, #eab308 20%, transparent); color: #a16207; }
.badge-orange { background: color-mix(in srgb, #f97316 15%, transparent); color: #ea580c; }
.badge-red { background: color-mix(in srgb, #ef4444 15%, transparent); color: #dc2626; }
.badge-purple { background: color-mix(in srgb, #a855f7 15%, transparent); color: #9333ea; }
.badge-white, .badge-white-destructive { background: var(--bg); border: 1px solid var(--border); }
.badge-surface, .badge-surface-destructive { background: var(--bg-soft); }
.badge-white, .badge-surface { color: var(--text); }
.badge-white-destructive, .badge-surface-destructive { color: #dc2626; }
html.dark .badge-white-destructive, html.dark .badge-surface-destructive { color: #f87171; }
.badge-xs { font-size: 10px; padding: 0 6px; }
.badge-sm { font-size: 11px; padding: 1px 7px; }
.badge-lg { font-size: 14px; padding: 3px 10px; }
.badge-pill { border-radius: 999px; }
.badge-stroke { border: 1px solid currentColor; }
.badge-disabled { opacity: 0.5; }

.update { display: flex; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.update-meta { width: 160px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.update-label {
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
  font-weight: 600; font-size: 13px; border-radius: 999px; padding: 3px 12px; position: sticky; top: calc(var(--navbar-h) + var(--tabbar-h) + 20px);
}
.update-desc { font-size: 13px; color: var(--text-muted); }
.update-body { flex: 1; min-width: 0; }
.update-body > :first-child { margin-top: 0; }
.update-hidden { display: none; }
/* changelog tag filter pills (client.js builds them into the TOC) */
.tag-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-filter {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 12px; font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.tag-filter:hover { color: var(--text-strong); border-color: color-mix(in srgb, var(--text-muted) 40%, var(--border)); }
.tag-filter.active { background: color-mix(in srgb, var(--primary) 12%, transparent); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); color: var(--primary); }

/* ---------- fields ---------- */
.field { border-top: 1px solid var(--border); padding: 14px 0; }
.field:first-of-type { border-top: none; }
.field-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; }
.field-name { font-weight: 700; color: var(--text-strong); }
.field-kind, .field-type, .field-default { color: var(--text-muted); font-size: 12px; }
.field-required { color: #ef4444; font-size: 12px; font-weight: 600; }
.field-deprecated { color: #f59e0b; font-size: 12px; font-weight: 600; text-decoration: line-through; }
.field-body { font-size: 14px; margin-top: 6px; }
.field-body > :first-child { margin-top: 0; }
.field-body > :last-child { margin-bottom: 0; }

.method { font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 5px; letter-spacing: 0.02em; }
.method-get { background: color-mix(in srgb, #22c55e 15%, transparent); color: #16a34a; }
.method-post { background: color-mix(in srgb, #3b82f6 15%, transparent); color: #2563eb; }
.method-put { background: color-mix(in srgb, #f59e0b 20%, transparent); color: #b45309; }
.method-patch { background: color-mix(in srgb, #f97316 15%, transparent); color: #ea580c; }
.method-delete { background: color-mix(in srgb, #ef4444 15%, transparent); color: #dc2626; }

/* readable badge/method text on near-black */
html.dark .method-get, html.dark .badge-green { color: #4ade80; }
html.dark .method-post, html.dark .badge-blue { color: #60a5fa; }
html.dark .method-put, html.dark .badge-yellow { color: #facc15; }
html.dark .method-patch, html.dark .badge-orange { color: #fb923c; }
html.dark .method-delete, html.dark .badge-red { color: #f87171; }
html.dark .badge-purple { color: #c084fc; }

/* ---------- api pages ---------- */
.endpoint-line {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft);
  padding: 10px 14px; margin: 16px 0; overflow-x: auto;
}
.endpoint-line .method { font-size: 12px; padding: 2px 8px; }

/* ---------- examples rail ---------- */
.content.has-examples { gap: 32px; }
/* Mintlify keeps the request/response example panels dark in light mode:
   re-point the surface/text tokens inside the rail at the dark palette */
.examples-rail {
  --bg: #0a0d0e; --bg-soft: #121616; --bg-elevated: #191e1e; --code-bg: #121616;
  --text: #a8adab; --text-strong: #fff; --text-muted: #9a9f9d;
  --border: rgb(255 255 255 / 0.08); --scrollbar: #3a403e;
  /* color must be declared here: inherited computed color from body would keep the light value */
  color: var(--text);
}
html:not(.dark) .examples-rail .shiki, html:not(.dark) .examples-rail .shiki span { color: var(--shiki-dark); }
.examples-rail {
  width: 420px; flex-shrink: 0; position: sticky; top: calc(var(--navbar-h) + var(--tabbar-h) + 24px);
  align-self: flex-start; max-height: calc(100vh - var(--navbar-h) - var(--tabbar-h) - 48px); overflow-y: auto;
  /* inner codeblocks scroll their own overflow; without this the rail grows a
     stray horizontal scrollbar from 1-2px of child border rounding */
  overflow-x: hidden;
  display: none; scrollbar-width: thin;
}
@media (min-width: 1200px) {
  .examples-rail { display: block; }
  .content.has-examples .article { margin: 0; }
}

/* ---------- search modal (native dialog) ---------- */
.search-modal {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  border: none; background: none; padding: 0; margin: 0; z-index: 100;
}
.search-modal::backdrop { background: rgb(0 0 0 / 0.55); }
.search-panel {
  position: relative; max-width: 680px; margin: 8vh auto 0; background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.25);
}
/* animated open AND close via discrete display transitions; older browsers open/close instantly */
@media (prefers-reduced-motion: no-preference) {
  @supports (transition-behavior: allow-discrete) {
    .search-modal, .search-modal::backdrop {
      opacity: 0;
      transition: opacity 0.15s ease-out, display 0.15s allow-discrete, overlay 0.15s allow-discrete;
    }
    .search-modal[open], .search-modal[open]::backdrop { opacity: 1; }
    .search-panel { transform: translateY(-8px) scale(0.98); transition: transform 0.15s ease-out; }
    .search-modal[open] .search-panel { transform: none; }
    @starting-style {
      .search-modal[open], .search-modal[open]::backdrop { opacity: 0; }
      .search-modal[open] .search-panel { transform: translateY(-8px) scale(0.98); }
    }
  }
}
@keyframes search-fade { from { opacity: 0; } }

/* restyle Pagefind's UI as a command palette (it ships light-only defaults) */
#search-ui {
  --search-input-h: 56px;
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--primary);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-background: var(--bg-elevated);
  --pagefind-ui-border: var(--border);
  --pagefind-ui-tag: var(--bg-soft);
  --pagefind-ui-border-width: 0px;
  --pagefind-ui-border-radius: 8px;
  --pagefind-ui-image-border-radius: 8px;
  --pagefind-ui-font: var(--font-body);
}
#search-ui .pagefind-ui__form { position: relative; }
/* stays invisible for 300ms: fast loads never flash a loading state */
.search-loading {
  padding: 28px 24px; color: var(--text-muted); font-size: 14px; text-align: center;
  animation: search-fade-late 0.2s ease 0.3s both;
}
.search-loading[hidden] { display: none; }
@keyframes search-fade-late { from { opacity: 0; } to { opacity: 1; } }
/* Pagefind draws the magnifier as form::before sized for its 64px input; re-center it for our 56px row */
#search-ui .pagefind-ui__form::before { top: 19px; left: 18px; background-color: var(--text-muted); opacity: 1; }
#search-ui .pagefind-ui__search-input {
  width: 100%; height: var(--search-input-h); padding: 0 48px 0 46px; border: none; border-bottom: 1px solid var(--border);
  border-radius: 0; background-color: transparent; color: var(--text-strong); font-size: 16px; font-weight: 400;
  caret-color: var(--primary);
}
#search-ui .pagefind-ui__search-input:focus-visible { outline: none; }
#search-ui .pagefind-ui__search-input::placeholder { color: var(--text-muted); opacity: 1; }
/* "Clear" -> ghost ✕ button, centered on the input row (font-size 0 keeps the accessible name) */
#search-ui .pagefind-ui__search-clear {
  position: absolute; right: 12px; top: calc(var(--search-input-h) / 2); transform: translateY(-50%); z-index: 10;
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  background: transparent; border: none; border-radius: 6px;
  color: var(--text-muted); font-size: 0; padding: 0; cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
#search-ui .pagefind-ui__search-clear::before { content: "✕"; font-size: 13px; line-height: 1; }
#search-ui .pagefind-ui__search-clear:hover { color: var(--text-strong); background: var(--bg-soft); }
#search-ui .pagefind-ui__drawer {
  max-height: min(62vh, 520px); overflow-y: auto; padding: 4px 8px 8px;
  scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent;
}
#search-ui .pagefind-ui__results-area { margin-top: 0; }
#search-ui .pagefind-ui__message {
  margin: 0; padding: 6px 10px 0; font-size: 11px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted);
}
#search-ui .pagefind-ui__results { list-style: none; margin: 0; padding: 0; }
#search-ui .pagefind-ui__result { border: none; margin: 0; padding: 6px 0 2px; }
#search-ui .pagefind-ui__result-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0; }
#search-ui .pagefind-ui__result-title .pagefind-ui__result-link { color: var(--text-strong); font-weight: 600; }
#search-ui .pagefind-ui__result-link:hover { text-decoration: none; }
#search-ui .pagefind-ui__result-excerpt {
  margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* page-level row: the whole row is a hover target and the link stretches across it */
#search-ui .pagefind-ui__result-inner { position: relative; align-items: stretch; }
#search-ui .pagefind-ui__result-inner > .pagefind-ui__result-title { padding: 8px 10px 0; }
#search-ui .pagefind-ui__result-inner > .pagefind-ui__result-excerpt { padding: 0 10px 8px; }
#search-ui .pagefind-ui__result:not(:has(.pagefind-ui__result-nested)) .pagefind-ui__result-inner { border-radius: 8px; }
#search-ui .pagefind-ui__result:not(:has(.pagefind-ui__result-nested)) .pagefind-ui__result-inner:hover,
#search-ui .pagefind-ui__result-inner.is-active { background: var(--bg-soft); }
#search-ui .pagefind-ui__result:not(:has(.pagefind-ui__result-nested)) .pagefind-ui__result-link { position: static; }
#search-ui .pagefind-ui__result:not(:has(.pagefind-ui__result-nested)) .pagefind-ui__result-link::after {
  content: ""; position: absolute; inset: 0; border-radius: 8px;
}
#search-ui .pagefind-ui__result:not(:has(.pagefind-ui__result-nested)) .pagefind-ui__result-inner > .pagefind-ui__result-title { padding-bottom: 2px; }
/* with section hits below, the page title becomes a quiet group header and its echo excerpt goes away */
#search-ui .pagefind-ui__result:has(.pagefind-ui__result-nested) > .pagefind-ui__result-inner > .pagefind-ui__result-title {
  font-size: 12px; font-weight: 500; padding: 6px 10px 2px;
}
#search-ui .pagefind-ui__result:has(.pagefind-ui__result-nested) > .pagefind-ui__result-inner > .pagefind-ui__result-title .pagefind-ui__result-link {
  color: var(--text-muted); font-weight: 500;
}
#search-ui .pagefind-ui__result:has(.pagefind-ui__result-nested) > .pagefind-ui__result-inner > .pagefind-ui__result-excerpt { display: none; }
/* section hit: self-contained clickable card */
#search-ui .pagefind-ui__result-nested {
  position: relative; padding: 7px 10px; margin: 1px 0; border-radius: 8px;
}
#search-ui .pagefind-ui__result-nested:hover,
#search-ui .pagefind-ui__result-nested.is-active { background: var(--bg-soft); }
#search-ui .pagefind-ui__result-nested .pagefind-ui__result-title { font-size: 13.5px; }
#search-ui .pagefind-ui__result-nested .pagefind-ui__result-excerpt { font-size: 12.5px; }
#search-ui .pagefind-ui__result-nested .pagefind-ui__result-link::before { content: none; }
/* static link so its ::after anchors to the row (Pagefind sets position:relative on the link) */
#search-ui .pagefind-ui__result-nested .pagefind-ui__result-link { position: static; }
#search-ui .pagefind-ui__result-nested .pagefind-ui__result-link::after {
  content: ""; position: absolute; inset: 0; border-radius: 8px;
}
#search-ui mark { background: none; color: var(--primary); font-weight: 600; padding: 0; }
.search-footer {
  display: flex; align-items: center; gap: 16px; padding: 8px 14px;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted);
}
.search-footer span { display: flex; align-items: center; gap: 5px; }
.search-footer .search-footer-close { margin-left: auto; }
.search-footer kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 4px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 4px;
  font-family: inherit; font-size: 10.5px; color: var(--text-muted);
}
#search-ui .pagefind-ui__button {
  display: block; width: calc(100% - 16px); margin: 8px; padding: 8px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-muted); font-size: 13px; font-family: inherit;
  transition: color 0.15s ease, background-color 0.15s ease;
}
#search-ui .pagefind-ui__button:hover { color: var(--text-strong); background: color-mix(in srgb, var(--text-muted) 8%, var(--bg-soft)); }
/* load-more skeleton: pagefind hides the placeholder text by painting it the
   same color as its bar at 10% opacity; our result color overrides beat that
   and let ghost text show. Solid theme-aware bars instead. */
#search-ui .pagefind-ui__loading {
  background-color: color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 6px; opacity: 1; pointer-events: none;
}
#search-ui .pagefind-ui__loading, #search-ui .pagefind-ui__loading * { color: transparent !important; }

/* ---------- tree / file tree ---------- */
.tree {
  margin: 16px 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px;
  --file-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}
.tree-row { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; color: var(--text); }
.tree summary.tree-row { cursor: pointer; list-style: none; }
.tree summary.tree-row::-webkit-details-marker { display: none; }
.tree summary.tree-row:hover { background: var(--bg-soft); }
.tree-static { pointer-events: none; }
.tree-icon { color: var(--text-muted); }
.tree-highlight { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.tree-highlight .tree-icon { color: var(--primary); }
.tree summary.tree-highlight:hover { background: color-mix(in srgb, var(--primary) 18%, transparent); }
.tree-folder:not([open]) > summary .tree-icon-open { display: none; }
.tree-folder[open] > summary .tree-icon-closed { display: none; }
.tree-children { margin-left: 12px; padding-left: 10px; border-left: 1px solid var(--border); }
/* markdown-list fallback: bare ul/li inside <Tree> renders as file rows */
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul ul { margin-left: 12px; padding-left: 10px; border-left: 1px solid var(--border); }
.tree li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 4px 8px; }
.tree li > ul { width: 100%; }
.tree li::before {
  content: ""; width: 1em; height: 1em; flex-shrink: 0; background: currentColor; opacity: 0.55;
  -webkit-mask: var(--file-mask) center / contain no-repeat; mask: var(--file-mask) center / contain no-repeat;
}

/* ---------- image lightbox / actions ---------- */
.cursor-zoom-in, .prose img:not([data-no-zoom]) { cursor: zoom-in; }
/* linked images (badges, shields) navigate, they don't zoom — :not() keeps
   this above the zoom rule's specificity */
a .cursor-zoom-in, .prose a img:not([data-no-zoom]) { cursor: inherit; }
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  background: rgb(0 0 0 / 0.8); cursor: zoom-out;
}
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox { animation: search-fade 0.16s ease-out; }
  .lightbox-img { animation: lightbox-pop 0.16s ease-out; }
}
@keyframes lightbox-pop { from { opacity: 0; transform: scale(0.97); } }
.img-actions-wrap { position: relative; display: inline-block; max-width: 100%; }
.img-actions { position: absolute; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s ease; }
.img-actions-wrap:hover .img-actions, .img-actions:focus-within { opacity: 1; }
.img-actions.place-bottom-center { bottom: 10px; left: 50%; transform: translateX(-50%); }
.img-actions.place-bottom-left { bottom: 10px; left: 10px; }
.img-actions.place-bottom-right { bottom: 10px; right: 10px; }
.img-actions.place-top-center { top: 10px; left: 50%; transform: translateX(-50%); }
.img-actions.place-top-left { top: 10px; left: 10px; }
.img-actions.place-top-right { top: 10px; right: 10px; }
.img-action {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: none; border-radius: 7px; background: color-mix(in srgb, var(--tooltip-bg) 70%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--tooltip-fg); cursor: pointer;
  transition: background-color 0.15s ease;
}
.img-action:hover { background: var(--tooltip-bg); }

/* ---------- katex ---------- */
.katex-display { margin: 16px 0; padding: 2px 0; overflow-x: auto; overflow-y: hidden; }

/* ---------- mermaid ---------- */
.mermaid-block { margin: 20px 0; text-align: center; }

/* content utilities the real Tailwind pass (build-time tailwind.css) can't
   provide: Mintlify's light: variant and the docs7 no-zoom cursor */
html:not(.dark) .light\:hidden { display: none; }
.no-zoom, .noZoom { cursor: default; }

/* ---------- tiles / prompts / views / colors ---------- */
.tile {
  display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  color: var(--text); background: var(--bg); margin: 16px 0; transition: border-color 0.15s ease;
}
.card-group .tile { margin: 0; }
a.tile:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); text-decoration: none; }
.tile-preview {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid var(--border); background: var(--bg-soft);
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}
.tile-preview img { max-width: 100%; max-height: 100%; border-radius: 0; }
.tile-meta { padding: 12px 16px 14px; }
.tile-title { font-weight: 600; color: var(--text-strong); }
.tile-desc { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

.prompt { border: 1px solid var(--border); border-radius: var(--radius); margin: 16px 0; background: var(--bg-soft); }
.prompt-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text-strong);
}
.prompt-icon { color: var(--primary); flex-shrink: 0; }
.prompt-btns { margin-left: auto; display: inline-flex; gap: 6px; flex-shrink: 0; }
.prompt-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
  color: var(--text-muted); font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
  transition-property: color, background-color, scale; transition-duration: 0.15s;
}
.prompt-btn:hover { color: var(--text-strong); }
.prompt-btn:active { scale: 0.96; }
.prompt-body { padding: 12px 16px; font-size: 14px; }
.prompt-body > :first-child { margin-top: 0; }
.prompt-body > :last-child { margin-bottom: 0; }

.view-select { margin: 20px 0 4px; display: inline-block; }
.view-block[hidden] { display: none; }

/* ---------- selects ----------
   Closed control is themed everywhere via appearance:none + a chevron on the
   wrapper. The dropdown itself is OS-drawn and unstyleable until a browser
   supports customizable select; where it does, ::picker(select) takes over. */
.sb-selector, .view-select { position: relative; }
.sb-selector select, .view-select select {
  appearance: none;
  display: block; /* wrapper height == select height, so the ::after chevron centers at 50% */
  padding: 7px 32px 7px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-soft); color: var(--text-strong);
  font-family: inherit; font-size: 13px; line-height: 1.4; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sb-selector select:hover, .view-select select:hover {
  border-color: color-mix(in srgb, var(--text-muted) 40%, var(--border));
}
.sb-selector::after, .view-select::after {
  content: ""; position: absolute; right: 13px; top: 50%; margin-top: -5px; pointer-events: none;
  width: 6px; height: 6px; border: solid var(--text-muted); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

@supports (appearance: base-select) {
  .sb-selector select, .view-select select { appearance: base-select; padding-right: 10px; gap: 10px; }
  .sb-selector::after, .view-select::after { display: none; } /* ::picker-icon replaces it */
  /* swap the UA triangle for the border chevron used elsewhere (accordion, page menu);
     `rotate` composes before `transform`, so open = 45 + 180 = 225deg (points up) */
  .sb-selector select::picker-icon, .view-select select::picker-icon {
    content: ""; width: 6px; height: 6px; margin-top: -3px;
    border: solid var(--text-muted); border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg); transition: rotate 0.15s ease;
  }
  .sb-selector select:open::picker-icon, .view-select select:open::picker-icon { rotate: 180deg; }
  .sb-selector select::picker(select), .view-select select::picker(select) {
    appearance: base-select; margin-top: 6px; padding: 4px;
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
  }
  .sb-selector select option, .view-select select option {
    display: flex; align-items: center; gap: 8px; min-height: 0;
    padding: 6px 10px; border-radius: 6px; /* concentric: 6 + 4 padding = 10 */
    background: transparent; color: var(--text); font-size: 13px;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .sb-selector select option:hover, .view-select select option:hover,
  .sb-selector select option:focus, .view-select select option:focus {
    background: var(--bg-soft); color: var(--text-strong);
  }
  .sb-selector select option:checked, .view-select select option:checked {
    color: var(--text-strong); font-weight: 500;
  }
  .sb-selector select option::checkmark, .view-select select option::checkmark {
    order: 1; margin-left: auto; color: var(--primary);
  }
  @media (prefers-reduced-motion: no-preference) {
    .sb-selector select::picker(select), .view-select select::picker(select) {
      opacity: 0; translate: 0 -4px;
      transition: opacity 0.15s ease-out, translate 0.15s ease-out,
        display 0.15s allow-discrete, overlay 0.15s allow-discrete;
    }
    .sb-selector select::picker(select):popover-open,
    .view-select select::picker(select):popover-open { opacity: 1; translate: 0 0; }
    @starting-style {
      .sb-selector select::picker(select):popover-open,
      .view-select select::picker(select):popover-open { opacity: 0; translate: 0 -4px; }
    }
  }
}

.color { margin: 16px 0; }
.color-compact, .color-row-items { display: flex; flex-wrap: wrap; gap: 14px; }
.color-row { margin: 14px 0; }
.color-row-title { font-weight: 600; color: var(--text-strong); font-size: 14px; margin-bottom: 8px; }
.color-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 118px;
  padding: 0; background: none; border: none; cursor: pointer; font-family: inherit; text-align: left;
}
.color-swatch {
  width: 100%; height: 56px; border-radius: 8px; background: var(--swatch-light);
  outline: 1px solid oklch(0 0 0 / 0.1); outline-offset: -1px; transition: scale 0.15s ease;
}
html.dark .color-swatch { background: var(--swatch-dark); outline-color: oklch(1 0 0 / 0.1); }
.color-item:active .color-swatch { scale: 0.96; }
.color-item-name { font-size: 12px; font-weight: 600; color: var(--text-strong); font-family: var(--font-mono); }
.color-item-value { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); overflow-wrap: anywhere; }

/* ---------- press feedback ---------- */
/* tactile 0.96 press on small interactive controls; unify their transitions */
.copy-btn, .theme-btn, .menu-btn, .copy-page-btn, .page-menu > summary,
.navbar-cta, .search-btn {
  transition-property: color, background-color, border-color, opacity, filter, scale;
  transition-duration: 0.15s;
}
.copy-btn:active, .theme-btn:active, .menu-btn:active, .copy-page-btn:active,
.page-menu > summary:active, .navbar-cta:active, .search-btn:active {
  scale: 0.96;
}

@media (prefers-reduced-transparency: reduce) {
  .copy-btn { background: var(--code-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- responsive ---------- */
/* Mintlify hides the TOC below xl (1280px)... */
@media (max-width: 1280px) {
  .toc { display: none; }
}
/* ...and turns the sidebar into a drawer below lg (1024px) */
@media (max-width: 1024px) {
  .content { padding: 28px 24px 64px; }
  .menu-btn { display: inline-flex; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; background: var(--bg);
    transform: translateX(-100%); visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.25s;
    height: 100vh; padding-top: 28px; box-shadow: var(--shadow);
  }
  body.sidebar-open .sidebar { transform: none; visibility: visible; }
  /* dimmed backdrop under the drawer; clicking it lands outside #sidebar, so
     client.js's outside-click handler closes the drawer. Body scroll locks. */
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open::before {
    content: ""; position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / 0.4);
  }
  /* 3/4-column card groups step down to 2 columns before stacking */
  .card-group { grid-template-columns: repeat(min(var(--cols, 2), 2), minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .sb-selector select { font-size: 16px; }
  /* inputs below 16px trigger iOS Safari page zoom on focus */
  #search-ui .pagefind-ui__search-input { font-size: 16px; }
  .search-btn span { display: none; }
  .search-btn { width: auto; }
  .navbar-links > a { display: none; }
  .article-header h1 { font-size: 30px; }
  .card-group { grid-template-columns: 1fr; }
  .update { flex-direction: column; gap: 10px; }
  .update-meta { width: auto; flex-direction: row; align-items: center; }
}

/* one-shot icon pop when the theme is toggled (keyframes survive .no-transitions) */
.theme-btn.swapping .ui-icon { animation: icon-pop 0.2s cubic-bezier(0.2, 0, 0, 1); }
@keyframes icon-pop { from { opacity: 0; transform: scale(0.25); filter: blur(4px); } }

/* ---------- openapi extras ---------- */
.field-required {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.status-ok { color: #16a34a; background: rgba(34, 197, 94, 0.14); }
.status-err { color: #ef4444; background: rgba(239, 68, 68, 0.14); }
.enum-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
}
.enum-options-label { font-weight: 600; }
.enum-options .enum-chip { font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.endpoint-path .path-sep { opacity: 0.5; }


:root{--primary:#34D399;--primary-light:#34D399;--primary-dark:#34D399;}
html.dark{--primary:#34D399;}

/* c7docs theme variants. Loaded after styles.css; scoped under html[data-c7-theme="..."].
   Token overrides use color-mix against mode-dependent tokens (--bg, --text) so they
   adapt to html.dark automatically; raw-value overrides get an explicit .dark block. */

/* ---------- mint: the base look, no overrides ---------- */
html[data-c7-theme="mint"] {}

/* ---------- maple: sidebar-first — no top navbar on desktop; logo, search, and
   tabs live in the sidebar column (matching Mintlify's maple). Soft radii. ---------- */
html[data-c7-theme="maple"] {
  --radius: 14px;
  --bg-soft: color-mix(in srgb, var(--primary) 4%, var(--bg));
  --shadow: 0 2px 8px rgb(0 0 0 / 0.05);
}
html[data-c7-theme="maple"] .sb-link,
html[data-c7-theme="maple"] .sb-anchor { border-radius: 999px; }
html[data-c7-theme="maple"] .search-btn,
html[data-c7-theme="maple"] .navbar-cta { border-radius: 999px; }
html[data-c7-theme="maple"] .sb-anchor-icon { border-radius: 999px; }
/* desktop: the navbar disappears and the sidebar column carries the chrome */
@media (min-width: 1025px) {
  html[data-c7-theme="maple"] { --navbar-h: 0px; --tabbar-h: 0px; }
  html[data-c7-theme="maple"] .navbar { display: none; }
  html[data-c7-theme="maple"] .sidebar-col {
    display: flex; flex-direction: column; width: var(--sidebar-w); flex-shrink: 0;
    position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--border);
  }
  html[data-c7-theme="maple"] .sidebar-col .sidebar {
    position: static; height: auto; flex: 1; min-height: 0; border-right: none; padding-top: 20px;
  }
  html[data-c7-theme="maple"] .sidebar-head { display: flex; flex-direction: column; gap: 14px; padding: 20px 12px 0 16px; }
  html[data-c7-theme="maple"] .sidebar-head-row { display: flex; align-items: center; justify-content: space-between; }
  /* the base .search-btn centers itself absolutely in the navbar; in the
     sidebar column it flows normally */
  html[data-c7-theme="maple"] .sidebar-head .search-btn { position: static; translate: none; width: 100%; }
  html[data-c7-theme="maple"] .sb-tabs { display: flex; flex-direction: column; }
  html[data-c7-theme="maple"] .sb-tab {
    display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
    color: var(--text-muted); font-size: 14px; font-weight: 500;
  }
  html[data-c7-theme="maple"] .sb-tab:hover { color: var(--text-strong); background: color-mix(in srgb, var(--text) 7%, transparent); text-decoration: none; }
  html[data-c7-theme="maple"] .sb-tab.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
  html[data-c7-theme="maple"] .sidebar-foot {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    padding: 14px 16px; border-top: 1px solid var(--border);
  }
  html[data-c7-theme="maple"] .sidebar-foot > a { color: var(--text); font-size: 13px; font-weight: 500; }
}
/* mobile keeps the standard navbar + drawer; the sidebar-column chrome hides */
@media (max-width: 1024px) {
  html[data-c7-theme="maple"] .sidebar-col { display: contents; }
  html[data-c7-theme="maple"] .sidebar-head, html[data-c7-theme="maple"] .sidebar-foot { display: none; }
}

/* ---------- palm: airy and breezy — open sidebar, generous whitespace, faint borders ---------- */
html[data-c7-theme="palm"] {
  --border: color-mix(in srgb, var(--text) 9%, var(--bg));
}
html[data-c7-theme="palm"] .sidebar { border-right: none; }
html[data-c7-theme="palm"] .content { padding: 56px 48px 96px; }
html[data-c7-theme="palm"] .sb-section { margin-top: 30px; }
html[data-c7-theme="palm"] .sb-link { padding-block: 7px; }
html[data-c7-theme="palm"] .sb-link.active { background: none; color: var(--primary); font-weight: 600; }
@media (max-width: 1024px) {
  html[data-c7-theme="palm"] .content { padding: 32px 24px 72px; }
}

/* ---------- willow: minimal and editorial — hairlines, square corners, no shadows, quiet type ---------- */
html[data-c7-theme="willow"] {
  --radius: 6px;
  --shadow: none;
  --border: color-mix(in srgb, var(--text) 8%, var(--bg));
}
html[data-c7-theme="willow"] .article-header h1 { font-weight: 500; letter-spacing: -0.02em; }
html[data-c7-theme="willow"] .prose h2, html[data-c7-theme="willow"] .prose h3 { font-weight: 500; }
html[data-c7-theme="willow"] .sb-section-title {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
}
html[data-c7-theme="willow"] .sb-link { border-radius: 4px; }
html[data-c7-theme="willow"] .sb-link:hover { background: none; }
html[data-c7-theme="willow"] .sb-link.active {
  background: none; color: var(--text-strong);
  box-shadow: inset 2px 0 0 var(--text-strong); border-radius: 0;
}

/* ---------- linden: retro terminal — everything monospace, square corners,
   `>` marker on the active sidebar link (matching Mintlify's linden) ---------- */
html[data-c7-theme="linden"] {
  --font-body: var(--font-mono);
  --radius: 2px;
  --shadow: none;
}
html[data-c7-theme="linden"] body { font-size: 14.5px; }
html[data-c7-theme="linden"] .article-header h1 { font-size: 28px; letter-spacing: -0.01em; }
html[data-c7-theme="linden"] .sb-link,
html[data-c7-theme="linden"] .sb-anchor,
html[data-c7-theme="linden"] .sb-tab,
html[data-c7-theme="linden"] .search-btn,
html[data-c7-theme="linden"] .navbar-cta { border-radius: 2px; }
html[data-c7-theme="linden"] .sb-section-title { font-size: 13px; font-weight: 700; }
html[data-c7-theme="linden"] .sb-link { font-size: 13px; }
html[data-c7-theme="linden"] .sb-link.active { background: none; color: var(--primary); font-weight: 700; }
html[data-c7-theme="linden"] .sb-link.active::before { content: ">"; margin-right: -2px; }
html[data-c7-theme="linden"] .navbar-cta {
  background: none; border: 1px solid var(--primary); color: var(--primary);
}
html[data-c7-theme="linden"] .toc { font-size: 12.5px; }

/* ---------- almond: warm — subtle warm-neutral cast on every surface, extra-round cards ---------- */
html[data-c7-theme="almond"] {
  --bg: color-mix(in srgb, #d4a373 4%, #ffffff);
  --bg-soft: color-mix(in srgb, #d4a373 9%, #ffffff);
  --bg-elevated: color-mix(in srgb, #d4a373 2%, #ffffff);
  --code-bg: color-mix(in srgb, #d4a373 9%, #ffffff);
  --border: color-mix(in srgb, #b45309 12%, #e7e5e4);
}
html[data-c7-theme="almond"].dark {
  --bg: color-mix(in srgb, #d4a373 4%, #0a0908);
  --bg-soft: color-mix(in srgb, #d4a373 8%, #121110);
  --bg-elevated: color-mix(in srgb, #d4a373 8%, #191715);
  --code-bg: color-mix(in srgb, #d4a373 8%, #121110);
  --border: color-mix(in srgb, #d4a373 16%, #27251f);
}
html[data-c7-theme="almond"] .card { border-radius: 16px; }

/* ---------- aspen: sidebar-first — dominant soft sidebar with inset pill, chrome melts into content ---------- */
html[data-c7-theme="aspen"] .sidebar { background: var(--bg-soft); padding-right: 16px; }
html[data-c7-theme="aspen"] .sb-link.active {
  background: var(--bg); color: var(--text-strong);
  box-shadow: inset 0 0 0 1px var(--border);
}
html[data-c7-theme="aspen"] .sb-link:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
html[data-c7-theme="aspen"] .navbar { border-bottom: none; }
html[data-c7-theme="aspen"] .tabbar { border-top: none; }

/* ---------- sequoia: bold and contrasty — deep chrome, filled active pill, heavy accents ---------- */
html[data-c7-theme="sequoia"] .navbar,
html[data-c7-theme="sequoia"] .sidebar {
  background: color-mix(in srgb, var(--text-strong) 6%, var(--bg));
}
html[data-c7-theme="sequoia"].dark .navbar,
html[data-c7-theme="sequoia"].dark .sidebar { background: var(--bg-elevated); }
html[data-c7-theme="sequoia"] .sb-link.active {
  background: var(--primary); color: var(--bg); font-weight: 600;
}
html[data-c7-theme="sequoia"] .sb-section-title { font-weight: 700; }
html[data-c7-theme="sequoia"] .tabbar-link.active { font-weight: 600; border-bottom-width: 3px; }
html[data-c7-theme="sequoia"] .method { font-weight: 800; font-size: 11px; }

/* ---------- luma: modern glass — heavy-blur navbar, floating sidebar, glassy cards, oversized H1 ---------- */
html[data-c7-theme="luma"] .navbar {
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
html[data-c7-theme="luma"] .sidebar {
  border-right: none;
  box-shadow: inset -1px 0 0 color-mix(in srgb, var(--text) 8%, transparent);
}
html[data-c7-theme="luma"] .article-header h1 { font-size: 42px; letter-spacing: -0.03em; }
html[data-c7-theme="luma"] .card {
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(1px)) {
  html[data-c7-theme="luma"] .card { background: var(--bg-elevated); }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-c7-theme="luma"] .navbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  html[data-c7-theme="luma"] .card { background: var(--bg-elevated); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
