
/* The current header switches to desktop at 1240px. Its older stylesheet still
   wraps desktop actions through 1279px, stranding Open menu on a second line. */
@media (min-width:1240px) {
  html body #root#root nav#ifcs-reference-navigation.ifcs-nav-reference > .ifcs-nav-desktop {
    flex-wrap:nowrap!important;
  }
}
/* Reserve a complete action row in the 40px overlap between those breakpoints.
   Keep the existing 220px search minimum, type size, all links and both menus. */
@media (min-width:1240px) and (max-width:1279px) {
  html body #root#root nav#ifcs-reference-navigation.ifcs-nav-reference {
    grid-template-columns:210px minmax(220px,1fr) max-content!important;
    padding-inline:16px!important;
    column-gap:8px!important;
  }
  html body #root#root nav#ifcs-reference-navigation.ifcs-nav-reference[data-ifcs-nav-compact=true] {
    grid-template-columns:190px minmax(220px,1fr) max-content!important;
  }
  html body #root#root nav#ifcs-reference-navigation.ifcs-nav-reference > .ifcs-nav-ribbon {
    margin-inline:-16px!important;
    padding-inline:16px!important;
  }
  html body #root#root nav#ifcs-reference-navigation.ifcs-nav-reference > .ifcs-nav-desktop {
    gap:4px!important;
    width:max-content!important;
    justify-self:end!important;
  }
  html body #root#root nav#ifcs-reference-navigation.ifcs-nav-reference .ifcs-nav-desktop > a > div,
  html body #root#root nav#ifcs-reference-navigation.ifcs-nav-reference .ifcs-nav-desktop > div > a > div,
  html body #root#root nav#ifcs-reference-navigation.ifcs-nav-reference .ifcs-nav-desktop > div > button,
  html body #root#root nav#ifcs-reference-navigation.ifcs-nav-reference .ifcs-nav-desktop > button {
    padding-inline:7px!important;
  }
}
