/* Public primary navigation sits on a dark NASS-blue background. */
.usa-logo__text a {
  display: block;
  min-height: 24px;
}

#nass-nav .usa-nav__primary > .usa-nav__primary-item > .usa-nav__link > span,
#nass-nav .usa-nav__primary > .usa-nav__primary-item > button > span {
  color: #fff;
}

#nass-nav .usa-nav__primary > .usa-nav__primary-item > .usa-nav__link:hover > span,
#nass-nav .usa-nav__primary > .usa-nav__primary-item > button:hover > span,
#nass-nav .usa-nav__primary > .usa-nav__primary-item > .usa-nav__link:focus > span,
#nass-nav .usa-nav__primary > .usa-nav__primary-item > button:focus > span {
  color: #fff;
  text-decoration: underline;
}

/* Migrated body links need a non-color cue in prose and link lists. */
main .field--name-body a:not(.usa-button) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Allow content columns to shrink around long filenames and legacy embeds. */
main .region-content,
main .node__content,
main .field {
  min-width: 0;
  max-width: 100%;
}
main .field--type-text-long,
main .field--type-text-with-summary,
main .nass-accordion-item__body {
  overflow-wrap: anywhere;
}
main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
main select,
main textarea,
main iframe,
main img {
  box-sizing: border-box;
  max-width: 100%;
}
main iframe[src*="youtube.com/embed/"],
main iframe[src*="youtube-nocookie.com/embed/"] {
  height: auto;
  aspect-ratio: 16 / 9;
}
.nass-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1rem;
}
.nass-table-scroll table {
  margin-block: 0;
  overflow-wrap: normal;
}
.nass-table-scroll:focus-visible,
main pre[tabindex]:focus-visible {
  outline: 3px solid #005ea2;
  outline-offset: 3px;
}
#back-to-top {
  background-image: none;
  background-color: #fff;
  border: 2px solid #1a4480;
  box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
  color: #1a4480;
  width: 56px;
  height: 56px;
  bottom: 1.5rem;
  visibility: hidden;
  pointer-events: none;
}
#back-to-top.active {
  right: 1.5rem;
  visibility: visible;
  pointer-events: auto;
}
#back-to-top button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: 0;
  border-radius: inherit;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
}
#back-to-top button::before {
  content: '';
  display: block;
  flex: 0 0 18px;
  width: 22px;
  background: url('../img/angle-arrow-up-primary.svg') no-repeat center / contain;
}
#back-to-top button:hover {
  background-color: #e1f3f8;
}
#back-to-top button:focus-visible {
  outline: 3px solid #005ea2;
  outline-offset: 4px;
}
/* Preserve the carousel's existing appearance after correcting its headings. */
.carousel .carousel-item .carousel-content > h2 {
  text-transform: uppercase;
  font-size: 2.5rem;
  font-weight: 200;
  font-style: normal;
  letter-spacing: .3rem;
  margin-block: .67em;
}
.carousel .carousel-item .carousel-content .carousel-subtext {
  font-family: "Public Sans Web", "Source Sans Pro Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  margin-block: .83em;
}
@media (max-width: 738px) {
  .carousel .carousel-item .carousel-content > h2 {
    font-size: 1.5rem;
  }
}
.nass-global-alert {
  background: #f3f6fa;
  border-left: 5px solid #1b365d;
  color: #162e51;
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  max-width: 75rem;
  overflow-wrap: anywhere;
}
.nass-global-alert h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.nass-global-alert p:last-child { margin-bottom: 0; }
