:root {
  color-scheme: dark;
  font-family:
    'Segoe UI',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #e4e9ef;
  background: #031131;
  --bg: #031131;
  --bg-alt: #08172e;
  --surface: #111821;
  --line: #1b2d49;
  --muted: #8492a4;
  --cyan: #02bdfd;
  --brand-blue: #0248fd;
  --brand-yellow: #f8f105;
  --brand-red: #fe2a07;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  background: var(--brand-blue);
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #031131e6;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(24px, calc((100vw - 1440px) / 2));
  min-height: 70px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
}
.wordmark:hover {
  text-decoration: none;
}
.wordmark img {
  border-radius: 10px;
  box-shadow: 0 0 16px #02bdfd1a;
}
.wordmark strong {
  display: block;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1;
}
.wordmark strong span {
  color: var(--cyan);
  font-weight: 400;
}
.wordmark small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-top: 5px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-header nav > a {
  color: #b7c4d3;
  font-size: 15px;
  font-weight: 500;
}
.site-header nav > a[aria-current] {
  color: var(--cyan);
}
.button,
.btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid #2a3746;
  border-radius: 8px;
  background: #17212d;
  color: #d7e1eb;
  padding: 8px 14px;
  font-weight: 600;
}
.button:hover,
.btn:hover {
  text-decoration: none;
  background: #202e3d;
  border-color: #476074;
}
.btn-primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
  box-shadow: 0 0 24px #0248fd44;
}
.docs-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1440px;
  margin: auto;
}
.sidebar {
  border-right: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 28px 20px;
}
.docs-nav {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.docs-nav summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.docs-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-nav ul ul {
  padding-left: 14px;
  margin-bottom: 12px;
}
.docs-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: #b7c4d3;
  font-size: 14px;
}
.docs-nav a:hover {
  background: #111f37;
  color: var(--cyan);
  text-decoration: none;
}
.docs-nav a[aria-current] {
  background: #0248fd26;
  color: var(--cyan);
  box-shadow: inset 2px 0 var(--cyan);
}
main {
  min-width: 0;
  padding: 32px clamp(20px, 4vw, 64px);
}
.search {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.search label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-alt);
  color: #e4e9ef;
  padding: 12px 16px;
  font: inherit;
}
#search-status {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}
#search-status:empty {
  display: none;
}
#search-results {
  list-style: none;
  padding: 8px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
}
#search-results li {
  padding: 5px 0;
}
.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.content {
  max-width: 920px;
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
}
h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1.5px;
  margin: 0 0 24px;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
h3 {
  font-size: 20px;
  margin-top: 28px;
}
p,
ul,
ol {
  margin: 16px 0;
}
li > p {
  margin: 8px 0;
}
code {
  background: #111f37;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.88em;
}
pre {
  overflow-x: auto;
  background: var(--surface);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.6;
}
pre code {
  background: none;
  padding: 0;
}
.highlight .k,
.highlight .kd,
.highlight .nt {
  color: var(--cyan);
}
.highlight .s,
.highlight .s1,
.highlight .s2 {
  color: #a8d97f;
}
.highlight .c,
.highlight .c1,
.highlight .cm {
  color: var(--muted);
}
table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 20px 0;
  width: 100%;
  font-size: 14px;
}
th,
td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
th {
  background: #111f37;
}
td {
  background: var(--bg-alt);
}
.content img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: 0 12px 36px #0004;
}
blockquote,
.note,
.warning,
.important {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--cyan);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
}
.warning {
  border-color: var(--brand-yellow);
}
.important {
  border-color: var(--brand-red);
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 800px) {
  .site-header {
    position: relative;
    flex-wrap: wrap;
    padding: 16px 20px;
  }
  .site-header nav {
    gap: 16px;
    flex-wrap: wrap;
  }
  .docs-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
  }
  .docs-nav {
    position: static;
    max-height: 280px;
  }
  main {
    padding: 24px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
