/* V12: real-device regression repair for call navigation, quick rail and height viewport. */

/* The nine-button call rail is the only right-side navigation on the call page. */
body:not(.suite-page) #pagetop,
body:not(.suite-page) #pagemdl,
body:not(.suite-page) #pagebtm {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Sticky was being defeated by the legacy page's scroll/overflow structure on
   the real call page. V12 therefore uses a measured fixed nav plus an in-flow
   spacer, which gives the same follow-scroll behavior without relying on that
   legacy ancestor chain. */
body:not(.suite-page) > .suite-nav.call-suite-nav-fixed-v12 {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  z-index: 1950 !important;
  width: min(calc(100% - 8px), 1280px);
  margin: 0 !important;
  transform: translateX(-50%);
}

.call-suite-nav-spacer-v12 {
  display: block;
  width: 100%;
  height: var(--call-suite-nav-height-v12, 0px);
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

/* The stage already carries the exact scaled natural height. Do not reserve a
   72/76vh resizable viewport below it. This removes the large blank lower half
   while preserving horizontal access to wide charts. */
#heightChartContainer,
.height-chart-shell,
.height-chart-stage-v2 {
  min-height: 0 !important;
  max-height: none !important;
}

.height-chart-viewport-v2 {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  resize: none !important;
  contain: none !important;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

.height-chart-viewport-v2[data-v12-auto-height="true"] {
  box-sizing: border-box;
}

@media (max-width: 640px) {
  body:not(.suite-page) > .suite-nav.call-suite-nav-fixed-v12 {
    width: calc(100% - 2px);
  }

  .height-chart-viewport-v2 {
    touch-action: pan-y pinch-zoom !important;
  }
}
