:root {
    color-scheme: light;
    --docs-bg: #f5f7fa;
    --docs-surface: #ffffff;
    --docs-surface-soft: #f7f9fc;
    --docs-text: #1d2735;
    --docs-text-soft: #5b697a;
    --docs-text-muted: #667689;
    --docs-border: rgba(29, 39, 53, 0.08);
    --docs-border-strong: rgba(29, 39, 53, 0.12);
    --docs-shadow: 0 10px 28px rgba(29, 39, 53, 0.05);
    --docs-link: #184d9c;
    --docs-link-soft: #517197;
    --docs-hover-bg: rgba(50, 115, 220, 0.08);
    --docs-code-bg: rgba(29, 39, 53, 0.06);
    --docs-header-bg: rgba(245, 247, 250, 0.96);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --docs-bg: #11161d;
    --docs-surface: #18202b;
    --docs-surface-soft: #202a37;
    --docs-text: #e7edf5;
    --docs-text-soft: #b2c0d0;
    --docs-text-muted: #91a0b2;
    --docs-border: rgba(231, 237, 245, 0.1);
    --docs-border-strong: rgba(231, 237, 245, 0.18);
    --docs-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    --docs-link: #88b7ff;
    --docs-link-soft: #9fc0f0;
    --docs-hover-bg: rgba(136, 183, 255, 0.14);
    --docs-code-bg: rgba(231, 237, 245, 0.08);
    --docs-header-bg: rgba(17, 22, 29, 0.94);
}

.docs-shell {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", sans-serif;
    color: var(--docs-text);
    background: var(--docs-bg);
}

.docs-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--docs-header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--docs-border);
}

.docs-header__inner,
.docs-main__inner {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
}

.docs-header__inner {
    padding: 1rem 0 0.85rem;
}

.docs-main {
    padding: 1.5rem 0 3rem;
}

.docs-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.docs-search {
    flex: 1 1 auto;
}

.docs-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.docs-logo img {
    display: block;
    width: 208px;
    max-width: 100%;
    height: auto;
}

.docs-brand__tagline,
.docs-pagehead .subtitle,
.docs-panel .content p,
.docs-card p,
.docs-linkCard span,
.docs-linkCard small,
.docs-articleSection .content,
.docs-intro .content {
    font-family: "Source Serif 4", serif;
}

.docs-shell .title,
.docs-shell .content h1,
.docs-shell .content h2,
.docs-shell .content h3,
.docs-shell .content h4,
.docs-shell .content h5,
.docs-shell .content h6,
.docs-linkCard strong,
.docs-pager__link strong,
.docs-sidebar__title,
.docs-sidebar__groupLink,
.docs-shell .menu-label {
    font-family: "Source Serif 4", serif;
}

.docs-brand__tagline {
    margin: 0;
    color: var(--docs-text-soft);
    font-size: 0.98rem;
}

.docs-search__field {
    margin-bottom: 0;
}

.docs-topnav {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.docs-topnav.tabs a {
    font-weight: 600;
}

.docs-themeToggle {
    flex: 0 0 auto;
}

.docs-sidebar {
    position: sticky;
    top: 8.5rem;
    align-self: start;
}

.docs-sidebar__panel,
.docs-themeToggle {
    border-radius: 18px;
    box-shadow: var(--docs-shadow);
}

.docs-sidebar__title {
    margin: 0 0 0.85rem;
    color: var(--docs-text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.docs-sidebar__group + .docs-sidebar__group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--docs-border);
}

.docs-sidebar__groupLink {
    color: var(--docs-text);
    font-weight: 700;
}

.docs-sidebar__item {
    border-radius: 10px;
    color: var(--docs-text-soft);
    line-height: 1.45;
}

.docs-sidebar__item.is-active,
.docs-sidebar__item:hover {
    background: var(--docs-hover-bg);
    color: var(--docs-link);
}

.docs-content {
    min-width: 0;
}

.docs-pagehead {
    margin-bottom: 1.2rem;
    padding: 0;
}

.docs-pagehead .title {
    line-height: 1.08;
}

.docs-pagehead .subtitle {
    max-width: none;
    color: var(--docs-text-soft);
    line-height: 1.65;
}

.docs-intro__meta {
    margin-bottom: 0.75rem;
}

.docs-intro,
.docs-panel,
.docs-card,
.docs-linkCard,
.docs-pager__link {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.docs-card a,
.docs-panel a,
.docs-linkCard,
.docs-breadcrumbs a {
    color: var(--docs-link);
}

.docs-card__content,
.docs-linkCard__content {
    padding: 0;
}

.docs-card__meta {
    margin-top: 0.9rem;
    color: var(--docs-text-muted);
    font-size: 0.9rem;
}

.docs-linkList {
    display: grid;
    gap: 0.85rem;
}

.docs-linkCard {
    display: block;
    text-decoration: none;
}

.docs-linkCard + .docs-linkCard {
    padding-top: 0.85rem;
    border-top: 1px solid var(--docs-border);
}

.docs-linkCard strong,
.docs-pager__link strong {
    display: block;
    font-size: 1rem;
}

.docs-linkCard span,
.docs-linkCard small {
    display: block;
    margin-top: 0.35rem;
    color: var(--docs-text-soft);
    line-height: 1.6;
}

.docs-miniList,
.docs-bulletList {
    margin-top: 0.9rem;
}

.docs-miniList li,
.docs-bulletList li {
    margin-bottom: 0.45rem;
}

.docs-breadcrumbs {
    margin-bottom: 0.9rem;
}

.docs-metaRow {
    margin-bottom: 1rem;
}

.docs-articleBody {
    margin-bottom: 1.5rem;
}

.docs-articleSection {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.docs-articleSection + .docs-articleSection {
    margin-top: 1.75rem;
    padding-top: 0;
    border-top: 0;
}

.docs-articleSection__content {
    color: var(--docs-text);
    line-height: 1.75;
}

.docs-articleSection__content h2 {
    margin-bottom: 0.85rem;
}

.docs-articleSection__content p:last-child,
.docs-articleSection__content ul:last-child {
    margin-bottom: 0;
}

.docs-pager {
    margin-top: 1.2rem;
}

.docs-pager__link {
    display: block;
    min-height: 100%;
    text-decoration: none;
}

.docs-pager .column:last-child .docs-pager__link {
    text-align: right;
}

.docs-pager__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--docs-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.is-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

code {
    border-radius: 0.4rem;
    background: var(--docs-code-bg);
    padding: 0.12rem 0.34rem;
    color: var(--docs-link);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}

.docs-shell .box,
.docs-shell .card {
    background: var(--docs-surface);
    color: var(--docs-text);
    border: 1px solid var(--docs-border);
}

.docs-content .box,
.docs-content .card {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.docs-shell .input,
.docs-shell .textarea,
.docs-shell .select select {
    background: var(--docs-surface);
    border-color: var(--docs-border-strong);
    color: var(--docs-text);
    box-shadow: none;
}

.docs-shell .input::placeholder,
.docs-shell .textarea::placeholder {
    color: var(--docs-text-muted);
}

.docs-shell .label,
.docs-shell .title,
.docs-shell .subtitle,
.docs-shell .content h1,
.docs-shell .content h2,
.docs-shell .content h3,
.docs-shell .content h4,
.docs-shell .content strong,
.docs-shell .menu-label,
.docs-shell .breadcrumb a,
.docs-shell .tabs a {
    color: var(--docs-text);
}

.docs-shell .content,
.docs-shell .content p,
.docs-shell .content li,
.docs-shell .notification,
.docs-shell .tag.is-light,
.docs-shell .menu-list a,
.docs-shell .tabs li a {
    color: var(--docs-text-soft);
}

.docs-shell .notification.is-light {
    background: var(--docs-surface-soft);
    border: 1px solid var(--docs-border);
}

.docs-shell .tags {
    gap: 0.55rem;
}

.docs-shell .tag {
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--docs-border);
    background: var(--docs-surface-soft);
    color: var(--docs-text-soft);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.docs-shell .tag.is-light {
    background: var(--docs-surface-soft);
}

.docs-shell .tag.is-link {
    background: rgba(24, 77, 156, 0.1);
    border-color: rgba(24, 77, 156, 0.16);
    color: var(--docs-link);
}

.docs-shell .button.is-light {
    background: var(--docs-surface-soft);
    color: var(--docs-text);
    border: 1px solid var(--docs-border);
}

.docs-shell .tabs.is-toggle a {
    background: var(--docs-surface);
    border-color: var(--docs-border-strong);
}

.docs-shell .tabs.is-toggle li.is-active a {
    background: var(--docs-link);
    border-color: var(--docs-link);
    color: #ffffff;
}

@media (max-width: 1023px) {
    .docs-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .docs-header__inner,
    .docs-main__inner {
        width: min(100%, calc(100% - 1.25rem));
    }

    .docs-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .docs-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-topnav.tabs ul {
        flex-wrap: wrap;
    }
}
