
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --brand: #58a6ff;
  --accent: #f778ba;
  --text: #c9d1d9;
  --muted: #8b949e;
  --border: #30363d;
  --success: #3fb950;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13, 17, 23, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}
.site-brand a {
  font-weight: 600;
  color: var(--brand);
  font-size: 1.1rem;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.nav-link {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
}
.nav-link.active {
  color: var(--text);
  border-color: var(--brand);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}
.breadcrumbs {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: -1rem;
}
.content {
  background: var(--surface);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(88, 166, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.content h1 {
  font-size: 2.2rem;
  margin-top: 0;
}
.content h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}
.content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}
.content p {
  margin: 0.5rem 0 1rem;
}
.content ul,
.content ol {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1.5rem;
}
.content li + li { margin-top: 0.4rem; }
.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.4rem 0;
}
.checklist input {
  accent-color: var(--brand);
}
.update-bar {
  background: rgba(88, 166, 255, 0.15);
  border-left: 4px solid var(--brand);
  padding: 0.75rem 1rem;
  margin: 1rem 0 2rem;
  border-radius: 8px;
  font-weight: 500;
}
.content pre {
  background: #0b1017;
  padding: 1rem;
  border-radius: 12px;
  overflow: auto;
  border: 1px solid var(--border);
}
.content code {
  background: rgba(110, 118, 129, 0.2);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.9rem;
}
.content pre code {
  background: transparent;
  padding: 0;
}
.toc {
  position: sticky;
  top: 110px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  height: fit-content;
}
.toc-title {
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-item {
  margin-bottom: 0.45rem;
}
.toc-item a {
  color: var(--muted);
  font-size: 0.95rem;
}
.toc-item a:hover { color: var(--text); }
.toc-sub {
  margin-left: 1rem;
  font-size: 0.9rem;
}
.site-footer {
  padding: 2.5rem 2rem;
  background: rgba(13, 17, 23, 0.95);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(88, 166, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  margin-bottom: 0.6rem;
}
.copy-button.copied {
  border-color: var(--success);
  color: var(--success);
}
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem 2.5rem;
  }
  .toc {
    position: static;
    order: -1;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
