/* Seven main links stay on one line while there is room for readable labels. */
@media (min-width: 981px) {
  .navbar .navbar__row { align-items: stretch; }
  .navbar [data-nav-toggle] { display: none; }
  .navbar [data-nav-links] {
    display: flex;
    position: static;
    width: 100%;
    height: 60px;
    max-height: none;
    align-items: stretch;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0;
    overflow: visible;
  }
  .navbar [data-nav-links] > a,
  .navbar [data-nav-links] > .mega { flex: 0 0 auto; }
  .navbar .navbar__link {
    width: auto;
    height: 100%;
    white-space: nowrap;
    line-height: 1.2;
  }
  .navbar .mega:focus-within > .mega__panel { display: block; }
}

@media (max-width: 980px) {
  .navbar { height: 60px; min-height: 60px; }
  .navbar .navbar__row {
    height: 60px;
    min-height: 60px;
    align-items: center;
    justify-content: flex-end;
    position: relative;
  }
  .navbar [data-nav-toggle] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: auto;
  }
  .navbar [data-nav-links] {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    height: auto;
    max-height: 70vh;
    background: var(--c-blue);
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 200;
  }
  .navbar [data-nav-links].is-open { display: flex; }
  .navbar .navbar__link {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 0;
    white-space: normal;
    line-height: 1.4;
    font-size: 14px;
  }
  .navbar .mega { width: 100%; flex: 0 0 auto; }
  .navbar .mega::after,
  .navbar .mega__panel::before { display: none; }
  .navbar .mega__trigger { justify-content: space-between; }
  .navbar .mega__chev { height: auto; }
  .navbar .mega .mega__panel {
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px 12px;
    box-shadow: none;
    border: 0;
    background: transparent;
  }
  .navbar .mega.is-open > .mega__panel { display: block; }
  .navbar .mega .mega__item {
    color: #fff;
    min-height: 40px;
    padding: 8px 0;
    white-space: normal;
    line-height: 1.4;
    border-radius: 0;
  }
}

/* Allow the legal footer link to wrap on narrow phones. */
.footer .topbar__link[href="/personal-data-consent.html"] {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
