/* Candidate Test v0.3 RC 001: bounded Evidence Thread shell. */
:root {
  --candidate-thread: #4e7df4;
  --candidate-thread-soft: rgba(78, 125, 244, .18);
  --candidate-visited: #aeb8c8;
  --candidate-future: #667184;
}

.candidate-v03-segments {
  position: relative;
  display: flex;
  gap: 0;
  margin: 0 0 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.candidate-v03-segments::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--candidate-thread), transparent 72%);
  pointer-events: none;
}

.candidate-v03-step {
  position: relative;
  flex: 0 0 104px;
  min-height: 72px;
  padding: 10px 12px 12px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.07);
  border-radius: 0;
  background: transparent;
  color: var(--candidate-future);
  text-align: left;
  cursor: pointer;
}

.candidate-v03-step::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  background: transparent;
}

.candidate-v03-number,
.candidate-v03-state {
  display: block;
  font: 700 10px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
}

.candidate-v03-label {
  display: block;
  margin: 5px 0 6px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.candidate-v03-state {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.candidate-v03-step[data-state="active"] {
  color: #eef3ff;
  background: var(--candidate-thread-soft);
}

.candidate-v03-step[data-state="active"]::after {
  background: var(--candidate-thread);
}

.candidate-v03-step[data-state="visited"] {
  color: var(--candidate-visited);
}

.candidate-v03-step[data-state="visited"] .candidate-v03-number::before {
  content: "✓ ";
  color: #79c596;
}

.candidate-v03-step[data-state="future"] .candidate-v03-number::before {
  content: "· ";
}

.candidate-v03-step:focus-visible {
  outline: 3px solid #9db6ff;
  outline-offset: -3px;
  z-index: 1;
}

@media (min-width: 760px) {
  .candidate-v03-segments {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    overflow: visible;
  }

  .candidate-v03-step {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .candidate-v03-step {
    flex-basis: 92px;
    min-height: 68px;
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candidate-v03-segments,
  .candidate-v03-step {
    scroll-behavior: auto;
  }
}
