/* Shared documentation navigation and main-site footer. */
body {
    display: flex;
    flex-direction: column;
    padding-top: 94px;
}

body > .page {
    width: 100%;
    flex: 1 0 auto;
}

.docs-site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 14px;
}

.docs-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1160px, 100%);
    margin: auto;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: #0d0f1c;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.docs-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.docs-brand img {
    width: 70px;
    height: 44px;
    object-fit: contain;
}

.docs-brand span {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.docs-brand small {
    color: #078593;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.docs-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.docs-menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 20px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.docs-menu a.active {
    color: #fff;
    background: rgba(8, 186, 162, 0.14);
}

.docs-menu a:focus-visible,
.docs-menu-toggle:focus-visible {
    outline: 2px solid #08baa2;
    outline-offset: 3px;
}

.docs-menu-toggle {
    display: none;
}

.docs-footer {
    flex-shrink: 0;
    padding: 34px 0;
    background: #02030a;
}

.docs-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.docs-footer .copyright-text {
    margin: 0;
    color: #078593;
    font-size: 16px;
    font-weight: 700;
}

.page [id] {
    scroll-margin-top: 104px;
}

@media (hover: hover) {
    .docs-menu a:hover {
        color: #fff;
        background: rgba(8, 186, 162, 0.14);
    }
}

@media (max-width: 991.98px) {
    body {
        padding-top: 64px;
    }

    .docs-site-header {
        padding: 0;
        background: #0d0f1c;
        max-height: 100svh;
        overflow-y: auto;
    }

    .docs-navigation {
        flex-wrap: wrap;
        gap: 0;
        min-height: 64px;
        padding: 10px 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .docs-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        width: 40px;
        height: 40px;
        margin-left: auto;
        border: 0;
        padding: 5px;
        background: none;
        cursor: pointer;
    }

    .docs-menu-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        background: #fff;
    }

    .docs-menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(6.5px) rotate(45deg);
    }

    .docs-menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .docs-menu {
        display: none;
        flex-basis: 100%;
        padding-top: 12px;
    }

    .docs-menu.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 575.98px) {
    .docs-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .docs-brand img {
        width: 58px;
        height: 38px;
    }

    .docs-brand span {
        font-size: 18px;
    }
}
