:root {
  --bg:         #0a0d14;
  --bg-card:    rgba(18,23,36,0.7);
  --bg-code:    #0f1220;
  --border:     rgba(148,163,184,0.14);
  --text:       #e6ecf5;
  --text-muted: #8a94a6;
  --text-faint: #5d6778;
  --accent:     #a78bfa;
  --accent-2:   #10b981;
  --astro:      #38bdf8;
  --font-body:  -apple-system, 'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #151d34 0%, transparent 70%),
              linear-gradient(180deg, #0a0d14, #06080f);
  min-height: 100vh; color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--font-mono); }
pre {
  background: var(--bg-code); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.7;
  color: #a5b4fc;
}
p code, li code { background: rgba(148,163,184,0.12); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; color: #ddd6fe; }
pre code { background: none; padding: 0; color: inherit; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; backdrop-filter: blur(12px);
  background: rgba(10,13,20,0.85); z-index: 10;
}
.brand { font-weight: 700; font-size: 17px; color: var(--accent); }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover, .nav-links .current { color: var(--text); text-decoration: none; }

.layout {
  display: grid; grid-template-columns: 240px 1fr;
  max-width: 1180px; margin: 0 auto; padding: 32px;
  gap: 48px;
}
.sidebar {
  position: sticky; top: 88px; height: fit-content;
  font-size: 13.5px;
}
.sidebar-section { margin-bottom: 28px; }
.section-title {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700;
  color: var(--text-faint); margin-bottom: 10px;
}
.sidebar a {
  display: block; padding: 5px 0;
  color: var(--text-muted); text-decoration: none;
}
.sidebar a:hover { color: var(--text); }

.content { max-width: 760px; min-width: 0; }
.content h1 {
  font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.15;
}
.content h2 {
  font-size: 22px; letter-spacing: -0.015em;
  margin: 40px 0 14px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.content h2:first-of-type { border-top: none; padding-top: 0; }
.content h3 { font-size: 17px; margin: 28px 0 10px; letter-spacing: -0.01em; }
.lead { font-size: 16px; color: var(--text-muted); margin: 0 0 32px; max-width: 620px; }
.content p { margin: 0 0 14px; }
.content ul, .content ol { padding-left: 20px; margin: 0 0 14px; }
.content li { margin-bottom: 6px; }

table {
  width: 100%; border-collapse: collapse;
  margin: 14px 0; font-size: 14px;
}
th, td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 600; color: var(--text-muted);
}

.doc-footer {
  margin-top: 60px; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-faint);
}
.doc-footer a { color: var(--text-muted); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .sidebar { position: static; }
  .nav { padding: 16px 20px; }
  .nav-links { gap: 18px; font-size: 13px; }
}
