/* WI-APP-04 | Full-viewport, independent workspace shells
   Four primary experiences use their own layouts and source APIs.
   This sheet is deliberately additive: no data, routing, or navigation JS changes. */
html:has(body[data-wi-workspace]){height:100%;overscroll-behavior-y:none}
body[data-wi-workspace]{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  width:100%;
  height:100vh;
  height:100dvh;
  min-height:0;
  margin:0;
  overflow:hidden;
}
body[data-wi-workspace] *,body[data-wi-workspace] *::before,body[data-wi-workspace] *::after{box-sizing:border-box}
body[data-wi-workspace] > .wi-subsite-chrome{
  position:absolute!important;
  top:0!important;
  left:0!important;
  width:70px!important;
  min-height:58px!important;
  z-index:40;
  background:transparent!important;
}
body[data-wi-workspace] > :is(main,.cv-main){min-width:0}

/* Clear View: news is the workspace, not a centered magazine page.
   The masthead stays visible while the regional feed owns the remaining viewport. */
body[data-wi-workspace="clear-view"] .cv-top{flex:0 0 auto;min-width:0}
body[data-wi-workspace="clear-view"] .cv-shell{
  width:100%;
  max-width:none;
  margin:0;
  padding-inline:clamp(12px,1.5vw,30px);
}
body[data-wi-workspace="clear-view"] .cv-main{
  display:block;
  flex:1 1 auto;
  min-height:0;
  width:100%;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
}
body[data-wi-workspace="clear-view"] .cv-masthead{padding-top:clamp(10px,1.4vh,20px);padding-bottom:clamp(9px,1.5vh,22px)}
body[data-wi-workspace="clear-view"] .cv-news-layout{width:100%;min-width:0;align-items:start}
body[data-wi-workspace="clear-view"] .cv-city-column{min-width:0}
body[data-wi-workspace="clear-view"] .cv-city-toolbar{scroll-margin-top:12px}
body[data-wi-workspace="clear-view"] .cv-column-heading{top:0}
body[data-wi-workspace="clear-view"] .cv-source-footer{padding-bottom:24px}
body[data-wi-workspace="clear-view"] > .wi-subsite-chrome{left:clamp(12px,1.5vw,30px)!important}

/* The Pocket: full-window music explorer, independent scrolling canvas.
   The curated Showcase remains available as a separate full-screen route. */
body[data-wi-workspace="pocket"] > .head{
  flex:0 0 auto;
  min-width:0;
  min-height:64px;
  position:relative;
  z-index:10;
  padding-left:max(76px,5vw);
}
body[data-wi-workspace="pocket"] > main{
  flex:1 1 auto;
  min-height:0;
  min-width:0;
  width:100%;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
  scroll-padding-top:14px;
}
body[data-wi-workspace="pocket"] .hero{
  min-height:clamp(320px,40dvh,520px);
  grid-template-columns:minmax(0,1.2fr) minmax(240px,.7fr);
}
body[data-wi-workspace="pocket"] .hero-left{
  padding:clamp(18px,2.4vw,46px) clamp(20px,3vw,56px) clamp(20px,2.7vw,45px);
}
body[data-wi-workspace="pocket"] .hero h1{
  font-size:clamp(52px,7.2vw,116px);
  margin:clamp(14px,2vh,29px) 0 17px;
  line-height:.88;
}
body[data-wi-workspace="pocket"] .hero-copy{font-size:clamp(14px,1.05vw,18px);line-height:1.4}
body[data-wi-workspace="pocket"] .hero-actions{margin-top:19px}
body[data-wi-workspace="pocket"] .hero-stats{margin-top:25px;gap:16px}
body[data-wi-workspace="pocket"] .hero-right{min-height:0}
body[data-wi-workspace="pocket"] .scrollcue{display:none}
body[data-wi-workspace="pocket"] #pocket-showcase{
  min-height:calc(100dvh - 64px);
  width:100%;
  padding-inline:clamp(18px,2.5vw,48px);
  scroll-margin-top:0;
}
body[data-wi-workspace="pocket"] > footer{
  flex:0 0 auto;
  max-height:50px;
  overflow-y:auto;
  font-size:11px;
  line-height:1.3;
  padding-block:8px;
}

/* Musicians Retreat: preserve the working sidebar/workspace switcher, free
   the dashboard from its max-width constraint, and scroll its work surface. */
body[data-wi-workspace="retreat"] > .wi-subsite-chrome{display:none!important}
body[data-wi-workspace="retreat"] > .mr-workspace{
  display:block;
  flex:1 1 auto;
  min-height:0;
  height:100%;
  overflow-x:clip;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
  scroll-padding-top:72px;
}
body[data-wi-workspace="retreat"] .mr-workspace .mr-container{
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin-inline:0;
  padding-inline:clamp(16px,2.25vw,46px);
}
body[data-wi-workspace="retreat"] .mr-workspace .mr-topbar{position:sticky;top:0;z-index:25}
body[data-wi-workspace="retreat"] .mr-workspace .mr-discovery-layout,
body[data-wi-workspace="retreat"] .mr-workspace .mr-pulse-grid,
body[data-wi-workspace="retreat"] .mr-workspace .mr-task-grid{min-width:0}
body[data-wi-workspace="retreat"] .mr-workspace :is(.mr-section,.mr-discover,.mr-gig-desk){scroll-margin-top:88px}
body[data-wi-workspace="retreat"] .mr-workspace .mr-footer{padding-bottom:24px}

/* Music Board: the saved-show controls and results are a full-width workbench,
   not a 1,400px column floating in a large desktop window. */
body[data-wi-workspace="music-board"] > .bar{flex:0 0 auto;min-width:0}
body[data-wi-workspace="music-board"] .wrap{
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin-inline:0;
  padding-inline:clamp(14px,1.8vw,36px);
}
body[data-wi-workspace="music-board"] .barin{min-height:64px;padding-left:max(76px,5vw)}
body[data-wi-workspace="music-board"] > main#main{
  flex:1 1 auto;
  min-height:0;
  min-width:0;
  width:100%;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
  scroll-padding-top:16px;
}
body[data-wi-workspace="music-board"] .intro{padding-top:clamp(16px,2.5vh,32px);padding-bottom:18px}
body[data-wi-workspace="music-board"] .workspace{grid-template-columns:minmax(240px,290px) minmax(0,1fr);gap:clamp(12px,1.7vw,28px)}
body[data-wi-workspace="music-board"] .sidebar{position:sticky;top:14px}
body[data-wi-workspace="music-board"] .board{min-width:0}
body[data-wi-workspace="music-board"] > .foot{flex:0 0 auto;padding:7px 0 9px;font-size:11px;min-height:34px}

/* Tight windows retain ordinary document flow and readable touch targets;
   the desktop shell never traps mobile scrolling or causes horizontal overflow. */
@media(max-width:900px){
 body[data-wi-workspace="pocket"] .hero{grid-template-columns:1fr;min-height:0}
 body[data-wi-workspace="pocket"] .hero-right{display:none}
 body[data-wi-workspace="pocket"] .hero h1{font-size:clamp(44px,9vw,88px)}
 body[data-wi-workspace="music-board"] .workspace{grid-template-columns:1fr}
 body[data-wi-workspace="music-board"] .sidebar{position:static}
}
@media(max-width:740px){
 html:has(body[data-wi-workspace]){height:auto;overscroll-behavior-y:auto}
 body[data-wi-workspace]{
   height:auto;
   min-height:100dvh;
   display:block;
   overflow-x:hidden;
   overflow-y:auto;
 }
 body[data-wi-workspace="clear-view"] .cv-main,
 body[data-wi-workspace="pocket"] > main,
 body[data-wi-workspace="retreat"] > .mr-workspace,
 body[data-wi-workspace="music-board"] > main#main{
   min-height:calc(100dvh - 80px);
   height:auto;
   overflow:visible;
   scrollbar-gutter:auto;
 }
 body[data-wi-workspace="clear-view"] .cv-shell{padding-inline:12px}
 body[data-wi-workspace="pocket"] > .head{padding-left:74px}
 body[data-wi-workspace="pocket"] #pocket-showcase{min-height:0;padding-inline:16px}
 body[data-wi-workspace="pocket"] .hero-left{padding:18px 18px 30px}
 body[data-wi-workspace="pocket"] .hero h1{margin:16px 0;font-size:clamp(45px,10.8vw,75px)}
 body[data-wi-workspace="pocket"] > footer{max-height:none}
 body[data-wi-workspace="retreat"] .mr-workspace .mr-container{padding-inline:16px}
 body[data-wi-workspace="retreat"] .mr-workspace .mr-topbar{position:relative}
 body[data-wi-workspace="music-board"] .barin{padding-left:68px}
 body[data-wi-workspace="music-board"] .wrap{padding-inline:14px}
 body[data-wi-workspace="music-board"] .barin .links{gap:9px}
}
@media(max-height:550px) and (min-width:741px){
 body[data-wi-workspace="pocket"] .hero{min-height:300px}
 body[data-wi-workspace="pocket"] .hero-stats{margin-top:12px}
 body[data-wi-workspace="clear-view"] .cv-masthead{padding-block:6px}
}
@media(prefers-reduced-motion:reduce){
 body[data-wi-workspace] :is(main,.cv-main){scroll-behavior:auto!important}
}
