/* Home alone owns its document flow; legacy Desk/room layers reserve no space. */
html.radar-home-clean, html.radar-home-clean body {
  height: auto !important; min-height: 100vh !important;
  overflow-x: hidden !important; overflow-y: auto !important;
}
html.radar-home-clean body {
  display: block !important; margin: 0 !important; padding: 0 !important;
}
html.radar-home-clean body > :not(#landing):not(.rg-nav):not(script):not(style):not(link) {
  display: none !important;
}
html.radar-home-clean body #landing {
  position: relative !important; inset: auto !important;
  height: auto !important; min-height: 0 !important;
  padding-bottom: 18px !important; overflow: hidden !important;
}
html.radar-home-clean body .sp-overview {
  height: auto !important; min-height: 0 !important; padding-bottom: 0 !important;
}
html.radar-home-clean .landing-blackhole {
  position: absolute; z-index: 0; top: 70px; left: 0; right: 0;
  height: 290px; pointer-events: none;
  background: #02070e url('brand/overview-blackhole-v3.png') center right / cover no-repeat;
}
html.radar-home-clean .landing-blackhole::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, #78caff0a 55%, transparent 70%);
  background-size: 200% 100%; animation: radar-hole-light 12s ease-in-out infinite;
}
html.radar-home-clean .sp-home-hero {
  background: linear-gradient(90deg, #02070e85, #02070e30 40%, transparent 65%) !important;
}
html.radar-home-clean .sp-overview-footer { margin-top: 22px !important; }
@keyframes radar-hole-light { 0%,100% { background-position: 100% 0; opacity: .2; } 50% { background-position: 0 0; opacity: .7; } }
@media (max-width: 1100px) { html.radar-home-clean .landing-blackhole { height: 350px; background-position: 70% center; } }
@media (max-width: 680px) { html.radar-home-clean .landing-blackhole { height: 350px; opacity: .7; background-size: auto 100%; } }
@media (prefers-reduced-motion: reduce) { html.radar-home-clean .landing-blackhole::after { animation: none; } }

/* Match the actual router classes, even if the cleanup JS has not executed. */
html body:is(.view-home, .sp-home-active) {
  display: block !important; height: auto !important; min-height: 100vh !important;
  margin: 0 !important; padding: 0 !important; overflow-y: auto !important;
}
html body:is(.view-home, .sp-home-active):not(.rg-room) > :not(#landing):not(.rg-nav):not(script):not(style):not(link) {
  display: none !important;
}
html body:is(.view-home, .sp-home-active) #landing {
  position: relative !important; inset: auto !important; height: auto !important;
  min-height: 0 !important; padding-bottom: 18px !important; overflow: hidden !important;
}
html body:is(.view-home, .sp-home-active) #landing > .landing-video { display: none !important; }
html body:is(.view-home, .sp-home-active) .sp-overview {
  min-height: 0 !important; height: auto !important; padding-bottom: 0 !important;
}
html body:is(.view-home, .sp-home-active) .landing-blackhole {
  position: absolute; z-index: 0; top: 70px; left: 0; right: 0; height: 290px;
  pointer-events: none; background: #02070e url('brand/overview-blackhole-v3.png') center right / cover no-repeat;
}
