/* Build-your-tribute stepper. Progressive enhancement: without JavaScript the steps are a plain
   numbered list; with JavaScript (the inline head script adds the js class) one step shows at a
   time with a sticky progress bar and Back and Next. */

.build-intro { margin-top: 1.25rem; }

.stepper { list-style: decimal; padding-left: 1.5rem; margin: 1.75rem 0 0; }
.js .stepper { list-style: none; padding-left: 0; }

.step { margin: 0 0 2.25rem; }
.js .stepper .step { display: none; margin: 0; min-height: 40vh; }
.js .stepper .step.is-current { display: block; }

.step h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  line-height: 1.1;
  margin: 0 0 0.7rem;
}
.step h2:focus { outline: none; }
.step h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.step p { max-width: 64ch; }
.step .lead { font-size: 1.05rem; }

.step .tip {
  margin: 0.9rem 0 0;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--gilt);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sticky bottom control bar, only shown with JavaScript. */
.stepper-nav {
  position: sticky;
  bottom: 0;
  z-index: 15;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-top: 1px solid var(--gilt);
}
.stepper-nav__inner { display: grid; gap: 0.55rem; padding-top: 0.6rem; padding-bottom: calc(0.6rem + env(safe-area-inset-bottom)); }
.stepper-progress { display: flex; align-items: center; gap: 0.7rem; }
.stepper-bar { flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.stepper-bar span { display: block; height: 100%; width: 0; background: var(--gilt); transition: width 0.25s ease; }
.stepper-count { margin: 0; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.stepper-buttons { display: flex; gap: 0.6rem; }
.stepper-buttons .btn { flex: 1; }
.stepper-buttons .btn:disabled { opacity: 0.4; }

@media (prefers-reduced-motion: reduce) { .stepper-bar span { transition: none; } }

/* Invite unlock result inside the Join step. */
#invite-form { margin-top: 1rem; }
#invite-result { margin-top: 1rem; }
#invite-result #invite-link { margin-top: 0.6rem; }
#invite-errors { color: var(--accent); font-weight: 600; min-height: 1.4em; margin: 0.8rem 0 0; }
