/* Keep the tab bar and .right-nav on one row.
   .yacht-tabs is 67.15% and .right-nav is 32.85%, both floated. When a
   browser rounds those percentages up (Safari) or a subpixel tips the
   sum over 100%, .right-nav wraps onto a second row and shows as a
   left-aligned grey block under the first tab. */

.yacht-tabs-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.yacht-tabs-wrap > ul.yacht-tabs,
.yacht-tabs-wrap > .yacht-tabs {
  float: none;
  width: 67.15%;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
}

.yacht-tabs-wrap > .right-nav {
  float: none;
  width: 32.85%;
  flex: 0 0 32.85%;
  max-width: 32.85%;
  min-width: 0;
  box-sizing: border-box;
}

/* Icon-only labels already apply at max-width: 48em (768px); the
   existing rule hid .right-nav only at 767px. Hide it at 768px too
   so the leftover grey strip cannot sit beside icon-only tabs. */
@media only screen and (max-width: 768px) {
  .yacht-tabs-wrap > .right-nav {
    display: none;
  }
  .yacht-tabs-wrap > ul.yacht-tabs,
  .yacht-tabs-wrap > .yacht-tabs {
    width: 100% !important;
    flex: 1 1 100%;
    max-width: none;
  }
}
