/* Mobile header: MAX instead of the request CTA only where sticky actions exist.
   Load after site.css and max-contact.css. No changes to desktop/menu/footer. */
.site-header .site-header__inner > .max-contact--mobile_header {
    display: none;
}

@media (max-width: 720px) {
    .site-header .site-header__inner > .header-cta--request {
        display: none;
    }

    .site-header .site-header__inner > .max-contact--mobile_header {
        display: inline-flex;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 0;
        margin: 0;
    }

    .site-header .max-contact--mobile_header a.max-contact__max {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 10px;
        border: 1px solid #d8e4f0;
        border-radius: 12px;
        background: #f3f8fd;
        color: #173b64;
        gap: 6px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .site-header .max-contact--mobile_header .max-contact__label {
        display: inline;
        font-size: 0.75rem;
        line-height: 1;
        font-weight: 800;
    }

    .site-header .max-contact--mobile_header a.max-contact__max:active {
        background: #e5f1fb;
        border-color: #9abbd8;
    }

    /* Reserve space for the two controls without horizontal page overflow. */
    .site-header .site-header__inner > .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header .brand__mark {
        flex-shrink: 0;
    }

    .site-header .brand__text {
        min-width: 0;
    }

    .site-header .brand__text strong {
        white-space: normal;
    }

    .site-header .site-header__inner > .menu-toggle {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        margin-left: 0;
    }
}

/* A short icon-only control on the narrowest phones.
   The accessible name stays on the link; text MAX stays if no logo is installed. */
@media (max-width: 360px) {
    .site-header .max-contact--mobile_header .max-contact__max--with-logo .max-contact__label {
        display: none;
    }

    .site-header .max-contact--mobile_header a.max-contact__max {
        padding-inline: 9px;
    }
}
