/**
 * Crane: keep all desktop top-level header items on one row.
 *
 * Astra adds `ast-flex` (flex-wrap: wrap) to `.main-header-menu`. After adding
 * Resources, the 7th item (See Inside) wraps to a second line. Scope to the
 * Astra desktop header so mobile/stacked menus are unchanged.
 */
@media (min-width: 922px) {
  #ast-desktop-header .main-header-menu {
    flex-wrap: nowrap !important;
  }

  #ast-desktop-header .site-header-primary-section-right {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  #ast-desktop-header .ast-builder-menu-1,
  #ast-desktop-header .main-header-bar-navigation,
  #ast-desktop-header .main-navigation {
    width: 100%;
    justify-content: flex-end;
  }

  #ast-desktop-header .main-header-menu > .menu-item {
    flex: 0 0 auto;
  }

  #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    white-space: nowrap;
    padding-left: 0.72em;
    padding-right: 0.72em;
  }

  #ast-desktop-header .site-primary-header-wrap.ast-container {
    max-width: min(100%, 1480px);
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 922px) and (max-width: 1280px) {
  #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    padding-left: 0.55em;
    padding-right: 0.55em;
    font-size: 0.94rem;
  }

  #ast-desktop-header .custom-logo-link img {
    max-width: 160px;
  }
}
