/* 09 six steps (#steps). Owner: six-steps / one-team / who / coverage builder.
   Warm tone: the warm-white page; Summit nodes, numerals and lead dots (the live node fills Summit with a Sandstone
   bloom), and the THEN strip in --charcoal-deep with Oatmeal/white type and a Sandstone key. */
.steps__table { position: relative; margin-top: 56px; }
.steps__row,
.steps__then {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 32px;
}
.steps__row { border-bottom: 1px solid var(--line); }
.steps__row--last { border-bottom: 0; }
.steps__row--head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--charcoal);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--fs-mono);
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

/* step column: the vertical rail, the node, the numeral */
.steps__step { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 24px 0; }
.steps__rail { position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--line-scale); }
.steps__row--first .steps__rail { top: 40px; }
.steps__node {
  position: relative;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 10px;
  border: 1.5px solid var(--summit);
  border-radius: 50%;
  background: var(--page);   /* the section's ground (steps.js mixes to the same token) */
}
.steps__num {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--summit-deep);
}
.steps__what { padding: 24px 0; }
.steps__what .h3 { margin-bottom: 4px; }
.steps__what p { font-size: var(--fs-small); color: var(--text); }

/* lane cells */
.steps__cell { padding: 24px 0; font-size: var(--fs-small); line-height: 1.5; }
.steps__cell--lead { display: flex; gap: 10px; color: var(--ink); }
.steps__cell--assist { padding-left: 18px; color: var(--text); }
.steps__cell--none { color: var(--faint); }
.steps__dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--summit); }
/* lane name: read by screen readers on desktop, shown as a prefix on phones (where the header row is hidden) */
.steps__lane {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--fs-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* the dark "then" row: --charcoal-deep, so the Sandstone key passes AA at 12px (5.2:1; on --charcoal it is 3.69:1) */
.steps__then { align-items: center; padding: 22px 0; background: var(--charcoal-deep); border-radius: var(--r-panel); }
.steps__then-items {
  grid-column: 1 / span 4;
  padding-left: 26px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--oatmeal);
}
.steps__then-key { color: var(--sandstone); }
.steps__then-who { display: flex; gap: 10px; padding-right: 22px; font-size: var(--fs-small); line-height: 1.45; color: var(--white); }
.steps__then-who .steps__dot { margin-top: 6px; background: var(--sandstone); }

/* instrument: the light layer (instruments/steps.js draws it) and the controls under the table */
/* it reaches 40px past the table's top and left edges so rings around the rail's nodes are not cut;
   never past the right edge, which would scroll a phone sideways */
.steps__fx {
  position: absolute;
  top: -40px;
  left: -40px;
  z-index: 2;
  width: calc(100% + 40px);
  max-width: none;  /* site.css caps canvases at 100% */
  height: calc(100% + 40px);
  pointer-events: none;
}
.steps__controls { margin-top: 18px; }
.steps__controls-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-left: auto; }
.steps__hud { min-width: 0; align-items: flex-start; }
.steps__hud .hud__dot { margin-top: 4.75px; }  /* centred on the first line (16.5px), however many lines are reserved */
/* all readouts share one grid cell: the box takes the longest (two lines on a phone) whichever is showing */
.steps__hud-text { display: grid; }
.steps__hud-text > span { grid-area: 1 / 1; visibility: hidden; }
.steps__hud-text > span:last-child { visibility: visible; }  /* the finished frame's, until steps.js takes over */
html:not(.js) .steps__controls { display: none; }  /* nothing to pause without the script */

@media (max-width: 820px) {
  .steps__row { grid-template-columns: 1fr; row-gap: 8px; padding: 22px 0; }
  .steps__row > div { padding-top: 0; padding-bottom: 0; }
  .steps__row--head, .steps__cell--none, .steps__rail { display: none; }
  .steps__lane { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .steps__then { grid-template-columns: 1fr; row-gap: 10px; }
  .steps__then > * { grid-column: auto; padding-left: 20px; padding-right: 20px; }
}
