.journey-page-content {
  min-height: 0;
}

@media (min-width: 1024px) {
  .page-shell.page-shell-desktop {
    height: calc(100dvh - var(--diego-nav-height));
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .page-shell.page-shell-desktop .page-shell-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .page-shell.page-shell-desktop .page-shell-content > .page-shell-content-ready {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
  }

  .page-shell.journey-page {
    padding-bottom: 1rem;
  }

  .journey-page-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .journey-main-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: clamp(0.8rem, 1.6vw, 1.2rem);
  }

  .journey-phase-rail {
    flex: 0 0 var(--journey-phase-rail-width, 13.25rem);
    min-width: var(--journey-phase-rail-width, 13.25rem);
    max-width: var(--journey-phase-rail-width, 13.25rem);
  }

  .journey-phase-rail-stack {
    position: sticky;
    top: 0.35rem;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
  }

  .journey-phase-rail .journey-phase-wrap {
    position: static;
    top: auto;
    flex: 0 0 auto;
  }

  .journey-case-context {
    flex: 0 0 auto;
  }

  .journey-phase-rail-tools {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .journey-content-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
  }

  .journey-content-grid {
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: auto;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-inline-end: 0.35rem;
    padding-bottom: 0.95rem;
  }

  .journey-content-grid.journey-content-grid-start {
    padding-bottom: 0.65rem;
  }

  .journey-footer-slot {
    flex: 0 0 auto;
    min-width: 0;
  }

  .journey-footer-slot .journey-sticky-footer {
    margin-top: 0;
    padding-top: 0.55rem;
  }

}
