/* STUDIO 2.0 — V129 | Keyboard dock without the former empty header strip.
   Works with the visible Magazine submenu on desktop and the site topbar
   alone on smaller screens. The V128 native-sticky right rail is unchanged. */
body.kb-page.studio-keyboard-v114 .pt96-tool > .pt94-panel{
  position:sticky!important;
  top:var(--kb129-dock-top,72px)!important;
}
/* Empty placeholders are not acceptable: completely collapse the toolbar once
   the keyboard is attached to the navigation. Restore it on scrolling back up. */
body.kb-page.studio-keyboard-v114.kb129-keyboard-docked .pt96-tool > .pt94-panel .pt94-control-row{
  display:none!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
body.kb-page.studio-keyboard-v114.kb129-keyboard-docked .pt96-tool > .pt94-panel{
  padding-top:0!important;
  border-top-width:0!important;
  border-top-left-radius:0!important;
  border-top-right-radius:0!important;
}
/* Hide shortcut rows travelling behind the fixed site navigation; the mask
   belongs to the keyboard layer and never adds document height. */
@media(min-width:701px){
 body.kb-page.studio-keyboard-v114 .pt96-tool > .pt94-panel::before{
   height:var(--kb129-dock-top,72px)!important;
 }
}
@media(max-width:700px){
 body.kb-page.studio-keyboard-v114.kb129-keyboard-docked .pt96-tool > .pt94-panel{
   padding-top:0!important;
 }
}
/* The header's removal changes its own height. Disable scroll anchoring inside
   this interactive reference so the browser does not silently offset scrollY
   as the row disappears, especially in WebKit/tablet-sized layouts. */
body.kb-page .pt96-tool{overflow-anchor:none!important;}
/* The old V125 mask was ALWAYS visible. It painted over the two software
   navigation rows at the top of the page, making an apparently empty 78px
   strip. Enable it only after the keyboard has actually docked. */
body.kb-page.studio-keyboard-v114 .pt96-tool > .pt94-panel::before{
 display:none!important;
}
@media(min-width:701px){
 body.kb-page.studio-keyboard-v114.kb129-keyboard-docked .pt96-tool > .pt94-panel::before{
  display:block!important;
 }
}
