/* All discovery tabs share a stable outer frame, even as results are replaced. */
@layer pbb-company-controls {
 html body #discovery#discovery#discovery{height:max(1000px,100svh)!important;min-height:0!important;max-height:none!important;overflow:clip!important;overflow-anchor:none!important;box-sizing:border-box!important}
 html body #discovery#discovery#discovery>.discovery-page-inner{height:100%!important;min-height:0!important;max-height:100%!important;box-sizing:border-box!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;padding-bottom:8px!important}
 html body #discovery#discovery#discovery .discovery-video-banner{margin-bottom:58px!important;flex:none!important}
 html body #discovery#discovery#discovery #explore-body{height:100%!important;min-height:0!important;max-height:100%!important;overflow-x:clip!important;overflow-y:auto!important;overscroll-behavior-y:contain;overflow-anchor:none!important;box-sizing:border-box!important;scrollbar-width:thin;scrollbar-color:#666 transparent;padding-top:0!important;padding-bottom:8px!important}
 html body #discovery#discovery#discovery>.discovery-page-inner>.tool-note{display:block!important;margin:6px 0 0!important;font-size:10px!important;line-height:1.4!important}
 html body #discovery#discovery#discovery .track-studio{margin-top:0!important}
 html body #discovery#discovery#discovery .budget-heading{margin-top:0!important}
 @media(max-width:1024px){
  html body #discovery#discovery#discovery{height:max(850px,100svh)!important}
  html body #discovery#discovery#discovery .discovery-video-banner{margin-bottom:58px!important}
 }
 @media (max-width: 700px) {
  /* Keep the banner, results and note in the same page scroll on phones. */
  html body #discovery#discovery#discovery {
   height: auto !important;
   min-height: 100svh !important;
   overflow: visible !important;
  }
  html body #discovery#discovery#discovery > .discovery-page-inner {
   height: auto !important;
   max-height: none !important;
   grid-template-rows: auto auto auto !important;
  }
  html body #discovery#discovery#discovery #explore-body {
   height: auto !important;
   max-height: none !important;
   overflow: visible !important;
  }
  /* Contain the pump's extended touch target and the full-bleed comparison backdrop. */
  html body #discovery#discovery#discovery:has(:is(.play-studio, .budget-editorial)) {
   overflow-x: clip !important;
  }
 }
}
