/* Allow translated navigation to wrap without covering the brand or language picker. */
body > header {
  height: auto;
  min-height: 78px;
  gap: 16px !important;
}
body > header > .brand {
  flex: 0 0 auto;
  min-height: 78px;
}
body > header > .language {
  flex: 0 0 auto;
  margin-inline: 0 !important;
}
body > header #main-nav {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-inline: 0 !important;
  gap: 0 clamp(14px, 1.25vw, 24px) !important;
  padding: 8px 0;
}
body > header #main-nav > a {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 10px 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.45;
}
body > header #main-nav > a[aria-current="page"]:after {
  bottom: 3px;
}
body > header > .menu-toggle {
  flex: 0 0 36px;
  width: 36px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1100px) {
  body > header {
    min-height: 68px;
    padding-inline: 0 14px;
    gap: 12px !important;
  }
  body > header > .brand {
    flex: 0 1 195px;
    min-width: 0;
    min-height: 68px;
    height: 68px;
    max-width: 55%;
    padding-inline: 14px;
    clip-path: none;
    font-size: 20px;
    gap: 8px;
  }
  body > header > .brand > .brand-mark {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
  }
  body > header > .brand > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body > header > .brand small {
    max-width: 100%;
  }
  body > header > .language {
    flex: 0 1 auto;
    min-width: 0;
    margin-inline-start: auto !important;
  }
  body > header > .language summary {
    min-width: 0;
    padding: 9px 7px;
    gap: 5px;
  }
  body > header > .language summary > span {
    min-width: 0;
    max-width: 90px;
  }
  body > header > .menu-toggle {
    display: flex;
  }
  body > header #main-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    width: 100%;
    margin: 0 !important;
    padding: 12px 18px;
    background: #fff;
    box-shadow: 0 12px 24px #10251c18;
    gap: 0 20px !important;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  body > header #main-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body > header #main-nav > a {
    padding: 12px 5px;
    text-align: start;
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  body > header {
    gap: 6px !important;
    padding-inline-end: 8px;
  }
  body > header > .brand {
    padding-inline: 10px;
    font-size: 18px;
  }
  body > header > .language summary > span {
    max-width: 55px;
  }
}
@media (max-width: 1100px) {
  body > header > .language > .country-picker {
    position: fixed;
    top: 76px;
    left: auto !important;
    right: 12px !important;
    width: min(330px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px);
  }
  body > header .country-options {
    max-height: min(380px, calc(100dvh - 170px));
  }
}
@media (min-width: 1101px) {
  body > header:dir(rtl) > .language > .country-picker {
    left: 0 !important;
    right: auto !important;
  }
}
