/* Career Fixx — home "Our Media Presence": one row of outlet logos that keeps moving
   (partials/slider-media.blade.php). Logos sit in cells split by thin lines, in grey until
   pointed at; the row fades out at both ends and stops while the pointer is on it. */

.cfx-sl-press { --press-line: #e7e3f1; padding: clamp(48px, 6vw, 84px) 0; background: var(--cf-surface, #fff); }
html[data-theme="dark"] .cfx-sl-press { --press-line: rgba(255, 255, 255, .1); }

html body .cfx-sl-press .cfx-press-title {
    margin: 0 0 clamp(26px, 3vw, 38px);
    color: var(--gl-ink, #16122b);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-align: center;
}
html body .cfx-sl-press .cfx-press-title span {
    background: var(--gl-accent-grad, linear-gradient(135deg, #9b3cf6, #5b21b6));
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* the strip: a line along the top, both ends fading out */
.cfx-press-strip {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--press-line);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.cfx-press-track { display: flex; width: max-content; animation: cfxPressRun var(--press-time, 35s) linear infinite; }
.cfx-press-strip:hover .cfx-press-track,
.cfx-press-strip:focus-within .cfx-press-track { animation-play-state: paused; }
@keyframes cfxPressRun { to { transform: translateX(-50%); } }

.cfx-press-row { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
html body .cfx-press-logo {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 92px;
    margin: 0;
    padding: 0 22px;
    border-right: 1px solid var(--press-line);
}
.cfx-press-logo > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* the logos: grey and a little faded, in colour when pointed at;
   multiply drops a white background around a logo (screen does the same for dark mode) */
.cfx-press-logo img {
    display: block;
    max-width: 128px;
    max-height: 44px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .62;
    mix-blend-mode: multiply;
    transition: filter .35s ease, opacity .35s ease;
}
.cfx-press-logo:hover img { filter: none; opacity: 1; }
html[data-theme="dark"] .cfx-press-logo img { filter: grayscale(1) invert(1); opacity: .7; mix-blend-mode: screen; }
html[data-theme="dark"] .cfx-press-logo:hover img { filter: grayscale(1) invert(1) brightness(1.3); opacity: 1; }

/* a logo that can't be loaded */
.cfx-press-ph { display: none; align-items: center; gap: 7px; color: #a19bb8; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.is-empty > .cfx-press-ph { display: inline-flex; }

@media (max-width: 767.98px) {
    html body .cfx-press-logo { width: 140px; height: 76px; padding: 0 16px; }
    .cfx-press-logo img { max-width: 100px; max-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    .cfx-press-track { animation: none; }
    .cfx-press-strip { overflow-x: auto; }
}
