/* Homepage notices bar — fixed above site header */

:root {
    --site-notices-height: 42px;
}

.site-notices-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    width: 100%;
    min-height: var(--site-notices-height);
    background: linear-gradient(90deg, #0f4d2e 0%, #146f38 50%, #0f4d2e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.site-notices-top__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: var(--site-notices-height);
    max-width: var(--hp-container-max, 1320px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--hp-gutter, 1.25rem);
    padding-right: var(--hp-gutter, 1.25rem);
}

.site-notices-top__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #ffdd88;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-notices-top__label i {
    font-size: 11px;
}

.site-notices-top__ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.site-notices-top__track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: siteNoticesTicker 38s linear infinite;
}

.site-notices-top__track:hover {
    animation-play-state: paused;
}

.site-notices-top__item {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
}

.site-notices-top__item:hover {
    color: #ffdd88;
}

.site-notices-top__all {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #ffdd88;
    text-decoration: none;
    white-space: nowrap;
}

.site-notices-top__all:hover {
    color: #fff;
    text-decoration: underline;
}

@keyframes siteNoticesTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Push header + homepage hero below the notices bar */
body.homepage-with-notices .site-header {
    top: var(--site-notices-height) !important;
}

body.homepage-with-notices {
    --site-header-height: 80px;
}

body.homepage-with-notices .site-main .anj-banner {
    padding-top: calc(var(--site-header-height) + var(--site-notices-height) + 1.25rem) !important;
}

@media (max-width: 767px) {
    :root {
        --site-notices-height: 72px;
    }

    .site-notices-top__inner {
        flex-wrap: wrap;
        align-items: center;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 8px 12px;
    }

    .site-notices-top__ticker {
        flex: 1 1 100%;
        order: 3;
    }

    .site-notices-top__all {
        margin-left: auto;
    }
}
