/*
 * The guided intake's cards (SPEC-34 §3b, INTAKE-12, INTAKE-24). The tokens
 * are aurora.css's; chips follow the access page's role toggle. Every tap
 * target is at least 44 px; nothing scrolls sideways at 320 px.
 */

/* The forms stay in the page as storage; the cards show instead. */
.walk-on .walk-form {
  display: none !important;
}

.walk {
  margin-top: 1rem;
  min-width: 0;
}
.walk-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--glass-border);
  overflow: hidden;
}
.walk-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 260ms ease;
}
.walk-count {
  margin: 0.45rem 0 0;
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.walk-card {
  margin-top: 0.6rem;
  min-width: 0;
}
.walk-card.walk-in {
  animation: walk-in 220ms ease;
}
@keyframes walk-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.walk-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}
.walk-ask {
  margin: 0.35rem 0 0;
  font-weight: 600;
}
.walk-hint,
.walk-text {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.walk-text {
  margin-top: 0.6rem;
  line-height: 1.55;
}

/* Chips: one tap each. */
.walk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.walk-chip {
  min-height: 44px;
  max-width: 100%;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border-strong);
  background: var(--glass-fill);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}
.walk-chip:hover {
  background: var(--glass-fill-2);
}
.walk-chip.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(55, 160, 143, 0.3);
}
.walk-chip.walk-quiet,
.walk-chip.walk-more {
  font-weight: 500;
  color: var(--text-secondary);
  border-style: dashed;
}
.walk-chip:focus-visible,
.walk-blank:focus-visible,
.walk-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* "Something else", the typed lines, and the commit fields. */
.walk-other {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
  min-width: 0;
}
.walk-other input,
.walk-detail,
.walk-own {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
.walk-detail {
  margin-top: 0.6rem;
}
.walk-own {
  margin-top: 0.6rem;
  resize: vertical;
}
.walk-fields {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}
.walk-fields input:not([type="checkbox"]) {
  min-height: 44px;
}
/* The consent box, moved out of the survey form, keeps that form's layout. */
.walk-fields label.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.walk-fields label.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0.15rem 0 0;
}

/* Fill-in sentences: each blank is a native select, styled inline. */
.walk-template {
  margin-top: 0.9rem;
}
.walk-sentence {
  margin: 0;
  font-size: 1.02rem;
  line-height: 2.4;
}
.walk-blank {
  display: inline-block;
  width: auto; /* aurora.css sets form controls to 100% */
  min-height: 40px;
  max-width: 100%;
  margin: 0 0.15rem;
  padding: 0.25rem 1.6rem 0.25rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--glass-fill);
  color: var(--text-primary);
  font: inherit;
  font-weight: 700;
  vertical-align: baseline;
}
.walk-extra {
  margin-top: 1.1rem;
}
.walk-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.walk-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.9rem;
}
.walk-check input {
  width: auto;
}

/* The emailed code: one box, big digits (INTAKE-29). */
.walk-code {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
}
.walk-code-input {
  width: 100%;
  max-width: 14rem;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0.5rem 0.8rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
}

/* Back, Next, and the quiet links. */
.walk-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.walk-nav .button {
  min-height: 44px;
}
.walk-nav .walk-next {
  margin-left: auto;
}
.walk-nav-stack {
  flex-direction: column;
  align-items: stretch;
}
.walk-nav-stack .button {
  width: 100%;
}
.walk-link {
  min-height: 44px;
  padding: 0 0.2rem;
  border: 0;
  background: none;
  color: var(--accent-2);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}
:root[data-theme="light"] .walk-link {
  color: var(--accent);
}
.walk-status {
  margin: 0.6rem 0 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .walk-card.walk-in {
    animation: none;
  }
  .walk-progress span,
  .walk-chip {
    transition: none;
  }
}
