html { scroll-behavior: smooth; }
.docs-layout { display: flex; min-height: 100vh; }
.docs-sidebar { width: 240px; flex-shrink: 0; border-right: 1px solid var(--border); background: var(--surface); padding: 20px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.docs-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; margin-bottom: 24px; padding: 4px 0; }
.docs-logo:hover { text-decoration: none; }
.docs-nav-item { display: block; padding: 7px 12px; border-radius: 7px; font-size: 13px; color: var(--text-dim); text-decoration: none; margin-bottom: 2px; }
.docs-nav-item:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.docs-nav-item.active { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 600; }
.docs-sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.docs-sidebar-footer a { font-size: 12px; color: var(--text-dim); }
.docs-content { flex: 1; padding: 40px 48px; max-width: 760px; }
.docs-content h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.docs-content h2 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.docs-content h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.docs-content p { margin-bottom: 14px; color: var(--text-muted); }
.docs-content ul, .docs-content ol { margin-bottom: 14px; padding-left: 20px; color: var(--text-muted); }
.docs-content li { margin-bottom: 6px; }
.docs-content strong { color: var(--text); }
.docs-content code { font-family: inherit; font-size: 0.9em; padding: 2px 6px; border-radius: 4px; background: var(--surface-hover); color: var(--accent); }
.docs-content pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; overflow-x: auto; margin-bottom: 16px; position: relative; }
.docs-content pre code { background: none; color: var(--text); padding: 0; font-size: 13px; line-height: 1.6; }
.code-copy-btn { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text-dim); font-size: 11px; cursor: pointer; }
.code-copy-btn:hover { background: var(--surface-hover); color: var(--text); }
.code-copy-btn.copied { color: var(--success); }

@media (max-width: 768px) { .docs-layout { flex-direction: column; } .docs-sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--border); } .docs-content { padding: 24px; } }
