/* =====================================================
   CHEAPAI — docs-pages.css
   Shared docs shell + article system
   ===================================================== */

.docs-meta-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(17,19,34,.92), rgba(9,10,20,.92));
  font-size: .76rem;
  color: rgba(255,255,255,.42);
}

.docs-meta-bar strong { color: rgba(255,255,255,.68); }
.docs-meta-bar a { color: var(--primary); }
.docs-meta-dot { opacity: .28; }

.docs-hero {
  position: relative;
  overflow: hidden;
  padding: 124px 0 42px;
}

.docs-hero::before,
.docs-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .42;
  pointer-events: none;
}

.docs-hero::before {
  top: 24px;
  left: min(3vw, 32px);
  width: min(36vw, 420px);
  height: min(36vw, 420px);
  background: radial-gradient(circle, rgba(143,215,255,.22) 0%, rgba(143,215,255,0) 70%);
}

.docs-hero::after {
  right: min(3vw, 24px);
  top: 44px;
  width: min(30vw, 340px);
  height: min(30vw, 340px);
  background: radial-gradient(circle, rgba(196,122,245,.22) 0%, rgba(196,122,245,0) 72%);
}

.docs-hero-shell,
.docs-page-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.docs-hero-shell { position: relative; z-index: 1; }

.docs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  gap: 22px;
  align-items: stretch;
}

.docs-hero-copy,
.docs-hero-panel {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16,20,36,.94), rgba(10,12,24,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 60px rgba(4,7,18,.28);
}

.docs-hero-copy { padding: 34px clamp(22px, 3vw, 38px); }

.docs-hero-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.docs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(143,215,255,.18);
  background: rgba(143,215,255,.08);
  color: var(--primary);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .95px;
  text-transform: uppercase;
}

.docs-title {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  line-height: 1.03;
  letter-spacing: -.04em;
  color: #f6f7ff;
}

.docs-title span {
  background: linear-gradient(120deg, #c47af5 0%, #7ee8fa 45%, #c47af5 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

.docs-summary {
  margin-top: 16px;
  max-width: 64ch;
  color: #d5dbf3;
  font-size: 1.02rem;
  line-height: 1.82;
}

.docs-hero-actions,
.docs-hero-trust,
.docs-endcap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.docs-hero-actions { margin-top: 24px; }
.docs-hero-trust { margin-top: 20px; }

.docs-chip,
.docs-meta-pill,
.docs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #d5dcf3;
  font-size: .78rem;
  font-weight: 700;
}

.docs-chip svg,
.docs-hero-panel svg,
.docs-callout-icon svg,
.docs-shell-toggle svg,
.docs-anchor-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.docs-panel-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #99a8d0;
}

.docs-panel-kicker {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #ecf0ff;
}

.docs-panel-list,
.docs-sidebar-links,
.docs-toc-list,
.docs-step-list,
.docs-link-list,
.docs-card-links,
.docs-grid {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.docs-grid--3,
.docs-mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.docs-page-wrap { padding-bottom: 92px; }

.docs-shell-toolbar {
  display: none;
  gap: 10px;
  margin: 0 0 18px;
}

.docs-shell-toggle,
.docs-copy-button,
.docs-mobile-close,
.docs-endcap-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #eef2ff;
  font-size: .84rem;
  font-weight: 800;
}

.docs-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
}

.docs-sidebar,
.docs-toc { position: sticky; top: 88px; }

.docs-sidebar-card,
.docs-toc-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15,18,32,.94), rgba(9,10,20,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.docs-sidebar-card {
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 18px 14px;
}

.docs-toc-card { padding: 16px 14px; }

.docs-sidebar-eyebrow,
.docs-toc-eyebrow,
.docs-card-label {
  margin: 0 10px 12px;
  color: #8895bc;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .95px;
  text-transform: uppercase;
}

.docs-sidebar-group + .docs-sidebar-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.docs-sidebar-group-label {
  margin: 0 10px 8px;
  color: #f2f4ff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.docs-sidebar-link,
.docs-toc-link,
.docs-card-link,
.docs-link-card {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  color: #aab6d8;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.docs-sidebar-link:hover,
.docs-toc-link:hover,
.docs-card-link:hover,
.docs-link-card:hover {
  color: #eef2ff;
  background: rgba(255,255,255,.04);
}

.docs-sidebar-link.active {
  color: #f6f7ff;
  background: linear-gradient(180deg, rgba(143,215,255,.12), rgba(143,215,255,.05));
  box-shadow: inset 0 0 0 1px rgba(143,215,255,.16);
}

.docs-sidebar-link-title,
.docs-link-card-title {
  display: block;
  color: #f5f7ff;
  font-size: .94rem;
  font-weight: 800;
}

.docs-sidebar-link-desc,
.docs-link-card-desc,
.docs-sidebar-fallback,
.docs-toc-fallback {
  display: block;
  margin-top: 4px;
  color: #8693b6;
  font-size: .78rem;
  line-height: 1.55;
}

.docs-main { min-width: 0; }

.docs-page-meta,
.docs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.docs-page-meta { margin-bottom: 18px; }

.docs-breadcrumbs {
  margin-bottom: 16px;
  color: #92a1c7;
  font-size: .82rem;
  font-weight: 700;
}

.docs-breadcrumb-sep { opacity: .35; }

.docs-article {
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15,18,32,.95), rgba(9,10,20,.985));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 60px rgba(4,7,18,.22);
}

.docs-article h2,
.docs-article h3 {
  position: relative;
  scroll-margin-top: 104px;
}

.docs-article h2 {
  margin: 0 0 16px;
  padding-top: 6px;
  color: #f7f8ff;
  font-family: var(--font-h);
  font-size: clamp(1.42rem, 2vw, 1.92rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.docs-article h3 {
  margin: 28px 0 12px;
  color: #f2f5ff;
  font-size: 1.03rem;
  font-weight: 800;
}

.docs-article p,
.docs-article li {
  color: #c6d0ea;
  font-size: .97rem;
  line-height: 1.82;
}

.docs-article p + p,
.docs-article ul + p,
.docs-article ol + p,
.docs-article .docs-callout + p,
.docs-article .docs-grid + p,
.docs-article .docs-table-wrap + p,
.docs-article .docs-codeblock + p {
  margin-top: 14px;
}

.docs-article ul,
.docs-article ol {
  margin: 14px 0 0;
  padding-left: 1.2rem;
}

.docs-article li + li { margin-top: 9px; }
.docs-article strong { color: #f4f6ff; }

.docs-anchor-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--primary);
  font-size: .84rem;
  font-weight: 800;
}

.docs-callout,
.docs-card,
.docs-note,
.docs-mini-stat,
.docs-step,
.docs-link-card {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(19,23,40,.95), rgba(11,13,25,.985));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.docs-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 18px;
}

.docs-callout--info {
  border-color: rgba(143,215,255,.18);
  background: rgba(143,215,255,.07);
}

.docs-callout--success {
  border-color: rgba(74,222,128,.18);
  background: rgba(74,222,128,.075);
}

.docs-callout--warn {
  border-color: rgba(251,191,36,.18);
  background: rgba(251,191,36,.075);
}

.docs-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #f6f7ff;
}

.docs-card,
.docs-mini-stat,
.docs-note,
.docs-link-card {
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
}

.docs-card h3,
.docs-card h4,
.docs-note strong,
.docs-step-title {
  margin: 0 0 10px;
  color: #f5f7ff;
  font-size: 1rem;
  font-weight: 800;
}

.docs-card p,
.docs-card li,
.docs-note p,
.docs-step-body p,
.docs-step-body li {
  font-size: .92rem;
  line-height: 1.72;
}

.docs-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 18px 18px 14px;
  border-radius: 20px;
}

.docs-step-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(143,215,255,.18);
  background: rgba(143,215,255,.08);
  color: #dff4ff;
  font-family: var(--font-h);
  font-size: .92rem;
  font-weight: 800;
}

.docs-card-link {
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #e8edff;
  font-size: .9rem;
  font-weight: 700;
}

.docs-card-link span:last-child { color: #91d6ff; }

.docs-link-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
}

.docs-link-card-title {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.docs-link-card-desc {
  color: #b7c2e0;
  font-size: .9rem;
  line-height: 1.68;
}

.docs-mini-stat strong {
  display: block;
  color: #f4f6ff;
  font-size: 1.18rem;
  font-family: var(--font-h);
}

.docs-mini-stat span {
  color: #98a8cf;
  font-size: .8rem;
  font-weight: 700;
}

.docs-codeblock,
.docs-table-wrap {
  margin: 20px 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  overflow: hidden;
  background: #0a0d18;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.docs-codeblock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}

.docs-codeblock-title {
  color: #d5dcf3;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.docs-copy-button.is-copied {
  color: var(--green);
  border-color: rgba(74,222,128,.22);
}

.docs-codeblock pre {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  color: #d5e1ff;
  font-size: .86rem;
  line-height: 1.78;
  font-family: "JetBrains Mono","Fira Code","Cascadia Code",monospace;
}

.docs-inline-code,
.docs-article code {
  padding: .12em .45em;
  border-radius: 8px;
  border: 1px solid rgba(143,215,255,.16);
  background: rgba(143,215,255,.08);
  color: #aee4ff;
  font-size: .9em;
  font-family: "JetBrains Mono","Fira Code","Cascadia Code",monospace;
}

.docs-codeblock code {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: inherit;
}

.docs-table-wrap {
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(15,18,32,.95), rgba(10,11,22,.98));
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.docs-table th,
.docs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: top;
}

.docs-table th {
  background: rgba(255,255,255,.03);
  color: #98a8cf;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
  text-align: left;
}

.docs-table td {
  color: #d3dbf1;
  font-size: .9rem;
  line-height: 1.65;
}

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

.docs-badge--tested {
  color: var(--green);
  border-color: rgba(74,222,128,.18);
  background: rgba(74,222,128,.07);
}

.docs-badge--compatible {
  color: var(--primary);
  border-color: rgba(143,215,255,.18);
  background: rgba(143,215,255,.08);
}

.docs-badge--caution {
  color: #fbbf24;
  border-color: rgba(251,191,36,.18);
  background: rgba(251,191,36,.08);
}

.docs-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.05);
  color: #eef2ff;
  font-size: .82rem;
  font-weight: 700;
  font-family: "JetBrains Mono","Fira Code","Cascadia Code",monospace;
}

.docs-endcap {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.docs-mobile-panel { display: none; }

.docs-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}

.docs-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.docs-mobile-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 241;
  display: grid;
  gap: 12px;
  padding: 18px 18px 24px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(14,18,32,.98), rgba(9,10,20,.995));
  transform: translateY(100%);
  transition: transform .28s var(--ease);
  max-height: 72vh;
  overflow: auto;
}

.docs-mobile-sheet.is-open { transform: translateY(0); }

.docs-mobile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.docs-mobile-sheet-title {
  color: #f6f7ff;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .4px;
}

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

@media (max-width: 980px) {
  .docs-hero-grid,
  .docs-grid--2,
  .docs-grid--3,
  .docs-mini-stats {
    grid-template-columns: 1fr;
  }

  .docs-shell-toolbar,
  .docs-mobile-panel { display: flex; }

  .docs-shell { grid-template-columns: 1fr; }
  .docs-sidebar,
  .docs-toc { display: none; }
}

@media (max-width: 760px) {
  .docs-page-wrap,
  .docs-hero-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .docs-article {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .docs-hero-copy,
  .docs-hero-panel { border-radius: 24px; }

  .docs-table {
    min-width: 0;
  }

  .docs-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .docs-table,
  .docs-table thead,
  .docs-table tbody,
  .docs-table tr,
  .docs-table th,
  .docs-table td {
    display: block;
    width: 100%;
  }

  .docs-table thead { display: none; }
  .docs-table tbody { display: grid; gap: 14px; }

  .docs-table tr {
    padding: 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15,18,32,.95), rgba(10,11,22,.98));
  }

  .docs-table td {
    padding: 0;
    border: none;
  }

  .docs-table td + td {
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid rgba(255,255,255,.06);
  }

  .docs-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #92a3cc;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .75px;
    text-transform: uppercase;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-title span,
  .docs-sidebar-link,
  .docs-toc-link,
  .docs-mobile-overlay,
  .docs-mobile-sheet,
  .docs-copy-button {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================
   CHEAPAI - Docs polish pass
   Premium shell, clearer hierarchy, less "plain HTML"
   ===================================================== */

body[data-page-key="docs"] {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(126, 232, 250, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(196, 122, 245, 0.1), transparent 32%),
    linear-gradient(180deg, #060714 0%, #080916 38%, #070810 100%);
}

body[data-page-key="docs"]::before,
body[data-page-key="docs"]::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body[data-page-key="docs"]::before {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 72%);
}

body[data-page-key="docs"]::after {
  background:
    radial-gradient(circle at 15% 12%, rgba(143,215,255,.08), transparent 18%),
    radial-gradient(circle at 85% 22%, rgba(196,122,245,.09), transparent 20%),
    radial-gradient(circle at 48% 88%, rgba(74,222,128,.05), transparent 24%);
}

body.docs-overlay-open {
  overflow: hidden;
}

.docs-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 260;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.docs-reading-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #8fd7ff 0%, #c47af5 55%, #4ade80 100%);
  box-shadow: 0 0 18px rgba(143,215,255,.24);
}

.docs-meta-bar {
  display: none;
  position: relative;
  z-index: 2;
  gap: 14px;
  min-height: 46px;
  padding: 10px 24px;
  border-bottom-color: rgba(255,255,255,.09);
  background:
    linear-gradient(180deg, rgba(16,19,34,.94), rgba(10,12,22,.94)),
    linear-gradient(90deg, rgba(143,215,255,.06), rgba(196,122,245,.04));
  color: rgba(232,238,255,.62);
  backdrop-filter: blur(18px);
}

.docs-meta-bar a {
  color: #d9f2ff;
  transition: color .22s ease, opacity .22s ease;
}

.docs-meta-bar a:hover {
  color: #ffffff;
}

.docs-hero {
  padding: 112px 0 46px;
}

.docs-hero::before {
  top: 28px;
  left: min(2vw, 22px);
  width: min(40vw, 480px);
  height: min(40vw, 480px);
  opacity: .46;
}

.docs-hero::after {
  right: min(2vw, 18px);
  top: 58px;
  width: min(32vw, 380px);
  height: min(32vw, 380px);
  opacity: .5;
}

.docs-hero-shell,
.docs-page-wrap {
  max-width: 1500px;
}

.docs-hero-grid {
  gap: 24px;
}

.docs-hero-copy,
.docs-hero-panel,
.docs-sidebar-card,
.docs-toc-card,
.docs-mobile-sheet {
  backdrop-filter: blur(18px);
}

.docs-hero-copy,
.docs-hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border-color: rgba(255,255,255,.1);
}

.docs-hero-copy::before,
.docs-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.05), transparent 42%, transparent 72%, rgba(143,215,255,.05));
}

.docs-hero-copy {
  padding: 38px clamp(24px, 3vw, 42px);
}

.docs-hero-panel {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(143,215,255,.1), transparent 28%),
    linear-gradient(180deg, rgba(16,20,36,.94), rgba(10,12,24,.98));
}

.docs-summary {
  max-width: 66ch;
  color: #dbe2f8;
  font-size: 1.04rem;
}

.docs-page-meta {
  gap: 10px;
}

.docs-meta-pill {
  min-height: 36px;
  padding: 8px 12px;
  gap: 9px;
  background: rgba(255,255,255,.055);
  color: #d7def4;
}

.docs-meta-pill svg {
  width: 15px;
  height: 15px;
  color: #8fd7ff;
}

.docs-meta-pill--soft svg {
  color: #c7b3ff;
}

.docs-shell {
  grid-template-columns: 300px minmax(0, 1fr) 260px;
  gap: 28px;
}

.docs-sidebar-card,
.docs-toc-card {
  border-radius: 26px;
}

.docs-sidebar-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(16,19,34,.95), rgba(9,11,21,.99)),
    linear-gradient(135deg, rgba(143,215,255,.05), transparent 55%, rgba(196,122,245,.06));
}

.docs-sidebar-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 10px 10px;
}

.docs-sidebar-group-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.docs-sidebar-group-icon,
.docs-sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #d8f1ff;
}

.docs-sidebar-group-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(143,215,255,.18);
  background: rgba(143,215,255,.08);
}

.docs-sidebar-group-icon svg,
.docs-sidebar-link-icon svg {
  width: 15px;
  height: 15px;
}

.docs-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #a8b6dd;
  font-size: .72rem;
  font-weight: 800;
}

.docs-sidebar-link {
  align-items: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}

.docs-sidebar-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #eef4ff;
}

.docs-sidebar-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.08);
}

.docs-sidebar-link.active {
  border-color: rgba(143,215,255,.14);
  background:
    linear-gradient(180deg, rgba(143,215,255,.12), rgba(143,215,255,.05)),
    rgba(255,255,255,.02);
}

.docs-sidebar-link.active .docs-sidebar-link-icon {
  border-color: rgba(143,215,255,.24);
  background: rgba(143,215,255,.12);
}

.docs-sidebar-support {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at top right, rgba(196,122,245,.12), transparent 34%),
    linear-gradient(180deg, rgba(24,26,44,.96), rgba(11,13,24,.99));
}

.docs-sidebar-support-label {
  color: #f4f7ff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.docs-sidebar-support p {
  color: #b7c2df;
  font-size: .86rem;
  line-height: 1.68;
}

.docs-sidebar-support-actions {
  display: grid;
  gap: 10px;
}

.docs-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(143,215,255,.18);
  background: rgba(143,215,255,.08);
  color: #e6f7ff;
  font-size: .84rem;
  font-weight: 800;
  transition: transform .24s var(--ease), border-color .24s ease, background .24s ease;
  cursor: pointer;
}

.docs-inline-cta svg {
  width: 16px;
  height: 16px;
}

.docs-inline-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(143,215,255,.28);
  background: rgba(143,215,255,.12);
}

.docs-inline-cta--muted {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #eef2ff;
}

.docs-main {
  display: grid;
  gap: 18px;
}

.docs-article {
  display: grid;
  gap: 18px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.docs-top-stack {
  display: grid;
  gap: 16px;
}

.docs-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.docs-overview-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 144px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(18,22,39,.96), rgba(10,12,23,.99)),
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 48%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 42px rgba(4,7,18,.16);
}

.docs-overview-card--lead {
  background:
    radial-gradient(circle at top right, rgba(143,215,255,.12), transparent 34%),
    linear-gradient(180deg, rgba(18,22,39,.96), rgba(10,12,23,.99));
}

.docs-overview-label {
  color: #92a4cf;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .95px;
  text-transform: uppercase;
}

.docs-overview-card strong {
  color: #f5f7ff;
  font-size: 1.16rem;
  font-family: "JetBrains Mono","Fira Code","Cascadia Code",monospace;
  letter-spacing: -.02em;
}

.docs-overview-card p,
.docs-overview-card span {
  color: #c5d0ea;
  font-size: .9rem;
  line-height: 1.68;
}

.docs-quicknav {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at top left, rgba(196,122,245,.08), transparent 28%),
    linear-gradient(180deg, rgba(15,18,32,.95), rgba(9,10,20,.985));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 42px rgba(4,7,18,.14);
}

.docs-quicknav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.docs-quicknav-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #edf1ff;
  transition: transform .24s var(--ease), border-color .24s ease, background .24s ease;
  cursor: pointer;
}

.docs-quicknav-link:hover,
.docs-quicknav-link.active {
  transform: translateY(-1px);
  border-color: rgba(143,215,255,.22);
  background: rgba(143,215,255,.09);
}

.docs-quicknav-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(143,215,255,.18);
  background: rgba(143,215,255,.08);
  color: #dff4ff;
  font-family: "JetBrains Mono","Fira Code","Cascadia Code",monospace;
  font-size: .84rem;
  font-weight: 800;
}

.docs-quicknav-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.docs-quicknav-title {
  color: #f6f7ff;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.32;
}

.docs-quicknav-meta {
  color: #9aabd4;
  font-size: .8rem;
  line-height: 1.45;
}

.docs-section-card {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 2vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at top right, rgba(143,215,255,.07), transparent 24%),
    linear-gradient(180deg, rgba(15,18,32,.96), rgba(9,10,20,.99));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 22px 56px rgba(4,7,18,.16);
}

.docs-section-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.docs-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(143,215,255,.18);
  background:
    linear-gradient(180deg, rgba(143,215,255,.11), rgba(143,215,255,.06)),
    rgba(255,255,255,.02);
  color: #ebfbff;
  font-family: "JetBrains Mono","Fira Code","Cascadia Code",monospace;
  font-size: .92rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.docs-section-heading-wrap {
  min-width: 0;
}

.docs-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #8fd7ff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.docs-section-anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #a8dfff;
  font-size: .82rem;
  font-weight: 800;
  opacity: .92;
  transition: color .22s ease, opacity .22s ease;
}

.docs-section-anchor svg {
  width: 15px;
  height: 15px;
}

.docs-section-anchor:hover {
  color: #ffffff;
  opacity: 1;
}

.docs-section-body {
  display: grid;
  gap: 16px;
}

.docs-section-card .docs-grid,
.docs-section-card .docs-mini-stats,
.docs-section-card .docs-table-wrap,
.docs-section-card .docs-callout,
.docs-section-card .docs-codeblock {
  margin: 0;
}

.docs-section-lead {
  max-width: 70ch;
  color: #e4e9fb !important;
  font-size: 1.02rem !important;
}

.docs-card,
.docs-mini-stat,
.docs-note,
.docs-link-card,
.docs-step {
  transition: transform .24s var(--ease), border-color .24s ease, background .24s ease, box-shadow .24s ease;
}

.docs-card:hover,
.docs-mini-stat:hover,
.docs-note:hover,
.docs-link-card:hover,
.docs-step:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 36px rgba(4,7,18,.16);
}

.docs-link-card,
.docs-card-link,
.docs-endcap-link,
.docs-shell-toggle,
.docs-copy-button,
.docs-mobile-close {
  cursor: pointer;
}

.docs-card-link,
.docs-endcap-link {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(143,215,255,.16);
  background: rgba(143,215,255,.08);
  color: #eaf7ff;
  transition: transform .24s var(--ease), border-color .24s ease, background .24s ease;
}

.docs-card-link:hover,
.docs-endcap-link:hover {
  transform: translateY(-1px);
  border-color: rgba(143,215,255,.3);
  background: rgba(143,215,255,.12);
}

.docs-callout {
  border-radius: 22px;
}

.docs-callout-icon {
  font-family: "JetBrains Mono","Fira Code","Cascadia Code",monospace;
  font-size: .92rem;
  font-weight: 900;
}

.docs-toc-card {
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(16,19,34,.95), rgba(9,11,21,.99)),
    linear-gradient(135deg, rgba(196,122,245,.05), transparent 55%);
}

.docs-toc-list {
  gap: 8px;
}

.docs-toc-link {
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.docs-toc-link.active {
  color: #f7f8ff;
  border-color: rgba(143,215,255,.12);
  background: rgba(143,215,255,.08);
}

.docs-toc-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(143,215,255,.18);
  background: rgba(143,215,255,.08);
  color: #dff4ff;
  font-size: .72rem;
  font-weight: 800;
  font-family: "JetBrains Mono","Fira Code","Cascadia Code",monospace;
}

.docs-toc-order--dot {
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.18);
}

.docs-shell-toggle,
.docs-copy-button,
.docs-mobile-close {
  transition: transform .22s var(--ease), border-color .22s ease, background .22s ease;
}

.docs-shell-toggle:hover,
.docs-copy-button:hover,
.docs-mobile-close:hover {
  transform: translateY(-1px);
  border-color: rgba(143,215,255,.2);
  background: rgba(143,215,255,.08);
}

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

@media (max-width: 1160px) {
  .docs-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .docs-hero {
    padding-top: 118px;
  }

  .docs-overview-grid,
  .docs-quicknav-grid {
    grid-template-columns: 1fr;
  }

  .docs-section-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .docs-meta-bar {
    justify-content: flex-start;
    padding-left: 18px;
    padding-right: 18px;
  }

  .docs-hero-copy,
  .docs-hero-panel {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .docs-top-stack,
  .docs-article {
    gap: 14px;
  }

  .docs-overview-card,
  .docs-quicknav,
  .docs-section-card {
    border-radius: 22px;
  }

  .docs-overview-card,
  .docs-section-card {
    padding: 18px;
  }

  .docs-quicknav-link {
    min-height: 0;
  }

  .docs-section-index {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
}
