/* Announcement bar above the main navigation (built by announcement-bar.js). */

:root {
    --ann-h: 44px;
}

/* The bar sits inside the fixed nav, so push the page down by its height. */
.has-ann body {
    padding-top: var(--ann-h);
}

.ann {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--ann-h);
    padding: 0 52px;
    background: #2453B3;
    color: #FFFFFF;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.2;
}

.ann-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
}

.ann-slide {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    transition: opacity 0.18s ease;
}

.ann-slide.is-changing {
    opacity: 0;
}

.ann-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ann-text {
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ann-short {
    display: none;
}

.ann-cta {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: 30px;
    padding: 0 16px;
    border-radius: 999px;
    background: #FFC83D;
    color: #172033;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.ann-cta:hover {
    background: #FFD866;
    color: #172033;
}

.ann-arrow,
.ann-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ann-arrow:hover,
.ann-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

.ann-close {
    position: absolute;
    top: 50%;
    right: 12px;
    font-size: 15px;
    transform: translateY(-50%);
}

.ann :focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .ann {
        padding: 0 44px 0 8px;
        font-size: 13px;
    }

    .ann-inner,
    .ann-slide {
        gap: 8px;
    }

    .ann-tag,
    .ann-long {
        display: none;
    }

    .ann-short {
        display: inline;
    }

    .ann-cta {
        min-height: 28px;
        padding: 0 12px;
        font-size: 11px;
    }

    .ann-close {
        right: 6px;
    }
}

@media (max-width: 420px) {
    .ann {
        padding-left: 12px;
    }

    .ann-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ann-slide {
        transition: none;
    }
}
