@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box
}

* {
    scrollbar-width: thin;
    scrollbar-color: #6c757d transparent
}

html,
body {
    background-color: #fff;
    height: 100%
}

body {
    background-color: #fff;
    color: #212529;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.5
}

nav {
    background-color: #fff;
    color: #fff;
    border-bottom: 1px solid #e5e5e5;
    flex-direction: column;
    z-index: 1000
}

.search-bar {
    position: relative;
    display: inline-block
}

.search-bar input {
    width: 100%;
    background-color: transparent;
    border: 1px solid #e5e5e5;
    color: #4f5a66;
    padding: .375rem .75rem;
    padding-right: 1.75rem;
    border-radius: 4px
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4f5a66;
    cursor: pointer;
    padding: 0;
    font-size: 1rem
}

.search-bar button:hover {
    color: #ffffff
}

.search-bar button:focus {
    outline: none
}

.search-bar i {
    pointer-events: none
}

.links,
.main-topics {
    display: flex;
    gap: 1rem
}

.links a {
    color: #fff;
    font-size: 15px;
    text-decoration: none
}

.main-topics a,
.wx-mobile-main-topics a {
    color: #4f5a66;
    font-size: 15px;
    text-decoration: none
}

.main-topics a.active,
.wx-mobile-main-topics a.active {
    color: #0036ff;
    font-weight: 600
}

.dropdown a {
    color: #4f5a66;
    font-size: 14px
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 36px;
    overflow-y: auto;
    height: calc(100vh - 105px - 1.5rem)
}

.sidebar a,
.wx-mobile-subtopics a {
    color: #555;
    font-size: 15px;
    text-decoration: none
}

.sub-topics>div {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem
}

.sidebar .sub-topics h6,
.wx-mobile-subtopics h6 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5rem;
    margin: .25rem 0 .25rem;
    color: #212529
}

.sidebar .sub-topics a,
.wx-mobile-subtopics a {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5rem;
    padding: .5rem .75rem;
    border-left: 1px solid #e5e5e5
}

.sidebar .sub-topics a.active,
.wx-mobile-subtopics a.active {
    background-color: rgb(0 0 0 / 5%);
    border-color: #212529;
    color: #212529;
    font-weight: 600
}

.sidebar .sub-topics a.main-link {
    justify-content: space-between
}

#content {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 105px - 1.5rem)
}

.content h6 {
    color: #0036ff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25rem
}

.content h2 {
    font-size: 1.975rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #212529
}

.content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3rem;
    margin: 1rem 0;
    color: #212529
}

.content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.05rem;
    margin: 1rem 0;
    color: #212529
}

.content p {
    font-size: 15px;
    line-height: 1.75rem;
    color: #212529;
    margin-bottom: 1rem
}

.content ul li {
    font-size: 15px;
    color: #212529
}

.content a {
    text-decoration: none;
    color: #0036ff;
    font-weight: 600
}

.method,
.badge {
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    padding: .2rem .6rem;
    border-radius: 56px;
    border: 1px solid #212529
}

.method.get,
.badge.status.ok {
    color: #b3ffd5;
    background: #198754;
    border-color: #00ab5c
}

.badge.status.err {
    color: #ffb3b3;
    background: #dc3545;
    border-color: #b02a37
}

.content .api-summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-left: 1px solid #212529;
    background: rgb(0 0 0 / 5%);
    width: fit-content
}

.content .api-summary .endpoint {
    color: #212529
}

.content .api-summary .muted {
    color: #212529
}

.api-card {
    border: 1px solid #212529;
    background: #303b42;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    margin: 1rem 0 1.5rem;
    overflow: hidden
}

.api-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 10%)
}

.api-card__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    font-size: 15px;
    font-weight: 600
}

.api-card pre code {
    color: #fff
}

.copy-btn {
    appearance: none;
    background: transparent;
    border: 1px solid #212529;
    color: #9aa0a6;
    padding: .35rem .6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s ease
}

.copy-btn:hover {
    color: #212529;
    border-color: #2a2f36
}

.copy-btn:focus {
    outline: 2px solid #000;
    outline-offset: 2px
}

.code {
    position: relative;
    background: #303b42;
    padding: 0 1rem 1rem 1rem
}

.content code {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    color: #0036ff
}

.content pre {
    margin: 0
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    border: 1px solid #212529;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem
}

.api-table thead th {
    text-align: left;
    background: rgba(255, 255, 255, .03);
    color: #212529;
    padding: .65rem .75rem;
    border-bottom: 1px solid #212529;
    font-weight: 700
}

.api-table tbody td {
    padding: .6rem .75rem;
    color: #212529;
    border-bottom: 1px solid #212529;
    vertical-align: top
}

.api-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, .01)
}

.api-table code {
    color: #212529
}

.muted-list li {
    color: #212529;
    font-size: 15px;
    margin-bottom: .25rem
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 520px;
    max-height: 420px;
    overflow: auto;
    background: #0f1115;
    border: 1px solid #212529;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    z-index: 1000;
    display: none;
    padding: .25rem
}

.search-empty {
    padding: .75rem 1rem;
    color: #9aa0a6
}

.search-item {
    padding: .6rem .75rem;
    border-radius: 8px;
    cursor: pointer
}

.search-item:hover {
    background: rgba(255, 255, 255, .04)
}

.search-item-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #d6d6d6;
    font-weight: 600;
    margin-bottom: .25rem
}

.search-item-head .search-section {
    color: #9aa0a6;
    font-weight: 500
}

.search-item-head .sep {
    color: #2a2f36
}

.search-snippet {
    color: #b5b8bd;
    font-size: .9rem
}

.search-snippet mark.hl {
    background: #0036ff;
    color: #fff;
    border-radius: 3px;
    padding: 0 .15rem
}

.props-box {
    background: #f8f9fc;
    border: 1px solid #dee3ed;
    border-radius: 10px
}

.prop {
    padding: .75rem
}

.prop+.prop {
    border-top: 1px solid #c2c9d6
}

.prop-box+.prop-box {
    border-top: 1px solid #c2c9d6
}

.prop-head,
.prop-box-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: #212529;
    font-size: 14px
}

.prop-head code,
.prop-box-head code {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px
}

.prop-head .type,
.prop-box-head .type,
.prop-head .req {
    display: inline-block;
    padding: .15rem .45rem;
    border: 1px solid #212529;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    color: #212529
}

.prop-head .req {
    font-weight: 700
}

.prop-desc,
.prop-box-desc {
    margin-top: .35rem;
    color: #212529;
    font-size: 14px;
    line-height: 1.75rem
}

.prop-desc code {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px
}

.hljs {
    background: #303b42 !important
}

.form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-color: #303b42;
    color: #fff;
    border-color: #525b5e
}

.form-select:focus {
    border-color: #525b5e;
    box-shadow: unset
}

div#auth-header {
    padding-bottom: 0
}

span.http-url {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    color: #6c757d
}

ol,
ul {
    font-size: 14px
}

.has-sub {
    position: relative
}

.has-sub .sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.has-sub .main-link {
    flex: 1
}

.has-sub .toggle-sub {
    font-size: 13px;
    cursor: pointer;
    margin-left: 6px;
    transition: transform .2s ease;
    color: #444
}

.has-sub .sub-list {
    display: none;
    margin-left: 18px;
    margin-top: 6px
}

.has-sub.open .sub-list {
    display: block
}

.has-sub.open .toggle-sub {
    transform: rotate(180deg)
}

.code-sample {
    border: 1px solid #212529;
    background: #303b42;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 2rem
}

.code-sample code {
    color: #fff
}

.anchor-box .anchor-box__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5rem;
    margin: .25rem 0 .25rem;
    color: #212529
}

.anchor-box__list {
    padding-left: 0;
    list-style: none
}

.anchor-box__list a {
    color: #555;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    padding-left: 21px;
    display: inline-block;
    transition: color .25s ease
}

.anchor-box__list li {
    margin-bottom: .5rem
}

.anchor-box__list a.active {
    color: #0036ff;
    font-weight: 600
}

.anchor-box__list a::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateX(-5px);
    transition: all .25s ease;
    color: #0036ff;
    font-weight: 700
}

.anchor-box__list a.active::before {
    opacity: 1;
    transform: translateX(0)
}

.anchor-box {
    position: fixed
}

.doc-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid #e5e5e5
}

.doc-pagination a {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 15px;
    padding: .6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #0036ff;
    background: #f6f8ff;
    transition: background .25s ease, transform .25s ease
}

.doc-pagination a:hover {
    background: #e8eeff
}

.doc-pagination .arrow {
    transition: transform .25s ease
}

.prev-topic:hover .prev-arrow {
    transform: translateX(-4px)
}

.next-topic:hover .next-arrow {
    transform: translateX(4px)
}

.prop-more {
    display: none;
    background: rgb(0 0 0 / 3%);
    border: 1px solid #c2c9d6;
    border-radius: 0 0 10px 10px
}

.prop-box {
    padding: .75rem;
    display: flex;
    flex-direction: column;
    animation: fadeSlideIn .25s ease
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.prop-toggle {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgb(0 0 0 / 3%);
    border: 1px solid #c2c9d6;
    border-radius: 10px;
    padding: .2rem;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #0036ff;
    width: 100%
}

.prop-toggle.open {
    border-bottom: 0;
    border-radius: 10px 10px 0 0
}

.prop-toggle .icon-close {
    display: none
}

.prop-toggle.open .icon-plus {
    display: none
}

.prop-toggle.open .icon-close {
    display: inline-block
}

.prop-toggle:hover {
    opacity: .8
}

.wx-search-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0, 0, 0, .15);
    padding: 6px 10px;
    border-radius: 6px;
    background: #fff;
    cursor: pointer
}

.wx-search-trigger input {
    border: none;
    outline: none;
    background: transparent;
    pointer-events: none;
    font-size: 15px;
    color: #555
}

.wx-trigger-icon {
    font-size: 16px;
    color: #555;
    display: flex
}

.wx-search-shortcut {
    font-size: 12px;
    color: #999;
    margin-left: auto
}

#wx-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9000
}

#wx-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9500
}

#wx-search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center
}

.wx-search-box {
    position: relative;
    width: 600px;
    max-width: 90%;
    background: #fff;
    padding: 30px 30px 12px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25)
}

.wx-search-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: red
}

#wx-search-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none
}

#wx-search-input:focus {
    border-color: #0036ff
}

.wx-search-results {
    margin-top: 18px;
    max-height: 320px;
    overflow-y: auto
}

.wx-search-item {
    padding: 12px;
    border-radius: 6px;
    cursor: pointer
}

.wx-search-item:hover {
    background: #f3f6ff
}

.wx-search-section {
    font-size: 12px;
    font-weight: 600;
    color: #031c79
}

.wx-search-title {
    font-size: 15px;
    font-weight: 600
}

.wx-search-snippet {
    color: #666;
    font-size: 13px
}

.wx-mobile-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start
}

.wx-mobile-links a {
    color: #4f5a66;
    font-size: 15px;
    text-decoration: none
}

.wx-mobile-main-topics {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.wx-mobile-offcanvas-body hr {
    color: #e5e5e5;
    opacity: unset
}

.wx-mobile-menu-btn {
    display: none;
    padding: 8px 14px;
    font-size: 15px;
    background: #031c79;
    color: #fff;
    border: none;
    border-radius: 6px
}

.wx-mobile-menu-btn i {
    display: flex;
    align-items: center;
    justify-content: center
}

.wx-mobile-offcanvas {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: left .25s ease;
    padding: 15px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, .08)
}

.wx-mobile-offcanvas.open {
    left: 0
}

.wx-mobile-offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px
}

.wx-mobile-offcanvas-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer
}

.wx-mobile-offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 9998;
    display: none
}

.wx-mobile-offcanvas-overlay.show {
    display: block
}

.wx-doc-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    transition: .25s ease;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit
}

.wx-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    text-decoration: none
}

.wx-doc-card .card-title {
    font-size: 1.15rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: 10px
}

.wx-doc-card .card-text {
    color: #555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5rem
}

.wx-doc-card .card-icon {
    font-size: 1.4rem;
    color: #0036ff
}

@media (max-width:992px) {
    #content {
        overflow: unset;
        height: 100vh;
        padding-top: 92px;
        margin-top: 24px
    }

    .content .api-summary {
        overflow-y: hidden;
        overflow-x: auto;
        width: 100%
    }

    nav.navbar {
        position: fixed;
        width: 100%
    }

    .wx-mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px
    }

    .links {
        display: none !important
    }

    .sidebar {
        display: none !important
    }

    .col-2 {
        display: none !important
    }

    .col-10 {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%
    }

    .main-topics {
        display: none !important
    }

    .wx-search-trigger {
        width: 100%
    }
}
