/* Restore single-row, horizontally scrollable section tabs on un6.
   Overrides the mobile flex-wrap / full-width search rules added in
   /assets/cmf-search-fix-20261112.css (2026-11-12 search UX), which
   stacked the eight section buttons and pushed the search box onto
   its own row. Search stays in the same row, after the last tab.
   Do not edit that cached CSS file; this sheet loads after it. */

.mh-nav > div {
  display: flex;
  flex-wrap: nowrap !important;
  flex-direction: row;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mh-nav > div::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mh-nav button {
  flex-shrink: 0;
  white-space: nowrap;
  scroll-snap-align: start;
}

/* Keep the nav search compact, in-row, next to the tabs (original layout). */
.mh-nav .mh-search,
.mh-nav.expanded .mh-search {
  display: flex;
  flex: 0 0 auto !important;
  flex-wrap: nowrap;
  align-items: center;
  width: auto !important;
  max-width: none;
  margin: 0;
  margin-inline-start: auto;
  padding: 0;
  padding-inline-start: 10px;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.mh-nav .mh-search input,
.mh-nav.expanded .mh-search input {
  width: 100px;
  flex: 0 1 120px;
  min-width: 72px;
  box-sizing: border-box;
}

/* Even when the hamburger adds .mh-nav.expanded, do not wrap the tabs. */
.mh-nav.expanded > div {
  flex-wrap: nowrap !important;
}

@media (width <= 700px) {
  .mh-nav > div,
  .mh-nav.expanded > div {
    flex-wrap: nowrap !important;
    padding: 0 6px;
  }

  .mh-nav .mh-search,
  .mh-nav.expanded .mh-search {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0;
    margin-inline-start: auto;
    padding: 0 8px 0 10px;
    background: transparent;
    border: 0;
  }

  /* 16px avoids iOS Safari zooming the field on focus. */
  .mh-nav .mh-search input,
  .mh-nav.expanded .mh-search input {
    width: 100px;
    font-size: 16px;
    padding: 8px 0;
  }
}

/* RTL: keep icon+input in document order with natural scroll direction. */
[dir="rtl"] .mh-nav > div {
  scroll-snap-type: x proximity;
}

[dir="rtl"] .mh-heading-search,
[dir="rtl"] .mh-nav .mh-search {
  flex-direction: row;
}
