/* ============================
   GitBook/Laravel-style Docs UI
   ============================ */

:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --soft: #f8fafc;
    --border: #e2e8f0;

    --primary: #6d28d9; /* adjust to your brand */
    --primary-2: #7c3aed;

    --radius: 14px;
    --shadow: 0 8px 30px rgba(2, 6, 23, 0.06);

    --sidebar-w: 290px;
    --toc-w: 260px;
    --topbar-h: 64px;

    --font:
        ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
        "Noto Sans", "Liberation Sans", sans-serif;
    --mono:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

html[data-doc-theme="dark"] {
    color-scheme: dark;
    --bg: #08111f;
    --text: #e5edf9;
    --muted: #9fb0c9;
    --soft: #111b2c;
    --border: #223149;
    --primary: #8b5cf6;
    --primary-2: #60a5fa;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}
*,
*::before,
*::after {
    min-width: 0;
}
html,
body {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

body.docs-dark {
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.1), transparent 28%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 24%),
        var(--bg);
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    gap: 12px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.topbar__left,
.topbar__center,
.topbar__right {
    min-width: 0;
}

.topbar__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar__center {
    flex: 1 1 520px;
    display: flex;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.brand__logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 800;
}
.brand__text small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}

.brand__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pill {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    background: var(--soft);
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Search */
.search {
    position: relative;
    width: min(620px, 56vw);
    max-width: 100%;
    min-width: 0;
}
.search input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 110px 12px 44px;
    outline: none;
    background: #fff;
    box-shadow: 0 1px 0 rgba(2, 6, 23, 0.03);
}
.search input:focus {
    border-color: rgba(109, 40, 217, 0.35);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}
.search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--muted);
}
.kbd,
.kbdInline {
    font-family: var(--mono);
    font-size: 11px;
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 7px;
    background: var(--soft);
    color: var(--muted);
}
.kbdInline {
    margin: 0 4px;
}
.kbdPlus {
    color: var(--muted);
    margin: 0 6px;
    font-size: 12px;
}
.search .kbd,
.search .kbdPlus {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.search .kbd:nth-of-type(1) {
    right: 70px;
}
.search .kbdPlus {
    right: 58px;
}
.search .kbd:nth-of-type(2) {
    right: 28px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.btn--ghost {
    background: transparent;
}
.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
    color: #fff;
}
.btn--block {
    width: 100%;
}

.docs-theme-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 68px;
    height: 40px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(248, 250, 252, 0.95);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.docs-theme-toggle:hover {
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.docs-theme-toggle:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.15);
}

.docs-theme-toggle__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    color: var(--muted);
    transition: color 0.2s ease;
}

.docs-theme-toggle__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
    transition: transform 0.22s ease;
}

.docs-theme-toggle[data-theme="dark"] .docs-theme-toggle__thumb {
    transform: translateX(28px);
}

.docs-theme-toggle[data-theme="light"] .docs-theme-toggle__icon--sun,
.docs-theme-toggle[data-theme="dark"] .docs-theme-toggle__icon--moon {
    color: #ffffff;
}

.docs-theme-toggle[data-theme="light"] .docs-theme-toggle__icon--moon,
.docs-theme-toggle[data-theme="dark"] .docs-theme-toggle__icon--sun {
    color: var(--muted);
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns:
        minmax(0, var(--sidebar-w))
        minmax(0, 1fr)
        minmax(0, var(--toc-w));
    min-height: calc(100vh - var(--topbar-h));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.sidebar {
    border-right: 1px solid var(--border);
    padding: 18px;
    position: sticky;
    top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    overflow: auto;
    overflow-x: hidden;
    background: #fff;
    min-width: 0;
}
.sidebar__title {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 14px 0 8px;
}
.sidebar__section {
    margin-bottom: 10px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav__link {
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid transparent;
    overflow-wrap: anywhere;
}
.nav__link:hover {
    background: var(--soft);
    border-color: var(--border);
}
.nav__link.is-active {
    background: rgba(109, 40, 217, 0.08);
    border-color: rgba(109, 40, 217, 0.22);
    color: #2e1065;
}
.nav__link--sub {
    padding-left: 22px;
    font-size: 13px;
    color: var(--muted);
}
.nav__link--sub:hover {
    color: var(--text);
}

.sidebar__footer {
    margin-top: 18px;
}
.supportCard {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--soft);
    overflow-wrap: anywhere;
}
.supportCard__title {
    font-weight: 800;
    margin-bottom: 6px;
}
.supportCard__text {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

/* Main */
.main {
    padding: 24px 22px 40px;
    background: #fff;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}
.content {
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    min-width: 0;
    overflow-x: clip;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}
.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 32px;
    margin: 10px 0 8px;
    letter-spacing: -0.02em;
}
.lead {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 18px;
}

h2 {
    margin-top: 26px;
    padding-top: 10px;
    font-size: 22px;
    letter-spacing: -0.01em;
}
h3 {
    margin-top: 18px;
    font-size: 18px;
}
p {
    line-height: 1.8;
    color: var(--text);
    overflow-wrap: anywhere;
}
a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.card__title {
    font-weight: 800;
    margin-bottom: 10px;
}
.list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    overflow-wrap: anywhere;
}
.steps {
    margin: 0;
    padding-left: 18px;
    overflow-wrap: anywhere;
}
.steps li {
    margin: 8px 0;
}

.flowline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.flowline__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: var(--shadow);
}

.flowline__step {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.flowline__title {
    font-weight: 800;
    margin-bottom: 8px;
}

.flowline__text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.55;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 22px 0;
}

/* Callouts */
.callout {
    border-radius: var(--radius);
    padding: 14px 14px;
    border: 1px solid var(--border);
    margin: 12px 0;
    background: var(--soft);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.callout--note {
    border-left: 5px solid #3b82f6;
}
.callout--tip {
    border-left: 5px solid #22c55e;
}
.callout--warn {
    border-left: 5px solid #f59e0b;
}

/* Code blocks */
/* =========================
   Inline code vs code blocks
   ========================= */

/* Inline code (default) */
:not(pre) > code {
    font-family: var(--mono);
    font-size: 0.92em;
    color: var(--text); /* dark readable text */
    background: var(--soft); /* light chip */
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Code blocks */
pre {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: #0b1220;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: var(--shadow);
    max-width: 100%;
}

/* Code inside pre should be light */
pre code {
    font-family: var(--mono);
    font-size: 13px;
    color: #e5e7eb;
    background: transparent;
    border: 0;
    padding: 0;
    white-space: pre; /* keep formatting */
}

/* IMPORTANT: remove/override the old global rule if it exists */
code {
    font-family: var(--mono);
}
.copyBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
}
.copyBtn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Pager */
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.pager__next,
.pager__prev {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--soft);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* TOC */
.toc {
    border-left: 1px solid var(--border);
    padding: 18px;
    position: sticky;
    top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    overflow: auto;
    overflow-x: hidden;
    background: #fff;
    min-width: 0;
}

img,
iframe,
svg,
table {
    max-width: 100%;
}

table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.supportCard,
.callout,
.media,
.media--window,
.doc-steps,
.media-placeholder {
    max-width: 100%;
    min-width: 0;
}
.toc__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 10px;
}
.toc__list a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid transparent;
    overflow-wrap: anywhere;
}
.toc__list a:hover {
    background: var(--soft);
    border-color: var(--border);
    color: var(--text);
}
.toc__list a.is-active {
    color: #2e1065;
    background: rgba(109, 40, 217, 0.08);
    border-color: rgba(109, 40, 217, 0.22);
}

/* Responsive */
@media (max-width: 1100px) {
    :root {
        --toc-w: 0px;
    }
    .layout {
        grid-template-columns: minmax(0, var(--sidebar-w)) minmax(0, 1fr);
    }
    .toc {
        display: none;
    }
}
@media (max-width: 860px) {
    :root {
        --sidebar-w: 0px;
    }
    .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .grid2 {
        grid-template-columns: 1fr;
    }
    .search {
        width: 100%;
        max-width: 100%;
    }
    .topbar {
        height: auto;
        min-height: var(--topbar-h);
        flex-wrap: wrap;
        align-items: center;
    }
    .topbar__center {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        justify-content: stretch;
    }
    .topbar__right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

/* Print */
@media print {
    .topbar,
    .sidebar,
    .toc,
    .pager,
    .copyBtn {
        display: none !important;
    }
    .main {
        padding: 0;
    }
    pre {
        background: #fff;
        color: #000;
    }
    code {
        color: #000;
    }
}
.muted {
    color: var(--muted);
}
.list li {
    margin: 8px 0;
    line-height: 1.7;
}

.media--window {
    max-width: 450px; /* Half size */
    margin: 30px auto;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.media--window img {
    width: 75%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}

.media--window figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

/* ========================= */
/* Installation Step Panel   */
/* ========================= */

.doc-steps {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.doc-steps__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #111827;
}

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

.doc-steps__list li {
    margin-bottom: 10px;
}

.doc-steps__list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    transition: 0.2s ease;
    overflow-wrap: anywhere;
}

.doc-steps__list a:hover {
    background: #f3f4f6;
    color: #111827;
}

.doc-steps__list span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
}
.doc-heading {
    font-size: 26px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 14px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}
.media {
    max-width: 720px;
    margin: 24px auto;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

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

.media figcaption,
.media__caption {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}
.callout {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}

.callout--note {
    border-left-color: #10b981;
    background: #ecfdf5;
}

.callout--warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.callout--tip {
    border-left-color: #6366f1;
    background: #eef2ff;
}
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin: 20px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.media-plan {
    border-style: dashed;
}

.media-plan__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.media-placeholder {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 16px;
    min-height: 170px;
    overflow-wrap: anywhere;
}

.media-placeholder__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.media-placeholder__title {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.media-placeholder__note {
    margin-top: 8px;
    color: #475569;
    font-size: 13px;
    line-height: 1.65;
}

html[data-doc-theme="dark"] body,
html[data-doc-theme="dark"] .sidebar,
html[data-doc-theme="dark"] .main,
html[data-doc-theme="dark"] .toc {
    background: transparent;
}

html[data-doc-theme="dark"] .topbar {
    border-bottom-color: var(--border);
    background: rgba(8, 17, 31, 0.88);
}

html[data-doc-theme="dark"] .sidebar,
html[data-doc-theme="dark"] .toc {
    border-color: var(--border);
    background: rgba(8, 17, 31, 0.84);
    backdrop-filter: blur(16px);
}

html[data-doc-theme="dark"] .brand,
html[data-doc-theme="dark"] .btn,
html[data-doc-theme="dark"] .nav__link,
html[data-doc-theme="dark"] .toc__list a,
html[data-doc-theme="dark"] .pager__next,
html[data-doc-theme="dark"] .pager__prev,
html[data-doc-theme="dark"] .search input,
html[data-doc-theme="dark"] .supportCard,
html[data-doc-theme="dark"] .card,
html[data-doc-theme="dark"] .flowline__item,
html[data-doc-theme="dark"] .callout,
html[data-doc-theme="dark"] .media,
html[data-doc-theme="dark"] .media--window,
html[data-doc-theme="dark"] .doc-steps,
html[data-doc-theme="dark"] .media-placeholder,
html[data-doc-theme="dark"] .pill {
    color: var(--text);
    border-color: var(--border);
    background: rgba(17, 27, 44, 0.94);
    box-shadow: var(--shadow);
}

html[data-doc-theme="dark"] .btn--ghost {
    background: rgba(17, 27, 44, 0.72);
}

html[data-doc-theme="dark"] .btn--primary,
html[data-doc-theme="dark"] .brand__logo {
    color: #ffffff;
}

html[data-doc-theme="dark"] .search input {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-doc-theme="dark"] .search input:focus {
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html[data-doc-theme="dark"] .search__icon,
html[data-doc-theme="dark"] .brand__text small,
html[data-doc-theme="dark"] .breadcrumbs,
html[data-doc-theme="dark"] .lead,
html[data-doc-theme="dark"] .muted,
html[data-doc-theme="dark"] .supportCard__text,
html[data-doc-theme="dark"] .flowline__step,
html[data-doc-theme="dark"] .media figcaption,
html[data-doc-theme="dark"] .media__caption,
html[data-doc-theme="dark"] .doc-steps__list a,
html[data-doc-theme="dark"] .media-placeholder__note,
html[data-doc-theme="dark"] .kbd,
html[data-doc-theme="dark"] .kbdInline,
html[data-doc-theme="dark"] .kbdPlus {
    color: var(--muted);
}

html[data-doc-theme="dark"] .nav__link:hover,
html[data-doc-theme="dark"] .toc__list a:hover,
html[data-doc-theme="dark"] .doc-steps__list a:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.18);
}

html[data-doc-theme="dark"] .nav__link.is-active,
html[data-doc-theme="dark"] .toc__list a.is-active {
    color: #d8c7ff;
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.26);
}

html[data-doc-theme="dark"] .nav__link--sub {
    color: var(--muted);
}

html[data-doc-theme="dark"] .divider,
html[data-doc-theme="dark"] .doc-heading,
html[data-doc-theme="dark"] .topbar,
html[data-doc-theme="dark"] .sidebar,
html[data-doc-theme="dark"] .toc {
    border-color: var(--border);
}

html[data-doc-theme="dark"] :not(pre) > code {
    background: rgba(17, 27, 44, 0.92);
    border-color: var(--border);
    color: #dbe7ff;
}

html[data-doc-theme="dark"] pre {
    border-color: rgba(148, 163, 184, 0.16);
    background: #050c18;
}

html[data-doc-theme="dark"] .copyBtn {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.08);
}

html[data-doc-theme="dark"] .callout {
    background: rgba(17, 27, 44, 0.92);
}

html[data-doc-theme="dark"] .callout--note {
    border-left-color: #10b981;
}

html[data-doc-theme="dark"] .callout--tip {
    border-left-color: #6366f1;
}

html[data-doc-theme="dark"] .callout--warn,
html[data-doc-theme="dark"] .callout--warning {
    border-left-color: #f59e0b;
}

html[data-doc-theme="dark"] .media--window,
html[data-doc-theme="dark"] .media,
html[data-doc-theme="dark"] .doc-steps,
html[data-doc-theme="dark"] .card {
    background: linear-gradient(180deg, rgba(17, 27, 44, 0.98), rgba(10, 18, 31, 0.96));
}

html[data-doc-theme="dark"] .media-placeholder {
    background: linear-gradient(180deg, rgba(17, 27, 44, 0.98), rgba(8, 17, 31, 0.96));
    border-color: rgba(148, 163, 184, 0.22);
}

html[data-doc-theme="dark"] .media-placeholder__eyebrow,
html[data-doc-theme="dark"] .doc-steps__list span {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

html[data-doc-theme="dark"] .media-placeholder__title,
html[data-doc-theme="dark"] .doc-heading,
html[data-doc-theme="dark"] .doc-steps__title {
    color: var(--text);
}

html[data-doc-theme="dark"] .docs-theme-toggle {
    background: rgba(17, 27, 44, 0.92);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}
