#navbar {
    position: sticky;
    z-index: 500;
    top: 0;
    display: block;
    width: 100%;
    padding: 16px 48px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(16, 36, 62, .08);
}

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

#navbar > div:first-of-type {
    display: flex;
    width: min(100%, 1280px);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#navbar img {
    display: block;
    width: auto;
    height: 40px;
    object-fit: contain;
}

#navbar a {
    color: #1d2939;
    text-decoration: none;
}

#navbar .hidden.md\:flex {
    display: flex;
    align-items: center;
    gap: 28px;
}

#navbar .hidden.md\:inline-flex {
    display: inline-flex;
    align-items: center;
}

#navbar .md\:hidden,
#mobileMenu,
.site-mobile-menu-backdrop {
    display: none;
}

#mobileMenu[hidden],
#mobileMenuBackdrop[hidden] {
    display: none !important;
}

.site-mobile-menu-toggle {
    padding: 8px;
    border: 0;
    background: transparent;
    color: #1d2939;
    cursor: pointer;
}

#navbar + .h-4 {
    display: none;
}

@media (max-width: 767px) {
    #navbar {
        padding: 13px 20px;
    }

    #navbar img {
        max-width: 190px;
        height: 38px;
    }

    #navbar .hidden.md\:flex,
    #navbar .hidden.md\:inline-flex {
        display: none !important;
    }

    #navbar .md\:hidden {
        display: block;
    }

    #mobileMenu {
        position: fixed;
        z-index: 540;
        top: 72px;
        right: 12px;
        left: 12px;
        max-height: calc(100vh - 92px);
        padding: 14px;
        overflow-x: hidden;
        overflow-y: auto;
        border: 1px solid rgba(16, 36, 62, .1);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 18px 48px rgba(16, 36, 62, .18);
    }

    #mobileMenu .flex {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    #mobileMenu a {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
        color: #1d2939;
        font-size: 16px;
        line-height: 1.45;
        text-decoration: none;
    }

    #mobileMenu a:hover,
    #mobileMenu a:focus-visible {
        background: #f2f6ff;
        color: #0052d9;
    }

    body.site-mobile-menu-open #mobileMenu:not([hidden]) {
        display: block;
    }

    body.site-mobile-menu-open #mobileMenuBackdrop:not([hidden]) {
        position: fixed;
        z-index: 520;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(15, 23, 42, .42);
    }

    body.site-mobile-menu-open {
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    body.site-mobile-menu-open {
        overflow: auto;
    }
}
