/* v2 Black Week marquee (components/v2/bw-marquee.html.twig), shared by the home/province hero
   (campaign-hero.css) and the club hero (club-bw-hero.css). Maquette (canvas 2026-11-20): black band,
   white DIN Condensed caps, 28px / 13px on mobile, 32px / 15px on desktop, items 28px apart with a
   grey dash between them, the whole row looping right to left.

   The track holds the item group twice; moving it by -50% brings the second group exactly where the
   first one started. 8 items per group (the maquette has 6) so the row still covers a 2560px screen;
   the duration grows in the same ratio (20s × 8/6) to keep the maquette's speed. */

.bf-bw-marquee {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 28px;
  overflow: hidden;
  background: var(--bf-c-black);
  color: var(--bf-c-white);
}

.bf-bw-marquee__track {
  display: flex;
  width: max-content;
  animation: bf-bw-marquee 27s linear infinite;
}

.bf-bw-marquee__group {
  display: flex;
}

/* DIN sits high in its line box: 2px of top padding recentres the caps (as the maquette). */
.bf-bw-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 2px 28px 0 0;
  font: 400 13px/1 var(--bf-font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bf-bw-marquee__dash {
  color: #666666;
}

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

@media (prefers-reduced-motion: reduce) {
  .bf-bw-marquee__track {
    animation: none;
  }
}

@media (min-width: 960px) {
  .bf-bw-marquee {
    height: 32px;
  }

  .bf-bw-marquee__item {
    font-size: 15px;
  }
}
