@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root,
html[data-theme="light"] {
    --docs-header-height: 64px;
    --docs-bg: #ffffff;
    --docs-surface: #ffffff;
    --docs-sidebar-bg: #fafafa;
    --docs-line: #e5e7eb;
    --docs-line-strong: #d1d5db;
    --docs-ink: #111827;
    --docs-muted: #6b7280;
    --docs-link: #2563eb;
    --docs-link-hover: #1d4ed8;
    --docs-nav-heading: #4b5563;
    --docs-nav-link: #374151;
    --docs-nav-hover: #f3f4f6;
    --docs-nav-active: #e5e7eb;
    --docs-code-bg: #f9fafb;
    --docs-code-border: #e5e7eb;
    --docs-code-ink: #111827;
    --docs-pre-bg: #111827;
    --docs-pre-ink: #f9fafb;
    --docs-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
    --docs-scrollbar-track: #f3f4f6;
    --docs-scrollbar-thumb: #c7ced8;
    --docs-scrollbar-thumb-hover: #9ca3af;
}

html[data-theme="dark"] {
    --docs-bg: #111315;
    --docs-surface: #111315;
    --docs-sidebar-bg: #15181c;
    --docs-line: #2a2f36;
    --docs-line-strong: #3a4049;
    --docs-ink: #f3f4f6;
    --docs-muted: #a1a1aa;
    --docs-link: #93c5fd;
    --docs-link-hover: #bfdbfe;
    --docs-nav-heading: #d4d4d8;
    --docs-nav-link: #d4d4d8;
    --docs-nav-hover: #1f242a;
    --docs-nav-active: #232931;
    --docs-code-bg: #181c22;
    --docs-code-border: #313742;
    --docs-code-ink: #f3f4f6;
    --docs-pre-bg: #0b0d11;
    --docs-pre-ink: #f5f5f5;
    --docs-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    --docs-scrollbar-track: #171b20;
    --docs-scrollbar-thumb: #3e4651;
    --docs-scrollbar-thumb-hover: #596272;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--docs-scrollbar-thumb) var(--docs-scrollbar-track);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--docs-scrollbar-thumb) var(--docs-scrollbar-track);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--docs-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    border: 2px solid var(--docs-scrollbar-track);
    border-radius: 999px;
    background: var(--docs-scrollbar-thumb);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--docs-scrollbar-thumb-hover);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--docs-ink);
    background: var(--docs-bg);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
}

code,
pre {
    font-family: "Consolas", "Courier New", monospace;
}

.docs-globalbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 280px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    height: 64px;
    padding: 0 24px;
    border-bottom: 1px solid var(--docs-line);
    background: var(--docs-surface);
}

.docs-globalbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.docs-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.docs-logo {
    display: block;
    width: 124px;
    height: auto;
}

html[data-theme="dark"] .docs-logo {
    filter: brightness(0) invert(1);
}

.docs-globalbar-search {
    width: 100%;
    max-width: 640px;
    justify-self: end;
}

.docs-globalbar-search input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--docs-line-strong);
    border-radius: 6px;
    color: var(--docs-ink);
    background: var(--docs-surface);
    font: inherit;
    box-shadow: var(--docs-shadow);
}

.docs-globalbar-search input::placeholder {
    color: var(--docs-muted);
}

.docs-globalbar-search input:focus {
    outline: none;
    border-color: var(--docs-line-strong);
}

.docs-globalbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.docs-globalnav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.docs-globalnav-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--docs-muted);
    font-size: 0.84rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.docs-globalnav-link:hover {
    background: var(--docs-nav-hover);
}

.docs-globalnav-link.is-active {
    color: var(--docs-ink);
    background: var(--docs-nav-hover);
    font-weight: 700;
}

.docs-globalnav-link.is-disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.docs-globalnav-link.is-disabled:hover {
    background: transparent;
}

.docs-theme-switch {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--docs-line);
    border-radius: 7px;
    background: var(--docs-surface);
}

.docs-theme-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    color: var(--docs-muted);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.docs-theme-button.is-active {
    color: var(--docs-ink);
    background: var(--docs-nav-hover);
}

.docs-theme-icon {
    width: 16px;
    height: 16px;
}

.docs-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    padding: 0;
    border: 1px solid var(--docs-line);
    border-radius: 6px;
    color: var(--docs-ink);
    background: var(--docs-surface);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.docs-nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 16px;
}

.docs-nav-toggle-icon span {
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
}

.docs-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - var(--docs-header-height));
}

.docs-sidebar {
    position: sticky;
    top: var(--docs-header-height);
    height: calc(100vh - var(--docs-header-height));
    overflow-y: auto;
    padding: 18px 12px 28px;
    border-right: 1px solid var(--docs-line);
    background: var(--docs-sidebar-bg);
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.docs-nav-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-nav-section-label {
    margin: 0;
    padding: 0 10px;
    color: var(--docs-nav-heading);
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.docs-nav-section-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-nav-group {
    margin: 0;
}

.docs-nav-group summary::-webkit-details-marker {
    display: none;
}

.docs-nav-group-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    color: var(--docs-nav-heading);
    list-style: none;
    font-size: 0.83rem;
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}

.docs-nav-group-label {
    flex: 1 1 auto;
    min-width: 0;
}

.docs-nav-group-level-1 > .docs-nav-group-summary,
.docs-nav-group-level-2 > .docs-nav-group-summary {
    color: var(--docs-ink);
}

.docs-nav-group-level-1 > .docs-nav-group-summary {
    padding-left: 10px;
    font-weight: 500;
}

.docs-nav-group-level-2 > .docs-nav-group-summary {
    padding-left: 22px;
    color: var(--docs-ink);
    font-weight: 500;
}

.docs-nav-group-level-3 > .docs-nav-group-summary {
    padding-left: 34px;
    color: var(--docs-ink);
    font-weight: 500;
}

.docs-nav-chevron {
    width: 8px;
    height: 8px;
    margin-top: -1px;
    border-right: 1.5px solid var(--docs-muted);
    border-bottom: 1.5px solid var(--docs-muted);
    transform: rotate(-45deg);
    transition: transform 0.16s ease;
    flex: 0 0 auto;
}

.docs-nav-group-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.docs-nav-group[open] > .docs-nav-group-summary .docs-nav-chevron {
    transform: rotate(45deg);
}

.docs-nav-group-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 1px;
}

.docs-nav-link {
    display: block;
    padding: 7px 10px;
    color: var(--docs-nav-link);
    border-radius: 6px;
    font-size: 0.83rem;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
}

.docs-nav-link-level-1 {
    padding-left: 10px;
    font-weight: 500;
}

.docs-nav-link-level-2 {
    padding-left: 22px;
}

.docs-nav-link-level-3 {
    padding-left: 34px;
}

.docs-nav-link:hover {
    background: var(--docs-nav-hover);
}

.docs-nav-link.is-active {
    color: var(--docs-ink);
    background: var(--docs-nav-active);
    font-weight: 700;
}

.docs-main {
    min-width: 0;
    background: var(--docs-bg);
}

.docs-content,
.docs-search-view {
    width: 100%;
    padding: 30px 40px 56px;
}

.docs-article,
.docs-search-view {
    max-width: none;
}

.docs-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
    gap: 0;
}

.docs-page-layout.is-full-width {
    grid-template-columns: minmax(0, 1fr);
}

.docs-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.docs-breadcrumbs a {
    color: var(--docs-muted);
    font-size: 0.83rem;
    text-decoration: none;
}

.docs-breadcrumbs a:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: var(--docs-line-strong);
}

.docs-eyebrow,
.docs-neighbor-label,
.docs-search-result-meta {
    display: block;
    color: var(--docs-muted);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.docs-article-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--docs-line);
}

.docs-article {
    min-width: 0;
    padding-right: 36px;
}

.docs-article h1,
.docs-search-view h1 {
    margin: 8px 0 10px;
    color: var(--docs-ink);
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.docs-lede {
    max-width: 76ch;
    margin: 0;
    color: var(--docs-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.docs-updated {
    margin: 12px 0 0;
    color: var(--docs-muted);
    font-size: 0.82rem;
}

.docs-inline-alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid var(--docs-line);
    border-radius: 6px;
    background: var(--docs-surface);
}

.docs-inline-alert p {
    margin-bottom: 0;
}

.docs-article-body {
    color: var(--docs-ink);
    font-size: 0.92rem;
    line-height: 1.56;
}

.docs-article-body h2,
.docs-article-body h3 {
    color: var(--docs-ink);
    line-height: 1.18;
    letter-spacing: -0.01em;
    scroll-margin-top: calc(var(--docs-header-height) + 28px);
}

.docs-article-body h2 {
    margin: 2.25rem 0 0.75rem;
    font-size: 1.16rem;
}

.docs-article-body h3 {
    margin: 1.65rem 0 0.55rem;
    font-size: 0.96rem;
}

.docs-article-body p,
.docs-article-body ul,
.docs-article-body ol,
.docs-article-body pre {
    margin: 0 0 0.95rem;
}

.docs-article-body ul,
.docs-article-body ol {
    padding-left: 1.25rem;
}

.docs-article-body li + li {
    margin-top: 0.28rem;
}

.docs-article-body a {
    color: var(--docs-link);
    font-weight: 500;
    text-decoration: none;
}

.docs-article-body a:hover {
    color: var(--docs-link-hover);
    text-decoration: underline;
}

.docs-article-body code {
    padding: 0.12rem 0.32rem;
    border: 1px solid var(--docs-code-border);
    border-radius: 5px;
    color: var(--docs-code-ink);
    background: var(--docs-code-bg);
    font-size: 0.93em;
}

.docs-article-body pre {
    overflow-x: auto;
    padding: 16px 18px;
    border: 1px solid var(--docs-code-border);
    border-radius: 6px;
    color: var(--docs-pre-ink);
    background: var(--docs-pre-bg);
}

.docs-article-body pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.docs-neighbor-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--docs-line);
}

.docs-neighbor-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(44%, 320px);
    color: var(--docs-ink);
    text-decoration: none;
}

.docs-neighbor-link.is-next {
    margin-left: auto;
    text-align: right;
}

.docs-neighbor-link:hover {
    color: var(--docs-link);
}

.docs-neighbor-arrow {
    flex: 0 0 auto;
    color: var(--docs-muted);
    font-size: 1rem;
    line-height: 1;
}

.docs-neighbor-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.docs-neighbor-copy strong {
    font-size: 0.9rem;
    line-height: 1.35;
}

.docs-search-results {
    display: grid;
    gap: 0;
    margin-top: 24px;
    border-top: 1px solid var(--docs-line);
}

.docs-search-result {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
    border-bottom: 1px solid var(--docs-line);
    text-decoration: none;
}

.docs-search-result:hover strong {
    color: var(--docs-link);
}

.docs-search-result span:last-child {
    color: var(--docs-muted);
    font-size: 0.88rem;
}

.docs-page-toc {
    position: sticky;
    top: calc(var(--docs-header-height) + 24px);
    align-self: start;
    min-width: 0;
    padding-left: 24px;
    border-left: 1px solid var(--docs-line);
}

.docs-page-toc-inner {
    padding-top: 2px;
}

.docs-page-toc-title {
    margin: 0 0 10px;
    color: var(--docs-ink);
    font-size: 0.81rem;
    font-weight: 600;
    line-height: 1.3;
}

.docs-page-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-page-toc-link {
    display: block;
    color: var(--docs-muted);
    font-size: 0.81rem;
    line-height: 1.35;
    text-decoration: none;
}

.docs-page-toc-link:hover {
    color: var(--docs-ink);
}

.docs-page-toc-link.is-active {
    color: var(--docs-ink);
    font-weight: 600;
}

.docs-page-toc-link-level-3 {
    padding-left: 12px;
}

@media (max-width: 980px) {
    .docs-globalbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "menu logo actions"
            "nav nav nav"
            "search search search";
        gap: 12px;
        height: auto;
        padding: 12px 16px;
    }

    .docs-globalbar-brand {
        display: contents;
    }

    .docs-nav-toggle {
        display: inline-flex;
        grid-area: menu;
        justify-self: start;
    }

    .docs-logo-link {
        grid-area: logo;
        justify-self: center;
    }

    .docs-globalbar-actions {
        grid-area: actions;
        justify-content: flex-end;
        justify-self: end;
        gap: 10px;
    }

    .docs-globalnav {
        grid-area: nav;
        display: flex;
        gap: 8px;
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .docs-globalnav-link {
        flex: 0 0 auto;
    }

    .docs-globalbar-search {
        grid-area: search;
        max-width: none;
        justify-self: stretch;
    }

    .docs-shell {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: fixed;
        top: var(--docs-header-height);
        bottom: 0;
        left: 0;
        z-index: 25;
        width: min(88vw, 300px);
        height: auto;
        transform: translateX(-104%);
        transition: transform 0.18s ease;
    }

    body.docs-nav-open .docs-sidebar {
        transform: translateX(0);
    }

    body.docs-nav-open::before {
        content: "";
        position: fixed;
        inset: var(--docs-header-height) 0 0 0;
        z-index: 24;
        background: rgba(17, 24, 39, 0.18);
    }

    .docs-content,
    .docs-search-view {
        padding: 24px 20px 40px;
    }

    .docs-page-layout,
    .docs-page-layout.is-full-width {
        grid-template-columns: minmax(0, 1fr);
    }

    .docs-article {
        padding-right: 0;
    }

    .docs-page-toc {
        display: none;
    }

    .docs-neighbor-nav {
        flex-wrap: wrap;
    }

    .docs-neighbor-link,
    .docs-neighbor-link.is-next {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 720px) {
    .docs-globalbar {
        gap: 10px;
        padding: 10px 14px 12px;
    }

    .docs-logo {
        width: 114px;
    }

    .docs-globalnav-link {
        height: 34px;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .docs-globalbar-search {
        max-width: none;
        justify-self: stretch;
    }

    .docs-globalbar-search input {
        height: 38px;
    }
}
