/* ==========================================================
   v179.9.85 — WORKSPACE SAFE-AREA STICKY PARITY
   Applies the same sticky live-game header + workspace tab
   geometry used by Scorecard to Summary / Pitches / Plays / Stats.
   Prevents sticky game chrome from sliding under the iPhone
   status area / Dynamic Island in an installed PWA.
   ========================================================== */
@media (max-width:900px){
  body:not(.home-page) #main .live-game-bar.v179985-workspace-live{
    position:sticky!important;
    top:env(safe-area-inset-top)!important;
    inset-block-start:env(safe-area-inset-top)!important;
    z-index:104!important;
    transform:none!important;
  }

  body:not(.home-page) #main .mode-workspace-tabs.v179985-workspace-tabs{
    position:sticky!important;
    top:calc(env(safe-area-inset-top) + var(--v179985-live-h,var(--v115-livebar-h,76px)))!important;
    inset-block-start:calc(env(safe-area-inset-top) + var(--v179985-live-h,var(--v115-livebar-h,76px)))!important;
    z-index:103!important;
    transform:none!important;
  }

  /* Stats has one additional sticky category row. Keep it directly below
     the same live header + workspace tabs stack, never beneath the Island. */
  body:not(.home-page) #main .v163-stats-page .v163-stats-nav{
    top:calc(
      env(safe-area-inset-top)
      + var(--v179985-live-h,var(--v115-livebar-h,76px))
      + var(--v179985-tabs-h,var(--v179930-tabs-h,54px))
      + 6px
    )!important;
    inset-block-start:calc(
      env(safe-area-inset-top)
      + var(--v179985-live-h,var(--v115-livebar-h,76px))
      + var(--v179985-tabs-h,var(--v179930-tabs-h,54px))
      + 6px
    )!important;
    z-index:102!important;
  }

  /* Let jump / focus targets clear the full sticky stack on all game pages. */
  body:not(.home-page) #main :is(.v163-stats-page,.basic-summary-workspace,.v162-plays-page,.v140-pitches-page,.mode-page-shell){
    scroll-padding-top:calc(
      env(safe-area-inset-top)
      + var(--v179985-live-h,var(--v115-livebar-h,76px))
      + var(--v179985-tabs-h,var(--v179930-tabs-h,54px))
      + 8px
    )!important;
  }
}
