/* Shared phone/tablet interactions; desktop dimensions and brand menus stay intact. */
@media(max-width:767px){
 /* Scroll already supplies a smooth colour blend; do not chase each frame
    with another 420ms transition. Keep the desktop reveal entirely intact. */
 html body:is(:has(.journey-hero),.talent-acquisition-page,.education-study-page) #masthead:has(.hrs-brand-navigation){transition:none!important}
 html body #masthead .hrs-brand-navigation .main-header :is(.hamburger,.main-header__widget-box,.hrs-account-buttons),
 html body #masthead .hrs-brand-navigation .main-header .main-header__logo>:is(.hrs-brand-go-ls,.hrs-brand-return){transition:opacity 120ms ease-out!important}
 html body #masthead .hrs-brand-navigation .main-header .hamburger-inner,
 html body #masthead .hrs-brand-navigation .main-header .hamburger-inner::before,
 html body #masthead .hrs-brand-navigation .main-header .hamburger-inner::after{transition:none!important}
 body:is(:has(.journey-hero),.talent-acquisition-page,.education-study-page):not(.homepage-nav-visible):not(.hrs-mobile-navigation-open) #masthead .hrs-brand-navigation .main-header__logo>.hrs-brand-return{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
 @media(prefers-reduced-motion:reduce){
  html body #masthead .hrs-brand-navigation .main-header :is(.hamburger,.main-header__widget-box,.hrs-account-buttons),
  html body #masthead .hrs-brand-navigation .main-header .main-header__logo>:is(.hrs-brand-go-ls,.hrs-brand-return){transition:none!important}
 }
}
#masthead .hrs-brand-navigation .ls-nav-close,#masthead .hrs-brand-navigation .ls-nav-submenu-toggle{display:none!important}
@media(max-width:1199px){
 /* Compact banners follow the approved logo-first desktop reveal. */
 body:is(:has(.journey-hero),.talent-acquisition-page,.education-study-page):not(.homepage-nav-visible):not(.hrs-mobile-navigation-open) #masthead :is(.hamburger,.main-header__widget-box,.hrs-account-buttons,.hrs-brand-go-ls){opacity:0!important;visibility:hidden!important;pointer-events:none!important}
 #masthead .hrs-brand-navigation{--mobile-menu-ink:#64171d}
 #masthead .hrs-ls-navigation{--mobile-menu-ink:#17365d}
 body.hrs-mobile-navigation-open{overflow:hidden}
 body.hrs-mobile-navigation-open #masthead{opacity:1!important;visibility:visible!important;transform:none!important;z-index:10010!important}
 body.hrs-mobile-navigation-open #masthead .hrs-brand-navigation{transform:none!important}
 #masthead .hrs-brand-navigation .main-header__menu-box{display:none!important;position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:68px max(22px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))!important;background:#fff!important;color:#252525!important;overflow-y:auto!important;overscroll-behavior-y:contain;opacity:1!important;visibility:visible!important;transform:none!important;z-index:10011!important;pointer-events:auto!important}
 #masthead .hrs-brand-navigation[data-ls-menu-open] .main-header__menu-box{display:block!important}
 body.hrs-mobile-navigation-open #masthead .hrs-brand-navigation[data-ls-menu-open] .main-header__menu-box{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;transition:none!important}
 #masthead .hrs-brand-navigation .main-header__menu-box[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
 #masthead .hrs-brand-navigation .main-header__menu-box .btn-close{display:none!important;pointer-events:none!important}
 #masthead .hrs-brand-navigation .ls-nav-close{display:flex!important;align-items:center;justify-content:center;position:fixed;right:18px;top:12px;width:44px;height:44px;min-height:44px;padding:0;border:0;background:#fff;color:var(--mobile-menu-ink);font:400 28px/1 Arial,sans-serif;cursor:pointer;z-index:1}
 #masthead .hrs-brand-navigation .ls-nav-close::before,#masthead .hrs-brand-navigation .ls-nav-close::after{display:none!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2{display:block!important;width:100%!important;margin:0!important;padding:0!important;list-style:none}
 #masthead .hrs-brand-navigation #menu-primary-menu-2>li{display:block!important;position:relative!important;width:100%!important;margin:0!important;padding:0!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2>li+li{border-top:1px solid #e9e4de}
 #masthead .hrs-brand-navigation #menu-primary-menu-2>li>a{display:flex!important;align-items:center;min-height:48px;padding:12px 48px 12px 0!important;color:#292929!important;background:transparent!important;font:400 15px/1.5 Arial,sans-serif!important;text-shadow:none!important;letter-spacing:0!important;white-space:normal!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2>li>a::after,#masthead .hrs-brand-navigation #menu-primary-menu-2>li>a::before{display:none!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .dropdown-btn:not(.ls-nav-submenu-toggle){display:none!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .ls-nav-submenu-toggle{display:flex!important;position:absolute;inset:2px 0 auto auto;width:44px!important;height:44px!important;align-items:center;justify-content:center;padding:0!important;border:0!important;border-radius:4px;background:transparent!important;color:var(--mobile-menu-ink)!important;font-family:Arial,sans-serif!important;cursor:pointer}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .ls-nav-submenu-toggle::before{display:none!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .ls-nav-submenu-toggle::after{content:''!important;display:block!important;position:static!important;width:8px;height:8px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);transition:transform .15s}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .ls-nav-submenu-toggle[aria-expanded=true]::after{transform:rotate(225deg)}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .sub-menu{display:none!important;position:static!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0 0 12px 18px!important;background:#fff!important;border:0!important;box-shadow:none!important;transform:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;animation:none!important;transition:none!important}
 #masthead .hrs-brand-navigation :is(.ls-nav-submenu-toggle,.ls-nav-close,.js-toggle-mobile-menu){touch-action:manipulation}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 [data-ls-submenu-open]>.sub-menu{display:block!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .sub-menu li,#masthead .hrs-brand-navigation #menu-primary-menu-2 .sub-menu a{border:0!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .menu-item-has-children{position:relative!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .sub-menu .menu-item-has-children>a{padding-right:44px!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .sub-menu a{display:flex!important;align-items:center;min-height:44px;padding:10px 0!important;color:#49413a!important;background:transparent!important;font:400 14px/1.5 Arial,sans-serif!important;white-space:normal!important;text-shadow:none!important;letter-spacing:0!important}
 #masthead .hrs-brand-navigation #menu-primary-menu-2 a:focus-visible,#masthead .hrs-brand-navigation .ls-nav-close:focus-visible,#masthead .hrs-brand-navigation .ls-nav-submenu-toggle:focus-visible{outline:2px solid var(--mobile-menu-ink);outline-offset:2px}
}
/* Main menu and submenu labels share one phone reading size. */
@media(max-width:767px){
 #masthead .hrs-brand-navigation #menu-primary-menu-2 .sub-menu a{font-size:15px!important;line-height:1.5!important}
}
