/* --- Docs Layout --- */
.docs-container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.docs-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
    overflow-y: auto;
    padding-right: 2rem;
}

.docs-content {
    flex-grow: 1;
    min-width: 0; /* Prevents flexbox overflow issues */
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

/* --- Sidebar Navigation --- */
.docs-nav h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 2rem 0 0.75rem;
}
.docs-nav h3:first-child {
    margin-top: 0;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav li a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.docs-nav li a:hover {
    color: var(--text-color);
}

.docs-nav li a.active {
    color: var(--primary-color);
}

/* --- Main Content Typography --- */
.docs-content article {
    max-width: 800px;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
}

.docs-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.docs-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.docs-content a:hover {
    text-decoration: underline;
}

/* Re-using the code block styles from the main site for consistency */
.docs-content pre {
    margin: 2rem 0;
    background-color: #000;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    font-family: var(--font-mono);
}

.docs-content code {
    font-family: var(--font-mono);
    background-color: var(--surface-color);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 90%;
}

.docs-content pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
    color: #dcdfe4;
}
