/* ─── Promo banner ─────────────────────────────────────────────────────────
   Site-wide promo ticker rendered by partials/promo_banner.php (public
   layout only), as the first visible element of <body>, before the sticky
   header.

   It sits in the normal flow and is NOT sticky: it scrolls away with the
   page and the header then sticks at top: 0 exactly as without it, so
   --header-h (the offset every fixed/sticky panel uses) is left untouched.

   Static by default (first run only, centred, wraps on narrow screens);
   the infinite scroll is opted into under prefers-reduced-motion:
   no-preference. Seamless loop: the track holds two identical groups and
   moves by exactly -50%.

   Colours: white on the site blue family; the lightest stop is #2563eb
   (white 5.17:1), so the small bold text stays AA everywhere on the strip. */

.lp-promo-banner {
    --lp-promo-h: 36px;
    --lp-promo-blue: #2563eb;
    --lp-promo-blue-deep: #1e40af;
    display: block;
    overflow: hidden;
    background: linear-gradient(90deg,
        var(--lp-promo-blue-deep) 0%,
        var(--lp-promo-blue) 50%,
        var(--lp-promo-blue-deep) 100%);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.lp-promo-banner:hover,
.lp-promo-banner:focus,
.lp-promo-banner:visited {
    color: #fff;
    text-decoration: none;
}
.lp-promo-banner:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.lp-promo-banner__track {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--lp-promo-h);
    padding-inline: var(--sp-4);
}
.lp-promo-banner__group {
    display: flex;
    align-items: center;
    flex: none;
}
.lp-promo-banner__run {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    row-gap: 2px;
    padding-block: 6px;
}
.lp-promo-banner__item { white-space: nowrap; }
.lp-promo-banner__sep {
    padding-inline: 0.9em;
    font-size: 0.8em;
    opacity: 0.85;
}

/* Static: one run, no trailing separator. */
.lp-promo-banner__group + .lp-promo-banner__group,
.lp-promo-banner__run + .lp-promo-banner__run,
.lp-promo-banner__run > .lp-promo-banner__sep:last-child {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .lp-promo-banner__track {
        justify-content: flex-start;
        width: max-content;
        padding-inline: 0;
        animation: lp-promo-ticker 48s linear infinite;
    }
    .lp-promo-banner__group + .lp-promo-banner__group,
    .lp-promo-banner__run + .lp-promo-banner__run {
        display: flex;
    }
    .lp-promo-banner__run {
        flex: none;
        flex-wrap: nowrap;
        padding-block: 0;
    }
    .lp-promo-banner__run > .lp-promo-banner__sep:last-child { display: inline; }
    .lp-promo-banner:hover .lp-promo-banner__track,
    .lp-promo-banner:focus-visible .lp-promo-banner__track {
        animation-play-state: paused;
    }
}
@keyframes lp-promo-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media print {
    .lp-promo-banner { display: none; }
}
