/* Docs layout */
.docs-layout {
  display: flex;
  min-height: calc(100vh - 60px);
  padding-top: 60px;
}
.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 24px 16px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.docs-sidebar input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.docs-sidebar input::placeholder { color: var(--text-muted); }
.docs-sidebar input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-glow);
}
.docs-toc {
  font-size: 0.88rem;
}
.docs-toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
}
.docs-toc a:hover { color: var(--text); background: var(--ghost-bg-hover); }
.docs-toc a.active { color: var(--blue); font-weight: 500; }
.docs-toc ul { list-style: none; padding-left: 12px; }
.docs-main {
  flex: 1;
  padding: 32px 48px 80px;
  max-width: 800px;
  margin: 0 auto;
}
.docs-content {
  font-size: 1rem;
  line-height: 1.7;
}
.docs-content h1 { font-size: 1.75rem; margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.docs-content h2 { font-size: 1.35rem; margin: 2.5rem 0 1rem; }
.docs-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; }
.docs-content p { margin: 0 0 1rem; color: var(--text); }
.docs-content ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.docs-content li { margin: 0.25rem 0; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.docs-content th, .docs-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.docs-content th { background: var(--bg-alt); font-weight: 600; }
.docs-content pre { background: var(--bg-alt); padding: 16px; border-radius: 8px; overflow-x: auto; margin: 1rem 0; font-size: 0.88rem; }
.docs-content code { font-family: ui-monospace, monospace; }
.docs-content p code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.docs-content a { color: var(--blue); text-decoration: none; }
.docs-content a:hover { text-decoration: underline; }
.docs-content .doc-section { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.docs-content .doc-section:last-child { border-bottom: none; }
.docs-footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.docs-footer a { color: var(--blue); }
.docs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.docs-nav a {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-nav);
  text-decoration: none;
  font-size: 0.9rem;
}
.docs-nav a:hover { color: var(--text); background: var(--ghost-bg-hover); }
.docs-nav a.active { color: var(--blue); font-weight: 500; }
@media (max-width: 900px) {
  .docs-layout { flex-direction: column; }
  .docs-sidebar { width: 100%; position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .docs-main { padding: 24px 20px; }
}
