/* The progression form's step rows (Views::WorkoutProgressions::Form): after
   the number, the step's controls (picker, then the two day gaps and Remove
   on one line, the gaps a number wide) above its workout on a narrow screen,
   and from 64rem in a column of their own beside it, so a step is no taller
   than its workout. */
.progression-step {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 64rem) {
  .progression-step {
    grid-template-columns: 20rem minmax(0, 1fr);
    align-items: start;
    gap: var(--space-3);
  }
}

.progression-step-controls {
  display: grid;
  gap: var(--space-2);
}

.progression-step-workout {
  min-width: 0;
}

.progression-step-end {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
}

.progression-step-days {
  width: 6rem;
}

/* A workout at a glance (Components::WorkoutGlance), in every workout picker
   and on the progression page: its facts stacked over its text, a gap between
   them, in a narrow place; once its own frame is 34rem wide the facts take a
   narrow column beside the text so a step is no taller than its text. The
   frame, not the viewport, decides, so the occurrence form's middle column
   stacks while the progression form's wide step goes two-column. */
.workout-glance-frame {
  container-type: inline-size;
}

.workout-glance {
  display: grid;
  gap: var(--space-2);
}

/* The text and, under it, the movements with their recovery marks. */
.workout-glance-body {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

@container (min-width: 34rem) {
  .workout-glance {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: start;
    gap: var(--space-3);
  }
}
