/*
 * "New updates" pill shown in the header (empty space right of the button block)
 * when there is an unseen published release note. Rendered hidden by getMenu()
 * and revealed by js/whats_new_banner.js. Global (loads on every page).
 *
 * Orange accent so it stands out against the dark navy header in BOTH light and
 * dark mode (the header stays navy in both). Display is applied only via
 * :not([hidden]) so the `hidden` attribute keeps it invisible until revealed.
 */
.whats-new-banner {
    align-items: center;
    gap: 6px;
    vertical-align: top;
    margin: 9px 0 0 24px;
    padding: 6px 8px 6px 14px;
    border-radius: 9999px;
    background: #ff8c42;
    color: #14213d;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.whats-new-banner:not([hidden]) {
    display: inline-flex;
}

/* Gentle attention pulse (respects reduced-motion). */
@media (prefers-reduced-motion: no-preference) {
    .whats-new-banner:not([hidden]) {
        animation: whatsNewPulse 2.2s ease-in-out infinite;
    }
}

@keyframes whatsNewPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 140, 66, 0.55);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 7px rgba(255, 140, 66, 0);
    }
}

.whats-new-banner-link {
    color: #14213d;
    text-decoration: none;
}

/* Counter the global `* { font-size: 12px }` reset so nested tags keep the size. */
.whats-new-banner-link,
.whats-new-banner-link * {
    font-size: 13px;
}

.whats-new-banner-link:hover {
    text-decoration: underline;
}

.whats-new-banner-link strong {
    font-weight: 800;
}

/* The destination label -- deep blue so it contrasts with the orange pill and
 * reads as the clickable target. */
.whats-new-banner-cta {
    color: #0a2a72;
    font-weight: 800;
    text-decoration: underline;
}

.whats-new-banner-spark {
    margin-right: 2px;
}

.whats-new-banner-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    color: #14213d;
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
    padding: 0 4px;
    opacity: 0.65;
}

.whats-new-banner-dismiss:hover {
    opacity: 1;
}
