:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2330;
  --border: #2a3340;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --accent: #2d8b8b;
  --accent-2: #a78bfa;
  --code-bg: #11161d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; margin-bottom: 4px;
}
.sidebar .brand .dot { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.sidebar .tag { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.sidebar nav a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--muted); font-size: 14px; margin-bottom: 2px;
}
.sidebar nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.sidebar nav a.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.content { flex: 1; max-width: 880px; padding: 48px 56px; }
.content h1 { font-size: 34px; margin: 0 0 8px; line-height: 1.2; }
.content h2 { font-size: 24px; margin: 40px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.content h3 { font-size: 18px; margin: 28px 0 8px; color: #cdd9e5; }
.content p, .content li { color: var(--text); }
.content ul { padding-left: 22px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(45,139,139,.15);
  color: var(--accent); border: 1px solid rgba(45,139,139,.4);
}
pre {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; overflow-x: auto; font-size: 13.5px;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #ffd9a0; }
p code, li code { background: var(--code-bg); padding: 2px 6px; border-radius: 5px; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th, td { text: left; padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
th { background: var(--surface-2); }
.callout {
  border-left: 3px solid var(--accent-2); background: rgba(167,139,250,.08);
  padding: 12px 16px; border-radius: 8px; margin: 18px 0; color: var(--muted);
}
.footer { color: var(--muted); font-size: 13px; margin-top: 56px; border-top: 1px solid var(--border); padding-top: 20px; }
@media (max-width: 820px) {
  .sidebar { display: none; }
  .content { padding: 32px 20px; }
}
