/* Load after readable-type.css on the current published homepage. */
.product-stage .stage-card {
  background: #fff;
}

/* Draw the plus signs geometrically so font baselines cannot shift them. */
.product-stage .target-payload i,
.product-stage .stage-order > div:not(.stage-step-label) > span {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
  font-size: 0;
  box-shadow: none;
}

.product-stage .target-payload i::before,
.product-stage .target-payload i::after,
.product-stage .stage-order > div:not(.stage-step-label) > span::before,
.product-stage .stage-order > div:not(.stage-step-label) > span::after {
  content: "";
  grid-area: 1 / 1;
  width: 8px;
  height: 0;
  border-top: 2px solid currentColor;
}

.product-stage .target-payload i::after,
.product-stage .stage-order > div:not(.stage-step-label) > span::after {
  width: 0;
  height: 8px;
  border-top: 0;
  border-left: 2px solid currentColor;
}

/* The existing path and the dot share a layer beneath the opaque cards. */
.product-stage .stage-path::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #496b0d;
  box-shadow: 0 0 0 3px #eaffbd;
  transform: translate(-50%, -50%);
  animation: task-flow-dot-horizontal 5s linear infinite;
}

@keyframes task-flow-dot-horizontal {
  from { left: 0; }
  to { left: 100%; }
}

@media (max-width: 760px) {
  .product-stage .stage-path { display: block; }
  .product-stage .stage-path::after {
    top: 0;
    left: 50%;
    animation-name: task-flow-dot-vertical;
  }
}

@keyframes task-flow-dot-vertical {
  from { top: 0; }
  to { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .product-stage .stage-path::after {
    display: none;
    animation: none;
  }
}
