:root {
  --docs-bg: #0b1020;
  --docs-panel: rgba(255, 255, 255, .05);
  --docs-border: rgba(255, 255, 255, .14);
  --docs-text: #e6edf7;
  --docs-muted: #b8c4d8;
  --docs-link: #8ab4ff;
}

html { scroll-behavior: smooth; }
body { background: var(--docs-bg); color: var(--docs-text); }
body > main { max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px; }
a { color: var(--docs-link); }
p, li { line-height: 1.6; }
pre { overflow-x: auto; padding: 16px; border: 1px solid var(--docs-border); border-radius: 12px; background: #080d19; }
code { overflow-wrap: anywhere; }
body.docs-page { overflow-x: hidden; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--docs-border); }
.doc-nav a { font-weight: 700; }
.version-line { color: var(--docs-muted); }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 16px 0 24px; }
.table-scroll table { display: table; width: 100%; min-width: 620px; border-collapse: collapse; }
.table-scroll th, .table-scroll td { padding: 11px 12px; border: 1px solid var(--docs-border); text-align: left; vertical-align: top; }
.table-scroll th { background: var(--docs-panel); }
blockquote { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--docs-link); color: var(--docs-muted); }
.docs-layout {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1180px) minmax(230px, 300px);
  gap: 24px;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 24px;
}
.docs-layout > main { width: auto; max-width: none; min-width: 0; margin: 0; padding-inline: 0; }
.docs-sidebar,
.docs-code-rail {
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin-top: 40px;
  padding: 16px;
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  background: rgba(12, 18, 34, .94);
}
.docs-sidebar strong,
.docs-code-rail strong { display: block; margin-bottom: 10px; color: #fff; }
.docs-sidebar a { display: block; padding: 6px 0; color: var(--docs-muted); text-decoration: none; }
.docs-sidebar a:hover,
.docs-sidebar a:focus-visible { color: var(--docs-link); text-decoration: underline; }
.docs-code-rail p { margin: 0 0 12px; font-size: .92rem; }
.docs-code-rail pre { margin: 8px 0 16px; padding: 12px; font-size: .78rem; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.docs-action {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(138, 180, 255, .35);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(138, 180, 255, .08);
  color: #dbe7ff;
  text-decoration: none;
}
.docs-action:hover,
.docs-action:focus-visible { background: rgba(138, 180, 255, .16); }
.section-link { font-size: .86rem; font-weight: 500; white-space: nowrap; }
main table { display: block; max-width: 100%; overflow-x: auto; }
main td:first-child { min-width: 230px; white-space: normal; }
main th,
main td { overflow-wrap: anywhere; }
main pre { max-width: 100%; box-sizing: border-box; }
main h2,
main h3 { scroll-margin-top: 24px; }
.eyebrow { color: #9fc0ff; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-grid .card { margin: 0; }
.card-primary { border-color: rgba(138, 180, 255, .5); background: rgba(138, 180, 255, .1); }

@media (max-width: 1320px) {
  .docs-layout { grid-template-columns: minmax(170px, 220px) minmax(0, 1fr); }
  .docs-code-rail { display: none; }
}

@media (max-width: 860px) {
  .docs-layout { display: block; padding: 0 16px; }
  .docs-sidebar { position: static; max-height: none; margin: 20px 0 0; }
  .docs-sidebar nav { columns: 2; column-gap: 20px; }
  .docs-layout > main { padding-top: 24px; }
  main { padding-inline: 16px; }
  main td:first-child { min-width: 190px; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .docs-sidebar nav { columns: 1; }
  h1 { overflow-wrap: anywhere; }
  .versions { align-items: flex-start; flex-direction: column; }
}
