:root {
    --sidebar-width: 282px;
    --sidebar-bg: #f7f7f8;
    --sidebar-border: #e7e7e9;
    --text-main: #202123;
    --text-muted: #6e6e73;
    --hover-bg: #ececee;
    --active-bg: #e3e3e6;
    --content-width: 900px;
}

html,
body {
    min-height: 100%;
    background: #ffffff;
    color: var(--text-main);
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #202123;
    color: #fff;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #3268c4;
    outline-offset: 3px;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
    min-height: 100vh;
}

.site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px 12px 18px;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 8px;
}

.sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    color: var(--text-main);
    font-weight: 650;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: #202123;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sidebar-nav {
    min-height: 0;
    overflow-y: auto;
    padding: 2px 2px 20px;
    scrollbar-width: thin;
}

.sidebar-main-link,
.doc-section-line > a,
.doc-page-link {
    display: block;
    border-radius: 8px;
    color: #303033;
    text-decoration: none;
    line-height: 1.35;
}

.sidebar-main-link {
    padding: 9px 10px;
    margin: 1px 0;
    font-size: 14px;
}

.sidebar-main-link:hover,
.doc-section-line:hover,
.doc-page-link:hover {
    background: var(--hover-bg);
}

.sidebar-main-link.is-active,
.doc-section-line.is-active,
.doc-page-link.is-active {
    background: var(--active-bg);
    color: #111;
    font-weight: 600;
}

.sidebar-caption {
    margin: 20px 10px 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .02em;
}

.doc-tree,
.doc-submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-section-line {
    display: flex;
    align-items: center;
    margin: 1px 0;
    border-radius: 8px;
}

.doc-section-line > a {
    min-width: 0;
    flex: 1;
    padding: 8px 8px 8px 10px;
    font-size: 14px;
}

.section-toggle {
    display: none;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 3px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #666;
    cursor: pointer;
}

.navigation-enhanced .section-toggle {
    display: grid;
}

.section-toggle:hover {
    background: rgba(0, 0, 0, .05);
}

.section-toggle span {
    display: block;
    transform: rotate(0deg);
    transition: transform .14s ease;
    font-size: 22px;
}

.section-toggle span.is-open {
    transform: rotate(90deg);
}

.doc-submenu {
    margin-left: 11px;
    padding-left: 9px;
    border-left: 1px solid #dddddf;
}

.doc-page-link {
    padding: 7px 9px;
    margin: 1px 0;
    font-size: 13.5px;
}

.sidebar-bottom-links {
    margin-top: 18px;
}

.site-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.content-wrap {
    width: min(100% - 44px, var(--content-width));
    margin: 0 auto;
    padding: 54px 0 30px;
}

.page-heading {
    margin-bottom: 34px;
}

.page-heading-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.page-heading-top > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.page-title {
    color: #202123;
    letter-spacing: -.03em;
}

.page-subtitle {
    max-width: 760px;
    color: var(--text-muted) !important;
}

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dedee1;
    border-radius: 9px;
    color: #333;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.language-link:hover {
    background: #f5f5f5;
}

.documentation-content {
    font-size: 16px;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.documentation-content h2,
.documentation-content h3,
.documentation-content h4 {
    scroll-margin-top: 24px;
    letter-spacing: -.015em;
}

.documentation-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
}

.documentation-content pre {
    overflow-x: auto;
    border-radius: 10px;
}

.documentation-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}


.documentation-content .is_red {
    color: #b42318;
}

.documentation-content p[align="center"] {
    text-align: center;
}

.documentation-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e5e5e7;
}

.documentation-content .notification {
    margin: 1.4rem 0;
    border-radius: 12px;
}

.doc-video {
    width: min(100%, 760px);
    margin: 1.5rem 0 2rem;
    aspect-ratio: 16 / 9;
}

.doc-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

.contact-list {
    margin: 1.25rem 0 2rem;
    border-top: 1px solid #ececee;
}

.contact-row {
    display: grid;
    grid-template-columns: minmax(110px, 160px) 1fr;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #ececee;
}

.contact-row > strong {
    color: var(--text-muted);
    font-weight: 600;
}

.contact-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.section-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.doc-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 108px;
    padding: 18px;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    transition: background .14s ease, border-color .14s ease;
}

.doc-card:hover {
    background: #fafafa;
    border-color: #d5d5d9;
}

.doc-card span {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.download-group {
    margin-top: 38px;
}

.download-card {
    padding: 18px 0;
    border-top: 1px solid #ececee;
}

.download-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.download-description {
    margin-bottom: 8px !important;
    color: #55585e;
}

.download-version,
.download-count {
    display: inline-block;
    margin-right: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.download-count::before {
    content: "↓ ";
}

.site-footer {
    margin-top: 70px;
    padding: 24px 0 10px;
    border-top: 1px solid #eeeeef;
    color: #8b8b90;
    font-size: 13px;
}

.mobile-header,
.sidebar-backdrop {
    display: none;
}

@media screen and (max-width: 768px) {
    .site-shell {
        padding-top: 56px;
    }

    .has-mobile-sidebar {
        overflow: hidden;
    }

    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 20;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        height: 56px;
        padding: 0 14px;
        border-bottom: 1px solid #ececef;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(12px);
    }

    .mobile-menu-button {
        display: none;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 36px;
        padding: 8px;
        border: 0;
        border-radius: 8px;
        background: transparent;
    }

    .navigation-enhanced .mobile-menu-button {
        display: flex;
    }

    .navigation-enhanced .sidebar-close {
        display: block;
    }

    .mobile-menu-button span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 2px;
        background: #262629;
    }

    .mobile-brand,
    .mobile-language {
        color: #202123;
        font-weight: 650;
        text-decoration: none;
    }

    .mobile-language {
        width: 36px;
        text-align: right;
        font-size: 13px;
    }

    .site-sidebar {
        position: static;
        width: 100%;
        border-bottom: 1px solid var(--sidebar-border);
    }

    .navigation-enhanced .site-sidebar {
        position: fixed;
        z-index: 50;
        width: min(88vw, 310px);
        transform: translateX(-102%);
        box-shadow: 8px 0 28px rgba(0, 0, 0, .08);
        transition: transform .18s ease;
    }

    .navigation-enhanced .site-sidebar:not(.is-open) {
        visibility: hidden;
    }

    .navigation-enhanced .site-sidebar.is-open {
        transform: translateX(0);
    }

    .navigation-enhanced .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 40;
        display: block;
        background: rgba(0, 0, 0, .34);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
    }

    .navigation-enhanced .sidebar-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .site-main {
        margin-left: 0;
    }

    .content-wrap {
        width: min(100% - 32px, var(--content-width));
        padding-top: 30px;
    }

    .page-heading {
        margin-bottom: 26px;
    }

    .page-title {
        font-size: 2rem !important;
    }

    

    .section-cards {
        grid-template-columns: 1fr;
    }

    .download-card-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .download-card-main .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-sidebar,
    .sidebar-backdrop,
    .section-toggle span {
        transition: none !important;
    }
}
