.doc-page {
    background: #fff;
}

.doc-hero {
    padding: 2.5rem 0;
    background: #f6f8fb;
    border-bottom: 1px solid rgba(20, 37, 63, 0.08);
}

.doc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    font-size: .9rem;
    color: #6c757d;
}

.doc-breadcrumbs a {
    color: #0d6efd;
    text-decoration: none;
}

.doc-hero h1 {
    margin: 0;
    color: #17324d;
    font-weight: 800;
    font-size: 2.6rem;
}

.doc-description {
    max-width: 46rem;
    margin: 1rem 0 0;
    color: #5d6b7c;
    font-size: 1.08rem;
}

.doc-language-switcher {
    display: flex;
    justify-content: flex-start;
    gap: .5rem;
}

@media (min-width: 992px) {
    .doc-language-switcher {
        justify-content: flex-end;
    }
}

.doc-language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 2.25rem;
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 6px;
    color: #0d6efd;
    font-weight: 700;
    text-decoration: none;
}

.doc-language-switcher a.active {
    background: #0d6efd;
    color: #fff;
}

.doc-layout-section {
    padding: 3rem 0 4rem;
    margin-bottom: 3rem;
}

.doc-sidebar {
    position: sticky;
    top: 6rem;
    padding: 1.25rem;
    border: 1px solid rgba(20, 37, 63, 0.08);
    border-radius: 8px;
    background: #fff;
}

.doc-sidebar-title {
    margin-bottom: .75rem;
    color: #17324d;
    font-weight: 800;
}

.doc-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-nav-list .doc-nav-list {
    margin-top: .35rem;
    padding-left: .75rem;
    border-left: 1px solid rgba(20, 37, 63, 0.08);
}

.doc-nav-section {
    margin: .75rem 0;
}

.doc-nav-section-title {
    margin-bottom: .35rem;
    color: #6c757d;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.doc-nav-section-heading {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.doc-nav-section-heading .doc-nav-link {
    flex: 1;
    min-width: 0;
}

.doc-nav-toggle {
    display: inline-flex;
    flex: 0 0 1.75rem;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
}

.doc-nav-toggle:hover,
.doc-nav-toggle:focus-visible {
    background: #eef5ff;
    color: #0d6efd;
}

.doc-nav-toggle i {
    font-size: .7rem;
    transition: transform .15s ease;
}

.doc-nav-section-expandable:not(.is-expanded) > .doc-nav-section-heading .doc-nav-toggle i {
    transform: rotate(-90deg);
}

.doc-nav-section-link {
    display: block;
    text-decoration: none;
}

.doc-nav-section-link:hover,
.doc-nav-section-link.active {
    color: #0d6efd;
}

.doc-nav-item {
    margin: .1rem 0;
}

.doc-nav-link {
    display: block;
    padding: .4rem .55rem;
    border-radius: 6px;
    color: #314457;
    font-size: .94rem;
    text-decoration: none;
}

.doc-nav-link:hover,
.doc-nav-link.active {
    background: #eef5ff;
    color: #0d6efd;
}

.doc-content {
    max-width: 58rem;
    color: #263748;
    font-size: 1rem;
    line-height: 1.75;
}

.doc-content h1,
.doc-content h2,
.doc-content h3,
.doc-content h4 {
    color: #17324d;
    font-weight: 800;
    line-height: 1.25;
}

.doc-content h2 {
    margin-top: 2.4rem;
    margin-bottom: .85rem;
    font-size: 1.75rem;
}

.doc-content h3 {
    margin-top: 2rem;
    margin-bottom: .65rem;
    font-size: 1.35rem;
}

.doc-content p,
.doc-content ul,
.doc-content ol,
.doc-content table,
.doc-content pre,
.doc-content blockquote {
    margin-bottom: 1.1rem;
}

.doc-content a {
    color: #0d6efd;
}

.doc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid rgba(20, 37, 63, 0.12);
    border-radius: 8px;
}

.doc-content th,
.doc-content td {
    padding: .75rem .9rem;
    border: 1px solid rgba(20, 37, 63, 0.1);
    vertical-align: top;
}

.doc-content th {
    background: #f6f8fb;
    color: #17324d;
}

.doc-content code {
    padding: .12rem .32rem;
    border-radius: 4px;
    background: #eef2f6;
    color: #18324a;
}

.doc-content pre {
    padding: 1rem;
    overflow: auto;
    border-radius: 8px;
    background: #15202b;
    color: #f8fafc;
}

.doc-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.doc-callout {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(20, 37, 63, 0.12);
    border-left-width: 4px;
    border-radius: 8px;
    background: #f8fbff;
}

.doc-callout > :last-child {
    margin-bottom: 0;
}

.doc-callout-info {
    border-left-color: #0d6efd;
    background: #f3f8ff;
}

.doc-callout-tip {
    border-left-color: #198754;
    background: #f3fbf6;
}

.doc-callout-important {
    border-left-color: #dc3545;
    background: #fff7f7;
}

.doc-video {
    position: relative;
    width: 100%;
    margin: 1.25rem 0;
    aspect-ratio: 16 / 9;
}

.doc-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.doc-toc {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(13, 110, 253, 0.16);
    border-radius: 8px;
    background: #f8fbff;
}

.doc-toc ul {
    margin-bottom: 0;
}

.heading-permalink {
    margin-left: .45rem;
    color: #b0bdca;
    font-size: .8em;
    text-decoration: none;
}

.heading-permalink:hover {
    color: #0d6efd;
}

.doc-prev-next {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 58rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(20, 37, 63, 0.1);
}

@media (min-width: 768px) {
    .doc-prev-next {
        grid-template-columns: 1fr 1fr;
    }

    .doc-prev-next > div:last-child {
        text-align: right;
    }
}

.doc-prev-next a {
    display: block;
    padding: 1rem;
    border: 1px solid rgba(20, 37, 63, 0.1);
    border-radius: 8px;
    color: #17324d;
    font-weight: 700;
    text-decoration: none;
}

.doc-prev-next span {
    display: block;
    margin-bottom: .25rem;
    color: #6c757d;
    font-size: .82rem;
    font-weight: 600;
}

.doc-updated {
    max-width: 58rem;
    margin-top: 1.5rem;
    color: #6c757d;
    font-size: .88rem;
}

@media (max-width: 991.98px) {
    .doc-hero {
        padding-top: 6rem;
    }

    .doc-hero h1 {
        font-size: 2rem;
    }

    .doc-sidebar {
        position: static;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════════════════════ */
[data-bs-theme="dark"] .doc-page {
    background: var(--zo-bg);
}

[data-bs-theme="dark"] .doc-hero {
    background: #131D2E;
    border-bottom-color: var(--zo-border);
}

[data-bs-theme="dark"] .doc-breadcrumbs {
    color: var(--zo-text-muted);
}

[data-bs-theme="dark"] .doc-breadcrumbs a {
    color: var(--zo-primary);
}

[data-bs-theme="dark"] .doc-hero h1 {
    color: var(--zo-text);
}

[data-bs-theme="dark"] .doc-description {
    color: var(--zo-text-secondary);
}

[data-bs-theme="dark"] .doc-language-switcher a {
    border-color: rgba(91, 143, 217, .35);
    color: var(--zo-primary);
}

[data-bs-theme="dark"] .doc-language-switcher a.active {
    background: var(--zo-primary);
    color: #fff;
}

[data-bs-theme="dark"] .doc-sidebar {
    background: var(--zo-surface);
    border-color: var(--zo-border);
}

[data-bs-theme="dark"] .doc-sidebar-title {
    color: var(--zo-text);
}

[data-bs-theme="dark"] .doc-nav-list .doc-nav-list {
    border-left-color: var(--zo-border);
}

[data-bs-theme="dark"] .doc-nav-section-title {
    color: var(--zo-text-muted);
}

[data-bs-theme="dark"] .doc-nav-section-link:hover,
[data-bs-theme="dark"] .doc-nav-section-link.active {
    color: var(--zo-primary);
}

[data-bs-theme="dark"] .doc-nav-toggle {
    color: var(--zo-text-muted);
}

[data-bs-theme="dark"] .doc-nav-toggle:hover,
[data-bs-theme="dark"] .doc-nav-toggle:focus-visible {
    background: var(--zo-primary-soft);
    color: var(--zo-primary);
}

[data-bs-theme="dark"] .doc-nav-link {
    color: var(--zo-text-secondary);
}

[data-bs-theme="dark"] .doc-nav-link:hover,
[data-bs-theme="dark"] .doc-nav-link.active {
    background: var(--zo-primary-soft);
    color: var(--zo-primary);
}

[data-bs-theme="dark"] .doc-content {
    color: var(--zo-text-secondary);
}

[data-bs-theme="dark"] .doc-content h1,
[data-bs-theme="dark"] .doc-content h2,
[data-bs-theme="dark"] .doc-content h3,
[data-bs-theme="dark"] .doc-content h4 {
    color: var(--zo-text);
}

[data-bs-theme="dark"] .doc-content a {
    color: var(--zo-primary);
}

[data-bs-theme="dark"] .doc-content table {
    border-color: var(--zo-border);
}

[data-bs-theme="dark"] .doc-content th,
[data-bs-theme="dark"] .doc-content td {
    border-color: var(--zo-border);
}

[data-bs-theme="dark"] .doc-content th {
    background: #131D2E;
    color: var(--zo-text);
}

[data-bs-theme="dark"] .doc-content code {
    background: #1A2332;
    color: #C9D6E4;
}

[data-bs-theme="dark"] .doc-content pre {
    background: #0B1120;
    color: #E2E8F0;
}

[data-bs-theme="dark"] .doc-callout {
    border-color: var(--zo-border);
    background: var(--zo-surface);
}

[data-bs-theme="dark"] .doc-callout-info {
    border-left-color: var(--zo-primary);
    background: var(--zo-primary-soft);
}

[data-bs-theme="dark"] .doc-callout-tip {
    border-left-color: var(--zo-success);
    background: var(--zo-success-soft);
}

[data-bs-theme="dark"] .doc-callout-important {
    border-left-color: var(--zo-danger);
    background: var(--zo-danger-soft);
}

[data-bs-theme="dark"] .doc-toc {
    border-color: rgba(91, 143, 217, .2);
    background: var(--zo-surface);
}

[data-bs-theme="dark"] .heading-permalink {
    color: var(--zo-text-muted);
}

[data-bs-theme="dark"] .heading-permalink:hover {
    color: var(--zo-primary);
}

[data-bs-theme="dark"] .doc-prev-next {
    border-top-color: var(--zo-border);
}

[data-bs-theme="dark"] .doc-prev-next a {
    border-color: var(--zo-border);
    color: var(--zo-text);
}

[data-bs-theme="dark"] .doc-prev-next span {
    color: var(--zo-text-muted);
}

[data-bs-theme="dark"] .doc-updated {
    color: var(--zo-text-muted);
}
