﻿.docs-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

    .docs-content h1,
    .docs-content h2,
    .docs-content h3,
    .docs-content h4 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .docs-content h1 {
        font-size: 2.2rem;
    }

    .docs-content h2 {
        font-size: 1.8rem;
        border-bottom: 1px solid var(--bs-border-color);
        padding-bottom: .5rem;
    }

    .docs-content p {
        margin-bottom: 1rem;
    }

    .docs-content img {
        max-width: 100%;
        border-radius: 14px;
        margin: 1.75rem 0;
        box-shadow: 0 .5rem 2rem rgba(0,0,0,.12);
        cursor: zoom-in;
        transition: transform .2s ease;
    }

        .docs-content img:hover {
            transform: scale(1.01);
        }

    .docs-content pre {
        position: relative;
        background: #0d1117;
        border-radius: 14px;
        overflow: hidden;
        margin: 1.5rem 0;
        border: 1px solid rgba(255,255,255,.08);
    }

        .docs-content pre code {
            display: block;
            padding: 1.25rem;
            overflow-x: auto;
            font-size: .95rem;
            line-height: 1.6;
            background: transparent;
        }

    .docs-content code {
        background: rgba(127,127,127,.12);
        padding: .15rem .4rem;
        border-radius: 6px;
        font-size: .95em;
    }

    .docs-content table {
        width: 100%;
        margin: 1.5rem 0;
        border-collapse: collapse;
    }

        .docs-content table th,
        .docs-content table td {
            border: 1px solid var(--bs-border-color);
            padding: .75rem;
        }

        .docs-content table th {
            background: rgba(127,127,127,.08);
        }

    .docs-content blockquote {
        border-left: 4px solid var(--bs-primary);
        padding-left: 1rem;
        color: var(--bs-secondary-color);
        margin: 1.5rem 0;
    }

.docs-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
}

.docs-sidebar {
    background: var(--bs-body-bg);
    border-right: 1px solid var(--bs-border-color);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.docs-brand {
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

    .docs-brand a {
        color: var(--bs-body-color);
        text-decoration: none;
    }

.docs-search-placeholder {
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: .65rem .8rem;
    font-size: .9rem;
    margin-bottom: 1.5rem;
}

.docs-main {
    padding: 3rem;
}

.docs-container {
    max-width: 980px;
    margin: 0 auto;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 .5rem 2rem rgba(0,0,0,.04);
}

.docs-nav-list,
.docs-nav-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.docs-nav-category {
    margin-bottom: 1rem;
}

    .docs-nav-category > a {
        display: block;
        font-weight: 700;
        color: var(--bs-body-color);
        text-decoration: none;
        margin-bottom: .4rem;
    }

    .docs-nav-category ul {
        padding-left: .75rem;
        border-left: 2px solid var(--bs-border-color);
    }

        .docs-nav-category li li,
        .docs-nav-category ul li {
            margin-bottom: .25rem;
        }

        .docs-nav-category ul a {
            display: block;
            color: var(--bs-secondary-color);
            text-decoration: none;
            font-size: .92rem;
            padding: .25rem 0;
        }

    .docs-nav-category a:hover {
        color: var(--bs-primary);
    }

@media (max-width: 992px) {
    .docs-shell {
        display: block;
    }

    .docs-sidebar {
        position: relative;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .docs-main {
        padding: 1rem;
    }

    .docs-container {
        padding: 1.25rem;
    }
}

.docs-nav a.active {
    color: var(--bs-primary) !important;
    font-weight: 700;
}

.docs-nav-category ul a.active {
    background: rgba(var(--bs-primary-rgb), .1);
    border-radius: .5rem;
    padding-left: .5rem;
}

.docs-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 3rem;
}

.docs-toc {
    position: sticky;
    top: 2rem;
    align-self: start;
    border-left: 1px solid var(--bs-border-color);
    padding-left: 1rem;
}

.docs-toc-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.docs-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-toc li {
    margin-bottom: .5rem;
}

    .docs-toc li.level-3 {
        padding-left: 1rem;
    }

.docs-toc a {
    text-decoration: none;
    color: var(--bs-secondary-color);
    font-size: .92rem;
}

    .docs-toc a:hover {
        color: var(--bs-primary);
    }

@media (max-width: 1200px) {
    .docs-article-layout {
        grid-template-columns: 1fr;
    }

    .docs-toc {
        display: none;
    }
}

.docs-copy-btn {
    position: absolute;
    top: .75rem;
    right: .75rem;
    border: 0;
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: .35rem .75rem;
    border-radius: .5rem;
    font-size: .8rem;
    cursor: pointer;
    transition: .2s;
}

    .docs-copy-btn:hover {
        background: rgba(255,255,255,.16);
    }

.docs-content h2,
.docs-content h3 {
    position: relative;
    scroll-margin-top: 2rem;
}

.docs-heading-anchor {
    opacity: 0;
    text-decoration: none;
    margin-left: .5rem;
    font-size: .85em;
    color: var(--bs-secondary-color);
}

.docs-content h2:hover .docs-heading-anchor,
.docs-content h3:hover .docs-heading-anchor {
    opacity: 1;
}

.docs-heading-anchor:hover {
    color: var(--bs-primary);
}

.docs-content blockquote {
    border-left: 4px solid var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .08);
    padding: 1rem 1.25rem;
    border-radius: .75rem;
    margin: 1.5rem 0;
}

    .docs-content blockquote p {
        margin-bottom: .5rem;
    }

        .docs-content blockquote p:last-child {
            margin-bottom: 0;
        }

        .docs-content blockquote p:first-child strong {
            text-transform: uppercase;
        }

.docs-callout-info {
    border-left-color: #0dcaf0 !important;
    background: rgba(13, 202, 240, .08) !important;
}

.docs-callout-tip {
    border-left-color: #198754 !important;
    background: rgba(25, 135, 84, .08) !important;
}

.docs-callout-warning {
    border-left-color: #ffc107 !important;
    background: rgba(255, 193, 7, .12) !important;
}

.docs-callout-important {
    border-left-color: #dc3545 !important;
    background: rgba(220, 53, 69, .08) !important;
}