/* PE-Class v1.15.71 — iPad 홈 실제 높이 고정 + 종목 현황 독립 스크롤
 * iPad 홈에만 적용합니다. 헤더·모바일 메뉴의 실제 높이는 body grid가 자동 계산합니다.
 */
@media (min-width:720px) and (max-width:1366px){
  html.homeDashboardViewport.pe87Ipad,
  html.homeDashboardViewport.pe87IpadRuntime{
    width:100%;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp{
    display:grid!important;
    grid-template-rows:auto auto minmax(0,1fr)!important;
    width:100%;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .pe87Top,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .pe87Top{
    position:sticky!important;
    top:0!important;
    grid-row:1;
    transform:none!important;
    -webkit-transform:none!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .mobileTabBar,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .mobileTabBar{
    grid-row:2;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .pe87Shell,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .pe87Shell{
    grid-row:3;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin-top:0!important;
    overflow:hidden!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .pe87Main,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .pe87Main{
    height:auto!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp #app,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp #app{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .homeDashboard,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .homeDashboard{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .homeDashboardGrid,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .homeDashboardGrid{
    height:auto!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
    align-self:stretch;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .homeSportsCard,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .homeSportsCard{
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .homeSportsList,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .homeSportsList{
    height:auto!important;
    min-height:0!important;
    max-height:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y!important;
    scrollbar-gutter:stable;
  }
}

/* iPad 세로·Split View: 상단 가로 메뉴를 제외한 나머지만 홈 본문으로 사용 */
@media (min-width:769px) and (max-width:1100px){
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .pe87Shell,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .pe87Shell{
    display:flex!important;
    flex-direction:column!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .pe87Side,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .pe87Side{
    flex:0 0 auto!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .pe87Main,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .pe87Main{
    flex:1 1 0!important;
  }
}
