/*
 * Top banner — rotating trust/announcement strip at the very top of the page.
 * Slim, editorial bar with decorative flourishes on either side.
 * Overrides legacy padding from style.css and layout/top-banner.css.
 */

.top-banner {
    background: var(--color-text);
    color: var(--color-surface);
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: var(--z-banner);
    padding: 0;
    font-size: 11px;
    letter-spacing: 0.18em;
    line-height: 1;
}

/* Defeat the legacy .top-banner .container flex from layout/top-banner.css */
.top-banner > .container,
.top-banner .top-banner-inner {
    display: block;
    padding: 0;
}

.top-banner-track {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-4);
}

.top-banner-msg {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 400ms ease-in-out;
    padding: 0 var(--space-4);
    color: inherit;
}

.top-banner-msg-active {
    opacity: 1;
}

/* Decorative flourishes around the message — small asterisk dots */
.top-banner-msg::before,
.top-banner-msg::after {
    content: "✦";
    font-size: 7px;
    color: var(--color-accent);
    opacity: 0.85;
    letter-spacing: 0;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .top-banner-track { height: 28px; }
    .top-banner-msg {
        font-size: 9.5px;
        letter-spacing: 0.16em;
        gap: 10px;
    }
    .top-banner-msg::before,
    .top-banner-msg::after { font-size: 6px; }
}
