:root {
    --doc-bg: #ffffff;
    --doc-surface: #f9fafb;
    --doc-surface-soft: #f3f4f6;
    --doc-border: #e5e7eb;
    --doc-border-strong: #d1d5db;
    --doc-text: #111827;
    --doc-text-soft: #4b5563;
    --doc-text-muted: #6b7280;
    --doc-accent: #111827;
    --doc-accent-soft: #eef2ff;
    --doc-code-bg: #f3f4f6;
    --doc-code-border: #f3f4f6;
    --doc-code-text: #2a2dbd;
    --doc-code-inline-bg: #f3f4f6;
    --doc-code-inline-border: #e5e7eb;
    --doc-code-button-bg: #0b7bd6;
    --doc-code-button-border: #334155;
    --doc-code-button-text: #e5e7eb;
    --doc-code-button-hover-bg: #1f2937;
    --doc-code-button-hover-border: #475569;
    --doc-code-button-success-bg: #064e3b;
    --doc-code-button-success-border: #065f46;
    --doc-code-button-success-text: #d1fae5;
    --doc-radius-sm: 0.5rem;
    --doc-radius-md: 0.75rem;
    --doc-radius-lg: 1rem;
    --doc-shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
    --doc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --doc-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --doc-content-width: 820px;
    --doc-line-height: 1.7;
    --doc-line-height-tight: 1.25;
    --doc-space-1: 0.25rem;
    --doc-space-2: 0.5rem;
    --doc-space-3: 0.75rem;
    --doc-space-4: 1rem;
    --doc-space-5: 1.5rem;
    --doc-space-6: 2rem;
    --doc-space-7: 3rem;
    --doc-space-8: 4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--doc-bg);
    color: var(--doc-text);
    font-family: var(--doc-font-body);
    font-size: 16px;
    line-height: var(--doc-line-height);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

table {
    border-collapse: collapse;
    width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--doc-border);
    backdrop-filter: blur(8px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--doc-space-4);
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--doc-space-4) var(--doc-space-5);
}

.site-brand {
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.site-header-tagline {
    margin: 0;
    color: var(--doc-text-muted);
    font-size: 0.95rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 260px minmax(600px, 1fr) 220px;
    grid-template-areas: "left-sidebar main right-sidebar";
    gap: var(--doc-space-6);
    padding: var(--doc-space-5);
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
}

.sidebar-left {
    grid-area: left-sidebar;
    position: sticky;
    top: calc(72px + var(--doc-space-4));
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    min-width: 0;
}

.sidebar-nav-shell {
    position: relative;
}

.sidebar-toggle {
    display: none;
    width: 100%;
    margin: 0 0 var(--doc-space-4);
    padding: 0.85rem 1rem;
    border: 1px solid var(--doc-border-strong);
    border-radius: var(--doc-radius-md);
    background: var(--doc-bg);
    text-align: left;
    cursor: pointer;
    box-shadow: var(--doc-shadow-sm);
}

.docs-nav {
    display: block;
}

.docs-nav-inner {
    padding: 0 0.125rem;
}

.docs-nav-label {
    margin: 0 0 var(--doc-space-4);
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--doc-text-muted);
}

.docs-nav-list,
.docs-subnav-list,
.toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-nav-list,
.docs-subnav-list,
.docs-nav-item,
.docs-subnav-item,
.docs-nav-details {
    min-width: 0;
}

.docs-nav-item + .docs-nav-item {
    margin-top: 0.375rem;
}

.docs-nav-group {
    margin-top: 0.75rem;
}

.docs-nav-details {
    display: block;
}

.docs-nav-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: calc(100% - 0.5rem);
    max-width: calc(100% - 0.5rem);
    margin: 0.125rem auto;
    box-sizing: border-box;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 0.75rem;
    list-style: none;
    line-height: 1.55;
    overflow: visible;
}

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

.docs-nav-summary::after {
    content: "›";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.25rem;
    order: 2;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    margin-left: auto;
    border: 1px solid var(--doc-border);
    border-radius: 999px;
    background: var(--doc-surface);
    box-shadow: var(--doc-shadow-sm);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    color: var(--doc-text-muted);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.docs-nav-details:not([open]) .docs-nav-summary::after {
    transform: rotate(0deg);
}

.docs-nav-link {
    display: block;
    width: calc(100% - 0.5rem);
    max-width: calc(100% - 0.5rem);
    margin-inline: auto;
    box-sizing: border-box;
    padding: 0.45rem 0.75rem;
    border-radius: 0.625rem;
    text-decoration: none;
    line-height: 1.5;
    color: inherit;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.docs-nav-summary-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding-top: 0.25rem;
    padding-right: 0.35rem;
    padding-bottom: 0.3rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.docs-nav-overview-link {
    font-size: 0.94rem;
}

.docs-nav-link:hover,
.docs-nav-summary:hover {
    background: var(--doc-surface-soft);
}

.docs-nav-summary:hover::after,
.docs-nav-summary:focus-within::after {
    border-color: var(--doc-accent);
    color: var(--doc-accent);
    background: var(--doc-accent-soft);
}

.docs-nav-link:focus,
.docs-nav-summary:focus,
.toc-link:focus,
.scroll-to-top:focus,
.sidebar-toggle:focus {
    outline: 2px solid var(--doc-text);
    outline-offset: 2px;
}

.docs-nav-link.is-active {
    font-weight: 600;
    background: var(--doc-accent-soft);
}

.docs-nav-details[open] > .docs-nav-summary {
    background: var(--doc-surface-soft);
}

.docs-nav-details[open] > .docs-nav-summary::after {
    transform: rotate(90deg);
    color: var(--doc-text);
    border-color: color-mix(in srgb, var(--doc-accent) 35%, var(--doc-border));
    background: color-mix(in srgb, var(--doc-accent-soft) 75%, var(--doc-surface) 25%);
}

.docs-nav-summary::after {
    align-self: center;
}

.docs-nav-item.is-active > .docs-nav-link,
.docs-subnav-item.is-active > .docs-nav-link {
    font-weight: 700;
}

.docs-nav-item.is-active-branch > .docs-nav-details > .docs-nav-summary > .docs-nav-summary-label,
.docs-subnav-item.is-active-branch > .docs-nav-details > .docs-nav-summary > .docs-nav-summary-label {
    color: var(--doc-text);
}

.docs-nav-empty {
    margin: 0;
    padding: 0.45rem 0.75rem;
    color: var(--doc-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.docs-subnav-list {
    margin-top: 0.4rem;
    margin-left: 0.375rem;
    padding-left: 0.625rem;
    border-left: 1px solid var(--doc-border);
}

.docs-subnav-list-nested {
    margin-top: 0.25rem;
    margin-left: 0;
}

.docs-nav-details-nested > .docs-nav-summary {
    margin-bottom: 0.2rem;
}

.docs-nav-summary-label + * {
    pointer-events: none;
}

.docs-subnav-list.is-active-branch {
    border-left-color: var(--doc-accent);
}

.docs-nav-item.is-active > .docs-nav-details > .docs-nav-summary,
.docs-subnav-item.is-active > .docs-nav-details > .docs-nav-summary {
    background: var(--doc-accent-soft);
    padding-top: 0.25rem;
    padding-bottom: 0.375rem;
}

.docs-nav-item.is-active > .docs-nav-details > .docs-nav-summary,
.docs-subnav-item.is-active > .docs-nav-details > .docs-nav-summary,
.docs-nav-link.is-active {
    width: calc(100% - 0.5rem);
    max-width: calc(100% - 0.5rem);
    margin-inline: auto;
}

.docs-subnav-item + .docs-subnav-item {
    margin-top: 0.25rem;
}

.docs-subnav-item .docs-nav-link {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 0.95rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    position: static;
    display: inline-block;
    margin-bottom: var(--doc-space-4);
    padding: 0.5rem 0.75rem;
    background: var(--doc-text);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--doc-radius-sm);
}

.doc-content {
    grid-area: main;
    min-width: 0;
    max-width: 900px;
}

.doc-article {
    margin-bottom: var(--doc-space-1);
}

.doc-article-header {
    margin-bottom: var(--doc-space-4);
}

.doc-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.doc-entry {
    max-width: var(--doc-content-width);
    color: var(--doc-text);
}

.doc-entry > :first-child {
    margin-top: 0;
}

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

.doc-entry h2,
.doc-entry h3,
.doc-entry h4,
.doc-entry h5,
.doc-entry h6 {
    margin-top: var(--doc-space-5);
    margin-bottom: var(--doc-space-3);
    line-height: var(--doc-line-height-tight);
    letter-spacing: -0.01em;
    scroll-margin-top: 6rem;
}

.doc-entry h2 {
    font-size: 1.75rem;
}

.doc-entry h3 {
    font-size: 1.35rem;
}

.doc-entry h4 {
    font-size: 1.125rem;
}

.doc-entry p,
.doc-entry ul,
.doc-entry ol,
.doc-entry blockquote,
.doc-entry table,
.doc-entry pre,
.doc-entry figure {
    margin-top: 0;
    margin-bottom: var(--doc-space-3);
	max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.doc-entry ul,
.doc-entry ol {
    padding-left: 1.25rem;
}

.doc-entry li + li {
    margin-top: var(--doc-space-2);
}

.doc-entry hr {
    margin: var(--doc-space-7) 0;
    border: 0;
    border-top: 1px solid var(--doc-border);
}

.doc-entry a {
    color: var(--doc-text);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.doc-entry a:hover {
    color: var(--doc-text-soft);
}

.doc-entry code {
    font-family: var(--doc-font-mono);
    font-size: 0.925em;
}

.doc-entry :not(pre) > code {
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--doc-code-inline-border);
    border-radius: 0.4rem;
    background: var(--doc-code-inline-bg);
    white-space: normal;
}

.doc-entry pre {
    position: relative;
    overflow-x: auto;
    padding: 1.25rem 1.4rem;
	border: 1px solid var(--doc-code-border);
    border-radius: var(--doc-radius-md);
    background: var(--doc-code-bg);
    color: var(--doc-code-text);
	box-shadow: var(--doc-shadow-sm);
}

.doc-entry h2 + pre,
.doc-entry h3 + pre,
.doc-entry h4 + pre,
.doc-entry h5 + pre,
.doc-entry h6 + pre {
    margin-top: 0.8rem;
}

.doc-entry pre.has-copy-button {
    padding-top: 2.9rem;
}

.doc-entry pre code {
    display: block;
    min-width: max-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre;
}

.code-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--doc-code-button-border);
    border-radius: 0.4rem;
    background: var(--doc-code-button-bg);
    color: var(--doc-code-button-text);
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.code-copy-btn:hover,
.code-copy-btn:focus {
    background: var(--doc-code-button-hover-bg);
    border-color: var(--doc-code-button-hover-border);
    outline: none;
}

.code-copy-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
}

.code-copy-btn.is-copied {
    background: var(--doc-code-button-success-bg);
    border-color: var(--doc-code-button-success-border);
    color: var(--doc-code-button-success-text);
}

.doc-entry table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--doc-border);
    border-radius: var(--doc-radius-md);
    overflow: hidden;
    background: var(--doc-bg);
    box-shadow: var(--doc-shadow-sm);
}

.doc-entry thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.doc-entry th,
.doc-entry td {
    padding: 0.875rem 1rem;
    border-right: 1px solid var(--doc-border);
    border-bottom: 1px solid var(--doc-border);
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.doc-entry th {
    background: var(--doc-surface);
    font-weight: 600;
}

.doc-entry td {
    background: var(--doc-bg);
}

.doc-entry tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--doc-surface) 70%, var(--doc-bg) 30%);
}

.doc-entry tbody tr:hover td {
    background: color-mix(in srgb, var(--doc-accent-soft) 55%, var(--doc-bg) 45%);
}

.doc-entry th:last-child,
.doc-entry td:last-child {
    border-right: 0;
}

.doc-entry tr:last-child td {
    border-bottom: 0;
}

.doc-entry table :not(pre) > code {
    white-space: nowrap;
}

.doc-entry blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--doc-border-strong);
    background: var(--doc-surface);
    border-radius: 0 var(--doc-radius-md) var(--doc-radius-md) 0;
    color: var(--doc-text-soft);
}

.doc-entry blockquote > :last-child,
.doc-entry figcaption,
.site-footer p {
    margin-bottom: 0;
	text-align: center;
}

.doc-entry figcaption {
    margin-top: var(--doc-space-3);
    font-size: 0.95rem;
    color: var(--doc-text-muted);
}

.doc-entry img {
    border-radius: var(--doc-radius-md);
}

.doc-entry h2[id],
.doc-entry h3[id],
.doc-entry h4[id],
.doc-entry h5[id],
.doc-entry h6[id] {
    position: relative;
}

.heading-anchor {
    margin-left: 0.5rem;
    color: var(--doc-text-muted);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.doc-entry h2:hover .heading-anchor,
.doc-entry h2:focus-within .heading-anchor,
.doc-entry h3:hover .heading-anchor,
.doc-entry h3:focus-within .heading-anchor,
.doc-entry h4:hover .heading-anchor,
.doc-entry h4:focus-within .heading-anchor,
.doc-entry h5:hover .heading-anchor,
.doc-entry h5:focus-within .heading-anchor,
.doc-entry h6:hover .heading-anchor,
.doc-entry h6:focus-within .heading-anchor {
    opacity: 1;
}

.heading-anchor:hover,
.heading-anchor:focus {
    color: var(--doc-text);
    opacity: 1;
    outline: none;
}

.sidebar-right {
    grid-area: right-sidebar;
    position: sticky;
    top: calc(72px + var(--doc-space-4));
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    min-width: 0;
}

.toc[hidden] {
    display: none;
}

.toc-title {
    margin: 0 0 var(--doc-space-4);
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--doc-text-muted);
}

.toc-item + .toc-item {
    margin-top: 0.25rem;
}

.toc-item-h3 {
    padding-left: 0.875rem;
}

.toc-link {
    display: block;
    padding: 0.3rem 0.75rem;
    border-left: 1px solid var(--doc-border);
    color: var(--doc-text-soft);
    text-decoration: none;
    line-height: 1.5;
}

.toc-link:hover {
    color: var(--doc-text);
    background: var(--doc-surface);
}

.toc-link.is-active {
    color: var(--doc-text);
    font-weight: 600;
    border-left-color: var(--doc-accent);
    background: var(--doc-surface-soft);
}

.site-footer {
    margin-top: 3rem;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--doc-border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--doc-text-soft);
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1440px;
    margin: 0 auto;
}

.footer-text {
    margin-bottom: 0.5rem;
}

.footer-copyright {
    opacity: 0.7;
}

.scroll-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--doc-border-strong);
    border-radius: 999px;
    background: var(--doc-bg);
    cursor: pointer;
    line-height: 1;
    box-shadow: var(--doc-shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    pointer-events: none;
    z-index: 40;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: var(--doc-surface);
}

.docs-nav-link,
.docs-nav-summary,
.toc-link,
.scroll-to-top,
.sidebar-toggle {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1199px) {
    .mobile-sidebar-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .content-wrapper {
        grid-template-columns: 240px minmax(0, 1fr);
        grid-template-areas: "left-sidebar main";
    }

    .sidebar-right {
        display: none;
    }

    .doc-content,
    .doc-entry {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .mobile-sidebar-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .site-header-inner,
    .header-inner {
        padding: var(--doc-space-4);
    }

    .scroll-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .content-wrapper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "left-sidebar"
            "main";
        gap: 1.25rem;
        padding: 1rem;
    }

    .sidebar-left {
        grid-area: left-sidebar;
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        min-width: 0;
        order: 0;
        margin: 0;
    }

    .sidebar-nav-shell {
        width: 100%;
    }

    .sidebar-toggle {
        display: none !important;
    }

    .docs-nav {
        display: none;
        margin: 0;
        padding: 0.75rem;
        border: 1px solid var(--doc-border);
        border-radius: var(--doc-radius-md);
        background: var(--doc-bg);
        box-shadow: var(--doc-shadow-sm);
    }

    .docs-nav.is-open {
        display: block;
    }

    .doc-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .doc-entry h2 {
        font-size: 1.5rem;
    }

    .doc-entry h3 {
        font-size: 1.25rem;
    }

    .doc-entry pre {
        padding: 0.875rem 1rem;
        border-radius: var(--doc-radius-sm);
    }

    .doc-entry table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .heading-anchor {
        opacity: 1;
    }

    .site-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.toc-item-h4 { padding-left: 1.5rem; }
.toc-item-h5 { padding-left: 2.125rem; }
.toc-item-h6 { padding-left: 2.75rem; }


/* v1.2.28: fix collapsed active parent item bottom edge clipping */
.docs-nav-item,
.docs-subnav-item,
.docs-nav-details,
.docs-nav-summary {
    overflow: visible;
}

.docs-nav-details:not([open]) {
    padding-bottom: 0.125rem;
}

.docs-nav-item.is-active > .docs-nav-details > .docs-nav-summary,
.docs-subnav-item.is-active > .docs-nav-details > .docs-nav-summary {
    align-items: center;
    background: transparent;
    padding-top: 0.2rem;
    padding-bottom: 0.3rem;
}

.docs-nav-item.is-active > .docs-nav-details:not([open]) > .docs-nav-summary,
.docs-subnav-item.is-active > .docs-nav-details:not([open]) > .docs-nav-summary {
    margin-bottom: 0.125rem;
}

.docs-nav-details[data-has-active-branch="true"] {
    display: block;
}

.docs-nav-item.is-active > .docs-nav-details > .docs-nav-summary > .docs-nav-summary-label,
.docs-subnav-item.is-active > .docs-nav-details > .docs-nav-summary > .docs-nav-summary-label {
    display: block;
    position: relative;
    min-height: 2.5rem;
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    margin: 0;
    padding: 0.58rem 0.7rem 0.66rem;
    border-radius: 0.625rem;
    background: var(--doc-accent-soft);
    box-sizing: border-box;
    line-height: 1.45;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--doc-accent) 16%, transparent);
}

.docs-nav-item.is-active > .docs-nav-details > .docs-nav-summary:hover,
.docs-subnav-item.is-active > .docs-nav-details > .docs-nav-summary:hover {
    background: transparent;
}


/* v1.2.29: center chevron inside active parent toggle */
.docs-nav-summary::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    padding: 0;
}

.docs-nav-item.is-active > .docs-nav-details > .docs-nav-summary::after,
.docs-subnav-item.is-active > .docs-nav-details > .docs-nav-summary::after {
    align-self: center;
}


/* v1.2.30: explicit flex-centered toggle icon for pages sidebar branches */
.docs-nav-summary-has-toggle::after {
    content: none;
    display: none;
}

.docs-nav-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.25rem;
    order: 2;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    align-self: center;
    border: 1px solid var(--doc-border);
    border-radius: 999px;
    background: var(--doc-surface);
    box-shadow: var(--doc-shadow-sm);
    color: var(--doc-text-muted);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.docs-nav-toggle-chevron {
    width: 0.4rem;
    height: 0.4rem;
    display: block;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateX(-0.03rem) rotate(45deg);
    transform-origin: center;
    box-sizing: border-box;
}

.docs-nav-summary-has-toggle:hover .docs-nav-toggle-icon,
.docs-nav-summary-has-toggle:focus-within .docs-nav-toggle-icon {
    border-color: var(--doc-accent);
    color: var(--doc-accent);
    background: var(--doc-accent-soft);
}

.docs-nav-details[open] > .docs-nav-summary-has-toggle .docs-nav-toggle-icon {
    color: var(--doc-text);
    border-color: color-mix(in srgb, var(--doc-accent) 35%, var(--doc-border));
    background: color-mix(in srgb, var(--doc-accent-soft) 75%, var(--doc-surface) 25%);
}

.docs-nav-details[open] > .docs-nav-summary-has-toggle .docs-nav-toggle-chevron {
    transform: translateY(-0.02rem) rotate(135deg);
}

.docs-nav-item.is-active > .docs-nav-details > .docs-nav-summary-has-toggle .docs-nav-toggle-icon,
.docs-subnav-item.is-active > .docs-nav-details > .docs-nav-summary-has-toggle .docs-nav-toggle-icon {
    align-self: center;
}

/* Header brand */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg, #fff);
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0 20px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.site-logo-image {
  display: block;
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.site-title {
  display: block;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.mobile-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  width: auto;
  max-width: 100%;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--doc-border);
  border-radius: 0.75rem;
  background: var(--doc-bg);
  color: var(--doc-text);
  cursor: pointer;
  box-shadow: var(--doc-shadow-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-sidebar-toggle-label {
  display: inline-block;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.mobile-sidebar-toggle:hover {
  background: var(--doc-surface);
  border-color: var(--doc-border-strong);
}

.mobile-sidebar-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--doc-accent) 45%, transparent);
  outline-offset: 2px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -0.35rem;
}

.menu-icon::after {
  top: 0.35rem;
}

.mobile-sidebar-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.mobile-sidebar-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(0.35rem) rotate(45deg);
}

.mobile-sidebar-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-0.35rem) rotate(-45deg);
}

/* v1.2.37: mobile navigation toggle is visible only on narrow layouts */
@media (min-width: 768px) {
  .mobile-sidebar-toggle {
    display: none !important;
  }

  .docs-nav {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .mobile-sidebar-toggle {
    display: inline-flex !important;
    flex-shrink: 0;
    gap: 0.5rem;
  }

  .mobile-sidebar-toggle-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-inner {
    gap: 0.75rem;
    padding-inline: 1rem;
  }

  .site-brand {
    min-width: 0;
  }
}

/* v1.3.1: documentation list styling refinement */
.doc-entry ul,
.doc-entry ol {
    padding-left: 1.5rem;
}

.doc-entry ul {
    list-style: disc;
}

.doc-entry ol {
    list-style: decimal;
}

.doc-entry ul ul {
    list-style: circle;
}

.doc-entry ul ul ul {
    list-style: square;
}

.doc-entry ol ol {
    list-style: lower-alpha;
}

.doc-entry ol ol ol {
    list-style: lower-roman;
}

.doc-entry li {
    padding-left: 0.15rem;
}

.doc-entry li::marker {
    color: var(--doc-text-soft);
}

.doc-entry li > p {
    margin-bottom: var(--doc-space-2);
}

.doc-entry li > ul,
.doc-entry li > ol {
    margin-top: var(--doc-space-2);
    margin-bottom: var(--doc-space-2);
}

.doc-entry li :not(pre) > code {
    vertical-align: baseline;
}

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


/* ---------------------------------------------------
Documentation Tables
--------------------------------------------------- */

.doc-entry table caption {
    padding: 0 0 0.75rem;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--doc-text-soft);
}

.doc-entry table + p,
.doc-entry p + table {
    margin-top: var(--doc-space-5);
}

@media (max-width: 767px) {
    .doc-entry table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .doc-entry th,
    .doc-entry td {
        min-width: 10rem;
        white-space: nowrap;
    }
}
