/* Payin8 docs. Generated by build.mjs — edit src/styles.css and lib/tokens.mjs. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic-400-italic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic-500-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-cyrillic-600-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  color-scheme: light;
  --background: oklch(0.985 0.003 255);
  --foreground: oklch(0.22 0.02 260);
  --card: oklch(1 0 0);
  --popover: oklch(1 0 0);
  --muted: oklch(0.955 0.006 255);
  --muted-foreground: oklch(0.5 0.02 260);
  --accent: oklch(0.945 0.008 255);
  --border: oklch(0.915 0.008 255);
  --input: oklch(0.88 0.01 255);
  --sidebar: oklch(0.21 0.02 265);
  --sidebar-foreground: oklch(0.92 0.01 265);
  --sidebar-muted: oklch(0.72 0.015 265);
  --sidebar-faint: oklch(0.64 0.015 265);
  --sidebar-accent: oklch(0.27 0.025 265);
  --sidebar-border: oklch(0.3 0.02 265);
  --cabinet: oklch(0.56 0.11 190);
  --cabinet-foreground: oklch(0.99 0 0);
  --cabinet-soft: oklch(0.95 0.03 190);
  --cabinet-strong: oklch(0.42 0.11 190);
  --cabinet-on-sidebar: oklch(0.36 0.07 205);
  --link: oklch(0.42 0.11 190);
  --tone-progress: oklch(0.58 0.12 235);
  --tone-attention: oklch(0.68 0.15 80);
  --tone-success: oklch(0.58 0.13 155);
  --tone-danger: oklch(0.58 0.19 25);
  --tone-neutral: oklch(0.55 0.01 260);
  --tone-ink-mix: 62%;
  --code-bg: oklch(0.215 0.02 265);
  --code-head: oklch(0.245 0.022 265);
  --code-border: oklch(0.215 0.02 265);
  --code-fg: oklch(0.91 0.01 265);
  --code-muted: oklch(0.7 0.02 265);
  --shadow-popover: 0 1px 2px oklch(0.2 0.02 260 / 0.06), 0 8px 24px -6px oklch(0.2 0.02 260 / 0.16);
  --header-bg: oklch(0.985 0.003 255 / 0.9);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: oklch(0.17 0.012 265);
  --foreground: oklch(0.93 0.008 265);
  --card: oklch(0.205 0.014 265);
  --popover: oklch(0.22 0.015 265);
  --muted: oklch(0.25 0.015 265);
  --muted-foreground: oklch(0.72 0.015 265);
  --accent: oklch(0.27 0.018 265);
  --border: oklch(0.3 0.015 265);
  --input: oklch(0.34 0.015 265);
  --sidebar: oklch(0.14 0.012 265);
  --sidebar-foreground: oklch(0.9 0.01 265);
  --sidebar-muted: oklch(0.72 0.012 265);
  --sidebar-faint: oklch(0.62 0.012 265);
  --sidebar-accent: oklch(0.22 0.018 265);
  --sidebar-border: oklch(0.25 0.015 265);
  --cabinet: oklch(0.72 0.11 190);
  --cabinet-foreground: oklch(0.16 0.01 265);
  --cabinet-soft: oklch(0.3 0.05 190);
  --cabinet-strong: oklch(0.85 0.11 190);
  --cabinet-on-sidebar: oklch(0.3 0.06 200);
  --link: oklch(0.78 0.11 190);
  --tone-progress: oklch(0.7 0.11 235);
  --tone-attention: oklch(0.78 0.14 80);
  --tone-success: oklch(0.72 0.13 155);
  --tone-danger: oklch(0.7 0.16 25);
  --tone-neutral: oklch(0.7 0.01 260);
  --tone-ink-mix: 78%;
  --code-bg: oklch(0.2 0.014 265);
  --code-head: oklch(0.225 0.016 265);
  --code-border: oklch(0.29 0.015 265);
  --code-fg: oklch(0.91 0.01 265);
  --code-muted: oklch(0.68 0.015 265);
  --shadow-popover: 0 1px 2px oklch(0 0 0 / 0.3), 0 10px 28px -6px oklch(0 0 0 / 0.55);
  --header-bg: oklch(0.17 0.012 265 / 0.88);
}

@media (prefers-color-scheme: dark) {
:root:not([data-theme]) {
  color-scheme: dark;
  --background: oklch(0.17 0.012 265);
  --foreground: oklch(0.93 0.008 265);
  --card: oklch(0.205 0.014 265);
  --popover: oklch(0.22 0.015 265);
  --muted: oklch(0.25 0.015 265);
  --muted-foreground: oklch(0.72 0.015 265);
  --accent: oklch(0.27 0.018 265);
  --border: oklch(0.3 0.015 265);
  --input: oklch(0.34 0.015 265);
  --sidebar: oklch(0.14 0.012 265);
  --sidebar-foreground: oklch(0.9 0.01 265);
  --sidebar-muted: oklch(0.72 0.012 265);
  --sidebar-faint: oklch(0.62 0.012 265);
  --sidebar-accent: oklch(0.22 0.018 265);
  --sidebar-border: oklch(0.25 0.015 265);
  --cabinet: oklch(0.72 0.11 190);
  --cabinet-foreground: oklch(0.16 0.01 265);
  --cabinet-soft: oklch(0.3 0.05 190);
  --cabinet-strong: oklch(0.85 0.11 190);
  --cabinet-on-sidebar: oklch(0.3 0.06 200);
  --link: oklch(0.78 0.11 190);
  --tone-progress: oklch(0.7 0.11 235);
  --tone-attention: oklch(0.78 0.14 80);
  --tone-success: oklch(0.72 0.13 155);
  --tone-danger: oklch(0.7 0.16 25);
  --tone-neutral: oklch(0.7 0.01 260);
  --tone-ink-mix: 78%;
  --code-bg: oklch(0.2 0.014 265);
  --code-head: oklch(0.225 0.016 265);
  --code-border: oklch(0.29 0.015 265);
  --code-fg: oklch(0.91 0.01 265);
  --code-muted: oklch(0.68 0.015 265);
  --shadow-popover: 0 1px 2px oklch(0 0 0 / 0.3), 0 10px 28px -6px oklch(0 0 0 / 0.55);
  --header-bg: oklch(0.17 0.012 265 / 0.88);
}
}

/* ==========================================================================
   Payin8 docs — layout and components. Tokens come from lib/tokens.mjs.
   The visual language follows the cabinets: cold graphite base, IBM Plex,
   the merchant accent, status tones, dense quiet tables.
   ========================================================================== */

:root {
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 6px;
  --header-h: 56px;
  --sidebar-w: 284px;
  --toc-w: 232px;
  --measure: 760px;
  --gutter: 48px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in oklch, var(--cabinet) 26%, transparent);
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in oklch, var(--link) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
a:hover {
  text-decoration-color: currentColor;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

svg.i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

:focus-visible {
  outline: 2px solid var(--cabinet);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--cabinet);
  color: var(--cabinet-foreground);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}

/* ---------- frame ---------- */

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--toc-w);
  gap: 0 40px;
  padding: 0 var(--gutter) 0 var(--gutter);
  max-width: calc(var(--measure) + var(--toc-w) + 40px + 2 * var(--gutter) + 80px);
  width: 100%;
}

.content {
  min-width: 0;
  max-width: var(--measure);
  width: 100%;
  padding: 44px 0 0;
  outline: none;
}

/* ---------- brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: var(--cabinet);
  color: var(--cabinet-foreground);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-sep {
  opacity: 0.45;
  margin: 0 -4px;
}
.brand-sub {
  font-weight: 500;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- side menu (graphite in both themes) ---------- */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: var(--sidebar-foreground);
  box-shadow: inset 3px 0 0 0 var(--cabinet);
  z-index: 40;
}

.sidebar-head {
  height: var(--header-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid var(--sidebar-border);
}
.sidebar .brand:focus-visible,
.sidebar a:focus-visible,
.sidebar button:focus-visible {
  outline-color: var(--cabinet);
}
.icon-btn.sidebar-close {
  display: none;
  color: var(--sidebar-foreground);
}
.sidebar-close:hover {
  background: var(--sidebar-accent);
}

.nav {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 10px 40px 13px;
  scrollbar-width: thin;
  scrollbar-color: var(--sidebar-border) transparent;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-group + .nav-group {
  margin-top: 18px;
}
.nav-label {
  margin: 0 0 4px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sidebar-faint);
}
.nav-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--sidebar-muted);
  font-size: 13.5px;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 0.12s, color 0.12s;
}
.nav-link:hover {
  background: var(--sidebar-accent);
  color: var(--sidebar-foreground);
}
.nav-item.is-active > .nav-link {
  background: color-mix(in oklch, var(--cabinet) 24%, var(--sidebar));
  color: oklch(0.98 0.005 265);
  font-weight: 500;
}
.nav-sub {
  display: none;
  margin: 2px 0 6px 18px !important;
  padding-left: 10px !important;
  border-left: 1px solid var(--sidebar-border);
}
.nav-item.is-active > .nav-sub {
  display: block;
}
.nav-sublink {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--sidebar-faint);
  font-size: 12.5px;
  line-height: 18px;
  text-decoration: none;
}
.nav-sublink:hover {
  color: var(--sidebar-foreground);
}
.nav-sublink.is-active {
  color: var(--sidebar-foreground);
  box-shadow: inset 2px 0 0 0 var(--cabinet);
  border-radius: 0 4px 4px 0;
  margin-left: -11px;
  padding-left: 17px;
}
.nav-sublink .toc-path {
  color: inherit;
  font-size: 11.5px;
}

.backdrop {
  display: none;
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 var(--gutter);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.icon-btn.menu-btn,
.brand.brand-top {
  display: none;
}

.crumbs {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  color: var(--muted-foreground);
  opacity: 0;
  transition: opacity 0.2s;
}
.crumbs.is-on {
  opacity: 1;
}
.crumb-sep {
  opacity: 0.5;
}
.crumb-title {
  color: var(--foreground);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}
.icon-btn:hover {
  background: var(--accent);
  color: var(--foreground);
}
.icon-btn svg.i {
  width: 18px;
  height: 18px;
}

/* language: RU | EN */
.seg-group {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--muted);
}
.seg {
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.seg:hover {
  color: var(--foreground);
}
.seg[aria-current='true'] {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 2px oklch(0.2 0.02 260 / 0.12), 0 0 0 1px var(--border);
}

/* theme menu */
.menu {
  position: relative;
}
.theme-btn .i-dark,
.theme-btn .i-system,
:root[data-theme-pref='dark'] .theme-btn .i-light,
:root[data-theme-pref='system'] .theme-btn .i-light,
:root:not([data-theme-pref]) .theme-btn .i-light {
  display: none;
}
:root[data-theme-pref='dark'] .theme-btn .i-dark,
:root[data-theme-pref='system'] .theme-btn .i-system,
:root:not([data-theme-pref]) .theme-btn .i-system {
  display: block;
}

.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 190px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--popover);
  box-shadow: var(--shadow-popover);
  z-index: 50;
}
.menu-pop [role='menuitemradio'] {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 13.5px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}
.menu-pop [role='menuitemradio'] svg.i {
  color: var(--muted-foreground);
}
.menu-pop [role='menuitemradio']:hover,
.menu-pop [role='menuitemradio']:focus-visible {
  background: var(--accent);
  outline: none;
}
.menu-pop .i-check {
  margin-left: auto;
  opacity: 0;
  color: var(--cabinet-strong) !important;
}
.menu-pop [aria-checked='true'] .i-check {
  opacity: 1;
}

/* ---------- search ---------- */

.search {
  position: relative;
  width: 300px;
  flex-shrink: 1;
  min-width: 180px;
}
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 34px;
  padding: 0 34px 0 34px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  font-size: 13.5px;
  transition: border-color 0.12s, box-shadow 0.12s;
  -webkit-appearance: none;
  appearance: none;
}
.search-input::placeholder {
  color: var(--muted-foreground);
}
.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-input:focus {
  outline: none;
  border-color: var(--cabinet);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--cabinet) 22%, transparent);
}
.search-kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 20px;
  padding: 0 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
.search-input:focus ~ .search-kbd,
.search-input:not(:placeholder-shown) ~ .search-kbd {
  display: none;
}
.icon-btn.search-close,
.icon-btn.search-btn {
  display: none;
}

.search-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--popover);
  box-shadow: var(--shadow-popover);
  z-index: 50;
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-results a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--foreground);
  text-decoration: none;
}
.search-results [aria-selected='true'] a,
.search-results a:hover {
  background: var(--accent);
}
.search-results [aria-selected='true'] a {
  box-shadow: inset 2px 0 0 0 var(--cabinet);
}
.sr-path {
  display: block;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
}
.sr-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.sr-title .t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-text {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-results mark {
  background: color-mix(in oklch, var(--cabinet) 22%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.search-empty {
  margin: 0;
  padding: 18px 12px;
  font-size: 13.5px;
  color: var(--muted-foreground);
  text-align: center;
}

/* ---------- table of contents (right) ---------- */

.toc {
  min-width: 0;
}
.toc-inner {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  padding: 0 0 24px;
  scrollbar-width: thin;
  margin-top: 44px;
  opacity: 0;
  transition: opacity 0.2s;
}
.toc.is-on .toc-inner {
  opacity: 1;
}
.toc-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.toc-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: -1px;
  padding: 4px 0 4px 12px;
  border-left: 1px solid transparent;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 18px;
  text-decoration: none;
  min-width: 0;
}
.toc-list a > span:not(.method) {
  overflow-wrap: anywhere;
}
.toc-list .toc-l3 a {
  padding-left: 24px;
  font-size: 12.5px;
}
.toc-list a:hover {
  color: var(--foreground);
}
.toc-list a.is-active {
  color: var(--cabinet-strong);
  border-left-color: var(--cabinet);
  font-weight: 500;
}
.toc-path {
  font-size: 11.5px;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
  padding: 8px 0 40px;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cabinet-strong);
}
.hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lead {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.hero-card {
  position: relative;
  padding: 18px 20px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--cabinet);
  opacity: 0.85;
}
.hero-card[data-group='api']::before {
  background: var(--tone-progress);
}
.hero-card-kicker {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.hero-card-kicker a {
  color: var(--foreground);
  text-decoration: none;
}
.hero-card-kicker a::after {
  content: ' →';
  color: var(--muted-foreground);
  font-weight: 400;
}
.hero-card-kicker a:hover::after {
  color: var(--cabinet-strong);
}
.hero-card-lead {
  margin: 2px 0 12px;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--muted-foreground);
}
.hero-links {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--border);
  columns: 2 140px;
  column-gap: 16px;
}
.hero-links li {
  margin: 0;
  break-inside: avoid;
}
.hero-links a {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--foreground);
  text-decoration: none;
}
.hero-links a:hover {
  color: var(--cabinet-strong);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--cabinet) 50%, transparent);
}

/* ---------- prose ---------- */

.doc-section {
  padding: 48px 0 8px;
  border-top: 1px solid var(--border);
}
.doc-section > .eyebrow {
  margin-bottom: 6px;
}
.doc-section[data-group='api'] > .eyebrow {
  color: color-mix(in oklch, var(--tone-progress) var(--tone-ink-mix), var(--foreground));
}

.content h2,
.content h3,
.content h4,
.content h5 {
  position: relative;
  font-weight: 600;
  color: var(--foreground);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.content h2 {
  margin: 0 0 18px;
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.content h3 {
  margin: 44px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.content h4 {
  margin: 32px 0 10px;
  font-size: 16px;
  line-height: 1.4;
}
.content h5 {
  margin: 24px 0 8px;
  font-size: 14px;
}
.content [tabindex='-1']:focus {
  outline: none;
}
.content h2 + h3,
.content h3 + h4 {
  margin-top: 16px;
}
.h-anchor {
  margin-left: 8px;
  padding: 0 4px;
  border-radius: 4px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8em;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.12s;
}
.content :is(h2, h3, h4, h5):hover .h-anchor,
.h-anchor:focus-visible {
  opacity: 1;
}
.h-anchor:hover {
  color: var(--cabinet-strong);
}

:where(.content) :where(p, ul, ol, blockquote) {
  margin: 0 0 16px;
}
:where(.content) :where(ul, ol) {
  padding-left: 22px;
}
:where(.content) li {
  margin: 4px 0;
}
:where(.content) li > p {
  margin: 0 0 6px;
}
:where(.content) li::marker {
  color: var(--muted-foreground);
}
:where(.content) strong {
  font-weight: 600;
}
:where(.content) hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: var(--border);
}
:where(.content) blockquote {
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--border);
  color: var(--muted-foreground);
}
.content img {
  max-width: 100%;
}

:where(.content) :not(pre) > code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--muted);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}
:where(.content) a > code {
  color: inherit;
}

/* ---------- endpoint heading ---------- */

.content .endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 40px 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-size: 15px;
  line-height: 22px;
}
.content h3.endpoint {
  margin-top: 44px;
}
.content h3 + .endpoint {
  margin-top: 14px;
}
.content .endpoint .ep-path {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
  min-width: 0;
}
.ep-param {
  color: var(--cabinet-strong);
}
.ep-rest {
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 14px;
}
.endpoint .h-anchor {
  margin-left: auto;
}

.method {
  --tone: var(--tone-neutral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 1px 7px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--tone) 13%, transparent);
  color: color-mix(in oklch, var(--tone) var(--tone-ink-mix), var(--foreground));
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.method[data-method='get'] { --tone: var(--tone-progress); }
.method[data-method='post'] { --tone: var(--tone-success); }
.method[data-method='put'],
.method[data-method='patch'] { --tone: var(--tone-attention); }
.method[data-method='delete'] { --tone: var(--tone-danger); }
.method-sm {
  min-width: 0;
  padding: 0 4px;
  font-size: 9.5px;
  line-height: 15px;
  letter-spacing: 0.04em;
}
.sidebar .method-sm {
  background: color-mix(in oklch, var(--tone) 22%, transparent);
  color: color-mix(in oklch, var(--tone) 55%, white);
}

/* ---------- tables ---------- */

.table-wrap {
  --edge: oklch(0.2 0.02 260 / 0.14);
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  /* Edge shadows appear only while there is more table to scroll to. */
  background:
    linear-gradient(to right, var(--card) 40%, transparent) left / 28px 100% no-repeat local,
    linear-gradient(to left, var(--card) 40%, transparent) right / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--edge), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--edge), transparent) right / 12px 100% no-repeat scroll,
    var(--card);
  scrollbar-width: thin;
}
:root[data-theme='dark'] .table-wrap {
  --edge: oklch(0 0 0 / 0.5);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.5;
}
.table-wrap th {
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 60%, var(--card));
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.table-wrap th code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}
.table-wrap td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  min-width: 96px;
}
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.table-wrap tbody tr:hover {
  background: color-mix(in oklch, var(--muted) 55%, transparent);
}
.table-wrap td:first-child {
  min-width: 0;
}
.table-wrap td code {
  font-size: 12.5px;
  /* break-word keeps a token whole when it can: the table scrolls instead */
  overflow-wrap: break-word;
}
.table-wrap td.cell-code code,
.table-wrap td code.nb {
  white-space: nowrap;
  overflow-wrap: normal;
}
.table-wrap td:last-child {
  min-width: 220px;
}

/* ---------- callouts ---------- */

.callout {
  --tone: var(--tone-progress);
  margin: 0 0 20px;
  padding: 12px 16px 2px 14px;
  border: 1px solid color-mix(in oklch, var(--tone) 26%, transparent);
  border-left: 3px solid var(--tone);
  border-radius: 6px;
  background: color-mix(in oklch, var(--tone) 8%, var(--card));
  font-size: 14.5px;
  line-height: 1.6;
}
.callout[data-kind='tip'] { --tone: var(--tone-success); }
.callout[data-kind='warning'] { --tone: var(--tone-attention); }
p.callout {
  padding-bottom: 12px;
}
.callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--tone) var(--tone-ink-mix), var(--foreground));
}
.callout-body > :last-child {
  margin-bottom: 10px;
}
.callout-body .code,
.callout-body .table-wrap {
  margin-bottom: 12px;
}

/* ---------- code ---------- */

.code {
  margin: 0 0 20px;
  border: 1px solid var(--code-border);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-fg);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 0 6px 0 14px;
  background: var(--code-head);
  border-bottom: 1px solid oklch(1 0 0 / 0.06);
}
.code-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--code-muted);
}
.code pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: oklch(0.4 0.02 265) transparent;
}
.code pre:focus-visible,
.tabpanel:focus-visible {
  outline-offset: -2px;
}
.code code {
  font-family: var(--font-mono);
  white-space: pre;
  color: inherit;
}

.tablist {
  display: flex;
  align-self: stretch;
  gap: 2px;
  min-width: 0;
  margin-left: -6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tablist::-webkit-scrollbar {
  display: none;
}
.tablist [role='tab'] {
  position: relative;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--code-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.12s;
}
.tablist [role='tab']:hover {
  color: var(--code-fg);
}
.tablist [role='tab'][aria-selected='true'] {
  color: oklch(0.97 0.005 265);
}
.tablist [role='tab'][aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: oklch(0.72 0.11 190);
}
.tablist [role='tab']:focus-visible {
  outline-offset: -4px;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--code-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.12s, color 0.12s;
}
.copy svg.i {
  width: 14px;
  height: 14px;
}
.copy:hover {
  background: oklch(1 0 0 / 0.08);
  color: var(--code-fg);
}
.copy.is-done {
  color: oklch(0.8 0.13 155);
}

/* highlight.js — tuned for the graphite plate (both themes) */
.hljs-comment,
.hljs-quote {
  color: oklch(0.64 0.02 265);
  font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-doctag,
.hljs-meta .hljs-keyword {
  color: #f0abfc;
}
.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-meta .hljs-string {
  color: #86efac;
}
.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet {
  color: #fdba74;
}
.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-section,
.hljs-name {
  color: #93c5fd;
}
.hljs-title,
.hljs-title.function_,
.hljs-title.class_ {
  color: oklch(0.83 0.1 190);
}
.hljs-built_in,
.hljs-type,
.hljs-variable,
.hljs-template-variable,
.hljs-params {
  color: #7dd3fc;
}
.hljs-meta,
.hljs-punctuation,
.hljs-operator {
  color: oklch(0.74 0.02 265);
}
.hljs-subst {
  color: var(--code-fg);
}
.hljs-deletion {
  color: #fca5a5;
}
.hljs-emphasis {
  font-style: italic;
}
.hljs-strong {
  font-weight: 600;
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 56px 0 0;
  padding: 20px 0 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-foreground);
}
.foot > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-mark-sm {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 8.5px;
}
.foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-foreground);
  text-decoration: none;
}
.foot a:hover {
  color: var(--foreground);
}
.foot svg.i {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

@media (max-width: 1060px) {
  :root {
    --gutter: 32px;
  }
  .search {
    width: 240px;
  }
}

/* Drawer navigation */
@media (max-width: 960px) {
  :root {
    --header-h: 54px;
    --gutter: 24px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(312px, 86vw);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform 0.24s var(--ease), visibility 0s linear 0.24s;
    box-shadow: inset 3px 0 0 0 var(--cabinet), 12px 0 40px oklch(0 0 0 / 0.25);
  }
  :root[data-nav='open'] .sidebar {
    transform: none;
    visibility: visible;
    transition: transform 0.24s var(--ease), visibility 0s;
  }
  .icon-btn.sidebar-close {
    display: inline-grid;
  }
  .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: oklch(0.15 0.02 265 / 0.5);
  }
  .icon-btn.menu-btn {
    display: inline-grid;
    margin-left: -6px;
  }
  .brand.brand-top {
    display: inline-flex;
  }
  .crumbs {
    display: none;
  }
  .topbar {
    padding: 0 12px 0 var(--gutter);
    gap: 8px;
  }
  .search {
    margin-left: auto;
  }
  :root[data-nav='open'] body {
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 15px;
  }
  .topbar {
    padding: 0 8px 0 12px;
  }
  .tools {
    margin-left: auto;
    gap: 4px;
  }
  .brand-top .brand-sep,
  .brand-top .brand-sub {
    display: none;
  }
  .icon-btn.search-btn {
    display: inline-grid;
  }
  .search {
    display: none;
  }
  :root[data-search='open'] .search {
    display: block;
    position: absolute;
    inset: 0;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 10px 8px 10px 12px;
    background: var(--background);
    z-index: 5;
  }
  :root[data-search='open'] .search-input {
    padding-right: 44px;
  }
  :root[data-search='open'] .search-icon {
    left: 22px;
  }
  :root[data-search='open'] .icon-btn.search-close {
    display: inline-grid;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }
  .search-kbd {
    display: none;
  }
  .search-panel {
    position: fixed;
    top: calc(var(--header-h) + 4px);
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100dvh - var(--header-h) - 16px);
  }
  .content {
    padding-top: 28px;
  }
  .hero {
    padding-bottom: 32px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .lead {
    font-size: 15.5px;
  }
  .doc-section {
    padding-top: 36px;
  }
  .content h2 {
    font-size: 23px;
  }
  .content h3 {
    font-size: 18px;
    margin-top: 36px;
  }
  .content .endpoint {
    padding: 9px 12px;
  }
  .code {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .callout .code {
    margin-left: 0;
    margin-right: 0;
    border-radius: 6px;
  }
  .code pre {
    padding: 12px 16px 14px;
    font-size: 12.5px;
  }
  .copy-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .copy {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
  .h-anchor {
    display: none;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Phones: a table becomes a list of cards, one per row; each value is captioned with its column. */
@media (max-width: 640px) {
  .table-wrap {
    overflow: visible;
    background: var(--card);
  }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: auto;
  }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .table-wrap tr {
    padding: 10px 14px 12px;
    border-bottom: 1px solid var(--border);
  }
  .table-wrap tr:last-child {
    border-bottom: 0;
  }
  .table-wrap tbody tr:hover {
    background: none;
  }
  .table-wrap td,
  .table-wrap td:first-child,
  .table-wrap td:last-child {
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .table-wrap td + td {
    margin-top: 8px;
  }
  .table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted-foreground);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .table-wrap td:first-child[data-label]::before,
  .table-wrap td.cell-short[data-label]::before {
    display: inline;
    margin-right: 8px;
  }
  .table-wrap td[data-label='']::before {
    display: none;
  }
  .table-wrap td code,
  .table-wrap td.cell-code code,
  .table-wrap td code.nb {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (hover: none) {
  .h-anchor {
    opacity: 0.6;
  }
}

/* ---------- motion ---------- */

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

/* ---------- print ---------- */

@media print {
  :root {
    color-scheme: light;
    --background: #fff;
    --foreground: #111;
    --card: #fff;
    --muted: #f3f4f6;
    --muted-foreground: #4b5563;
    --border: #d1d5db;
    --link: #0b5d5d;
    --cabinet-strong: #0b5d5d;
    --code-bg: #f6f7f9;
    --code-head: #eef0f3;
    --code-border: #d1d5db;
    --code-fg: #111;
    --code-muted: #4b5563;
  }
  body {
    font-size: 10.5pt;
    line-height: 1.5;
  }
  .layout,
  .page {
    display: block;
    padding: 0;
    max-width: none;
  }
  .sidebar,
  .topbar,
  .toc,
  .backdrop,
  .skip,
  .copy,
  .h-anchor,
  .foot a,
  .hero-cards {
    display: none !important;
  }
  .content {
    max-width: none;
    padding: 0;
  }
  .doc-section {
    break-before: page;
    border-top: 0;
    padding-top: 0;
  }
  .content :is(h2, h3, h4) {
    break-after: avoid;
  }
  .code,
  .callout,
  .table-wrap,
  .endpoint {
    break-inside: avoid;
  }
  .code pre,
  .code code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow: visible;
  }
  .hljs-comment,
  .hljs-quote { color: #6b7280; }
  .hljs-keyword,
  .hljs-selector-tag { color: #86198f; }
  .hljs-string,
  .hljs-regexp { color: #166534; }
  .hljs-number,
  .hljs-literal { color: #9a3412; }
  .hljs-attr,
  .hljs-attribute,
  .hljs-property,
  .hljs-section,
  .hljs-name { color: #1e40af; }
  .hljs-title,
  .hljs-built_in,
  .hljs-variable,
  .hljs-params { color: #0e7490; }
  .tablist {
    display: none;
  }
  .tabpanel,
  .tabpanel[hidden] {
    display: block !important;
  }
  .tabpanel + .tabpanel {
    border-top: 1px solid var(--border);
  }
  .tabpanel::before {
    content: attr(data-label);
    display: block;
    padding: 6px 14px 0;
    font-family: var(--font-mono);
    font-size: 8.5pt;
    color: var(--code-muted);
  }
  .code-tabs > .code-head {
    display: none;
  }
  .table-wrap {
    overflow: visible;
  }
  .content a {
    color: inherit;
    text-decoration: none;
  }
  .method {
    border: 1px solid currentColor;
  }
}
