/* Reversible layout: remove this stylesheet's link and the steps-timeline
   class to restore the original three-step layout and number animations.
   The existing step copy remains unchanged. */

.steps.steps-timeline {
  --timeline-gap: 48px;
  --timeline-marker-size: 65px;
  gap: var(--timeline-gap);
}

.steps-timeline > article {
  position: relative;
}

.steps-timeline > article:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--timeline-marker-size) / 2);
  left: calc(var(--timeline-marker-size) / 2);
  width: calc(100% + var(--timeline-gap));
  height: 3px;
  border-radius: 3px;
  background: #bd8b45;
  opacity: .6;
  pointer-events: none;
}

.steps-timeline .step-number {
  position: relative;
  z-index: 1;
}

.steps.steps-timeline > article .step-number {
  border-radius: 50%;
  box-shadow: none;
  color: #845322;
  transform: none;
  animation: none;
}

/* Fencing uses picket tops in place of the original scalloped section edge. */
html[data-brand="fencing"] .how {
  margin-top: 32px;
  scroll-margin-top: 20px;
}

html[data-brand="fencing"] .how::before {
  top: -32px;
  height: 36px;
  background: url("/fencing-section-border.svg?v=20261107-flat") repeat-x left top / 44px 36px;
}

@media (prefers-reduced-motion: no-preference) {
  .steps-timeline.timeline-ready > article:not(:last-child)::before {
    transform: scaleX(0);
    transform-origin: left center;
  }

  .steps-timeline.timeline-ready.timeline-drawn > article:not(:last-child)::before {
    transform: scaleX(1);
    transition: transform .8s linear var(--timeline-line-delay, 0s);
  }

  .steps-timeline > article:nth-child(2) {
    --timeline-line-delay: .8s;
  }
}

@media (max-width: 1100px) {
  .steps.steps-timeline {
    --timeline-gap: 30px;
  }
}

@media (max-width: 600px) {
  .steps.steps-timeline {
    --timeline-gap: 32px;
    --timeline-marker-size: 54px;
  }

  .steps-timeline > article {
    min-height: var(--timeline-marker-size);
    padding-left: calc(var(--timeline-marker-size) + 22px);
  }

  .steps-timeline > article:not(:last-child)::before {
    width: 3px;
    height: calc(100% + var(--timeline-gap));
    margin-left: -1.5px;
  }

  .steps-timeline .step-number {
    position: absolute;
    top: 0;
    left: 0;
    margin-bottom: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .steps-timeline.timeline-ready > article:not(:last-child)::before {
      transform: scaleY(0);
      transform-origin: center top;
    }

    .steps-timeline.timeline-ready.timeline-drawn > article:not(:last-child)::before {
      transform: scaleY(1);
    }
  }
}
