/* Make the primary navigation readable and comfortable to select. */
.nav-links {
  gap: 28px;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.header-quote {
  min-height: 48px;
  padding: 13px 18px;
  font-size: 13px;
  gap: 16px;
  white-space: nowrap;
}

@media (max-width: 1150px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 15px;
  }
}

/* Expanded type switches to the existing menu toggle before the header gets crowded. */
@media (max-width: 1023px) {
  .header-inner {
    height: 80px;
  }

  .header-quote {
    display: none;
  }

  .menu-toggle {
    display: block;
    min-width: 48px;
    min-height: 48px;
    margin-right: -8px;
  }

  .main-nav {
    display: none;
    position: absolute;
    inset: 80px 0 auto;
    padding: 14px 32px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px #142f4a0c;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-links {
    display: block;
  }

  .nav-links a {
    min-height: 50px;
    padding: 13px 0;
    font-size: 17px;
    white-space: normal;
  }

  .nav-links a[aria-current="page"]::after,
  .current-menu-item > a::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 74px;
  }

  .main-nav {
    top: 74px;
    padding-inline: 20px;
  }
}
