/* os-status-alert.css - the RSI outage notice in the side nav foot (js/os-status-alert.js).
   Theme variables only (--console-ink, --console-ink-2, --accent, --rule, --console-2), no
   backing box. Severity = icon + words; the icon colour is a status hue mixed with
   --console-ink so it keeps 3:1+ on every rail. */
.osa { --osa-c: var(--accent); display: flex; align-items: flex-start; gap: 0.55rem; min-width: 0; padding: 0.15rem 0 0.1rem 0.6rem; border-left: 3px solid var(--osa-c); color: var(--console-ink); font-size: 0.82rem; line-height: 1.3; background: transparent; }
.osa[hidden] { display: none !important; }
.osa.is-maint, .osa.is-notice { --osa-c: color-mix(in srgb, #4a8ff0 55%, var(--console-ink)); }
.osa.is-degraded { --osa-c: color-mix(in srgb, #f0a020 60%, var(--console-ink)); }
.osa.is-partial  { --osa-c: color-mix(in srgb, #f07020 60%, var(--console-ink)); }
.osa.is-major    { --osa-c: color-mix(in srgb, #f03a3a 60%, var(--console-ink)); }
.osa.is-back     { --osa-c: color-mix(in srgb, #2fbf6a 55%, var(--console-ink)); }
.osa-ico { flex: none; margin-top: 0.1rem; font-size: 1rem; color: var(--osa-c); }
.osa-body { flex: 1 1 auto; min-width: 0; }
.osa-head { display: inline-block; color: var(--console-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--osa-c); text-underline-offset: 3px; overflow-wrap: anywhere; }
.osa-head:hover, .osa-head:focus-visible { text-decoration-thickness: 2px; }
.osa-head:focus-visible, .osa-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.osa-list { margin: 0.2rem 0 0; padding: 0; list-style: none; }
.osa-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.5rem; min-width: 0; }
.osa-name { min-width: 0; overflow-wrap: anywhere; }
.osa-lv { color: var(--console-ink-2); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.osa-lv .fa { color: var(--osa-c); }
.osa-x { flex: none; width: 32px; height: 32px; margin: -0.3rem -0.3rem 0 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--console-ink-2); cursor: pointer; }
.osa-x:hover { color: var(--console-ink); }
.osa-anim { animation: osa-in 0.3s ease-out; }
@keyframes osa-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* Keep the divider between the notice and the account card. */
.osa:not([hidden]) { position: relative; margin-bottom: 0.35rem; }
.osa::after { content: ""; position: absolute; left: -3px; right: 0; bottom: -0.65rem; height: 1px; background: linear-gradient(90deg, var(--rule), transparent); pointer-events: none; }
.rail-foot.has-osa::before { display: none; }
html.rail-min .rail-foot .osa { align-self: stretch; margin: 0 0.4rem; padding-left: 0.4rem; justify-content: center; }
html.rail-min .rail-foot .osa-body, html.rail-min .rail-foot .osa-x { display: none; }
@media (max-width: 1080px) {
    .rail-foot.has-osa { height: auto; min-height: 150px; }
    .nav-inner .rail-foot.has-osa ~ .rail-nav, .nav-inner:has(.rail-foot.has-osa) .rail-nav { bottom: var(--osa-foot-h, 150px); }
}
@media (prefers-reduced-motion: reduce) { .osa, .osa-anim { animation: none !important; transition: none !important; } }
