.nv-ab {
  background: var(--nv-ab-bg, #185FA5);
  color: var(--nv-ab-fg, #ffffff);
  font-size: 14px;
  line-height: 1.35;
  position: relative;
  width: 100%;
  /* Same layer as the theme's fixed header and slide-in menus; being earlier in the DOM,
     an opened menu or filter panel still covers the bar instead of losing its top edge. */
  z-index: 1000;
}

/* announcement_bar.js publishes --nv-ab-offset (px of the header bar still in view).
   The fixed headers below are pinned to top:0; move them under the bar instead. */
@media (max-width: 1200px) {
  /* Fixed only up to 1200px; wider it is static, or relative while a search is open. */
  html #main-nav {
    top: var(--nv-ab-offset, 0px);
  }
}

html .nav-in .main-nav-2,
html .nav-in .header-7 .main-nav-1 {
  top: var(--nv-ab-offset, 0px);
}

/* Mobile BrainyFilter toggle and panel hang right below the 60px mobile header. */
html .bf-responsive.bf-active.bf-left .bf-check-position,
html .bf-responsive.bf-active.bf-left .bf-btn-show,
html .bf-responsive.bf-active.bf-left .bf-btn-reset,
html .bf-responsive.bf-active.bf-right .bf-check-position,
html .bf-responsive.bf-active.bf-right .bf-btn-show,
html .bf-responsive.bf-active.bf-right .bf-btn-reset {
  top: calc(60px + var(--nv-ab-offset, 0px));
}

.nv-ab a,
.nv-ab a:hover,
.nv-ab a:focus {
  color: inherit;
  text-decoration: underline;
}

.nv-ab__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 44px;
  text-align: center;
}

.nv-ab__link {
  display: block;
  text-decoration: none;
}

.nv-ab__content p,
.nv-ab__rotator p,
.nv-ab__seg p {
  margin: 0;
}

.nv-ab--sticky.nv-ab--header {
  position: sticky;
  top: 0;
}

.nv-ab--sticky.nv-ab--footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}

.nv-ab__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 0 4px;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.nv-ab__close:hover {
  opacity: 1;
}

.nv-ab.nv-ab--dismissed {
  display: none;
}

/* Sliding / marquee */
.nv-ab__marquee {
  overflow: hidden;
  white-space: nowrap;
}

.nv-ab__track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: nv-ab-marquee var(--nv-ab-speed, 18s) linear infinite;
}

.nv-ab__seg {
  display: inline-block;
  padding: 0 30px;
}

.nv-ab__seg > * {
  display: inline-block;
}

.nv-ab--marquee:hover .nv-ab__track {
  animation-play-state: paused;
}

@keyframes nv-ab-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Rotating */
.nv-ab__rotator > * {
  display: none;
}

.nv-ab__rotator > .nv-ab-active {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .nv-ab__track {
    animation: none;
  }
}
