:root {
  --mm-marquee-bg: #052326;
  --mm-marquee-fg: #f4f2ec;
  --mm-topbar-h: 40px;
}

/* ===== Shared marquee component ===== */
.mm-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--mm-marquee-bg);
}

.mm-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: mm-marquee-scroll 32s linear infinite;
}
.mm-marquee:hover .mm-marquee-track,
.mm-marquee:focus-within .mm-marquee-track { animation-play-state: paused; }

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

.mm-marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  white-space: nowrap;
  color: var(--mm-marquee-fg);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .2px;
  border-right: 1px solid rgba(244, 242, 236, .15);
}
/* !important: the theme's generic a:hover rule outranks this plain class on
   specificity, which was turning the link text black on hover. */
a.mm-marquee-item:hover,
a.mm-marquee-item:hover .mm-marquee-label { color: var(--mm-marquee-fg) !important; text-decoration: underline; }

.mm-marquee-icon { flex-shrink: 0; }
.mm-icon-stroke { stroke: var(--mm-marquee-fg) !important; fill: none !important; }
.mm-icon-fill { fill: var(--mm-marquee-fg) !important; stroke: none !important; }

/* ===== Top bar — site-wide, sits above the fixed header ===== */
/* Not sticky itself: normal fixed-at-page-top bar that header.js slides up
   and out of view past a small scroll threshold, while the header (already
   fixed) animates its own "top" offset down to take its place. */
.mm-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9998;
  transition: transform .3s ease;
}
.mm-topbar.is-hidden { transform: translateY(-100%); }
.mm-topbar .mm-marquee-item { padding: 11px 28px; font-size: 12.5px; }

/* ===== Below trust-videos bar — front page only ===== */
.mm-redbox-marquee {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.mm-redbox-marquee .mm-marquee-item { padding: 11px 32px; font-size: 14.5px; }

@media screen and (max-width: 560px) {
  .mm-marquee-item { padding: 10px 18px; font-size: 12px; }
  .mm-redbox-marquee .mm-marquee-item { padding: 14px 20px; font-size: 13px; }
}
