/* Two-tier header inspired by the site's existing footer navigation. */
@media (min-width: 1101px) {
  body > header { position: relative; }
  body > header .header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    gap: 18px;
    padding-top: 23px;
  }
  body > header .header-inner > .wordmark { align-self: flex-start; width: max-content; }
  body > header .wordmark .brand-logo { width: clamp(230px, 20vw, 290px); height: auto; }
  body > header .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1.2vw, 25px);
    width: 100%;
    padding: 14px 0 16px;
    margin: 0;
    border: 0;
    border-top: 1px solid #e5c9a43b;
    background: transparent;
    color: #d7d2c6;
    font-size: clamp(12px, .99vw, 16px);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
  }
  body > header .nav > a,
  body > header .nav > a:last-child {
    display: inline-block;
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: 1.45;
    text-align: left;
    white-space: nowrap;
  }
  body > header .nav > a:hover,
  body > header .nav > a[aria-current="page"] { color: #fff4e2; background: none; }
  body > header .nav > a[aria-current="page"]:after { transform: scaleX(1); }
  body > header .menu { display: none; }
}
@media (max-width: 1100px) {
  body > header { position: sticky; top: 0; }
  body > header .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 104px;
    gap: 20px;
    padding-block: 0;
  }
  body > header .wordmark .brand-logo { width: 205px; height: auto; }
  body > header .menu { display: block; }
  body > header .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    padding: 20px max(22px, 5vw) 26px;
    border: 0;
    border-top: 1px solid #e5c9a43b;
    border-bottom: 1px solid #e5c9a43b;
    background: #1c2117;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
  }
  body > header .nav.open { display: flex; }
  body > header .nav > a,
  body > header .nav > a:last-child {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 11px 0;
    border: 0;
    background: none;
    color: #d7d2c6;
    white-space: normal;
    line-height: 1.45;
  }
  body > header .nav > a:hover,
  body > header .nav > a[aria-current="page"] { color: #fff4e2; background: none; }
}
@media (max-width: 600px) {
  body > header .header-inner { height: 88px; }
  body > header .wordmark .brand-logo { width: 180px; }
  body > header .nav { max-height: calc(100dvh - 88px); }
}
@media (max-width: 360px) {
  body > header .header-inner { height: 82px; }
  body > header .wordmark .brand-logo { width: 165px; }
  body > header .nav { max-height: calc(100dvh - 82px); }
}

/* Distribute desktop navigation labels with even space between each tab. */
@media (min-width: 1101px) {
  body > header .nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1vw, 18px);
  }
  body > header .nav > a,
  body > header .nav > a:last-child {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    white-space: normal;
    overflow-wrap: normal;
    text-align: left;
  }
}
/* Put 'and Recalibration' on the second line in the desktop AMR tab. */
@media (min-width: 1101px) {
  body > header .nav-amr .amr-line-two { display: block; white-space: nowrap; }
}
