/* v5.75: one global strip, placed above the normal page header */
.o112-site-alerts[hidden]{display:none!important}.o112-site-alerts{position:static;z-index:auto;color:#fff;font:inherit;font-family:system-ui,-apple-system,sans-serif}.o112-site-alerts__inner{display:grid}.o112-alert{padding:0 clamp(14px,3vw,38px);border-bottom:1px solid #ffffff35}.o112-alert--ice{background:#16518c;color:#fff}.o112-alert--yellow{background:#f0c943;color:#23201a}.o112-alert--orange{background:#d8751f;color:#161412}.o112-alert--red{background:#aa2630;color:#fff}.o112-alert__line{min-height:43px;display:flex;align-items:center;gap:12px;padding:8px 0}.o112-alert__icon{font-size:19px;flex:none}.o112-alert__text{min-width:0;flex:1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:13px;line-height:1.45}.o112-alert__text strong{font-weight:800}.o112-alert__areas{font-weight:550;overflow-wrap:anywhere}.o112-alert__button{appearance:none;border:1px solid currentColor;border-radius:7px;background:transparent;color:inherit;padding:5px 9px;font:700 12px system-ui;cursor:pointer;white-space:nowrap}.o112-alert__source{color:inherit;font-size:12px;font-weight:750;text-underline-offset:3px;white-space:nowrap}.o112-alert__details{padding:0 0 12px 31px;font-size:12px;line-height:1.55;max-width:1100px}.o112-alert__details[hidden]{display:none!important}.o112-alert__details p{margin:0 0 5px}.o112-alert__details ul{margin:5px 0;padding-left:17px;columns:3}.o112-alert__details li{break-inside:avoid}.o112-alert__details a{color:inherit;text-underline-offset:3px}.o112-alert__line a{color:inherit}.o112-alert__source:hover,.o112-alert__details a:hover{text-decoration-thickness:2px}@media(max-width:760px){.o112-alert{padding:0 13px}.o112-alert__line{min-height:48px;gap:9px;padding:7px 0}.o112-alert__text{font-size:12px;display:block}.o112-alert__text strong{display:block}.o112-alert__areas{display:block;font-size:11px;line-height:1.4;margin-top:2px}.o112-alert__source{font-size:11px}.o112-alert__button{font-size:11px;padding:5px 7px}.o112-alert__details{padding-left:0}.o112-alert__details ul{columns:1}}

/* v5.79: alert contents constrained and aligned as a unit on large monitors. */
.o112-site-alerts__inner{width:100%}
.o112-alert{position:relative;isolation:isolate;overflow:hidden}
.o112-alert__line,.o112-alert__details{width:min(100%,1160px);margin-inline:auto;box-sizing:border-box;position:relative;z-index:1}
.o112-alert__text{flex:0 1 auto;max-width:min(880px,calc(100% - 110px))}
.o112-alert__button{flex:none;margin-left:0}
.o112-alert__details{padding-left:32px}
.o112-alert--ice{background:linear-gradient(110deg,#103d6b,#16518c 52%,#1e6095)}
.o112-alert--ice::before,.o112-alert--ice::after{content:"❄";position:absolute;z-index:0;pointer-events:none;color:rgba(222,244,255,.14);font-size:58px;line-height:1;top:50%;transform:translateY(-50%)}
.o112-alert--ice::before{left:max(12px,calc((100vw - 1320px)/2))}
.o112-alert--ice::after{right:max(12px,calc((100vw - 1320px)/2));font-size:38px;color:rgba(222,244,255,.12)}
.o112-alert--ice .o112-alert__icon{filter:drop-shadow(0 0 5px rgba(180,226,255,.55))}
.o112-alert--yellow{background:linear-gradient(110deg,#eed05c,#f0c943)}
.o112-alert--orange{background:linear-gradient(110deg,#e08c31,#d8751f)}
.o112-alert--red{background:linear-gradient(110deg,#941e29,#aa2630)}
@media(max-width:760px){.o112-alert__text{max-width:none;flex:1}.o112-alert__line{gap:8px}.o112-alert__details{padding-left:0}.o112-alert--ice::before{left:auto;right:48px;font-size:40px}.o112-alert--ice::after{display:none}}

/* The actual warning card (not just its text) also stays compact. */
.o112-alert{width:min(calc(100% - 24px),1200px);margin:8px auto 0;border:1px solid rgba(255,255,255,.19);border-radius:11px;box-shadow:0 5px 18px rgba(0,0,0,.13)}
.o112-alert:last-child{margin-bottom:8px}
.o112-alert--ice::before{left:14px}.o112-alert--ice::after{right:14px}
@media(max-width:760px){.o112-alert{width:calc(100% - 16px);margin-top:6px;border-radius:9px}.o112-alert:last-child{margin-bottom:6px}}

/* v5.80: Alerts participate in normal document flow. Never stack above
   sticky navigation or intercept its clicks when scrolling. */
#o112-site-alerts{position:static!important;z-index:auto!important;transform:none!important;filter:none!important;contain:none!important}
#o112-site-alerts .o112-alert{position:relative;z-index:auto}


/* v5.84: On the home live map, the app is position:fixed, so body grid
   rows cannot reserve space. Reserve the warning's actual height by moving
   only the OUTER fixed application viewport; do not touch its internals. */
body.odin112-next-body:has(> .cc-app) > #o112-site-alerts{
  position:fixed!important; top:0!important;left:0!important;right:0!important;
  bottom:auto!important;z-index:100!important;width:100%!important;
  max-height:min(55dvh,460px);overflow-y:auto;
  background:#081720;box-sizing:border-box;
}
body.odin112-next-body:has(> .cc-app) > .cc-app{
  top:var(--o112-alert-height,0px)!important;
  bottom:var(--cc-footer-height,34px)!important;
  height:auto!important;
  max-height:none!important;
}
/* The main map has its own anchored shell; keep the menu and all its overlays
   inside that shell so nothing can draw over the warning row. */
@media(max-width:780px){
  body.odin112-next-body:has(> .cc-app) > .cc-app{
    bottom:var(--cc-footer-height,50px)!important;
  }
}

/* v5.85 – Regular landing pages must not inherit the fixed full-screen
   map layout. Their alert strip occupies normal document space below header. */
body.odin112-next-body:not(:has(> .cc-app)) > #o112-site-alerts{
 position:relative!important;top:auto!important;bottom:auto!important;
 left:auto!important;right:auto!important;width:100%!important;
 max-height:none!important;overflow:visible!important;background:transparent!important;
 z-index:auto!important;
}
body.odin112-next-body:not(:has(> .cc-app)) > #o112-site-alerts .o112-alert:first-child{margin-top:12px}
body.odin112-next-body:not(:has(> .cc-app)) > #o112-site-alerts .o112-alert:last-child{margin-bottom:12px}

/* v5.86 – dismissible warnings and compact tray without overlaying the menu */
.o112-site-alerts__cards{display:grid;width:100%}
.o112-alert-tray{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:8px;width:min(100% - 24px,1200px);margin:4px auto 0;min-height:0}
.o112-alert-tray[hidden]{display:none!important}
.o112-alert-tray__restore,.o112-alert-hide-all{font:700 12px system-ui,-apple-system,sans-serif;cursor:pointer;border:1px solid rgba(165,200,229,.35);border-radius:9px;background:#163147;color:#ecf7ff;padding:7px 11px;line-height:1.3}
.o112-alert-tray__restore:hover,.o112-alert-hide-all:hover{background:#25465f}
.o112-alert__close{appearance:none;flex:none;display:grid;place-items:center;width:29px;height:29px;border:1px solid currentColor;border-radius:8px;background:rgba(0,0,0,.10);color:inherit;cursor:pointer;font:600 21px/1 system-ui;opacity:.9}
.o112-alert__close:hover{background:rgba(0,0,0,.22);opacity:1}
.o112-site-alerts--collapsed .o112-alert-tray{margin:5px auto;}
.o112-site-alerts--collapsed .o112-site-alerts__cards{display:none}
.o112-site-alerts--collapsed .o112-alert-tray__restore{font-size:12px}
@media(max-width:760px){.o112-alert-tray{width:calc(100% - 16px)}.o112-alert__close{width:27px;height:27px}.o112-alert__line{gap:6px}.o112-alert__button{padding:5px 6px}}


/* v6.05: The incident mount is a normal-flow child before the navigation. */
body.o112-incident-redesign .o112-incident-landing > #o112-site-alerts {
 display:block!important; position:relative!important; inset:auto!important;
 order:initial!important; width:100%!important; height:auto!important;
 margin:0!important; padding:0!important; max-height:none!important;
 overflow:visible!important; z-index:auto!important; transform:none!important;
}
body.o112-incident-redesign .o112-incident-landing > #o112-site-alerts[hidden] {display:none!important}
body.o112-incident-redesign .o112-incident-landing > #o112-site-alerts .o112-alert {margin-top:9px;margin-bottom:9px}

/* v6.06: Incident warnings are the first real body content, above the app bar. */
body.o112-incident-redesign > #o112-site-alerts {
  display:block!important;
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  order:unset!important;
  z-index:auto!important;
  transform:none!important;
}
body.o112-incident-redesign > #o112-site-alerts[hidden] {display:none!important}
body.o112-incident-redesign > #o112-site-alerts .o112-alert {margin-top:9px;margin-bottom:9px}
