/* ZR Orion V123.31 RC11.9.2 — global navigation and editorial spacing stabilization */
:root{
  --zr-nav-h:70px;
  --zr-nav-bg:rgba(2,11,19,.98);
  --zr-nav-panel:#061522;
  --zr-nav-line:rgba(103,223,245,.24);
  --zr-section-space:clamp(3.75rem,6vw,5.75rem);
  --zr-hero-top:clamp(3.25rem,6vw,5.75rem);
  --zr-hero-bottom:clamp(3.75rem,7vw,6.5rem);
}

html,body{overflow-x:clip!important}

/* One deterministic global navigation layer. */
.site-nav{
  position:sticky!important;top:0!important;z-index:2147483600!important;
  isolation:isolate!important;overflow:visible!important;
  min-height:var(--zr-nav-h)!important;height:auto!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:clamp(1rem,3vw,2.5rem)!important;padding:11px clamp(18px,3.2vw,48px)!important;
  background:var(--zr-nav-bg)!important;border-bottom:1px solid rgba(103,223,245,.16)!important;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
.site-nav,.site-nav *{box-sizing:border-box!important}
.site-nav>.brand{position:relative!important;z-index:3!important;flex:0 0 auto!important}
.site-nav>.brand img{display:block!important;width:auto!important;height:42px!important;max-width:190px!important;object-fit:contain!important}
.site-nav>.menu{position:relative!important;z-index:4!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:2px!important;overflow:visible!important;margin:0!important;padding:0!important}
.site-nav>.menu>.item{position:relative!important;display:flex!important;align-items:center!important;overflow:visible!important;margin:0!important;padding:0!important}
.site-nav>.menu>.item>a{position:relative!important;z-index:2!important;display:flex!important;align-items:center!important;min-height:44px!important;padding:10px 11px!important;color:#dceaf2!important;text-decoration:none!important;font-size:13px!important;line-height:1.2!important;font-weight:650!important;white-space:nowrap!important;border-radius:7px!important;touch-action:manipulation!important}
.site-nav>.menu>.item>a:hover,.site-nav>.menu>.item>a:focus-visible,.site-nav>.menu>.item.is-open>a{background:rgba(103,223,245,.08)!important;color:#fff!important}
.site-nav>.menu>.item.has-dropdown>a::after{content:""!important;display:inline-block!important;width:.42rem!important;height:.42rem!important;margin-left:.48rem!important;border-right:1px solid currentColor!important;border-bottom:1px solid currentColor!important;transform:translateY(-2px) rotate(45deg)!important;opacity:.65!important}
.site-nav>.menu>.item.has-dropdown::after{content:"";position:absolute;left:-8px;right:-8px;top:calc(100% - 2px);height:14px;z-index:2147483601;pointer-events:none}
.site-nav>.menu>.item:hover::after,.site-nav>.menu>.item:focus-within::after,.site-nav>.menu>.item.is-open::after{pointer-events:auto}
.site-nav .drop{
  position:absolute!important;top:calc(100% - 1px)!important;left:0!important;right:auto!important;
  z-index:2147483602!important;display:grid!important;grid-template-columns:1fr!important;gap:3px!important;
  min-width:290px!important;width:max-content!important;max-width:min(440px,calc(100vw - 24px))!important;
  margin:0!important;padding:12px!important;background:var(--zr-nav-panel)!important;
  border:1px solid var(--zr-nav-line)!important;border-radius:10px!important;box-shadow:0 24px 72px rgba(0,0,0,.58)!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(6px)!important;
  transition:opacity .12s ease,transform .12s ease,visibility 0s linear .12s!important;overflow:visible!important;
}
.site-nav>.menu>.item:hover>.drop,.site-nav>.menu>.item:focus-within>.drop,.site-nav>.menu>.item.is-open>.drop{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important;transition-delay:0s!important}
.site-nav .drop::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px;pointer-events:auto}
.site-nav .drop::after{display:none!important}
.site-nav .drop>a{position:relative!important;z-index:1!important;display:block!important;padding:10px 11px!important;border-radius:7px!important;color:#dceaf2!important;text-decoration:none!important;pointer-events:auto!important;cursor:pointer!important}
.site-nav .drop>a:hover,.site-nav .drop>a:focus-visible{background:rgba(103,223,245,.1)!important;color:#fff!important;outline:none!important}
.site-nav .drop strong{display:block!important;font-size:12px!important;line-height:1.25!important;color:#f3f8fc!important}
.site-nav .drop span{display:block!important;margin-top:4px!important;font-size:10.5px!important;line-height:1.38!important;color:#91a7b5!important}
.site-nav>.menu>.item:nth-child(3)>.drop{grid-template-columns:repeat(2,minmax(190px,1fr))!important;width:min(510px,calc(100vw - 24px))!important}
.site-nav>.menu>.item:nth-last-child(-n+3)>.drop,.site-nav>.menu>.item.edge>.drop{left:auto!important;right:0!important}
.site-nav a:focus-visible,.zr-nav-toggle:focus-visible,.zr-submenu-toggle:focus-visible{outline:2px solid #67dff5!important;outline-offset:3px!important}

/* Prevent content or decorative layers from creating a stacking context above navigation. */
body>main,.mi-hero,.platform-hero,[class*="hero"],.mi-section,.platform-section,.section{z-index:auto!important;isolation:auto!important}

/* Natural-height heroes. Removes the large empty blue band below navigation. */
.mi-hero,.platform-hero,.hero,.hero-section,[class*="editorial-hero"]{
  min-height:0!important;height:auto!important;
  padding-top:var(--zr-hero-top)!important;padding-bottom:var(--zr-hero-bottom)!important;
  align-items:start!important;
}
.mi-hero .mi-wrap,.platform-hero .shell,.platform-hero .wrap{align-self:auto!important}

/* Consistent compact editorial rhythm across Mission Intelligence and Platform. */
.mi-section,.platform-content .section,.platform-editorial-v119 .section,.platform-section{
  min-height:0!important;height:auto!important;padding-top:var(--zr-section-space)!important;padding-bottom:var(--zr-section-space)!important;
}
.mi-section.tight,.platform-content .section.tight{padding-top:clamp(2.75rem,4.5vw,4rem)!important;padding-bottom:clamp(2.75rem,4.5vw,4rem)!important}
.mi-wrap,.shell,.wrap{height:auto!important;min-height:0!important}

/* Eliminate manufactured row height, blank cells and stretch artifacts. */
.mi-editorial,.mi-proposition-sequence,.mi-signal-grid,.mi-tension-grid,.mi-domain-bands,.mi-consequence-sequence,.mi-path,.mi-loop,.mi-pillars,.mi-list,
.pe-flow,.pe-ledger,.pe-atlas,.pe-kernel,.pe-evidence-chain,.pe-memory,.pe-engineering-band,.pe-engineering-flow,.pe-signal-bands,.pe-semantic-bands,.pe-foundations,.pe-boundaries,.pe-knowledge-basis{
  grid-auto-rows:auto!important;align-items:start!important;align-content:start!important;height:auto!important;min-height:0!important;
}
.mi-feature,.mi-proposition,.mi-pillar,.mi-product-row,.mi-gap,.mi-path .step,.mi-loop .node,
.pe-flow>*,.pe-ledger>*,.pe-atlas>*,.pe-kernel>*,.pe-evidence-chain>*,.pe-memory>*,.pe-engineering-band>*,.pe-engineering-flow>*,.pe-signal-bands>*,.pe-semantic-bands>*,.pe-foundations>*,.pe-boundaries>*,.pe-knowledge-basis>*{
  height:auto!important;min-height:0!important;align-self:stretch!important;
}

/* Dense list bands: one-pixel separators, no thick empty blue channels. */
.mi-domain-bands,.mi-consequence-sequence,.pe-signal-bands,.pe-semantic-bands{
  display:grid!important;grid-template-columns:1fr!important;gap:1px!important;padding:0!important;margin-top:clamp(1.5rem,3vw,2.25rem)!important;
  border:1px solid rgba(103,223,245,.18)!important;background:rgba(103,223,245,.18)!important;
}
.mi-domain-bands li,.mi-consequence-sequence li,.pe-signal-bands li,.pe-semantic-bands li{
  margin:0!important;border:0!important;min-height:0!important;height:auto!important;padding-top:1rem!important;padding-bottom:1rem!important;
}

/* Incomplete grids conclude as full-width bands rather than leaving empty cells. */
.mi-pillars>*:last-child:nth-child(3n+1),.mi-pillars>*:last-child:nth-child(4n+1),
.pe-ledger>*:last-child:nth-child(2n+1),.pe-atlas>*:last-child:nth-child(2n+1),.pe-boundaries>*:last-child:nth-child(2n+1),.pe-knowledge-basis>*:last-child:nth-child(2n+1),
.pe-kernel>*:last-child:nth-child(3n+1),.pe-evidence-chain>*:last-child:nth-child(3n+1),.pe-engineering-band>*:last-child:nth-child(3n+1),.pe-memory>*:last-child:nth-child(5n+1){grid-column:1/-1!important}

/* Remove truly empty legacy nodes without touching approved copy. */
.mi-system main :where(div,section,article,li):empty,.platform-content main :where(div,section,article,li):empty{display:none!important}

/* Desktop menu controller classes. */
.zr-nav-toggle,.zr-submenu-toggle{display:none}
body.zr-nav-mobile-open{overflow:hidden!important}

@media(max-width:1024px){
  .site-nav{flex-wrap:wrap!important;padding:10px 16px!important}
  .zr-nav-toggle{display:flex!important;position:relative!important;z-index:6!important;width:44px!important;height:44px!important;align-items:center!important;justify-content:center!important;border:1px solid var(--zr-nav-line)!important;border-radius:8px!important;background:#061522!important;color:#fff!important;cursor:pointer!important}
  .zr-nav-toggle::before{content:"☰";font-size:20px;line-height:1}
  .zr-nav-toggle[aria-expanded="true"]::before{content:"×";font-size:28px}
  .site-nav>.menu{display:none!important;flex:0 0 100%!important;width:100%!important;max-height:calc(100dvh - 72px)!important;overflow-y:auto!important;padding:8px 0 16px!important}
  .site-nav.is-mobile-open>.menu{display:block!important}
  .site-nav>.menu>.item{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;width:100%!important;border-top:1px solid rgba(103,223,245,.12)!important}
  .site-nav>.menu>.item>a{grid-column:1!important;white-space:normal!important;padding:13px 10px!important}
  .site-nav>.menu>.item.has-dropdown>a::after,.site-nav>.menu>.item.has-dropdown::after{display:none!important}
  .zr-submenu-toggle{display:flex!important;grid-column:2!important;grid-row:1!important;align-items:center!important;justify-content:center!important;border:0!important;border-left:1px solid rgba(103,223,245,.12)!important;background:transparent!important;color:#c8e3ed!important;cursor:pointer!important}
  .zr-submenu-toggle::before{content:"⌄";font-size:20px}.zr-submenu-toggle[aria-expanded="true"]::before{content:"⌃"}
  .site-nav .drop{grid-column:1/-1!important;position:static!important;display:none!important;width:100%!important;max-width:none!important;min-width:0!important;padding:0 0 10px 12px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
  .site-nav>.menu>.item.is-open>.drop{display:grid!important;grid-template-columns:1fr!important}
  .site-nav .drop::before{display:none!important}
  .site-nav .drop>a{border-left:1px solid rgba(103,223,245,.18)!important;border-radius:0!important}
  .mi-hero,.platform-hero,.hero,.hero-section,[class*="editorial-hero"]{padding-top:clamp(2.5rem,7vw,4rem)!important;padding-bottom:clamp(3rem,8vw,4.75rem)!important}
  .mi-section,.platform-content .section,.platform-editorial-v119 .section,.platform-section{padding-top:clamp(3.25rem,8vw,4.5rem)!important;padding-bottom:clamp(3.25rem,8vw,4.5rem)!important}
}
@media(max-width:680px){
  .mi-pillars,.mi-path,.mi-loop,.mi-signal-grid,.mi-tension-grid,.mi-boundary-comparison,.mi-strategic-progression,.pe-ledger,.pe-atlas,.pe-kernel,.pe-evidence-chain,.pe-memory,.pe-engineering-band,.pe-boundaries,.pe-knowledge-basis{grid-template-columns:1fr!important}
  .mi-pillars>*,.pe-ledger>*,.pe-atlas>*,.pe-kernel>*,.pe-evidence-chain>*,.pe-memory>*,.pe-engineering-band>*,.pe-boundaries>*,.pe-knowledge-basis>*{grid-column:auto!important}
}
@media(prefers-reduced-motion:reduce){.site-nav .drop{transition:none!important}}
