/*
 * Immocore partner navigation hotfix R2 -- 2026-11-03.
 * Only the shared desktop header is adjusted. Desktop menu items are kept
 * on one line; existing colors, font family, hover, mobile menu remain intact.
 */
@media (min-width: 1200px) {
  .header-main .main-menu ul {
    flex-wrap: nowrap;
    margin-left: -5px;
    margin-right: -5px;
  }
  .header-main .main-menu li {
    flex: 0 0 auto;
    padding-left: 5px;
    padding-right: 5px;
    white-space: nowrap;
  }
  .header-main .main-menu a,
  .header-main .main-menu p {
    white-space: nowrap;
    line-height: 18px;
  }
}

/* The site switches its desktop phone block on at 1280px. That reduces the
 * available navigation width. Rebalance the columns rather than wrap labels. */
@media (min-width: 1280px) {
  .header-main .header-col--first {
    width: 16%;
    flex: 0 0 16%;
  }
  .header-main .header-col--middle {
    width: 69%;
    flex: 0 0 69%;
    min-width: 0;
  }
  .header-main .header-col--last {
    width: 15%;
    flex: 0 0 15%;
  }
  .header-main .main-menu a,
  .header-main .main-menu p {
    font-size: 12px;
  }
  .header-main .header-col--middle > .row > .col {
    min-width: 0;
  }
  .header-main .header-col--middle > .d-none.d-md-block .row {
    flex-wrap: nowrap;
  }
  .header-main .header-col--middle > .d-none.d-md-block .support-card {
    white-space: nowrap;
  }
}

/* Narrow desktop width still shows the telephone in the same row as the menu.
 * Prevent Bootstrap flex wrap by using slightly more compact navigation. */
@media (min-width: 1200px) and (max-width: 1279px) {
  .header-main .header-col--middle > .row.align-items-center {
    flex-wrap: nowrap;
  }
  .header-main .header-col--middle > .row > .col {
    min-width: 0;
  }
  .header-main .main-menu ul {
    margin-left: -3px;
    margin-right: -3px;
  }
  .header-main .main-menu li {
    padding-left: 3px;
    padding-right: 3px;
  }
  .header-main .main-menu a,
  .header-main .main-menu p {
    font-size: 11px;
  }
  .header-main .support-card--phone {
    font-size: 13px;
  }
}
