    /* ── Docs Layout ── */
    .docs-layout {
        display: flex;
        gap: 0;
        min-height: calc(100vh - 200px);
    }

    /* ── Sidebar ── */
    .docs-sidebar {
        width: 260px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-lg);
        padding: 1.25rem 0;
        position: sticky;
        top: 1rem;
        align-self: flex-start;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.15) transparent;
    }
    .docs-sidebar::-webkit-scrollbar { width: 4px; }
    .docs-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

    .docs-nav-home {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1.25rem;
        margin-bottom: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        font-size: 0.82rem;
        font-weight: 600;
        transition: color 0.15s;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 0.85rem;
    }
    .docs-nav-home:hover { color: #fff; }
    .docs-nav-home.current { color: var(--teal); }

    .docs-nav-group { margin-bottom: 0.25rem; }
    .docs-nav-heading {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
        padding: 0.5rem 1.25rem;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.75);
        font-family: 'Inter', sans-serif;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        cursor: pointer;
        transition: color 0.15s;
        text-align: left;
    }
    .docs-nav-heading:hover { color: #fff; }
    .docs-nav-chevron {
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }
    .docs-nav-heading.expanded .docs-nav-chevron { transform: rotate(90deg); }
    .docs-nav-items { display: none; padding-bottom: 0.5rem; }
    .docs-nav-items.expanded { display: block; }
    .docs-nav-item {
        display: block;
        padding: 0.35rem 1.25rem 0.35rem 2.5rem;
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        font-size: 0.82rem;
        font-weight: 500;
        transition: color 0.15s, background 0.15s;
        border-left: 2px solid transparent;
    }
    .docs-nav-item:hover {
        color: rgba(255, 255, 255, 0.85);
        background: rgba(255, 255, 255, 0.03);
    }
    .docs-nav-item.current {
        color: var(--teal);
        border-left-color: var(--teal);
        background: rgba(34, 184, 191, 0.06);
    }

    /* ── Content Area ── */
    .docs-main {
        flex: 1;
        min-width: 0;
        margin-left: 1.5rem;
        background: var(--surface-raised);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        padding: 2.5rem 3rem;
    }

    /* ── Breadcrumbs ── */
    .docs-breadcrumbs {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 1.5rem;
        font-size: 0.8rem;
        color: var(--ink-muted);
    }
    .docs-breadcrumbs a {
        color: var(--teal-hover);
        text-decoration: none;
        font-weight: 500;
    }
    .docs-breadcrumbs a:hover { text-decoration: underline; }
    .docs-breadcrumbs .sep { color: var(--border); }

    /* ── Section listing ── */
    .docs-article h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .docs-article .docs-description {
        font-size: 1.05rem;
        color: var(--ink-muted);
        margin-bottom: 2rem;
        line-height: 1.7;
    }
    .docs-section-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .docs-section-card {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.25rem 1.5rem;
        text-decoration: none;
        transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    }
    .docs-section-card:hover {
        border-color: var(--teal);
        box-shadow: 0 4px 12px var(--teal-glow);
        transform: translateY(-2px);
        text-decoration: none;
    }
    .docs-section-card h3 {
        margin-top: 0;
        margin-bottom: 0.4rem;
        font-size: 1rem;
        color: var(--ink);
    }
    .docs-section-card p {
        margin-bottom: 0;
        font-size: 0.88rem;
        color: var(--ink-muted);
        line-height: 1.6;
    }

    /* ── Child page list ── */
    .docs-page-list {
        list-style: none;
        padding: 0;
        margin: 1.5rem 0;
    }
    .docs-page-list li {
        border-bottom: 1px solid var(--border-subtle);
    }
    .docs-page-list li:last-child { border-bottom: none; }
    .docs-page-list a {
        display: block;
        padding: 0.85rem 0;
        text-decoration: none;
        transition: color 0.15s;
    }
    .docs-page-list a:hover { text-decoration: none; }
    .docs-page-list .page-title {
        font-weight: 600;
        color: var(--teal-hover);
        font-size: 0.95rem;
    }
    .docs-page-list .page-desc {
        color: var(--ink-muted);
        font-size: 0.85rem;
        margin-top: 0.15rem;
    }

    /* ── Mobile toggle ── */
    .docs-mobile-toggle {
        display: none;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius);
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Inter', sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
    }
    .docs-mobile-toggle:hover { background: rgba(255, 255, 255, 0.1); }

    @media (max-width: 900px) {
        .docs-mobile-toggle { display: flex; }
        .docs-sidebar {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 280px;
            height: 100vh;
            max-height: 100vh;
            z-index: 100;
            border-radius: 0;
            background: var(--navy);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
        }
        .docs-sidebar.open { display: block; }
        .docs-main { margin-left: 0; padding: 1.5rem; }
    }
    @media (max-width: 480px) {
        .docs-main { padding: 1.25rem; }
        .docs-article h1 { font-size: 1.5rem; }
        .docs-section-grid { grid-template-columns: 1fr; }
    }
