/* ADA / WCAG 2.2 AA patterns adapted from the interactive-site-manager template.
   This site has no Bootstrap, so the skip link and focus rings live here. */

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link sits below the fixed top bar (60px) and navbar (ends ~160px). */
#skip-to-main-content:focus {
  position: fixed;
  top: 11rem;
  left: 0.75rem;
  z-index: 1080;
  width: auto;
  height: auto;
  padding: 0.625rem 1.25rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: #172145;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  border-radius: 0.25rem;
  outline: 0;
  box-shadow: 0 0 0 0.2rem #fff, 0 0 0 0.35rem #1d4ed8;
}

#main-content:focus {
  outline: none;
}

#main-content {
  scroll-margin-top: 11rem;
}

a:focus-visible,
.menu-wrap .toggler:focus-visible + .hamburger {
  outline: 0;
  box-shadow: 0 0 0 0.2rem #fff, 0 0 0 0.35rem #1d4ed8;
}

a.nav-link[aria-current="page"],
.menu-wrap .menu a[aria-current="page"] {
  text-decoration: underline;
}

/* #ff0000 on white is 4:1, under the 4.5:1 text minimum. #8f051d is already in this site's palette. */
.ada-emphasis,
.ada-emphasis a {
  color: #8f051d;
}

.ada-emphasis {
  font-size: 1.25rem;
}

h2.ada-section-heading {
  margin: 0;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  text-decoration: underline;
}

h2.heading-14 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

@media screen and (prefers-reduced-motion: reduce) {
  .menu-wrap .hamburger > div,
  .menu-wrap .hamburger > div:before,
  .menu-wrap .hamburger > div:after,
  .menu-wrap .menu > div,
  .menu-wrap .menu > div > div,
  .menu-wrap .menu > div > div > ul > li > a {
    transition: none;
  }
}
