/* Developer docs (/developers): left navigation, content, right "On this page". Built on the sb-admin look. */
:root {
    --docs-ink: #1f2937;
    --docs-muted: #6b7280;
    --docs-line: #e5e7eb;
    --docs-bg: #ffffff;
    --docs-soft: #f8f9fc;
    --docs-accent: #4e73df;
    --docs-code-bg: #0f172a;
    --docs-code-ink: #e2e8f0;
    --docs-topbar: 56px;
}

.docs-body { background: var(--docs-bg); color: var(--docs-ink); font-family: "Nunito", -apple-system, "Segoe UI", sans-serif; }

.docs-topbar {
    position: sticky; top: 0; z-index: 30; height: var(--docs-topbar); padding: 0 24px;
    background: var(--docs-bg); border-bottom: 1px solid var(--docs-line); display: flex; align-items: center; justify-content: space-between;
}
.docs-brand { font-weight: 800; color: var(--docs-ink) !important; display: flex; align-items: center; }
.docs-brand-sub { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #eef2ff; color: var(--docs-accent); font-size: 12px; font-weight: 700; }
.docs-topbar-links { align-items: center; gap: 22px; }
.docs-topbar-links a:not(.btn) { color: var(--docs-muted); font-weight: 600; font-size: 14px; }
.docs-topbar-links a:not(.btn):hover { color: var(--docs-ink); text-decoration: none; }
.docs-menu-toggle { border: 1px solid var(--docs-line); background: transparent; border-radius: 6px; width: 38px; height: 38px; color: var(--docs-ink); }

.docs-shell { display: flex; min-height: calc(100vh - var(--docs-topbar)); }

.docs-sidebar {
    width: 260px; flex: 0 0 260px; padding: 24px 16px 40px 24px; border-right: 1px solid var(--docs-line);
    position: sticky; top: var(--docs-topbar); height: calc(100vh - var(--docs-topbar)); overflow-y: auto; background: var(--docs-bg);
}
.docs-nav-section { margin: 18px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--docs-muted); }
.docs-nav-section:first-child { margin-top: 0; }
.docs-nav { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 6px; color: var(--docs-ink); font-size: 14px; font-weight: 600; }
.docs-nav a:hover { background: var(--docs-soft); text-decoration: none; }
.docs-nav a.active { background: #eef2ff; color: var(--docs-accent); }
.docs-contact { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--docs-line); font-size: 13px; font-weight: 600; }

.docs-main { flex: 1 1 auto; min-width: 0; }
.docs-article-wrap { display: flex; justify-content: center; gap: 40px; padding: 36px 32px 60px; }
.docs-article { flex: 1 1 auto; min-width: 0; max-width: 780px; }
.docs-toc { flex: 0 0 210px; position: sticky; top: calc(var(--docs-topbar) + 36px); align-self: flex-start; max-height: calc(100vh - var(--docs-topbar) - 72px); overflow-y: auto; font-size: 13px; }
.docs-toc-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--docs-muted); margin-bottom: 8px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--docs-line); }
.docs-toc a { display: block; padding: 3px 0 3px 12px; color: var(--docs-muted); }
.docs-toc a:hover { color: var(--docs-ink); text-decoration: none; }
.docs-toc .level-3 a { padding-left: 24px; }

.docs-article-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.docs-article-head h1 { font-size: 2rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.docs-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--docs-accent); margin-bottom: 4px; }
.docs-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.docs-content { font-size: 16px; line-height: 1.7; }
.docs-content h2 { font-size: 1.4rem; font-weight: 800; margin: 2.2rem 0 .8rem; padding-top: .4rem; scroll-margin-top: calc(var(--docs-topbar) + 16px); }
.docs-content h3 { font-size: 1.1rem; font-weight: 800; margin: 1.6rem 0 .6rem; scroll-margin-top: calc(var(--docs-topbar) + 16px); }
.docs-content a { color: var(--docs-accent); }
.docs-content .docs-anchor { margin-left: 8px; opacity: 0; font-weight: 400; text-decoration: none; }
.docs-content h2:hover .docs-anchor, .docs-content h3:hover .docs-anchor { opacity: .6; }
.docs-content code { background: #f1f5f9; color: #b4235b; padding: 1px 6px; border-radius: 4px; font-size: .88em; }
.docs-content pre { background: var(--docs-code-bg); color: var(--docs-code-ink); padding: 16px 18px; border-radius: 8px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; margin: 1rem 0; }
.docs-content pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.docs-content blockquote { border-left: 3px solid var(--docs-accent); margin: 1rem 0; padding: .2rem 1rem; color: var(--docs-muted); }
.docs-table { font-size: 14px; line-height: 1.5; }
.docs-table th { background: var(--docs-soft); border-top: 0; white-space: nowrap; }
.docs-table td, .docs-table th { vertical-align: top; }
.docs-table code { white-space: nowrap; }

.code-tabs { margin: 1rem 0; border-radius: 8px; overflow: hidden; background: var(--docs-code-bg); }
.code-tabs-bar { display: flex; gap: 2px; padding: 6px 8px 0; background: #1e293b; }
.code-tabs-bar button { border: 0; background: transparent; color: #94a3b8; padding: 6px 14px; font-size: 13px; font-weight: 700; border-radius: 6px 6px 0 0; cursor: pointer; }
.code-tabs-bar button.active { background: var(--docs-code-bg); color: #fff; }
.code-tabs pre { display: none; margin: 0; border-radius: 0; }
.code-tabs pre.active { display: block; }

.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--docs-line); }
.docs-pager-link { display: block; border: 1px solid var(--docs-line); border-radius: 8px; padding: 10px 16px; min-width: 180px; font-weight: 700; color: var(--docs-ink); }
.docs-pager-link span { display: block; font-size: 12px; font-weight: 600; color: var(--docs-muted); }
.docs-pager-link:hover { border-color: var(--docs-accent); text-decoration: none; }
.docs-pager-next { text-align: right; margin-left: auto; }

.docs-reference-intro { padding: 28px 32px 8px; max-width: 900px; }
.docs-reference-intro h1 { font-size: 2rem; font-weight: 800; }
.docs-scalar { min-height: 70vh; }
.docs-noscript { padding: 0 32px; }

@media (max-width: 1199px) { .docs-toc { display: none; } }
@media (max-width: 991px) {
    .docs-topbar { padding: 0 16px; }
    .docs-sidebar {
        position: fixed; top: var(--docs-topbar); left: 0; bottom: 0; height: auto; z-index: 25; transform: translateX(-100%);
        transition: transform .2s ease; box-shadow: 4px 0 24px rgba(0, 0, 0, .12);
    }
    .docs-sidebar.open { transform: none; }
    .docs-article-wrap { padding: 24px 16px 48px; }
    .docs-article-head h1 { font-size: 1.6rem; }
    .docs-reference-intro { padding: 20px 16px 8px; }
}

/* Version badge and user menu of the top bar */
.docs-version { margin-left: 8px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--docs-line); color: var(--docs-muted) !important; font-size: 12px; font-weight: 700; }
.docs-version:hover { border-color: var(--docs-accent); color: var(--docs-accent) !important; text-decoration: none; }
.docs-user { position: relative; }
.docs-user summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--docs-muted); }
.docs-user summary::-webkit-details-marker { display: none; }
.docs-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--docs-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.docs-user-menu { position: absolute; right: 0; top: 40px; min-width: 190px; background: #fff; border: 1px solid var(--docs-line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 6px 0; z-index: 40; }
.docs-user-menu a, .docs-user-menu button { display: block; width: 100%; padding: 8px 16px; text-align: left; background: none; border: 0; color: var(--docs-ink) !important; font-size: 14px; font-weight: 500; }
.docs-user-menu a:hover, .docs-user-menu button:hover { background: #f4f6fb; text-decoration: none; }
.docs-cta { margin: 2rem 0; padding: 20px 24px; border: 1px solid var(--docs-line); border-radius: 8px; background: #f8f9ff; }
.docs-cta p { margin-bottom: .75rem; }
@media (max-width: 575px) { .docs-user-name { display: none; } }
