/* RFOS V105 — medium-width laptop/tablet header stability only.
   Phones <=720px and full desktop >=1367px are intentionally untouched. */
@media (min-width:721px) and (max-width:1366px){
  .rfos-site-header .header-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    row-gap:7px!important;
    column-gap:0!important;
    width:100%!important;
    max-width:100%!important;
    padding:7px 14px 8px!important;
    overflow:visible!important;
  }
  .rfos-site-header .logo-area{
    grid-column:1!important;
    grid-row:1!important;
    width:max-content!important;
    max-width:100%!important;
    min-width:0!important;
    justify-self:start!important;
    overflow:hidden!important;
  }
  .rfos-site-header .brand-emblem,
  .rfos-site-header .logo-area>img:not(.brand-title-image){
    flex:0 0 58px!important;
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    max-width:58px!important;
  }
  .rfos-site-header .brand-title-image{
    width:min(390px,52vw)!important;
    max-width:min(390px,52vw)!important;
    flex:0 1 auto!important;
    max-height:44px!important;
    object-fit:contain!important;
    object-position:left center!important;
  }
  .rfos-site-header #mainNavigation{
    grid-column:1!important;
    grid-row:2!important;
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px 8px!important;
    overflow:visible!important;
  }
  .rfos-site-header #mainNavigation a{
    flex:0 0 auto!important;
    min-height:38px!important;
    padding:7px 7px!important;
    font-size:clamp(.73rem,1.03vw,.88rem)!important;
    line-height:1.12!important;
    white-space:nowrap!important;
  }
  .rfos-site-header #mainNavigation .language-toggle{
    position:static!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:46px!important;
    height:40px!important;
    margin-left:4px!important;
    padding:6px 9px!important;
    border-radius:9px!important;
    display:inline-flex!important;
  }
  .rfos-site-header #mainNavigation .language-button-text{display:inline!important;font-size:.78rem!important;}
  .rfos-site-header .menu-toggle{display:none!important;visibility:hidden!important;pointer-events:none!important;}
}
