.has-scroll-guide {
  --guide-screen-height: calc(100svh - var(--guide-header-height, 90px));
}
.has-scroll-guide .chapter,
.has-scroll-guide .journey .source-list {
  scroll-margin-top: var(--guide-reading-top, 114px);
}

/* A settled screen shows a complete stage, without the following stage below it. */
@media (min-width: 681px) {
  .has-scroll-guide .journey .chapter,
  .has-scroll-guide .journey .chapter:first-child {
    min-height: var(--guide-screen-height);
    padding-top: 32px;
    padding-bottom: 32px;
    justify-content: center;
    scroll-margin-top: var(--guide-header-height, 90px);
  }
  .has-scroll-guide .journey .chapter:first-child {
    justify-content: flex-start;
  }
  .has-scroll-guide .journey .journey-visual-track {
    margin-top: calc(-1 * var(--guide-intro-offset, 43px));
  }
  .has-scroll-guide .journey .story-world,
  .has-scroll-guide .journey .story-world.is-carbon {
    --guide-scene-height: min(940px, calc(var(--guide-screen-height) - 48px));
    height: var(--guide-scene-height);
    min-height: 0;
    max-height: none;
    top: calc(var(--guide-header-height, 90px) + (var(--guide-screen-height) - var(--guide-scene-height)) / 2);
  }
}

.has-scroll-guide .audiences-section {
  display: flex;
  align-items: center;
  min-height: var(--guide-screen-height);
  padding-top: 48px;
  padding-bottom: 48px;
}

/* In landscape or at high zoom, the illustration must leave room to read. */
@media (max-width: 680px) and (max-height: 640px) {
  .journey .journey-visual-track { position: relative; top: auto; }
}
