/* Small, non-breaking enhancements on top of legacy styles */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.6rem 0.9rem;
  background: #fefefe;
  color: #111;
  border: 2px solid #111;
}

.skip-link:focus {
  left: 0.8rem;
  top: 0.8rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #0f4a8a;
  outline-offset: 2px;
}

img {
  height: auto;
}

#main-content a[href^="tel:"],
#main-content a[href^="mailto:"] {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Replace legacy jump-to-top behavior to avoid sticky jitter */
#page-header-wrapper #page-header #jump-to-top,
#page-header-wrapper #page-header.is-stuck #jump-to-top {
  position: fixed !important;
  top: calc(100vh - 2.6rem) !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  width: auto !important;
  max-width: none !important;
  background: transparent !important;
  transform: translate(-50%, 120%);
  transition: transform 180ms ease !important;
  pointer-events: none;
}

#page-header-wrapper #page-header #jump-to-top.is-visible,
#page-header-wrapper #page-header.is-stuck #jump-to-top.is-visible {
  transform: translate(-50%, 0);
  pointer-events: auto;
}

#page-header-wrapper #page-header #jump-to-top #jump-to-top-caption,
#page-header-wrapper #page-header.is-stuck #jump-to-top #jump-to-top-caption {
  display: inline-block !important;
  width: auto !important;
  padding: 0.35rem 0.9rem !important;
  font-size: 0.9rem !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
  white-space: nowrap;
}

#main-container #main-content #references-article {
  display: flex;
  flex-wrap: wrap;
}

#main-container #main-content #references-article .reference-logo {
  float: none !important;
  width: 100%;
  height: 9rem;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-container #main-content #references-article .reference-logo > .logo-img {
  width: auto;
  max-width: 10rem;
  max-height: 5.5rem;
  display: block;
  margin-top: 0;
  margin-bottom: 0;
}

#main-container #main-content #references-article .reference-logo > .logo-img.logo-img--wide {
  max-width: 16rem;
  max-height: 5rem;
}

#main-container #main-content #references-article .reference-logo > .logo-img.logo-img--large {
  max-width: 13rem !important;
  max-height: 6.5rem !important;
}

#main-container #main-content #references-article .reference-logo > .logo-img.logo-img--small {
  max-width: 9rem !important;
  max-height: 6.25rem !important;
}

@media screen and (max-width: 39.9375em) {
  #main-container #main-content #references-article .reference-logo {
    height: 8rem;
  }

  #main-container #main-content #references-article .reference-logo > .logo-img {
    max-width: 8.5rem;
    max-height: 4.75rem;
  }

  #main-container #main-content #references-article .reference-logo > .logo-img.logo-img--wide {
    max-width: 13rem;
    max-height: 4.25rem;
  }

  #main-container #main-content #references-article .reference-logo > .logo-img.logo-img--small {
    max-width: 7.5rem !important;
    max-height: 5.5rem !important;
  }

  #main-container #main-content #references-article .reference-logo > .logo-img.logo-img--large {
    max-width: 11rem !important;
    max-height: 5.5rem !important;
  }
}

@media screen and (min-width: 40em) {
  #main-container #main-content #references-article .reference-logo {
    width: 50%;
  }
}

@media screen and (min-width: 64em) {
  #main-container #main-content #references-article .reference-logo {
    width: 33.33333%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
