/* The pages themselves travel: no fade, no replicas, no competing entrances. */
.main-content {
  position: relative;
  isolation: isolate;
}
.tab-panel {
  animation: none;
  min-height: min(440px, 58dvh);
}
.main-content.is-sliding {
  overflow: clip;
  overflow-anchor: none;
}
.main-content.is-sliding > .tab-panel:not([hidden]) {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  background: var(--page);
  pointer-events: none;
  will-change: transform;
}
@supports not (overflow: clip) {
  .main-content.is-sliding {
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel.is-transitioning {
    will-change: auto;
  }
}
