/* A broadcast from an administrator (js/broadcast.js): a banner stack at the top of every open page. The line is spoken too,
   but the banner is what a muted or deaf reader gets, so it is large enough to read and stays until dismissed or timed out. */
.rl-broadcasts {
    position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
    z-index: 2147483000; display: flex; flex-direction: column; gap: 8px;
    width: min(640px, calc(100vw - 32px)); pointer-events: none;
}
.rl-broadcasts:empty { display: none; }
.rl-broadcast {
    --rl-broadcast-tone: var(--rl-accent, #2f6df6);
    pointer-events: auto; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
    padding: 12px 12px 12px 16px; border-radius: 12px;
    background: var(--rl-surface-raised, #f5f6f8); color: var(--rl-text, #16181d);
    border: 1px solid color-mix(in srgb, var(--rl-broadcast-tone) 45%, var(--rl-border, #dfe2e8));
    border-left: 5px solid var(--rl-broadcast-tone);
    box-shadow: 0 10px 30px rgb(0 0 0 / .22);
    animation: rl-broadcast-in .2s ease-out;
}
.rl-broadcast--system { --rl-broadcast-tone: var(--rl-danger, #b3261e); }
.rl-broadcast--maintenance { --rl-broadcast-tone: var(--rl-warning, #e3b341); }
.rl-broadcast__line { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.rl-broadcast__when { font-size: .8rem; opacity: .7; white-space: nowrap; }
.rl-broadcast__close {
    border: 0; background: transparent; color: inherit; font-size: 1.3rem; line-height: 1;
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
}
.rl-broadcast__close:hover, .rl-broadcast__close:focus-visible { background: color-mix(in srgb, var(--rl-text, #16181d) 10%, transparent); }
@keyframes rl-broadcast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rl-broadcast { animation: none; } }
