/* iGreener · styles for the registration form and the placement tests.
   Uses the same tokens as Base.css, so light and dark both work. */

.pt-wrap { max-width: 920px; }

/* --- sticky progress bar --- */
.pt-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  margin: 0 0 18px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 18px -14px rgba(0, 0, 0, .5);
}
.pt-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-step {
  font-size: .78rem; line-height: 1; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: transparent;
}
.pt-step.now { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pt-step.done { background: var(--soft); color: var(--ink); }
.pt-clock { display: flex; align-items: center; gap: 8px; }
.pt-clock .clock {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem;
  padding: 4px 10px; border-radius: 8px; background: var(--soft);
}
.pt-clock .clock.low { background: var(--warn); color: var(--surface); }

.pt-head { margin: 0 0 16px; }
.pt-head h2 { margin: 4px 0 6px; }
.pt-body > * + * { margin-top: 16px; }
.pt-nav { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.pt-nav .note { margin: 0; }

/* --- fields --- */
.pt-grid { display: grid; gap: 12px 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field .in, .pt-body textarea, .rg textarea {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.field .in:focus-visible, .pt-body textarea:focus-visible, .rg textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.rg .req { font-weight: 400; color: var(--muted); font-size: .8em; }
.rg-dump {
  white-space: pre-wrap; word-break: break-word; font-size: .85rem;
  background: var(--soft); border-radius: 10px; padding: 12px; max-height: 320px; overflow: auto;
}

/* --- questions --- */
.pt-qs { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pt-qs > li + li { margin-top: 18px; }
.pt-qs fieldset { border: 0; margin: 0; padding: 0; }
.pt-qs fieldset.answered legend .pill { background: var(--wash); color: var(--wash-ink); }
.pt-qs legend { display: block; margin-bottom: 10px; padding: 0; }
.pt-qs legend .pill { margin-right: 8px; }
.pt-qs .q-text { font-weight: 600; }
.pt-stim {
  white-space: pre-line; background: var(--soft); border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 0 0 12px;
}
.pt-stim p { margin: 0 0 4px; }
.pt-stim p.sp { height: .5em; }
.choice.block { align-items: flex-start; }
.choice.block small { display: block; color: var(--muted); font-weight: 400; }
.rg-radios { display: grid; gap: 8px; }

/* --- reading --- */
.pt-read { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .pt-read { grid-template-columns: 1fr 1fr; align-items: start; }
  .pt-passage { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow: auto; }
}
.pt-passage p { line-height: 1.65; }

/* --- writing and speaking --- */
.pt-prompt { background: var(--soft); border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; }
.pt-prompt p { margin: 0 0 6px; white-space: pre-line; }
.pt-prompt p.sp { height: .5em; margin: 0; }
.rec-status { font-variant-numeric: tabular-nums; margin: 0; color: var(--muted); }
.rec-audio { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rec-audio audio { max-width: 100%; }

/* --- result --- */
.pt-bars { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.pt-bars li { display: grid; grid-template-columns: minmax(90px, 1fr) 3fr auto; gap: 10px; align-items: center; }
.b-track { background: var(--soft); border-radius: 999px; height: 10px; overflow: hidden; }
.b-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.pt-bars b { font-variant-numeric: tabular-nums; }

@media print { .pt-bar, .pt-nav { display: none !important; } }
