/* Announcement ticker strip — sits above the header on every frontend page */

.mr-ticker {
    position: relative;
    z-index: 10;
    background: #0E47A1;
    color: #fff;
}

.mr-ticker__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 0;
}

.mr-ticker__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .16);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/*
 * min-width: 0 releases the flex item's automatic minimum size, so a long
 * title truncates with an ellipsis instead of stretching the strip.
 */
.mr-ticker__viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 22px;
}

.mr-ticker__item {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
}

.mr-ticker__item.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.mr-ticker__item:hover,
.mr-ticker__item:focus {
    color: #fff;
    text-decoration: underline;
}

.mr-ticker__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.mr-ticker__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background .3s, border-color .3s;
}

.mr-ticker__btn:hover,
.mr-ticker__btn:focus-visible {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .6);
}

.mr-ticker__close {
    flex: 0 0 auto;
    border-color: transparent;
    font-size: 15px;
}

@media (max-width: 575px) {
    .mr-ticker__inner {
        gap: 8px;
    }

    .mr-ticker__label {
        padding: 4px 8px;
    }

    /* Only the megaphone icon survives on narrow screens */
    .mr-ticker__label-text {
        display: none;
    }

    .mr-ticker__item {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mr-ticker__item {
        transition: none;
        transform: none;
    }
}
