/* Press Marquee block. Tokens come from style.css. */

.pressmarquee-block {
    overflow: hidden;
    background: var(--vb-surface-2);
    border-top: 1px solid var(--vb-hair);
    border-bottom: 1px solid var(--vb-hair);
}

.pressmarquee-inner {
    display: flex;
    align-items: center;
    height: 76px;
    color: inherit;
    text-decoration: none;
}

.pressmarquee-label {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 100%;
    padding: 0 28px 0 var(--gutter);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vb-text-secondary);
    background: var(--vb-surface-2);
}

.pressmarquee-viewport {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.pressmarquee-track {
    display: flex;
    width: max-content;
    height: 100%;
    opacity: 0.4;
    animation: vbMarquee var(--marquee-duration, 36s) linear infinite;
    transition: opacity 200ms ease;
}

a.pressmarquee-inner:hover .pressmarquee-track {
    opacity: 0.6;
}

.pressmarquee-inner:hover .pressmarquee-track {
    animation-play-state: paused;
}

/* Each half carries its own trailing gap so -50% lands exactly on the copy. */
.pressmarquee-set {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 58px;
    padding-right: 58px;
}

.pressmarquee-item {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
    white-space: nowrap;
    color: var(--vb-navy);
}

.pressmarquee-logo {
    display: block;
    width: auto;
    max-width: 170px;
    height: 28px;
    object-fit: contain;
    filter: grayscale(1);
}

/* Size by area: a square mark at the wordmark height reads as a dot. */
.pressmarquee-logo.is-square {
    height: 46px;
}

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

@media (max-width: 767px) {
    .pressmarquee-inner {
        height: 64px;
    }

    .pressmarquee-label {
        padding-right: 16px;
        font-size: 12px;
    }

    .pressmarquee-set {
        gap: 40px;
        padding-right: 40px;
    }

    .pressmarquee-item {
        font-size: 19px;
    }

    .pressmarquee-logo {
        height: 22px;
    }

    .pressmarquee-logo.is-square {
        height: 38px;
    }
}

/* No motion: a still row that scrolls by hand, without the duplicate. */
@media (prefers-reduced-motion: reduce) {
    .pressmarquee-track {
        animation: none;
    }

    .pressmarquee-viewport {
        overflow-x: auto;
    }

    .pressmarquee-set[aria-hidden="true"] {
        display: none;
    }
}
