/* ==========================================================================
   announcement_bar.css — full-width scrolling marquee (CSS only, no JS).
   Requires common.css.

   The track holds the SAME group of messages twice. Animating the track by
   -50% scrolls exactly one group width, so it loops seamlessly. Speed is set
   by the duration only — raise it to slow the scroll, lower it to speed up.
   ========================================================================== */

.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  overflow: hidden;
  background: #ffeede;
}

/* Clipping window */
.announcement-bar__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* The full strip = two identical groups laid side by side */
.announcement-bar__track {
  display: flex;
  width: max-content;
  animation: announcement-scroll 60s linear infinite;
}

/* One repeated set of messages */
.announcement-bar__group {
  display: flex;
  flex-shrink: 0;
  gap: 26px;
  padding-right: 26px;
  margin: 0;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #4c4949;
}

@keyframes announcement-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause when the user hovers, so they can read it */
.announcement-bar:hover .announcement-bar__track {
  animation-play-state: paused;
}

@media (max-width: 620px) {
  .announcement-bar__group {
    font-size: 12px;
  }
}
