/**
 * Country-flag marquee — single shared implementation.
 * Loaded on every page (homepage + global header) via the `wmb-marquee` handle,
 * rendered by template-parts/marquee.php. Scroll speed is normalised to a
 * constant px/sec by assets/marquee-speed.js, so the CSS duration is just a
 * pre-JS fallback. The track set is duplicated, hence the -50% keyframe.
 */

.marquee {
  position: relative;
  z-index: 40;
  background: #111111;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  white-space: nowrap;
  animation: marquee 180s linear infinite;
  width: max-content;
}
.marquee__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-ui);
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0 16px;
  opacity: 0.88;
}
.marquee__item .flag { display: inline-flex; align-items: center; line-height: 1; }
/* Size the flag here so it's consistent on the homepage (where the global
   stylesheet is dequeued) and elsewhere (where style.css's `.flag-img` base
   would otherwise apply). Reset its margin/radius/shadow for a clean chip. */
.marquee__item .flag-img {
  height: 14px;
  width: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.marquee__dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--red);
  flex: 0 0 4px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (min-width: 1024px) {
  .marquee { height: 44px; }
  .marquee__item { font-size: 13px; padding: 0 22px; }
  .marquee__item .flag-img { height: 16px; }
}
