/* The live tutorial occupies one normal section, with no scroll-driven chapters. */
#instrument { height: auto; scroll-margin-top: var(--tour-header, 78px); }
#instrument .tour-pin {
  position: relative;
  top: auto;
  height: calc(100svh - var(--tour-header, 78px));
  min-height: 0;
}
#instrument .tour-demo-marker { top: 0; scroll-margin-top: var(--tour-header, 78px); }
#instrument .tour-scene-anchor {
  top: 20px;
  bottom: 24px;
  left: max(35%, calc((100% - 1440px) / 2 + 440px));
  right: var(--page-gutter);
}
#instrument .tour-copy-region { height: 100%; }
#instrument .demo-copy {
  top: 50%;
  transform: translateY(-50%);
  width: 30%;
  max-width: 365px;
  max-height: calc(100% - 32px);
  overflow: auto;
  scrollbar-gutter: stable;
}
#instrument .tour-preparation { bottom: 32px; }
#instrument .demo-preparation { bottom: 32px; }

@media (max-width: 700px) {
  #instrument .tour-pin { --tour-copy-space: clamp(168px, 25svh, 224px); }
  #instrument .tour-copy-region { height: var(--tour-copy-space); }
  #instrument .demo-copy {
    top: 12px;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: calc(var(--tour-copy-space) - 20px);
  }
  #instrument .tour-scene-anchor {
    top: var(--tour-copy-space);
    bottom: 16px;
    left: var(--page-gutter);
    right: var(--page-gutter);
  }
}
@media (max-height: 560px) {
  #instrument .tour-copy-region { height: 100%; }
  #instrument .demo-copy {
    top: 50%;
    transform: translateY(-50%);
    width: 33%;
    max-height: calc(100% - 16px);
  }
  #instrument .tour-scene-anchor { top: 8px; left: 38%; bottom: 16px; right: var(--page-gutter); }
}
