    /* ── 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); }

    /* ── Article content ── */
    .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-article h2 {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-subtle);
    }
    .docs-article h2:first-of-type {
        border-top: none;
        padding-top: 0;
    }
    .docs-article table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }
    .docs-article th {
        text-align: left;
        padding: 0.6rem 0.85rem;
        background: var(--surface);
        border: 1px solid var(--border);
        font-weight: 600;
        color: var(--ink);
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
    .docs-article td {
        padding: 0.6rem 0.85rem;
        border: 1px solid var(--border-subtle);
        color: var(--ink-secondary);
    }
    .docs-article pre {
        background: var(--surface);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius);
        padding: 1rem 1.25rem;
        overflow-x: auto;
        margin-bottom: 1.5rem;
    }
    .docs-article pre code {
        background: none;
        border: none;
        padding: 0;
        font-size: 0.85rem;
    }
    .docs-article blockquote {
        border-left: 3px solid var(--teal);
        margin: 1.5rem 0;
        padding: 0.75rem 1.25rem;
        background: var(--teal-soft);
        border-radius: 0 var(--radius) var(--radius) 0;
    }
    .docs-article blockquote p {
        margin-bottom: 0;
        color: var(--ink-secondary);
    }

    /* ── Page navigation ── */
    .docs-page-nav {
        display: flex;
        justify-content: space-between;
        margin-top: 3rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-subtle);
        gap: 1rem;
    }
    .docs-page-nav a {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.75rem 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        text-decoration: none;
        transition: border-color 0.15s, box-shadow 0.15s;
        max-width: 50%;
    }
    .docs-page-nav a:hover {
        border-color: var(--teal);
        box-shadow: 0 2px 8px var(--teal-glow);
        text-decoration: none;
    }
    .docs-page-nav .nav-label {
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--ink-muted);
    }
    .docs-page-nav .nav-title {
        font-weight: 600;
        color: var(--teal-hover);
        font-size: 0.9rem;
    }
    .docs-page-nav .nav-next { margin-left: auto; text-align: right; }

    /* ── 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); }

    /* ── Responsive ── */
    @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-page-nav { flex-direction: column; }
        .docs-page-nav a { max-width: 100%; }
    }
