/*
 * Trainer come-back styles (trainer-comeback): the come-back state of the week (board TX19) - the goose, the
 * heading, the line, the two actions and the step rows below them. Linked right after trainer-talk-states.css;
 * every rule sits under [data-tool="trainer"] and every value comes from tokens.css.
 */

/* ComeBackView on the phone (TX19, ui.md Layout): goose, heading and line centred in one column across both tracks
   of the week grid, then the actions (KD-C08: above the steps, primary full width, the link centred under it) */
[data-tool="trainer"] .trainer-comeback {
  justify-items: center;
  text-align: center;
}

[data-tool="trainer"] .trainer-comeback > :is(.goose, .trainer-heading) {
  grid-column: 1 / -1;
}

[data-tool="trainer"] .trainer-comeback > .phase-group {
  justify-self: stretch;
  text-align: left;
}

/* ComeBackGoose drawn at TX_GOOSE_COMEBACK_HEIGHT */
[data-tool="trainer"] .goose--comeback {
  --goose-height: var(--tx-goose-comeback-height);
}

/* ComeBackLine: the muted lead under the heading */
[data-tool="trainer"] .comeback-line {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--tx-lead-size);
  line-height: var(--tx-lead-line-height);
}

/* ComeBackActions: a column on the phone */
[data-tool="trainer"] .comeback-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: stretch;
  gap: var(--space-sm);
}

[data-tool="trainer"] .comeback-actions .text-link {
  align-self: center;
}

/* Desktop stage (TX19_Desk): the primary and the link in one centred row; the goose, heading, line and the phases come
   from the built .trainer-week stage */
@media (min-width: 64rem) {
  [data-tool="trainer"] .comeback-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: var(--space-lg);
  }
}
