/* Method step bar: the steps sit under the phase they belong to, pre-training then adaptation. */
.method-steps { row-gap: 8px; }
.method-phase { grid-row: 1; padding-bottom: 5px; border-bottom: 1px solid var(--rule); font: 400 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.method-phase.is-current { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink-2); }
.method-phase-pre { grid-column: 1; }
.method-phase-adapt { grid-column: 2 / span 5; margin-left: 16px; }
.method-steps > .method-step { grid-row: 2; }
.method-steps > .method-step:nth-of-type(2) { margin-left: 16px; }
.method-steps > .method-pause { grid-row: 2; grid-column: 7; }
@media (min-width: 920px) { .method-phase { font-size: 13px; } }
/* Phones: three steps to a row, each phase's name on its own line above its steps. */
@media (max-width: 600px) {
  .method-phase-pre, .method-phase-adapt { grid-column: 1 / span 3; margin-left: 0; }
  .method-phase-adapt { grid-row: 3; }
  .method-steps > .method-step:nth-of-type(2) { margin-left: 0; }
  .method-steps > .method-step:nth-of-type(n+2) { grid-row: 4; }
  .method-steps > .method-step:nth-of-type(n+5) { grid-row: 5; }
  .method-steps > .method-pause { grid-column: 4; grid-row: 2 / span 4; }
}
/* Larger step bar and caption. */
#method .method-phase { font-size: 13px; padding-bottom: 6px; }
#method .method-step { font-size: 16px; }
#method .method-step .prog { height: 4px; margin-top: 8px; }
#method .method-pause { font-size: 15px; }
@media (min-width: 920px) {
  #method .method-phase { font-size: 15px; }
  #method .method-step { font-size: 19px; }
  #method .method-pause { font-size: 17px; padding: 4px 14px; }
  #method > .method-caption { font-size: clamp(20px, 1.65vw, 24px); }
}
#method .method-phase { white-space: nowrap; }
@media (min-width: 920px) and (max-width: 1499px) { #method .method-phase { font-size: 13px; } #method .method-step { font-size: 17px; } }
@media (max-width: 600px) { #method .method-step { font-size: 14px; } }

/* The caption: a box in the text column under the step bar, outlined like the boxes in the drawing, with the step's
   number and name leading its text. It holds still at one size (room for three lines, five on a phone); only its text
   changes from step to step, so the drawing is the only thing that moves. */
.method-card { display: block; box-sizing: border-box; min-height: calc(3lh + 1.1em + 3px); padding: .5em .8em .6em;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; font-size: .88em; }
.method-card-step { margin-right: .55em; font: 700 .82em/1 var(--mono); white-space: nowrap; color: var(--ink); }
.method-card.is-rest .method-card-step { display: none; }
@media (max-width: 600px) { .method-card { min-height: calc(5lh + 1.1em + 3px); } }
