/**
 * Live ticker strip — same rules as home.html (shared site-wide via server inject + /home-ticker-global.js).
 */
:root {
    --home-ink-band: #20201c;
    --home-ink-line: rgba(255, 255, 255, 0.06);
    --chart-highlight: #B42A1A;
    --home-ticker-h: 0px;
}

.home-ticker-wrap,
#home-ticker-wrap {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home-ticker-wrap {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: var(--home-ink-band, #1a1916);
    border-bottom: 1px solid var(--home-ink-line, rgba(255, 255, 255, 0.085));
}
.home-ticker-wrap.is-visible {
    display: block;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    /* Above header.site-header (999999) so ticker + nav stack correctly while scrolling */
    z-index: 1000000;
}
.home-ticker {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 40px 0 0;
    box-sizing: border-box;
    min-height: 25px;
}
.home-ticker__flag {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0 20px 0 12px;
    font-family: var(--site-body, Inter, system-ui, sans-serif);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 244, 239, 0.58);
    background: var(--home-ink-band, #1a1916);
    border-right: 1px solid var(--home-ink-line, rgba(255, 255, 255, 0.085));
    user-select: none;
    pointer-events: none;
}
.home-ticker__viewport {
    min-width: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 5px 12px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 96%, transparent 100%);
}
.home-ticker__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: home-ticker-marquee 88s linear infinite;
}
.home-ticker-wrap:hover .home-ticker__track {
    animation-play-state: paused;
}
.home-ticker__strip {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: clamp(18px, 2.5vw, 32px);
    padding-right: clamp(18px, 2.5vw, 32px);
}
.home-ticker__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(180, 42, 26, 0.68);
    opacity: 0.7;
    flex-shrink: 0;
    margin-right: 2px;
}
.home-ticker__item {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    font-family: var(--site-body, Inter, system-ui, sans-serif);
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.035em;
    color: rgba(238, 237, 231, 0.54);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.home-ticker__item:hover,
.home-ticker__item:focus-visible {
    color: rgba(245, 244, 239, 0.82);
    outline: none;
}
.home-ticker__label {
    font-weight: 600;
    color: rgba(245, 244, 239, 0.76);
    flex-shrink: 0;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
}
.home-ticker__item:hover .home-ticker__label,
.home-ticker__item:focus-visible .home-ticker__label {
    color: rgba(245, 244, 239, 0.9);
}
.home-ticker__sep {
    color: rgba(238, 237, 231, 0.22);
    font-weight: 400;
    padding: 0 0.15em;
}
.home-ticker__text {
    font-weight: 400;
    color: rgba(238, 237, 231, 0.42);
    flex-shrink: 0;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
}
.home-ticker__pct {
    font-weight: 700;
    letter-spacing: 0.04em;
}
.home-ticker__pct--up {
    color: rgba(91, 188, 125, 0.78);
}
.home-ticker__pct--dn {
    color: rgba(205, 98, 92, 0.78);
}
@keyframes home-ticker-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .home-ticker__track {
        animation: none;
        transform: none;
    }
    .home-ticker__strip[aria-hidden="true"] {
        display: none;
    }
    .home-ticker__viewport {
        mask-image: none;
        -webkit-mask-image: none;
    }
}
@media (max-width: 768px) {
    .home-ticker-wrap {
        padding: 0 16px 0 0;
    }
    .home-ticker {
        padding-right: 0;
    }
}
