/* Shared styles for the archetype quiz pages (mindwrap, highperformer).
   Rides on style.css -- tokens, chrome, header, footer, family strip all come
   from there; this file only adds the quiz widgets. */

.qbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
}
.qbar .track { height: 3px; background: var(--well); }
.qbar .fill {
  height: 100%;
  width: 0;
  background: var(--stamp);
  transition: width 0.25s ease;
}
.qbar .label {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.3rem 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  text-align: right;
}

.q-list .panel { margin: 1rem 0; }
.q { font-weight: 600; margin-bottom: 0.6rem; }

.opts { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.opts button {
  flex: 1 1 100px;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--well);
  color: var(--dim);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.opts button:hover { border-color: var(--stamp); color: var(--ink); }
.opts button[aria-checked="true"] {
  background: var(--stamp);
  color: var(--paper);
  border-color: var(--stamp);
  font-weight: 600;
}

.panel.attention { border-color: var(--estimate); }

#done {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  border: none;
  background: var(--stamp);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
#done.incomplete {
  background: var(--well);
  color: var(--faint);
  border: 1px solid var(--line);
}
#done:not(.incomplete):hover { filter: brightness(1.1); }

.qmeta { color: var(--faint); font-family: var(--mono); font-size: 0.72rem; }
.type-name {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--stamp);
  margin: 0.2rem 0 0.5rem;
}
.bars > div { margin: 0.5rem 0; }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
}
.bar {
  height: 7px;
  background: var(--well);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--faint);
  transition: width 0.6s ease;
}
.bar i.top { background: var(--stamp); }

.result-actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.result-actions button {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--well);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  cursor: pointer;
}
.result-actions button:hover { border-color: var(--stamp); }

@media (prefers-reduced-motion: reduce) {
  .qbar .fill, .bar i { transition: none; }
}
