/**
 * Site-wide birthday promo banner: a continuously scrolling "running row".
 * Positioned relative so it pushes the sticky header down naturally;
 * the existing header.fixed behavior re-stickies above it after scroll.
 */
.s9-promo-banner {
    position: relative;
    z-index: 1;
    background: #0F2447;
    color: #fff;
    font-family: 'Plus Jakarta Sans', -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

/* Viewport clips the over-wide scrolling track. */
.s9-promo-banner__viewport {
    overflow: hidden;
}

/* The track holds 8 identical segments side by side. translateX(-50%)
   shifts it by exactly 4 segments; segment 5 == segment 1, so the loop
   is seamless. width:max-content keeps every segment on one line. */
.s9-promo-banner__track {
    display: flex;
    width: max-content;
    animation: s9-promo-scroll 36s linear infinite;
    will-change: transform;
}

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

/* Pause while the visitor hovers so they can read it. */
.s9-promo-banner:hover .s9-promo-banner__track {
    animation-play-state: paused;
}

.s9-promo-banner__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.s9-promo-banner__emoji {
    font-size: 17px;
    line-height: 1;
}

.s9-promo-banner__sep {
    color: #1F86FF;
    font-size: 14px;
}

/* Soft fades at both ends so text eases in and out of the running row. */
.s9-promo-banner::before,
.s9-promo-banner::after {
    content: "";
    position: absolute;
    top: 0;
    width: 64px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.s9-promo-banner::before {
    left: 0;
    background: linear-gradient(90deg, #0F2447 0%, rgba(15, 36, 71, 0) 100%);
}
.s9-promo-banner::after {
    right: 0;
    background: linear-gradient(90deg, rgba(15, 36, 71, 0) 0%, #0F2447 100%);
}

@media (max-width: 600px) {
    .s9-promo-banner__item {
        font-size: 13px;
        gap: 8px;
        padding: 10px 0;
    }
    /* Shorter track travel reads faster on narrow screens; speed it up. */
    .s9-promo-banner__track {
        animation-duration: 24s;
    }
}

/* Respect reduced-motion: stop scrolling, center the first segment. */
@media (prefers-reduced-motion: reduce) {
    .s9-promo-banner__viewport {
        display: flex;
        justify-content: center;
    }
    .s9-promo-banner__track {
        animation: none;
        width: auto;
    }
    .s9-promo-banner__item:not(:first-child) {
        display: none;
    }
}
