/* Scrolling link marquee — matches .new-uppermenu / .link-top-header */
:root {
  --pzps-marquee-height: 40px;
  --pzps-marquee-duration: 20s;
}

.new-uppermenu > .div-block-280,
.new-uppermenu > .div-block-291 {
  flex-shrink: 0;
}

.pzps-marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  margin: 0 16px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 24px,
    #000 calc(100% - 24px),
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 24px,
    #000 calc(100% - 24px),
    transparent
  );
}

.pzps-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 1.4em;
  font-size: 14px;
  line-height: 1.4;
  animation: pzps-marquee-scroll var(--pzps-marquee-duration) linear infinite;
}

.pzps-marquee:hover .pzps-marquee__track {
  animation-play-state: paused;
}

.pzps-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  padding-right: 0;
  font-size: 14px;
  line-height: 1.4;
}

.pzps-marquee__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1.4;
}

.pzps-marquee .link-top-header {
  padding: 0;
  font-size: 14px;
  line-height: 1.4 !important;
  background-image: linear-gradient(
    90deg,
    #ffffff 0%,
    #aeaeae 35%,
    #ee6213 50%,
    #eea613 65%,
    #ffffff 100%
  );
  background-size: 250% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: pzps-marquee-gradient 5s ease-in-out infinite;
  transition: background-image 0.25s ease, -webkit-text-fill-color 0.25s ease,
    color 0.25s ease;
}

.pzps-marquee .link-top-header:hover {
  background-image: none;
  -webkit-text-fill-color: var(--chocolate, #ee6213);
  color: var(--chocolate, #ee6213);
  animation: none;
}

.pzps-marquee__sep {
  display: inline-block;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  margin: 0 20px;
  border-radius: 50%;
  background-color: var(--white, #fff);
  align-self: center;
  user-select: none;
}

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

@keyframes pzps-marquee-gradient {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

  .pzps-marquee .link-top-header {
    animation: none;
    background-image: none;
    -webkit-text-fill-color: var(--white);
    color: var(--white);
  }
}

/*
 * Mobile: hide upper-menu chrome (NIC / social / lang) and keep a black
 * marquee-only strip.
 *
 * Main PZPS site: marquee on top, white .the-menu under it (same order as
 * desktop) so a black bar is not wedged between nav and hero.
 * NIC (.body-nic / .navbar): marquee sits under the dark navbar; top is set
 * via --pzps-nav-height from WebFlowParser::injectMarquee.
 */
@media screen and (max-width: 767px) {
  .new-uppermenu:has(.pzps-marquee) {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 15 !important;
    width: 100%;
    height: var(--pzps-marquee-height);
    min-height: var(--pzps-marquee-height);
    max-height: var(--pzps-marquee-height);
    padding: 0 12px;
    border-bottom: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Break body-nic / vw-based inheritance that collapses line boxes */
    font-size: 14px;
    line-height: 1.4;
  }

  /* Main site: push white nav below the marquee (mirrors desktop top: 48px). */
  body:not(.body-nic) .the-menu {
    top: var(--pzps-marquee-height) !important;
    /* Shadow painted a dark seam on top of the hero */
    box-shadow: none !important;
  }

  /* NIC: marquee under the fixed dark navbar. */
  .body-nic .new-uppermenu:has(.pzps-marquee) {
    top: var(--pzps-nav-height, 60px);
    z-index: 14 !important;
  }

  .new-uppermenu:has(.pzps-marquee) > .div-block-280,
  .new-uppermenu:has(.pzps-marquee) > .div-block-291 {
    display: none !important;
  }

  .new-uppermenu:has(.pzps-marquee) .pzps-marquee {
    display: flex;
    align-items: center;
    margin: 0;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
  }

  .new-uppermenu:has(.pzps-marquee) .pzps-marquee__track,
  .new-uppermenu:has(.pzps-marquee) .pzps-marquee__group {
    font-size: 14px;
    line-height: 1.4;
  }

  /*
   * Full-bleed mobile strip is wider than the desktop center slot, so the same
   * 20s duration feels slower. --pzps-marquee-duration is scaled in JS to keep
   * the same crossing speed as desktop; CSS fallback ≈ 429/640 * 20s.
   */
  .new-uppermenu:has(.pzps-marquee) .pzps-marquee__track {
    animation: pzps-marquee-scroll var(--pzps-marquee-duration, 13s) linear infinite;
  }

  .new-uppermenu:has(.pzps-marquee) .pzps-marquee .link-top-header {
    font-size: 14px;
    line-height: 1.4 !important;
  }

  .new-uppermenu:has(.pzps-marquee) .pzps-marquee__sep {
    width: 4px;
    height: 4px;
    margin: 0 20px;
  }

  /* Stacking: marquee < open menu panel < hamburger / NIC nav */
  .show-menu,
  .show-menu.div-block-117 {
    z-index: 90 !important;
  }

  .the-menu,
  .navbar.w-nav,
  .navbar {
    z-index: 100 !important;
  }

  .the-menu .menu {
    position: relative;
    z-index: 1;
  }

  /*
   * Fixed marquee does not take flow space. Push page content by exactly the
   * marquee strip height (shared token) so the hero sits flush — no black gap.
   */
  body:has(.pzps-marquee) {
    padding-top: var(--pzps-marquee-height);
  }
}
