/* Docs Layout */
.docs-layout {
    display: flex;
    margin-top: -64px;
    /* offset the nav margin from globals */
    min-height: calc(100vh - 89px);
}

.docs-sidebar {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding: 40px 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg);
}

.docs-content {
    flex: 1;
    padding: 40px 60px;
    max-width: 800px;
}

.sidebar-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 12px;
    margin-top: 32px;
    display: block;
}

.sidebar-category:first-child {
    margin-top: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
    display: block;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
}

.sidebar-nav a.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* Docs Typography & Elements */
.docs-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.docs-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.docs-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.docs-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 15px;
}

.docs-content pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.docs-content code {
    font-family: var(--mono-stack);
    font-size: 13px;
    color: var(--text-primary);
}

.docs-content p code,
.docs-content li code {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

.docs-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.docs-content li {
    margin-bottom: 8px;
}

.docs-alert {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.docs-alert p {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 14px;
}

.docs-alert-icon {
    font-size: 20px;
    line-height: 1;
}

/* Responsive */
@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);
        padding: 24px;
    }

    .docs-content {
        padding: 24px;
    }
}