/* Native sticky standard panels. Visual card styling lives in standard-cards.
   No heights, extra spacers, opacity changes, or transforms are introduced. */
.standard-scene .standard-stack {
  isolation: isolate;
}

.standard-scene .standard-stack > .standard-card {
  position: static;
  top: auto;
  z-index: auto;
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .standard-scene.is-stack-ready:not(.is-stack-released):not(:focus-within) .standard-stack > .standard-card {
    position: sticky;
    top: var(--standard-sticky-top, calc(24px + var(--standard-index, 0) * 18px));
    z-index: var(--standard-layer, 1);
  }
}

/* Focus releases every panel immediately, before the focusin handler runs.
   The handler keeps the scene released for the rest of its DOM lifetime. */
.standard-scene:focus-within .standard-stack > .standard-card,
.standard-scene.is-stack-released .standard-stack > .standard-card,
.standard-scene:not(.is-stack-ready) .standard-stack > .standard-card {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  transform: none !important;
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .standard-scene .standard-stack > .standard-card {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    transform: none !important;
  }
}

@media print {
  .standard-scene .standard-stack > .standard-card {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    transform: none !important;
  }
}
