/* ==========================================================================
   ANNOUNCEMENT TOPBAR — seamless infinite marquee

   The track holds two identical groups and animates
   translateX(0) -> translateX(-50%), so group two starts exactly where
   group one ended. The seam is invisible and there is no dead space,
   because each group carries its own trailing gap (padding-right) that
   matches the gap between its items.
   ========================================================================== */

.eman-announce {
  position: relative;
  z-index: 2;
  max-height: 48px;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  transition:
    max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.24s ease,
    border-color 0.32s ease;
}

/* Scroll away with the hero: the navbar keeps exactly the height it had
   before the bar existed, so no page offset changes while scrolling. */
.site-header.is-scrolled .eman-announce {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.eman-announce-viewport {
  display: flex;
  align-items: center;
  height: 44px;
  overflow: hidden;
}

.eman-announce-track {
  display: flex;
  width: max-content;
  animation: eman-announce-scroll 48s linear infinite;
  will-change: transform;
}

.eman-announce-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 34px;
  /* Trailing gap closes the loop: the space after the last message is the
     same 34px as the space between messages. */
  padding-right: 34px;
}

.eman-announce-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: #000000;
  font-family: var(--font-heading, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.eman-announce-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #000000;
}

@keyframes eman-announce-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Let a visitor stop the motion to read a message. */
.eman-announce:hover .eman-announce-track {
  animation-play-state: paused;
}

@media (max-width: 900px) {
  .eman-announce {
    max-height: 44px;
  }

  .eman-announce-viewport {
    height: 40px;
  }

  .eman-announce-group {
    gap: 24px;
    padding-right: 24px;
  }

  .eman-announce-item {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .eman-announce-icon {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* No motion: the offers stay readable and horizontally scrollable, and
     the duplicate group is dropped so nothing is announced twice. */
  .eman-announce-track {
    animation: none;
  }

  .eman-announce-group[aria-hidden="true"] {
    display: none;
  }

  .eman-announce-viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .eman-announce-viewport::-webkit-scrollbar {
    display: none;
  }
}
