/* Desktop-only Help consolidation.
   Keep mobile page strips, inline Help, and page-specific tab switching intact.
   The primary rail itself is styled by primary-navigation.css loaded last. */
@media (min-width:1001px){
  /* One desktop Help entry: in the rail. Retain mobile Help in DOM so the
     same underlying controls and help scope work after any viewport resize. */
  html #trainerLayout.workspace-play #playModeInfo #playPageHelpButton,
  html #trainerLayout.workspace-analyze[data-mobile-mode="position"] #exploreHelpButton,
  html #trainerLayout.workspace-analyze[data-mobile-mode="explain"] #analyzePageHelpButton,
  html #trainerLayout.workspace-training #trainingPageHelpButton,
  html #trainerLayout:is(.workspace-play,.workspace-analyze,.workspace-training) #helpMenuButton{
    display:none!important;
  }

  /* Play: no separate framing for Help/Play. Keep the existing action buttons,
     position-source choices and Settings panel, but remove the unnecessary
     surrounding Play card/strip and reclaim the Help column. */
  html #trainerLayout.workspace-play #playModeInfo{
    border:0!important;border-radius:0!important;box-shadow:none!important;
    background:transparent!important;
    padding:0!important;
  }
  html #trainerLayout.workspace-play #playModeInfo #playControlsRow{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;height:auto!important;min-height:0!important;
    gap:0!important;
    margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;
  }
  html #trainerLayout.workspace-play #playModeInfo #playControlsRow>.play-game-controls{
    grid-column:1!important;grid-row:1!important;
    width:100%!important;min-width:0!important;
    margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;
  }
  /* The source action group retains its own buttons and selection status. */
  html #trainerLayout.workspace-play #playModeInfo #playStartChoices:not([hidden]){
    margin-top:.45rem!important;
  }

  /* Navigate: its Setup/Repertoire/Saved cards themselves identify the page.
     The legacy title-and-Help strip above them serves no further purpose. */
  html #trainerLayout.workspace-analyze[data-mobile-mode="position"]>.middle-column>#explorePositionSourceControl{
    display:none!important;
  }
  html #trainerLayout.workspace-analyze[data-mobile-mode="position"]>.middle-column>#navigateTabContent{
    flex:1 1 auto!important;min-height:0!important;
  }
}
