/* Site-wide announcement ticker */

:root {
    --sc-ticker-height: 42px;
}

.sc-ticker {
    --sc-ticker-chocolate: #2a1814;
    --sc-ticker-brown: #4a2f26;
    --sc-ticker-gold: #b8925a;
    --sc-ticker-gold-light: #dcc9a3;
    --sc-ticker-speed: 35s;
    background: linear-gradient(90deg, var(--sc-ticker-chocolate), var(--sc-ticker-brown));
    color: var(--sc-ticker-gold-light);
    border-bottom: 1px solid rgba(184, 146, 90, 0.25);
    overflow: hidden;
    width: 100%;
    flex-shrink: 0;
}

.sc-ticker__viewport {
    overflow: hidden;
    width: 100%;
}

.sc-ticker__track {
    display: flex;
    align-items: center;
    width: max-content;
    min-height: var(--sc-ticker-height);
    animation: scTickerScroll var(--sc-ticker-speed) linear infinite;
    will-change: transform;
}

.sc-ticker__track:hover {
    animation-play-state: paused;
}

.sc-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sc-ticker__item i {
    color: var(--sc-ticker-gold);
    font-size: 12px;
}

.sc-ticker__item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sc-ticker__item a:hover {
    color: #fff;
}

.sc-ticker__sep {
    color: rgba(184, 146, 90, 0.55);
    font-size: 10px;
    flex-shrink: 0;
}

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

/* JS header sync measures the full fixed header (incl. ticker).
   Keep a safe fallback only until sync runs. */
body.has-site-ticker #content {
    padding-top: calc(122px + var(--sc-ticker-height));
}

@media (prefers-reduced-motion: reduce) {
    .sc-ticker__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .sc-ticker__sep {
        display: none;
    }
}

@media (max-width: 767px) {
    :root {
        --sc-ticker-height: 38px;
    }

    .sc-ticker__item {
        padding: 8px 16px;
        font-size: 12px;
    }

    body.has-site-ticker #content {
        padding-top: calc(100px + var(--sc-ticker-height));
    }
}
