/* Platform status banner, matching the issue banner designed in the Help Center v4 mock
   ("Level Help Center v4 - Web (MOCK)", reference/mock.html). The slot is always present
   and empty while the platform is healthy, so it reserves no height and cannot move the
   first paint. */

/* Slot. The mock nests it in .wrap, which wraps the header bar and main together and
   supplies one gutter for both. This theme has no such shared wrap, so the slot carries
   the inset itself and is sized to the box of the header bar it sits directly under:
   the native header below, and the v4 header bar in the rule after it. */
.issue-slot{flex-shrink:0;min-width:0;}
#level-status-banner{box-sizing:border-box;width:100%;max-width:1060px;margin:0 auto;padding:0 28px;}
body:is(.level-v4,:has(.level-v4-shell),[data-level-v4-route] body) #level-status-banner{width:calc(100% - 56px);max-width:1244px;padding:0;}
#level-status-banner:empty{display:none;}

/* Banner, verbatim from the mock. --r-md is 16px there; this theme has no radius custom
   property, and 16px is its most common border-radius, so the literal is used. */
.issue-banner{display:flex;align-items:flex-start;gap:10px;margin:14px 0 0;padding:12px 16px;border:1px solid #b48723;border-radius:16px;background:#fff2ca;color:#4b3811;font-size:14px;line-height:1.4;}
.issue-banner > .ic{flex-shrink:0;margin-top:3px;}
/* The mock shares .ic across components. Scoped here so a two-letter global class is not
   introduced into a theme that has none; the computed result is the same. */
.issue-banner .ic{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.issue-tag{display:block;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-bottom:2px;}
.issue-banner strong{display:block;font-size:15px;}
.issue-banner p{margin:3px 0 0;color:#4b3811;}

/* State variants. The mock defines only the amber set, which is degraded. Outage and
   maintenance change border, background and text colour and nothing else, and were derived
   to carry the same contrast ratios as the amber set: 10.04:1 text on background and
   2.92:1 border on background. The outage red is kept clearly apart from the safety-form
   accent, CIE Lab dE76 16.2, which stays reserved for safety surfaces. */
.issue-banner-outage{border-color:#d9475c;background:#ffcad3;color:#530f21;}
.issue-banner-outage p{color:#530f21;}
.issue-banner-maintenance{border-color:#4180d8;background:#cadfff;color:#152d57;}
.issue-banner-maintenance p{color:#152d57;}

/* Below 900px the v4 header halves its gutter, as the mock's .wrap does at the same
   breakpoint. The slot follows so the two stay aligned. */
@media(max-width:899px){
  body:is(.level-v4,:has(.level-v4-shell),[data-level-v4-route] body) #level-status-banner{width:calc(100% - 28px);}
}
