/* Announcement Banner — slim site-wide bar above the header/nav */

/* Some page stylesheets (e.g. landing-auth.css) declare `* { font-family: ... }`.
   A universal selector matches children DIRECTLY, which always beats an inherited
   value, so the font must be set on descendants too -- not just the container. */
.announcement-banner,
.announcement-banner * {
    font-family: 'Montserrat', sans-serif;
}

.announcement-banner {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 46px 9px 20px;
    background: linear-gradient(135deg, #a81c56 0%, #d92e55 60%, #c9264c 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.15px;
    line-height: 1.4;
    text-align: center;
    animation: announcement-fade-in 0.5s ease-out both;
}

@keyframes announcement-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.announcement-banner__text {
    color: #ffffff;
    font-weight: 500;
}

.announcement-banner__text strong {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.announcement-banner__link {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.15px;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.announcement-banner__link:hover,
.announcement-banner__link:focus {
    color: #ffffff;
    opacity: 0.8;
}

.announcement-banner__dismiss {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin/padding/width/radius/shadow reset the global `button` rule in landing.css */
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
    font-size: 17px;
    line-height: 1;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* landing.css has a bare `button:hover { transform: scale(1.05); box-shadow: ... }`.
   Both must be restated here or the icon scales up and loses its translateY centering. */
.announcement-banner__dismiss:hover,
.announcement-banner__dismiss:focus {
    transform: translateY(-50%);
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    opacity: 1;
    outline: none;
}

@media (max-width: 640px) {
    .announcement-banner {
        flex-wrap: wrap;
        gap: 3px 8px;
        padding: 9px 40px 9px 14px;
        font-size: 12.5px;
    }

    .announcement-banner__link {
        font-size: 12.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-banner {
        animation: none;
    }
}
