/* Header news ticker (above the primary nav) */

.site-news-ticker {
  background: #3b7662;
  color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  position: relative;
  overflow: hidden;
  z-index: 110; /* above header border/shadows */
}

.site-news-ticker__viewport {
  max-width: 1340px;
  margin: 0 auto;
  padding: 8px 24px;
  overflow: hidden;
  position: relative;
}

.site-news-ticker__track {
  position: relative;
  height: 1.4em;
  overflow: hidden;
}

.site-news-ticker__item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(9999px);
  will-change: transform;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-news-ticker__item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.site-news-ticker__item a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}

.site-news-ticker__item a:hover,
.site-news-ticker__item a:focus {
  color: #edf4f1;
}

@media (max-width: 480px) {
  .site-news-ticker__viewport {
    padding: 7px 14px;
  }

  .site-news-ticker__track {
    height: 3.15em;
  }

  .site-news-ticker__item {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    white-space: normal;
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0;
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-news-ticker__viewport {
    overflow: auto;
  }

  .site-news-ticker__track {
    height: auto;
  }

  .site-news-ticker__item {
    position: static;
    transform: none !important;
    transition: none !important;
    opacity: 1;
    pointer-events: auto;
    display: inline;
    margin-right: 32px;
    white-space: normal;
  }
}
