
/* ZR Orion V123.31 RC11.9.5 — final grid polish
   Targeted repair for the final five reported empty-grid and boundary-wrap issues. */

/* Shared Architecture / Shared Foundation Summary:
   enforce a true four-card 2x2 layout and keep every card/content visible. */
body.mi-system main .mi-pillars{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-rows:auto!important;
  gap:1px!important;
  align-items:stretch!important;
  background:rgba(103,223,245,.18)!important;
  border:1px solid rgba(103,223,245,.18)!important;
  overflow:hidden!important;
}
body.mi-system main .mi-pillars>.mi-pillar{
  display:block!important;
  position:relative!important;
  z-index:1!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:clamp(1.45rem,2.4vw,2.25rem)!important;
  background:#04111c!important;
  color:#eef8fc!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
}
body.mi-system main .mi-pillars>.mi-pillar::before,
body.mi-system main .mi-pillars>.mi-pillar::after{
  content:none!important;
  display:none!important;
}
body.mi-system main .mi-pillars>.mi-pillar h3,
body.mi-system main .mi-pillars>.mi-pillar p{
  display:block!important;
  position:relative!important;
  z-index:2!important;
  opacity:1!important;
  visibility:visible!important;
}
body.mi-system main .mi-pillars>.mi-pillar h3{
  color:#f2f8fb!important;
  margin:0 0 .75rem!important;
}
body.mi-system main .mi-pillars>.mi-pillar p{
  color:#a9c7d7!important;
  margin:0!important;
}

/* Operating Conditions, Mission State and Shared Meaning:
   use the list items themselves as the only cells. No decorative companion track. */
body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands){
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-rows:auto!important;
  gap:1px!important;
  width:100%!important;
  padding:0!important;
  margin-top:clamp(1.35rem,2vw,1.9rem)!important;
  background:rgba(103,223,245,.18)!important;
  border:1px solid rgba(103,223,245,.18)!important;
  overflow:hidden!important;
}
body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands)>li{
  display:flex!important;
  align-items:center!important;
  position:relative!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:1rem 1.2rem!important;
  margin:0!important;
  background:#04111c!important;
  color:#c9dce6!important;
  border:0!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
  list-style:none!important;
}
body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands)>li::before,
body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands)>li::after,
body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands)::before,
body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands)::after{
  content:none!important;
  display:none!important;
}
/* Odd final items conclude as a full-width band rather than creating a blank mate. */
body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands)>li:last-child:nth-child(odd){
  grid-column:1 / -1!important;
}

/* Prevent any legacy background/panel from painting a blank right-side column. */
body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands){
  background-image:none!important;
}
body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands)>*{
  box-shadow:none!important;
}

/* Category Boundary: compact, balanced two-panel typography and clean wrapping. */
body.mi-system main .mi-boundary-comparison{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:1px!important;
  align-items:start!important;
}
body.mi-system main .mi-boundary-comparison>div{
  min-width:0!important;
  padding:clamp(1.35rem,2.4vw,2.15rem)!important;
}
body.mi-system main .mi-boundary-comparison h3{
  margin:0 0 1rem!important;
  font-size:clamp(1.12rem,1.5vw,1.35rem)!important;
  line-height:1.2!important;
}
body.mi-system main .mi-boundary-comparison .mi-domain-bands{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
body.mi-system main .mi-boundary-comparison .mi-domain-bands>li{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  padding:.72rem 0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid rgba(151,205,227,.13)!important;
  color:#b8ceda!important;
  font-size:clamp(.94rem,1vw,1.02rem)!important;
  line-height:1.5!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  hyphens:none!important;
}
body.mi-system main .mi-boundary-comparison .mi-domain-bands>li::before,
body.mi-system main .mi-boundary-comparison .mi-domain-bands>li::after{
  content:none!important;
  display:none!important;
}

@media(max-width:760px){
  body.mi-system main .mi-pillars,
  body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands),
  body.mi-system main .mi-boundary-comparison{
    grid-template-columns:1fr!important;
  }
  body.platform-content main :where(.pe-signal-bands,.pe-semantic-bands)>li:last-child:nth-child(odd){
    grid-column:auto!important;
  }
}
