/* Header logo — left of moa-topbar, same height as menu pills */

.moa-topbar__logo {
    pointer-events: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-decoration: none !important;
    flex: 0 0 auto !important;
    z-index: 2 !important;
    order: -1 !important;
}

.moa-topbar__logo img {
    display: block !important;
    height: 38px !important;
    width: auto !important;
    max-height: 38px !important;
    object-fit: contain !important;
}

/* Homepage: keep menu pills on the right, logo on the left */
body.moa-home-page .moa-topbar {
    justify-content: space-between !important;
}

body.moa-home-page .moa-topbar__menu {
    margin-left: auto !important;
}

/* Internal pages: logo left, menu toward the right/center area */
body:not(.moa-home-page) .moa-inner-topbar {
    justify-content: space-between !important;
}

body:not(.moa-home-page) .moa-inner-topbar .moa-topbar__menu {
    margin-left: auto !important;
    justify-content: flex-end !important;
}

@media (max-width: 900px) {
    .moa-topbar__logo {
        height: 34px !important;
        min-height: 34px !important;
    }

    .moa-topbar__logo img {
        height: 34px !important;
        max-height: 34px !important;
    }

    body.moa-home-page .moa-topbar {
        justify-content: space-between !important;
    }

    body.moa-home-page .moa-topbar__toggle {
        margin-left: auto !important;
    }
}
