body {
    background: var(--bg-secondary);
}

.docs-shell {
    width: min(1200px, 92%);
    margin: 2.5rem auto 4rem;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
}

.docs-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.docs-sidebar-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.docs-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.docs-nav a:hover {
    background: rgba(37, 117, 252, 0.08);
    color: var(--text-primary);
}

.docs-nav a[aria-current="page"] {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.docs-main {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.docs-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.docs-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.docs-section {
    margin-top: 2.5rem;
}

.docs-section h2 {
    margin-bottom: 0.75rem;
}

.docs-list {
    margin-top: 0.75rem;
    padding-left: 1.2rem;
}

.docs-list li {
    margin-bottom: 0.5rem;
}

.docs-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1.5rem;
}

.docs-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.docs-card h3 {
    margin-bottom: 0.5rem;
}

.docs-card p {
    color: var(--text-secondary);
}

.docs-callout {
    background: #eef2ff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    border-left: 4px solid #2563eb;
    color: #1e293b;
    margin-top: 1.25rem;
}

.docs-alert {
    background: #fff7e6;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    border-left: 4px solid #f59e0b;
    color: #7c2d12;
    margin-top: 1.25rem;
}

.docs-tag {
    display: inline-block;
    background: #0f172a;
    color: #fff;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: 0.4rem;
}

.docs-image {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.docs-figure {
    margin: 1.5rem 0 0;
}

.docs-figure figcaption {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.docs-footer {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    color: var(--text-secondary);
}

.docs-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    justify-content: center;
}

@media (max-width: 900px) {
    .docs-shell {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }

    .docs-main {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .docs-main {
        padding: 1.75rem 1.25rem;
    }
}
