*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #3c3c48;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #565664;
  background-clip: content-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

@supports (-moz-appearance: none) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #3c3c48 transparent;
  }
}

:root {
  --docs-bg: #0f0f0f;
  --docs-panel: #141414;
  --docs-panel-2: #181818;
  --docs-line: #2a2a2a;
  --docs-line-strong: #3a3a3a;
  --docs-text: #d8d8df;
  --docs-muted: #9a9aa4;
  --docs-dim: #66666f;
  --docs-accent: #8b93ff;
  --docs-accent-soft: rgba(120, 130, 255, 0.16);
  --docs-header: 64px;
  --docs-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  scroll-padding-top: calc(var(--docs-header) + 12px);
  scrollbar-gutter: stable;
}

.docs-body {
  min-height: 100vh;
  height: auto;
  background: var(--docs-bg);
  color: var(--docs-text);
}

.docs-progress {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  opacity: 0;
  background: var(--docs-accent);
  box-shadow: 0 0 12px rgba(139, 147, 255, 0.5);
  transition: width 120ms linear, opacity 160ms ease;
}

.docs-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--docs-header);
  display: grid;
  grid-template-columns: 1fr minmax(240px, 420px) 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(42, 42, 42, 0.82);
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(14px);
}

.docs-header-search {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.docs-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  min-width: 0;
}

.docs-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.docs-brand:hover {
  color: #fff;
}

.docs-brand-logo {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
}

.docs-header-title {
  display: none;
  padding-left: 16px;
  border-left: 1px solid #34343a;
  color: var(--docs-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.docs-switch {
  display: flex;
  gap: 4px;
  margin-left: 0;
  padding: 3px;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: rgba(22, 22, 22, 0.8);
}

.docs-switch a {
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--docs-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease;
}

.docs-switch a:hover {
  color: #fff;
  background: #202020;
}

.docs-switch a.is-active {
  color: #fff;
  background: #26262b;
}

.docs-menu {
  display: none;
  width: 38px;
  height: 34px;
  margin-left: 0;
  padding: 8px;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  background: var(--docs-panel);
  color: var(--docs-muted);
  cursor: pointer;
}

.docs-menu span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 3.5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms var(--docs-ease), opacity 120ms ease;
}

.docs-menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.docs-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.docs-menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.docs-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 268px minmax(0, 960px) 232px;
  justify-content: center;
  min-height: calc(100vh - var(--docs-header));
}

.docs-sidebar {
  position: sticky;
  top: var(--docs-header);
  height: calc(100vh - var(--docs-header));
  overflow-y: auto;
  padding: 20px 16px 32px;
  border-right: 1px solid rgba(42, 42, 42, 0.8);
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.docs-sidebar-top {
  display: none;
}

.docs-sidebar::-webkit-scrollbar {
  width: 8px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: content-box;
}

.docs-sidebar:hover,
.docs-sidebar:focus-within {
  scrollbar-color: #3c3c48 transparent;
}

.docs-sidebar:hover::-webkit-scrollbar-thumb,
.docs-sidebar:focus-within::-webkit-scrollbar-thumb {
  background: #3c3c48;
  background-clip: content-box;
}

.docs-sidebar-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--docs-line);
}

.docs-sidebar-footer a {
  color: var(--docs-dim);
  text-decoration: none;
  font-size: 0.76rem;
  transition: color 150ms ease;
}

.docs-sidebar-footer a:hover {
  color: #fff;
}

.docs-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: var(--docs-header) 0 0;
  z-index: 44;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
}

.docs-sidebar-backdrop.show {
  display: block;
}

.docs-search-label {
  display: block;
  margin-bottom: 7px;
  color: var(--docs-dim);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.docs-search-shell {
  position: relative;
}

.docs-search-icon {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--docs-dim);
  pointer-events: none;
  transform: translateY(-50%);
}

.docs-search {
  width: 100%;
  height: 40px;
  padding: 8px 80px 8px 36px;
  border: 1px solid var(--docs-line);
  border-radius: 10px;
  outline: none;
  background: rgba(20, 20, 20, 0.78);
  color: var(--docs-text);
  font: inherit;
  font-size: 0.83rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.docs-search::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.docs-search::placeholder {
  color: var(--docs-dim);
}

.docs-search:focus {
  border-color: #4a4a58;
  background: #17171b;
  box-shadow: 0 0 0 3px rgba(139, 147, 255, 0.08);
}

.docs-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--docs-muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.docs-search-clear::before,
.docs-search-clear::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 6px;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.docs-search-clear::before {
  transform: rotate(45deg);
}

.docs-search-clear::after {
  transform: rotate(-45deg);
}

.docs-search-clear:hover {
  background: #26262b;
  color: #fff;
}

.docs-search-kbd {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  gap: 3px;
  pointer-events: none;
  transform: translateY(-50%);
}

.docs-search-kbd kbd {
  padding: 3px 5px;
  border: 1px solid var(--docs-line-strong);
  border-radius: 5px;
  background: #17171b;
  color: var(--docs-dim);
  font-family: inherit;
  font-size: 0.62rem;
  line-height: 1;
}

.docs-search:not(:placeholder-shown) ~ .docs-search-kbd {
  display: none;
}

.docs-search-results {
  display: grid;
  gap: 4px;
  max-height: 62vh;
  margin-top: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.docs-header-search .docs-search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  max-height: min(62vh, 460px);
  margin-top: 0;
  padding: 6px;
  border: 1px solid var(--docs-line-strong);
  border-radius: 10px;
  background: #131317;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
  scrollbar-width: thin;
  scrollbar-color: #3c3c48 transparent;
}

.docs-header-search .docs-search-results::-webkit-scrollbar {
  width: 10px;
}

.docs-header-search .docs-search-results::-webkit-scrollbar-track {
  margin: 6px 0;
  background: transparent;
}

.docs-header-search .docs-search-results::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #3c3c48;
  background-clip: content-box;
}

.docs-header-search .docs-search-results::-webkit-scrollbar-thumb:hover {
  background: #52525f;
  background-clip: content-box;
}

.docs-header-search .docs-search-results::-webkit-scrollbar-corner {
  background: transparent;
}

.docs-search-results[hidden],
.docs-search-clear[hidden],
.docs-nav[hidden] {
  display: none;
}

.docs-search-state {
  padding: 12px 9px;
  color: var(--docs-dim);
  font-size: 0.78rem;
  line-height: 1.45;
}

.docs-search-result {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--docs-muted);
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.docs-search-result:hover,
.docs-search-result:focus {
  border-color: var(--docs-line-strong);
  outline: 0;
  background: #1e1e22;
}

.docs-search-result-name {
  overflow: hidden;
  color: #f0f0f4;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-search-result-name code {
  color: inherit;
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.76rem;
}

.docs-search-result-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--docs-dim);
  font-size: 0.7rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.docs-nav {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.docs-nav-overview {
  margin-bottom: 2px;
}

.docs-nav-overview-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--docs-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 150ms ease, background-color 150ms ease;
}

.docs-nav-overview-link:hover {
  background: #1c1c22;
  color: #fff;
}

.docs-nav-overview-link.is-active {
  background: rgba(139, 147, 255, 0.12);
  color: #fff;
  font-weight: 600;
}

.docs-nav-group {
  display: grid;
  gap: 3px;
}

.docs-nav-group-label {
  margin: 0 0 4px;
  padding: 0 10px;
  color: var(--docs-dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-nav-icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: #737382;
  transition: color 150ms ease;
}

.docs-nav-overview-link.is-active .docs-nav-icon,
.docs-nav-library.is-active .docs-nav-icon {
  color: #c9cbe8;
}

.docs-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-nav-library {
  min-width: 0;
}

.docs-nav-library-row {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.docs-nav-library-row:hover {
  border-color: transparent;
  background: #1b1b20;
}

.docs-nav-library.is-active .docs-nav-library-row {
  border-color: transparent;
  background: rgba(139, 147, 255, 0.12);
}

.docs-nav-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  overflow: hidden;
  border-radius: 7px;
  color: var(--docs-muted);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-nav-library-row:hover .docs-nav-link {
  color: #ececf1;
}

.docs-nav-library.is-active .docs-nav-link {
  color: #fff;
  font-weight: 600;
}

.docs-nav-toggle {
  width: 26px;
  height: 26px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--docs-dim);
  cursor: pointer;
  position: relative;
}

.docs-nav-toggle::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 9px;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 160ms var(--docs-ease);
}

.docs-nav-library.is-expanded .docs-nav-toggle::after {
  transform: rotate(45deg) translateY(-2px);
}

.docs-nav-toggle:hover {
  background: #2a2a30;
  color: #fff;
}

.docs-nav-functions {
  display: grid;
  gap: 1px;
  max-height: 0;
  margin-left: 18px;
  padding-left: 7px;
  overflow: hidden;
  border-left: 1px solid transparent;
  opacity: 0;
  transition: max-height 260ms var(--docs-ease), padding 200ms var(--docs-ease), border-color 160ms ease, opacity 150ms ease;
}

.docs-nav-library.is-expanded .docs-nav-functions {
  max-height: 4200px;
  padding-top: 3px;
  padding-bottom: 5px;
  border-color: #32323a;
  opacity: 1;
}

.docs-nav-function {
  display: block;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 5px;
  color: var(--docs-dim);
  text-decoration: none;
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 130ms ease, background-color 130ms ease;
}

.docs-nav-function:hover {
  background: #202026;
  color: #d8d8e0;
}

.docs-nav-function.is-active {
  background: #26262e;
  color: #fff;
}

.docs-content {
  min-width: 0;
  padding: 52px 48px 100px;
  background: rgba(15, 15, 15, 0.38);
  color: var(--docs-text);
  font-size: 0.94rem;
  line-height: 1.72;
}

.docs-hero {
  padding-bottom: 8px;
}

.docs-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 6px;
}

.docs-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: var(--docs-panel);
}

.docs-stat strong {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.docs-stat span {
  color: var(--docs-muted);
  font-size: 0.82rem;
}

.docs-stats-note {
  margin: 0 0 8px;
  color: var(--docs-dim);
  font-size: 0.82rem;
}

.docs-table pre.code {
  margin: 10px 0 2px;
  padding: 10px 12px;
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  color: #fff;
  line-height: 1.22;
  letter-spacing: -0.025em;
  scroll-margin-top: calc(var(--docs-header) + 22px);
}

.docs-content h1 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 700;
}

.docs-content h1 + p {
  color: var(--docs-muted);
  font-size: 1rem;
}

.docs-content h2 {
  margin: 54px 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.docs-content h3 {
  margin: 30px 0 10px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #e4e4ea;
}

.docs-content p {
  margin: 0 0 16px;
}

.docs-content ul,
.docs-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.docs-content li {
  margin: 4px 0;
}

.docs-content a {
  color: #b8beff;
  text-decoration-color: #4b4f8f;
  text-underline-offset: 3px;
}

.docs-content a:hover {
  color: #dfe2ff;
  text-decoration-color: #9aa4ff;
}

.heading-anchor {
  margin-left: 8px;
  color: #4a4a55 !important;
  text-decoration: none;
  opacity: 0;
  font-size: 0.7em;
  vertical-align: middle;
  transition: opacity 150ms ease, color 150ms ease;
}

.docs-content h1:hover .heading-anchor,
.docs-content h2:hover .heading-anchor,
.docs-content h3:hover .heading-anchor {
  opacity: 1;
}

.heading-anchor:hover {
  color: #b8beff !important;
}

.docs-note {
  margin: 16px 0 22px;
  padding: 14px 18px;
  border: 1px solid #35384a;
  border-left: 3px solid var(--docs-accent);
  border-radius: 8px;
  background: rgba(30, 32, 48, 0.6);
  color: #c5c8dc;
  font-size: 0.88rem;
}

.docs-note strong {
  color: #fff;
}

.docs-note.warn {
  border-color: #4a3d2c;
  border-left-color: #ffb84d;
  background: rgba(48, 38, 24, 0.5);
  color: #e3d3b8;
}

.fn-card {
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid var(--docs-line);
  border-radius: 9px;
  background: var(--docs-panel);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.fn-card.is-clickable {
  cursor: pointer;
}

.fn-card:hover {
  border-color: #36363f;
  background: #17171b;
}

.fn-card .fn-name {
  margin-bottom: 6px;
  color: #fff;
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-word;
}

.fn-card .fn-name .sig {
  color: #9aa4ff;
  font-weight: 500;
}

.fn-card p {
  margin: 6px 0;
  color: var(--docs-muted);
  font-size: 0.88rem;
}

.fn-card p code,
.docs-content p code,
.docs-content li code {
  font-size: 0.84em;
}

.fn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.fn-req {
  padding: 2px 8px;
  border: 1px solid var(--docs-line);
  border-radius: 999px;
  color: var(--docs-dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fn-req.unsafe {
  color: #ffb84d;
  border-color: rgba(255, 184, 77, 0.35);
}

.fn-req.hybrid {
  color: #7ec8ff;
  border-color: rgba(126, 200, 255, 0.35);
}

.docs-content code.inline,
.docs-content p code,
.docs-content li code,
.docs-content td code {
  padding: 0.12em 0.36em;
  border: 1px solid #34343c;
  border-radius: 4px;
  background: #1a1a1f;
  color: #e4e4ec;
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.82em;
}

pre.code {
  margin: 12px 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: #101014;
}

pre.code code {
  color: #d6d6de;
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  white-space: pre;
}

pre.code .tok-keyword {
  color: #c4a7ff;
}

pre.code .tok-builtin {
  color: #8ab4ff;
}

pre.code .tok-function {
  color: #ffcb6b;
}

pre.code .tok-property {
  color: #7fd6ff;
}

pre.code .tok-string {
  color: #a6d189;
}

pre.code .tok-number {
  color: #ffb86c;
}

pre.code .tok-comment {
  color: #6f7190;
  font-style: italic;
}

pre.code .tok-operator {
  color: #9aa0c0;
}

.docs-content td pre.code code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d6d6de;
  font-size: 0.8rem;
}

.docs-code {
  position: relative;
  margin: 14px 0 20px;
  overflow: hidden;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: #101014;
}

.docs-code pre.code {
  margin: 0;
  padding-right: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.docs-copy {
  position: absolute;
  z-index: 1;
  top: 9px;
  right: 9px;
  padding: 4px 9px;
  border: 1px solid #3a3a44;
  border-radius: 5px;
  background: rgba(28, 28, 34, 0.94);
  color: var(--docs-muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 150ms ease, border-color 150ms ease, color 150ms ease;
}

.docs-code:hover .docs-copy,
.docs-code:focus-within .docs-copy {
  opacity: 1;
}

.docs-copy:hover {
  border-color: #5a5a68;
  color: #fff;
}

.docs-copy.is-copied {
  border-color: #52634b;
  background: #1d251b;
  color: #a8c996;
}

tr.is-clickable {
  cursor: pointer;
}

.docs-table-wrap {
  margin: 16px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.45;
}

.docs-table th,
.docs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--docs-line);
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: #19191e;
  color: #e8e8ee;
  font-size: 0.74rem;
  font-weight: 600;
}

.docs-table tbody tr:last-child td {
  border-bottom: 0;
}

.docs-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.docs-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--docs-line);
}

.docs-footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: var(--docs-panel);
  color: var(--docs-text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.docs-footer-nav a:hover {
  border-color: #4a4a56;
  background: #1c1c22;
  transform: translateY(-1px);
}

.docs-toc {
  position: sticky;
  top: var(--docs-header);
  height: calc(100vh - var(--docs-header));
  padding: 40px 18px 40px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.docs-toc::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.docs-toc-title svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.docs-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--docs-dim);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.docs-toc-nav {
  display: grid;
  gap: 1px;
  border-left: 1px solid var(--docs-line);
}

.docs-toc-link {
  display: block;
  margin-left: -1px;
  padding: 5px 8px 5px 12px;
  overflow: hidden;
  border-left: 1px solid transparent;
  color: var(--docs-dim);
  text-decoration: none;
  font-size: 0.7rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease;
}

.docs-toc-link:hover {
  color: #c8c8d2;
}

.docs-toc-link.is-active {
  color: #fff;
}

.docs-toc-link.level-1 {
  color: var(--docs-muted);
  font-weight: 600;
}

.docs-toc-link.level-3 {
  padding-left: 22px;
}

.docs-toc-empty {
  padding-left: 12px;
  color: var(--docs-dim);
  font-size: 0.7rem;
}


.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--docs-dim);
  font-size: 0.75rem;
}

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

.docs-breadcrumb a {
  color: var(--docs-muted);
  text-decoration: none;
}

.docs-breadcrumb a:hover {
  color: #fff;
}

.docs-breadcrumb span {
  color: var(--docs-dim);
}

.docs-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--docs-line);
}

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

.docs-pager a {
  display: grid;
  gap: 2px;
  padding: 12px 15px;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: var(--docs-panel);
  color: var(--docs-text);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.docs-pager a:hover {
  border-color: #4a4a56;
  background: #1c1c22;
}

.docs-pager .docs-pager-prev {
  grid-column: 1;
}

.docs-pager .docs-pager-next {
  grid-column: 2;
  text-align: right;
}

.docs-pager small {
  color: var(--docs-dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.docs-pager span {
  color: #dcdce4;
  font-size: 0.82rem;
}

.docs-pager + .docs-footer-nav {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}


.fn-name a,
.fn-title-link {
  color: inherit;
  text-decoration: none;
}

.fn-name a:hover,
.fn-title-link:hover {
  color: var(--docs-accent);
}

.docs-table .fn-title-link {
  color: inherit;
}

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

.docs-detail-summary {
  margin: 0 0 24px;
  color: var(--docs-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.docs-detail h2 {
  margin-top: 32px;
  font-size: 1.15rem;
}

.docs-detail pre.code {
  margin: 10px 0 18px;
}

.docs-detail-notes {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--docs-muted);
}

.docs-detail-notes li {
  margin: 7px 0;
  line-height: 1.55;
}

.docs-browse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 30px;
}

.docs-browse-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--docs-line);
  border-radius: 10px;
  background: var(--docs-panel);
  color: var(--docs-text);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.docs-browse-card:hover {
  border-color: #414150;
  background: #1a1a20;
  transform: translateY(-2px);
}

.docs-browse-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: #18181d;
  color: var(--docs-accent);
}

.docs-browse-icon svg {
  width: 17px;
  height: 17px;
}

.docs-browse-card:hover .docs-browse-icon {
  border-color: #414150;
  color: #c7cbff;
}

.docs-browse-title {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.docs-browse-desc {
  color: var(--docs-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.docs-noscript {
  margin-top: 12px;
  color: var(--docs-dim);
  font-size: 0.75rem;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .docs-browse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .docs-brand span {
    display: none;
  }

  .docs-search {
    padding-right: 36px;
  }

  .docs-search-kbd {
    display: none;
  }

  .docs-browse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .docs-layout {
    grid-template-columns: 256px minmax(0, 920px);
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 980px) {
  .docs-header {
    grid-template-columns: 1fr minmax(0, 420px) 1fr;
    height: 56px;
    padding: 0 16px;
    gap: 10px;
  }


  .docs-header-title {
    display: none;
  }

  .docs-switch {
    display: none;
  }

  .docs-menu {
    display: block;
  }

  .docs-sidebar-backdrop {
    inset: 56px 0 0;
  }

  .docs-layout {
    display: block;
    min-height: calc(100vh - 56px);
  }

  .docs-sidebar {
    position: fixed;
    z-index: 46;
    top: 56px;
    left: 0;
    width: min(310px, calc(100vw - 36px));
    height: calc(100vh - 56px);
    padding: 18px 16px 28px;
    border-right: 1px solid var(--docs-line-strong);
    background: rgba(15, 15, 15, 0.98);
    box-shadow: 16px 0 36px rgba(0, 0, 0, 0.4);
    transform: translateX(-105%);
    transition: transform 200ms var(--docs-ease);
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
  }

  .docs-content {
    padding: 34px 20px 72px;
  }

  .docs-content h1 {
    font-size: 2rem;
  }

  .docs-content h2 {
    margin-top: 44px;
    font-size: 1.28rem;
  }

  .docs-footer-nav,
  .docs-pager {
    grid-template-columns: 1fr;
  }

  .docs-pager .docs-pager-prev,
  .docs-pager .docs-pager-next {
    grid-column: auto;
    text-align: left;
  }
}
