/* ── Documentation layout ─────────────────────────────────────── */

.doc-container {
    display: flex;
    column-gap: 10px;
    height: calc(100vh - 160px);
}

.toc {
    width: 300px;
    flex-shrink: 0;
}

.doc {
    flex: 1;
    overflow-y: auto;
}

.doc-toc-sidebar {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.doc-toc-sidebar::-webkit-scrollbar { width: 3px; }
.doc-toc-sidebar::-webkit-scrollbar-thumb { background: rgba(27,110,194,.25); border-radius: 10px; }

/* ── TOC links ────────────────────────────────────────────────── */

.doc-toc-list a {
    font-size: .82rem;
    color: var(--bs-secondary-color, #6c757d);
    text-decoration: none;
    display: block;
    padding: .25rem 0;
    transition: color .15s;
    line-height: 1.4;
}

.doc-toc-list a:hover { color: #1b6ec2; }

/* ── Content typography ───────────────────────────────────────── */

.doc-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.doc-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: .85rem;
    border-left: 3px solid #1b6ec2;
}

.doc-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: .75rem;
    color: #495057;
    padding-left: .50rem;
    border-left: 2px solid #495057;
}

.doc-content h4 {
    font-size: .95rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
    color: #495057;
}

.doc-content p { margin-bottom: 1.2rem; }

/* ── Images ───────────────────────────────────────────────────── */

.doc-image-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .5rem;
    background: #f8f9fa;
    margin: 1.5rem 0;
}

.doc-screenshot {
    max-height: 320px;
    object-fit: contain;
    object-position: top;
    border-radius: .375rem;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 991px) {
    .doc-container {
        display: block;
        height: auto;
    }

    .toc {
        display: none;
    }

    .doc {
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .doc-content h1 { font-size: 1.5rem; }
    .doc-content h2 { font-size: 1.2rem; }
}
