/* =================================================================
   shared.css — Topbar + Step Navigation (included by all pages)
   ================================================================= */

/* Ensure the HTML `hidden` attribute always wins over display rules */
[hidden] { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  height: 54px;
  background: rgba(255, 252, 248, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(213, 202, 185, 0.55);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1d1b18;
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.topbar-brand svg {
  width: 22px;
  height: 22px;
  color: #1f6f64;
}

.steps-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #b0a89c;
  white-space: nowrap;
  padding: 0;
}

.step-nav-item.done {
  color: #1f6f64;
}

.step-nav-item.active {
  color: #1d1b18;
  font-weight: 700;
}

.step-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transition: width 0.2s, height 0.2s;
}

.step-nav-item.done .step-dot {
  background: #1f6f64;
}

.step-nav-item.active .step-dot {
  width: 7px;
  height: 7px;
  background: #1f6f64;
}

.step-sep {
  color: #d5cab9;
  font-size: 0.7rem;
  margin: 0 9px;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 18px;
  }

  /* On mobile show only active step, hide the rest */
  .step-nav-item:not(.active) {
    display: none;
  }

  .step-sep {
    display: none;
  }

  .step-nav-item.active::before {
    content: attr(data-step) " of 5 — ";
    color: #b0a89c;
    font-weight: 500;
    margin-right: 4px;
  }
}
