/* ============================================================
   Welcome Survey — Letter view
   ============================================================ */

.ws-letter-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem; /* bottom padding reserves space above sticky footer */
}

/* Header */
.ws-letter-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.ws-letter-header h1 {
  margin: 0 0 0.25rem;
  font-size: var(--fs-xl);
  color: var(--text);
}

.ws-letter-meta {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Letter body */
.ws-letter-body {
  margin-bottom: 2rem;
}

.ws-letter-content {
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--text);
}

.ws-letter-content p {
  margin: 0 0 1rem;
}

.ws-letter-content h2 {
  margin: 2rem 0 0.5rem;
  font-size: var(--fs-lg);
  color: var(--text);
}

.ws-letter-content h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: var(--fs-md);
  color: var(--text);
}

.ws-letter-content ul,
.ws-letter-content ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

.ws-letter-content li {
  margin-bottom: 0.5rem;
}

.ws-letter-pillars {
  font-weight: 600;
}

.ws-letter-closing {
  margin-top: 2rem;
  font-size: var(--fs-md);
}

/* Sticky footer with the submit button */
.ws-letter-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg, #fff);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.ws-letter-submit {
  width: 100%;
  max-width: 480px;
}

.ws-letter-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Scroll hint text shown below the button until the user reaches the bottom */
.ws-letter-scroll-hint {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  transition: opacity 0.3s ease;
}

.ws-letter-scroll-hint--hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Welcome Survey — Index: step status overlay
   ============================================================ */

/* Dim not-started steps once the user is in progress */
.ws-step--not_started {
  opacity: 0.5;
}

/* Row that holds the step label and status badge side-by-side */
.ws-step-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ws-step-label-row h3 {
  margin: 0;
}

.ws-step-label-row a {
  color: inherit;
  text-decoration: none;
}

.ws-step-label-row a:hover {
  text-decoration: underline;
  color: var(--primary, #2563eb);
}

/* Inline status badge */
.ws-step-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ws-step-status-badge--complete {
  background: #d1fae5;
  color: #065f46;
}

.ws-step-status-badge--in_progress {
  background: #dbeafe;
  color: #1e40af;
}

.ws-step-status-badge--not_started {
  background: var(--border, #e5e7eb);
  color: var(--muted, #6b7280);
}
