/* Scroll-linked Montiso frame and sheets. The default state is fully expanded. */
@media screen and (prefers-reduced-motion: no-preference) {
  .report-window {
    transform: scale(var(--report-scale, 1));
    transform-origin: 50% 12%;
  }

  .preview-overview {
    transform: translateX(calc(-1 * var(--sheet-shift, 0px))) rotate(calc(-1 * var(--sheet-angle, 0deg)));
  }

  .preview-ranking {
    transform: translateX(var(--sheet-shift, 0px)) rotate(var(--sheet-angle, 0deg));
  }

  .ranking .bar { transform-origin: left center; }

  /* Expand the background independently so the copy, links and form stay still. */
  .sector-section, .request-section {
    position: relative;
    isolation: isolate;
    background: var(--gallery);
  }

  .sector-section::before, .request-section::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-block: 0;
    inset-inline: min(var(--chapter-inset, 0%), calc(var(--gutter) - 12px));
    background: white;
    pointer-events: none;
  }

  .request-section::before { background: var(--carbon); }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .report-window .preview-footer a { min-width: 48px; min-height: 48px; }
  .preview-overview { transform: translateY(calc(-1 * var(--sheet-shift, 0px))); }
  .preview-ranking { transform: translateY(var(--sheet-shift, 0px)); }
}