/* ============================================================
   BUILD YOUR NEXT 2.0 — "Your path" journey band (S3-owned)
   A single slim, broadsheet-styled band shown on every tool/section page.
   Rendered by journey.js into #journey-root. Leans on design-system.css
   tokens (--ink, --red, --mut, --hair, --rule, --faint, --paper2).
   Red budget preserved: red = current-step accent, done marks, the one
   next-step link. Everything else is ink/mono.
   ============================================================ */

.jy {
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--hair);
  margin-top: 20px;
  padding: 10px 0 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "label track" "next next";
  gap: 6px 22px;
  align-items: center;
  background: var(--mast-bg);
  box-shadow: 0 0 0 100vmax var(--mast-bg);
  clip-path: inset(0 -100vmax);
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.jy::before { /* the thin second rule under the top rule, matching .folio */
  content: "";
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  height: 0;
}

.jy-label {
  grid-area: label;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  white-space: nowrap;
  align-self: center;
}

/* ---- the step track ---- */
.jy-track {
  justify-content: center;
  grid-area: track;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.jy-step {
  display: flex;
  align-items: center;
  min-width: 0;
}
.jy-step + .jy-step::before {
  content: "→";
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  margin: 0 10px;
  align-self: center;
}
.jy-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 3px 2px;
  text-decoration: none;
  color: var(--mut);
  min-width: 0;
}
.jy-link:hover { color: var(--ink); }
.jy-link:hover .jy-name { color: var(--red); }

.jy-mark {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.jy-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.01em;
  color: var(--ink2);
  white-space: nowrap;
}
.jy-sub {
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

/* ---- per-step state ---- */
.jy-step.is-done .jy-mark { color: var(--red); }
.jy-step.is-done .jy-name { color: var(--ink); }
.jy-step.is-prog .jy-name { color: var(--ink); }
.jy-step.is-prog .jy-sub { color: var(--mut); }

/* ---- current page ---- */
.jy-step.is-current .jy-link {
  box-shadow: inset 0 -2px 0 var(--red);
}
.jy-step.is-current .jy-name { color: var(--red); }
.jy-step.is-current .jy-mark { color: var(--red); }

/* ---- next-step line ---- */
.jy-next {
  grid-area: next;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--hair2);
  flex-wrap: wrap;
}
.jy-next-k {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  flex: 0 0 auto;
}
.jy-next-a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -.005em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  line-height: 1.35;
}
.jy-next-a:hover { color: var(--red); }

/* ---- responsive ---- */
@media (max-width: 700px) {
  .jy {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "track" "next";
    gap: 8px;
  }
  .jy-track {
  justify-content: center; gap: 2px 0; }
  .jy-step + .jy-step::before { margin: 0 7px; }
  .jy-name { font-size: 12.5px; }
}
@media (max-width: 420px) {
  .jy-sub { display: none; } /* keep the map compact; state still shown on the mark */
  .jy-step + .jy-step::before { margin: 0 5px; }
  .jy-next-a { font-size: 12.5px; }
}
