/* custom overrides (loaded last) */
/* accessibility: skip-to-content link, visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: #003e7e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 4px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}
@media (max-width: 767px) {
  .headerAndNavContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
  }
  /* eyebrow (secondary nav) collapses on scroll to reclaim space */
  .secondaryNav {
    overflow: hidden;
    max-height: 300px;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .secondaryNav.eyebrow-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
  }
}
/* keep the desktop nav on a single line (never wrap the links + buttons) */
@media (min-width: 768px) {
  .navContent > ul#navTopLevel {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  .navContent > ul#navTopLevel > li {
    flex: 0 0 auto;
  }
  .navContent > ul#navTopLevel > li > a {
    white-space: nowrap;
  }
}
/* at the tightest desktop widths, relax button/spacing so it still fits one line */
@media (min-width: 768px) and (max-width: 1150px) {
  .navContent li .button {
    min-width: 0 !important;
    padding-left: 1em !important;
    padding-right: 1em !important;
  }
  .navContent > ul#navTopLevel > li {
    margin-left: .85em !important;
  }
}
