/* MPMH_FRONTCONV013A — selected-cause workspace anchor + route-repair presentation.
   The existing workspace outer border remains authoritative and untouched.
   Desktop-only working-height/sticky behavior engages only after an explicit workspace view interaction.
   Mobile touch/gesture ownership remains deferred. */
:root{
  --fc013-workspace-working-min:500px;
  --fc013-sticky-bg:#020c14;
}

@media(min-width:981px){
  /* Initial Overview remains compact. The expanded working state is opt-in after the first workspace click. */
  html.mpmh-frontconv013a body #publicShell #shellMain #selectedCauseHero #causeWorkspace.is-workspace-engaged #causeWorkspaceFrame,
  html.mpmh-frontconv013a body #publicShell #shellMain #selectedCauseHero #causeWorkspace.is-workspace-engaged .mph-cause-workspace-frame{
    min-height:var(--fc013-workspace-working-min)!important;
  }
  html.mpmh-frontconv013a body #publicShell #shellMain #selectedCauseHero #causeWorkspace.is-workspace-engaged #causeWorkspacePanel,
  html.mpmh-frontconv013a body #publicShell #shellMain #selectedCauseHero #causeWorkspace.is-workspace-engaged .mph-cause-workspace-panel{
    min-height:calc(var(--fc013-workspace-working-min) - 2px)!important;
  }

  /* Sticky navigation is bounded by #causeWorkspace itself; it does not follow the rest of the lander. */
  html.mpmh-frontconv013a body #publicShell #shellMain #selectedCauseHero #causeWorkspace.is-workspace-engaged > .mph-cause-workspace-actions{
    position:sticky!important;
    top:var(--mpmh013a-workspace-sticky-top,0px)!important;
    z-index:12!important;
    background:var(--fc013-sticky-bg)!important;
  }

  /* Keep the existing rail/frame seam exact while the rail is sticky. */
  html.mpmh-frontconv013a body #publicShell #shellMain #selectedCauseHero #causeWorkspace.is-workspace-engaged > .mph-cause-workspace-actions .mph-cause-workspace-inline-nav{
    background:var(--fc013-sticky-bg)!important;
  }
}
