/* Steps — numbered process, straddling a hairline rail once it fits on one row */

.steps {
  list-style: none;
  display: grid;
  gap: 2.25rem 1.75rem;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.step__index {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-variant-numeric: oldstyle-nums;
  color: var(--muted);
}
.step__when {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.step__title {
  margin-bottom: 0.35rem;
}
.step__body {
  font-size: 0.94rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    /* the circles hang above the rail, so the block needs to clear the heading */
    margin-top: 3rem;
  }
  .step {
    position: relative;
    padding-top: 2.75rem;
  }
  /* Each segment bridges the column gap to the next circle, so the rail ends at the last one */
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: -1.75rem;
    border-top: 1px solid var(--line);
  }
  .step__head {
    display: block;
  }
  .step__index {
    position: absolute;
    top: -21px;
    left: 0;
  }
}
