/* One stable banner is shared by all four discovery tools. */
html body.discovery-active #discovery .discovery-page-inner{max-width:1600px;width:100%;box-sizing:border-box;padding:0 3% 30px!important;margin:0 auto}
html body #discovery#discovery .discovery-video-banner{position:relative;isolation:isolate;display:block;box-sizing:border-box;aspect-ratio:16/9;width:100%;max-width:1200px;height:auto;min-height:0;margin:0 auto 36px;overflow:hidden;border-radius:18px;background:#171d20 url('/assets/discovery-banner-user-v1.jpg') center/cover;box-shadow:0 18px 60px #0005}
.discovery-video-banner>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:0}
.discovery-video-banner:after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#0711129c,transparent 60%,#08111266),linear-gradient(0deg,#06101177,transparent 55%)}
html body #discovery#discovery .discovery-banner-copy{position:absolute;left:5%;top:50%;transform:translateY(-50%);width:61%;z-index:2;color:#f9f8f2;text-shadow:0 2px 20px #0007;pointer-events:none}
html body #discovery#discovery .discovery-banner-copy>.eyebrow{font-size:11px;letter-spacing:3px;color:#ff914a;margin:0 0 18px}
html body #discovery#discovery .discovery-banner-copy>h1{font:600 clamp(28px,3.5vw,54px)/1.25 Georgia,'Microsoft YaHei',serif;letter-spacing:0;margin:0;max-width:700px}
html body #discovery#discovery .discovery-banner-controls{position:absolute;z-index:3;right:4%;top:50%;transform:translateY(-50%);width:156px;display:flex;flex-direction:column;gap:8px}
html body #discovery#discovery .discovery-banner-controls .modal-tabs{position:static!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;width:100%!important;gap:8px!important;padding:0!important;margin:0!important;overflow:visible!important}
html body #discovery#discovery .discovery-banner-controls :is(.discovery-continue,[data-explore-tab]){display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:8px 10px!important;margin:0!important;border:1px solid #ffffff6b!important;border-radius:24px!important;background:#182221a6!important;color:#f2f4ee!important;text-decoration:none;font:500 12px/1.2 Arial,'Microsoft YaHei',sans-serif!important;white-space:nowrap!important;cursor:pointer}
html body #discovery#discovery .discovery-banner-controls [aria-selected=true]{background:#ef651c!important;border-color:#ffac70!important;box-shadow:inset 0 1px 3px #ffd2a375!important}
html body #discovery#discovery .discovery-banner-controls .discovery-continue{background:#101918b8!important}
/* Budget content now starts below the banner rather than behind its menu. */
html body.budget-editorial-active #discovery .budget-heading{margin:0!important;max-width:none!important}
html body.budget-editorial-active #discovery .budget-heading h1{font-size:clamp(26px,2.6vw,40px)}
@media(max-width:700px){
 html body.discovery-active #discovery .discovery-page-inner{padding:0 12px 20px!important}
 html body.budget-editorial-active #discovery .discovery-page-inner{padding-top:0!important}
 html body #discovery#discovery .discovery-video-banner{border-radius:12px;margin-bottom:22px}
 html body #discovery#discovery .discovery-banner-copy{left:4%;width:57%;top:50%}
 html body #discovery#discovery .discovery-banner-copy>.eyebrow{font-size:7px;letter-spacing:1px;line-height:1.4;margin-bottom:8px}
 html body #discovery#discovery .discovery-banner-copy>h1{font-size:clamp(17px,5vw,25px);line-height:1.3;max-width:210px}
 html body #discovery#discovery .discovery-banner-controls{right:3%;top:50%;width:30%;gap:4px}
 html body #discovery#discovery .discovery-banner-controls .modal-tabs{gap:4px!important}
 html body #discovery#discovery .discovery-banner-controls :is(.discovery-continue,[data-explore-tab]){height:30px!important;min-height:30px!important;padding:5px 3px!important;font-size:10px!important;border-radius:18px!important}
 html body.budget-editorial-active #discovery .budget-heading h1{font-size:25px!important}
}
@media(prefers-reduced-motion:reduce){.discovery-video-banner>video{display:none}}

/* Full bleed, using the same desktop geometry as the financing banner. */
html body #discovery#discovery .discovery-video-banner{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0}
@media(min-width:701px){html body #discovery#discovery .discovery-video-banner{aspect-ratio:auto;height:40svh;min-height:340px;max-height:400px}}
/* Desktop banner begins at the page edge under the transparent header. */
@media(min-width:801px){html body.discovery-active #discovery#discovery .discovery-page-inner{padding-top:0!important}}
