/* Homepage-only 18 November refinement.
   Keep the approved tall underlay banner, hero sheet and 21-chapter map.
   No shared site/global CSS is modified. */
@media(min-width:761px){
  #main-page #platform-map .dd-pm-split{
    grid-template-rows:auto minmax(0,1fr);
  }
  #main-page #platform-map .dd-pm-split-menu,
  #main-page #platform-map .dd-pm-split-detail{
    grid-template-rows:minmax(0,1fr);
  }
  #main-page #platform-map .dd-pm-menu-viewport{height:100%}
  #main-page #platform-map .dd-pm-split-detail [data-pm-detail]{
    min-height:0;
  }
  #main-page #platform-map.dd-pm-detail-natural .dd-pm-split{
    grid-template-rows:auto auto;
  }
  #main-page #platform-map.dd-pm-detail-natural .dd-pm-split-detail{
    grid-template-rows:auto;
  }
}
/* Remove the extra chrome around the maps without removing their content. */
#main-page #platform-map .dd-pm-detail-heading .collapsible-tags{
  margin-bottom:clamp(.35rem,.65vw,.7rem);
}
/* Live desktop demo inside the SAME frame footprint, shown at 85% of
   normal zoom. It remains truly unloaded until the visitor clicks. */
@media(min-width:761px){
  #main-page #platform-map .dd-pm-desktop-demo .dd-pm-demo-view{
    position:relative;
    display:block;
    height:clamp(630px,87svh,1200px);
    overflow:hidden;
  }
  #main-page #platform-map .dd-pm-desktop-demo .dd-pm-demo-view iframe[data-pm-demo-frame]{
    position:absolute;
    display:block;
    inset:0 auto auto 0;
    width:calc(100% / .85);
    height:calc(100% / .85);
    min-height:0;
    border:0;
    transform:scale(.85);
    transform-origin:top left;
  }
  #main-page #platform-map .dd-pm-desktop-demo .dd-pm-demo-view iframe[hidden]{
    display:none!important;
  }
  #main-page #platform-map .dd-pm-desktop-demo .dd-pm-demo-poster{
    min-height:100%;
    width:100%;
    max-width:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
  }
  #main-page #platform-map .dd-pm-desktop-demo .dd-pm-demo-poster img{
    width:min(72%,650px);
    max-height:430px;
    object-fit:contain;
  }
}
/* No banner/hero layout changes; this is the existing optional reveal click
   surface disguised as the Meet the Team two-finger trackpad gesture. */
#main-page .hero-shutter-scene .hero-paper-reveal-button.hero-trackpad-cue{
  position:absolute;
  right:clamp(10px,2.5vw,38px);
  bottom:clamp(10px,1.6vw,24px);
  z-index:15;
  display:grid;
  place-items:center;
  width:78px;
  height:58px;
  min-width:0;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
  color:white;
  opacity:.52;
  cursor:pointer;
  transition:opacity .2s;
}
#main-page .hero-shutter-scene .hero-paper-reveal-button.hero-trackpad-cue:hover,
#main-page .hero-shutter-scene .hero-paper-reveal-button.hero-trackpad-cue:focus-visible{
  background:transparent;
  border:0;
  opacity:.9;
  box-shadow:none;
}
#main-page .hero-trackpad-cue svg{display:block;width:78px;height:58px}
#main-page .hero-trackpad-fingers{
  transform-box:fill-box;
  transform-origin:center;
  animation:dd-home-trackpad-gesture 3.8s ease-in-out infinite;
}
@keyframes dd-home-trackpad-gesture{
  0%,12%,80%,100%{transform:translateY(6px);opacity:.3}
  28%,55%{transform:translateY(-9px);opacity:1}
}
@media(max-width:760px){
  #main-page .hero-shutter-scene .hero-paper-reveal-button.hero-trackpad-cue{right:12px;bottom:9px;width:60px;height:45px;opacity:.52}
  #main-page .hero-trackpad-cue svg{width:60px;height:45px}
}
@media(prefers-reduced-motion:reduce){
  #main-page .hero-trackpad-fingers{animation:none}
}
/* The App Menu belongs to page ONE, not to the viewport.
   Raise the desktop bubble ABOVE the start-of-hero purple seam, while it
   still follows the original hero panel and disappears when that panel leaves.
   The original request was for the button to stay on its opening-screen
   spot and GO AWAY when that page peels off, not follow the user down
   every Platform Map section. Position it relative to the same animated
   hero paper as the rest of page one (no JS portal, no scroll listener). */
@media(min-width:769px){
  #main-page .hero-shutter-panel > #app-drawer-open-btn.app-drawer-bubble-btn{
    position:absolute!important;
    top:-48px!important;
    left:0!important;
    right:auto!important;
    bottom:auto!important;
    margin:0!important;
    z-index:850!important;
    transform:none!important;
    translate:none!important;
    scale:none!important;
    transition:background .2s ease,border-color .2s ease,box-shadow .2s ease!important;
    will-change:auto!important;
  }
  #main-page .hero-shutter-panel > #app-drawer-open-btn.app-drawer-bubble-btn:hover,
  #main-page .hero-shutter-panel > #app-drawer-open-btn.app-drawer-bubble-btn:focus-visible{
    transform:none!important;
  }
}
/* Keep the existing compact mobile bubble placement, but it still belongs
   to the first page rather than floating above subsequent content. */
@media(max-width:768px){
  #main-page .hero-shutter-panel > #app-drawer-open-btn.app-drawer-bubble-btn{
    position:absolute!important;
    top:50%!important;
    left:-14px!important;
    right:auto!important;
    bottom:auto!important;
    margin:0!important;
    transform:translateY(-50%)!important;
    z-index:850!important;
  }
}
#main-page .hero-shutter-panel > #app-drawer-open-btn .bubble-btn-arrow{
  animation:none!important;
  transform:none!important;
}
