/* ─── SportsTalkSC "Latest News" bar (navy, palmetto green, condensed caps) ───
   Sits in the page under the site header. --fixed = old bottom bar for themes without the hook. */

.stsc-newsbar {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: stretch;
    height: 40px;
    background: #0B1F3A;
    font-family: Barlow, 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
}

.stsc-newsbar--fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    border-top: 3px solid #2E6F4E;
}
body:has(.stsc-newsbar--fixed) { padding-bottom: 40px; }

.stsc-newsbar__label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 3px 14px 0;
    background: #2E6F4E;
    color: #fff;
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: 21px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.stsc-newsbar__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 18px;
}

.stsc-newsbar__track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: stsc-newsbar-scroll 60s linear infinite; /* duration is set per page from the text length */
    will-change: transform;
}

.stsc-newsbar:hover .stsc-newsbar__track,
.stsc-newsbar:focus-within .stsc-newsbar__track {
    animation-play-state: paused;
}

@keyframes stsc-newsbar-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.stsc-newsbar__item {
    display: inline-block;
    color: #E5E7EB;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}
a.stsc-newsbar__item:hover,
a.stsc-newsbar__item:focus {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #2E6F4E;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.stsc-newsbar__ext {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    line-height: 1;
    opacity: .6;
    vertical-align: super;
}

.stsc-newsbar__sep {
    display: inline-block;
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin: 0 20px;
    background: #2E6F4E;
}

.stsc-newsbar__partner {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 14px;
    background: #fff;
    color: #0B1F3A;
    text-decoration: none;
    position: relative;
    z-index: 1;
}
.stsc-newsbar__by { color: #5B6573; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.stsc-newsbar__name { font-size: 14px; font-weight: 700; }
.stsc-newsbar__partner img { display: block; width: auto; height: 24px; }

@media (max-width: 600px) {
    .stsc-newsbar { height: 36px; }
    .stsc-newsbar__label { padding: 3px 10px 0; font-size: 18px; }
    .stsc-newsbar__by { display: none; }
}

/* Keep scrolling even when the device asks for reduced motion (the theme stops all other
   animations then). Owner's call: the ticker must always move. Hover/focus still pauses it. */
@media (prefers-reduced-motion: reduce) {
    .stsc-newsbar .stsc-newsbar__track { animation: stsc-newsbar-scroll var(--stsc-newsbar-dur, 60s) linear infinite !important; }
    .stsc-newsbar:hover .stsc-newsbar__track,
    .stsc-newsbar:focus-within .stsc-newsbar__track { animation-play-state: paused !important; }
}
