/*
 * A screen stacked BEHIND another stays mounted and hidden rather than
 * unmounting, so its scroll position and its state survive the trip forward and
 * back. It keeps its `flex` either way: the box it will occupy on the way back
 * is the box it occupies now.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-screen-router__screen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    min-height: 0;
  }

  .lotics-screen-router__screen:not([data-active]) {
    display: none;
  }
}
