/* Drill styles.
 *
 * Same neutral, typographic language as the rest of the site — this is a tool used for an hour at a
 * time, so it is built for reading rather than for looking impressive. Deliberately not adlathe's
 * dark HUD: several certification sites sharing one visual language read as a single template. */

.drill-wrap { max-width: 50rem; }

.bank-line { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.25rem; }
.bank-line b { color: var(--ink); }

.last-result {
  padding: .7rem .95rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}
.last-result b { color: var(--ink); }

/* ── mode + scope ── */
.modes { display: flex; gap: .5rem; flex-wrap: wrap; }
.mode, .primary, .quiet {
  font: inherit;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  padding: .55rem 1.1rem;
  transition: border-color .15s, color .15s, background .15s;
}
.mode:hover, .quiet:hover { border-color: var(--ink-faint); color: var(--ink); }
.mode.on {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-weight: 600;
}
.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
}
.primary:hover { opacity: .88; }
.quiet { font-size: .88rem; padding: .4rem .8rem; }

.mode-note {
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
  margin: .9rem 0 0;
  padding-left: .85rem;
  border-left: 2px solid var(--line);
}
.mode-note b { color: var(--ink); }

.scope { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.scope label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .82rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.scope select {
  font: inherit;
  font-size: .95rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .5rem .6rem;
  max-width: 30rem;
}
.start-row { margin-top: 1.5rem; }

/* ── readiness ── */
.stats-row { display: flex; gap: 2.5rem; margin: 1rem 0 1.25rem; }
.stat-n { display: block; font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; }
.stat-l { font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em; }

.by-domain { list-style: none; margin: 0; padding: 0; }
.dom {
  display: grid;
  grid-template-columns: 2.2rem 1fr 3rem 5rem;
  gap: .6rem;
  align-items: baseline;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.dom:last-child { border-bottom: 0; }
.dom-id { font-family: var(--mono); font-size: .8rem; color: var(--ink-faint); }
.dom-name { color: var(--ink-soft); }
.dom-weight { font-family: var(--mono); font-size: .8rem; color: var(--ink-faint); text-align: right; }
.dom-score { text-align: right; font-variant-numeric: tabular-nums; }
.dom-score i { font-style: normal; color: var(--ink-faint); font-size: .82rem; }
/* Under the 85% floor is the state worth seeing at a glance, so it is the only one coloured. */
.dom.under .dom-score { color: #c0392b; font-weight: 600; }
.dom.pass .dom-score { color: #1e8449; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .dom.under .dom-score { color: #ff8b7d; }
  .dom.pass .dom-score { color: #5ad18a; }
}
.reset-row { margin-top: 1.5rem; }

/* ── question ── */
.q-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.q-pos { font-family: var(--mono); font-size: .8rem; color: var(--ink-faint); }
.q-domain { font-size: .85rem; color: var(--ink-soft); }
.q-licence {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .18rem .5rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
}
/* Anthropic's own samples are marked, because their authority is different from a vendor's and that
   difference should never be invisible while answering. */
.q-licence.official { border-color: var(--accent); color: var(--accent); }
.q-meta .quiet { margin-left: auto; }

.q-scenario {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.6;
  padding: .8rem 1rem;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  border-radius: 4px;
  margin: 0 0 1.25rem;
}
.q-text { font-size: 1.12rem; line-height: 1.6; margin: 0 0 1.75rem; }

/* ── answers ── */
.answer-area { margin-bottom: 1.25rem; }

.options { display: flex; flex-direction: column; gap: .55rem; }
.opt {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  line-height: 1.5;
}
.opt:hover { border-color: var(--ink-faint); }
.opt input { margin-top: .3rem; flex: 0 0 auto; }
.opt.right { border-color: #1e8449; background: color-mix(in srgb, #1e8449 7%, transparent); }
.opt.wrong { border-color: #c0392b; background: color-mix(in srgb, #c0392b 7%, transparent); }

.cloze { font-size: 1.05rem; line-height: 2.1; margin: 0; }
.blank {
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--bg);
  border: 0;
  border-bottom: 2px solid var(--accent);
  padding: .1rem .35rem;
  min-width: 6rem;
}
.blank:focus { outline: none; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.blank.right { border-bottom-color: #1e8449; color: #1e8449; }
.blank.wrong { border-bottom-color: #c0392b; color: #c0392b; }
.full-answer-hidden { color: var(--ink-faint); font-style: italic; margin: 0; }

/* ── verdict + explanation ── */
.verdict { font-weight: 600; margin: 0 0 1rem; min-height: 1.4em; }
.verdict.right { color: #1e8449; }
.verdict.wrong { color: #c0392b; }
.verdict.neutral { color: var(--ink-soft); font-weight: 400; }
@media (prefers-color-scheme: dark) {
  .verdict.right { color: #5ad18a; }
  .verdict.wrong { color: #ff8b7d; }
}
.self-mark { display: flex; gap: .6rem; margin-bottom: 1.25rem; }

.explain {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}
.explain h3 {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .4rem;
  font-weight: 600;
}
.answer-text { font-weight: 550; line-height: 1.6; margin: 0 0 1.25rem; }
.explain-text { color: var(--ink-soft); line-height: 1.65; margin: 0 0 1rem; white-space: pre-wrap; }
.explain-links { display: flex; flex-direction: column; gap: .3rem; }
.explain-links a { font-size: .85rem; font-family: var(--mono); }

.controls { display: flex; gap: .6rem; }

@media (max-width: 34rem) {
  .dom { grid-template-columns: 2rem 1fr 4.5rem; }
  .dom-weight { display: none; }
  .stats-row { gap: 1.75rem; }
}

/* The untagged-questions caveat. Quiet, but present: a number that does not add up is worse than a
   number explained. */
.bank-caveat {
  font-size: .85rem;
  color: var(--ink-faint);
  line-height: 1.55;
  margin: -.75rem 0 1.5rem;
  max-width: 42rem;
}
