html, body { margin: 0; }
body {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  background: #0b0b12;
  color: #e6e6f0;
  line-height: 1.6;
}
.mono, code { font-family: 'Space Mono', monospace; }
a { color: #a5b4fc; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
}
.topbar-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.1); }

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

nav.docs-nav {
  position: sticky;
  top: 70px;
  align-self: start;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  font-size: 13px;
  padding-right: 8px;
}
nav.docs-nav ul { list-style: none; padding: 0; margin: 0; }
nav.docs-nav li { margin: 0; }
nav.docs-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  color: #8a8aa0;
  border-left: 2px solid transparent;
}
nav.docs-nav a:hover {
  background: rgba(255,255,255,0.04);
  color: #e6e6f0;
  text-decoration: none;
}
nav.docs-nav a.active,
nav.docs-nav a.nav-page-active {
  color: #fff;
  background: rgba(99, 102, 241, 0.18);
  border-left-color: #6366f1;
  font-weight: 500;
}
nav.docs-nav .nav-sub a { padding-left: 22px; font-size: 12px; }

main.docs-content { min-width: 0; }
main.docs-content h1 {
  font-size: 32px; font-weight: 600; margin: 0 0 8px;
}
main.docs-content h2 {
  font-size: 22px; font-weight: 600;
  margin: 48px 0 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
main.docs-content h2:first-of-type { border-top: none; padding-top: 0; }
main.docs-content h3 {
  font-size: 16px; font-weight: 600;
  margin: 28px 0 8px;
  color: #d0d0e0;
}
main.docs-content p { margin: 10px 0; color: #c8c8d8; }
main.docs-content ul { color: #c8c8d8; }
main.docs-content code:not(pre code) {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: #e6e6f0;
}
main.docs-content pre {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}
main.docs-content pre code { color: #e6e6f0; }
main.docs-content table {
  width: 100%; border-collapse: collapse; margin: 12px 0;
  font-size: 14px;
}
main.docs-content th, main.docs-content td {
  text-align: left; padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
main.docs-content th { color: #a0a0b8; font-weight: 500; }
.note {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid #6366f1;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 14px 0;
  font-size: 14px;
}
.lede { font-size: 16px; color: #a0a0b8; margin: 0 0 8px; }

/* Visible placeholder for a screenshot that hasn't been sourced yet.
   Uses a data-caption attribute so the description lives alongside
   the HTML comment that tells the author what to capture. */
.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin: 18px 0;
  padding: 24px;
  border: 1px dashed rgba(165, 180, 252, 0.35);
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.05);
  color: #8a8aa0;
  font-size: 13px;
  text-align: center;
}
.screenshot-placeholder::before {
  content: "📷  " attr(data-caption);
  white-space: pre-wrap;
}

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; gap: 20px; }
  nav.docs-nav { position: static; max-height: none; order: -1; }
}
