/* Current-version (2.5.1) design candidate.
   Original CSS and SVG. No third-party component code.
   Loaded in addition to the live site.css. */

.v251-route {
  display: block;
  width: min(720px, 100%);
  height: 64px;
  margin: 8px auto 0;
  color: var(--teal-bright);
}

.v251-route path {
  stroke: currentColor;
}

.v251-route circle {
  fill: var(--amber);
}

.v251-path {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  position: relative;
}

.v251-path::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 16.67%;
  right: 16.67%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-bright), var(--amber));
}

.v251-step {
  position: relative;
  margin: 0;
  padding-top: 8px;
}

.v251-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--amber);
  color: var(--text);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.v251-step figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 16px 20px;
}

.v251-step img {
  width: min(220px, 100%);
  height: auto;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 14px;
  border-radius: 22px;
}

.v251-step h3 {
  font-size: 22px;
}

.v251-step p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.v251-step a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v251-shots {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.v251-shots li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.v251-shots img {
  width: min(200px, 100%);
  height: auto;
  margin: 0 auto 12px;
  border-radius: 22px;
}

.v251-shots h3 {
  font-size: 18px;
}

.v251-shots p {
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

.v251-note {
  color: var(--text-sub);
  font-size: 16px;
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
}

.v251-note a,
.v251-links a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v251-close {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px;
  align-items: center;
  text-align: left;
  padding: 28px;
}

.v251-close .v251-scene {
  margin: 0;
}

.v251-close .v251-scene img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.v251-close h2 {
  margin-bottom: 12px;
}

.v251-close p {
  color: var(--text-sub);
  margin: 0 0 14px;
}

.v251-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 900px) {
  .v251-path,
  .v251-shots,
  .v251-close {
    grid-template-columns: 1fr;
  }

  .v251-path::before {
    top: 12px;
    bottom: 12px;
    left: 21px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--teal-bright), var(--amber));
  }

  .v251-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-top: 0;
  }

  .v251-mark {
    margin: 0;
  }

  .v251-close {
    text-align: center;
    padding: 32px 18px;
  }

  .v251-actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .v251-step,
  .v251-step figure,
  .v251-shots li,
  .step-card,
  .story-card {
    transition: none;
    transform: none;
  }
}
