/* Public English navigation and footer */
html[lang="en"] body.ibh-public-body .ib-site-header,
html[lang="en"] body.ibh-public-body .ib-site-header :is(
    div, nav, details, summary, a, span, label, button, form
),
html[lang="en"] body.ibh-public-body .ib-site-footer.ib-site-footer-compact,
html[lang="en"] body.ibh-public-body .ib-site-footer.ib-site-footer-compact :is(
    div, section, nav, h2, p, strong, a
) {
    direction: ltr !important;
    text-align: left !important;
}

html[lang="en"] body.ibh-public-body .ib-site-header .ibh-public-nav-dropdown {
    right: auto !important;
    left: 0 !important;
}

html[lang="en"] body.ibh-public-body .ib-site-footer.ib-site-footer-compact .ibh-footer-logo {
    object-position: left center !important;
}

html[lang="en"] body.ibh-public-body .ib-site-footer.ib-site-footer-compact .ib-footer-col a:hover {
    transform: translateX(3px);
}

html[lang="en"] body.ibh-public-body .ibh-mobile-tabbar {
    direction: ltr !important;
}

html[lang="en"] body.ibh-public-body .ibh-member-menu-toggle {
    direction: ltr !important;
    text-align: left !important;
}

@media (min-width: 1181px) {
    html[lang="en"] body.ibh-public-body .ib-site-header .ib-header-inner,
    html[lang="en"] body.ibh-public-body .ib-site-header .ibh-public-nav,
    html[lang="en"] body.ibh-public-body .ib-site-header .ib-nav-user-actions {
        flex-direction: row !important;
    }

    html[lang="en"] body.ibh-public-body .ib-site-header .ib-nav-user-actions {
        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

/* English mobile menu scroll clearance */
@media (max-width: 1180px) {
    html[lang="en"] body.ibh-public-body .ib-site-header .ibh-public-nav {
        box-sizing: border-box !important;
        min-height: 0 !important;
        max-height: calc(100vh - 160px) !important;
        max-height: calc(100dvh - 160px - env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        padding-bottom: 24px !important;
        scroll-padding-block: 12px 24px;
    }

    html[lang="en"] body.ibh-public-body .ib-site-header .ibh-public-nav > * {
        flex-shrink: 0 !important;
    }
}
