:root {
  --bg: #080a0f;
  --sidebar-bg: #0e121b;
  --card-bg: #141a26;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #38bdf8;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

.wiki-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.5rem 0;
}

.sidebar a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar a:hover, .sidebar a.active {
  background: #1e293b;
  color: var(--accent);
}

.content {
  flex: 1;
  max-width: 900px;
  padding: 3rem 4rem;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; color: #fff; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem 0; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem 0; color: #38bdf8; }

p { margin-bottom: 1rem; color: #cbd5e1; }
ul, ol { margin-left: 1.5rem; margin-bottom: 1.25rem; color: #cbd5e1; }
li { margin-bottom: 0.4rem; }

pre {
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
  color: #38bdf8;
  margin-bottom: 1.5rem;
}

code {
  background: #162032;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background: #0c111a;
  color: var(--text-muted);
  font-size: 0.85rem;
}
