/* Answering, in the free notes model (owner, 2026-10-23): every MCQ and topic
   question is read by everyone, and its answer is asked for when the student
   answers (mcq.js, grader.js; noteviewer.views.practice_answer).

   · The pressed option while its answer is on its way (owner, 2026-10-26:
     "just make it all fast"): taken at once in blue, and past 0.3s the word
     Marking where Correct or Your answer lands (on a phone, its ring turns).
     Also on the daily task page (review.js marks its cards the same way).
   · The one line under the options when the answer cannot be shown (the day's
     allowance is used, the server could not be reached): the page's own words
     in ink, its way on as a link.
   · A topic question's box for a signed-out visitor ("Sign in to answer"): the
     box as every box looks (nb-fields.css), taking nothing, opening the answer
     dialog when pressed.
   · View model answer while its own marking is on its way (grader.js holds it,
     data-ui-disabled; owner, 2026-10-25): the quiet ink of a disabled control
     (DESIGN.md, The One-Ink Rule), no hover wash, the waiting cursor.
   Loaded on the MCQ, topic question, quiz and daily task pages. Every colour is a token. */

/* THE PRESS. A free account's answer is asked for when an option is pressed (mcq.js, review.js mark the card data-checking and
   the option is-checking), so the press itself answers in the same frame: the option is taken in blue, its letter on a solid
   blue disc, and the others stay as they are, to be read again with the answer. Past 0.3s (a slow signal) the row's end says
   Marking, the place Correct or Your answer then lands; on a phone that place is the mark's ring, which turns instead, so nothing
   rewraps. Premium's cards carry their answers (views._answers_ride_along) and are drawn at once, never waiting here. A picture
   set keeps its own choosing. (This was a 6% ink wash, which the lit option rows of practice-lit.css drew over: a phone showed
   nothing at all until the answer came.) */
.question-card[data-mcq][data-checking] .mcq-option-btn.is-checking:not(.mcq-pset-choose) {
  border-color: transparent;
  background: color-mix(in srgb, var(--nb-blue) 15%, var(--nb-paper-raised));
  cursor: progress;
  transition: none;
}
.question-card[data-mcq][data-checking] .mcq-option-btn.is-checking:not(.mcq-pset-choose) .mcq-opt-badge {
  background: var(--nb-blue);
  color: var(--nb-on-blue);
  transition: none;
}
.question-card[data-mcq][data-checking] .mcq-option-btn.is-checking:not(.mcq-pset-choose) .mcq-opt-mark {
  display: inline-flex;
  color: var(--nb-blue);
  font-weight: 500;
  animation: nb-press-show var(--nb-dur-1) var(--nb-ease) 0.3s both;
}
.question-card[data-mcq][data-checking] .mcq-option-btn.is-checking:not(.mcq-pset-choose) .mcq-opt-mark::before {
  display: none;
}
.question-card[data-mcq][data-checking] .mcq-option-btn.is-checking:not(.mcq-pset-choose) .mcq-opt-mark::after {
  content: "Marking";
}
/* a phone: the ring stays as it was at the press, and from 0.3s turns, blue (the keyframes carry its colours, so before then
   it is the ring every option has) */
@media (max-width: 640px) {
  .question-card[data-mcq][data-checking] .mcq-option-btn.is-checking:not(.mcq-pset-choose) .mcq-opt-mark {
    animation: nb-press-turn 0.8s linear 0.3s infinite;
  }
  .question-card[data-mcq][data-checking] .mcq-option-btn.is-checking:not(.mcq-pset-choose) .mcq-opt-mark::after {
    content: none;
  }
}
@keyframes nb-press-show {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes nb-press-turn {
  from {
    border-color: color-mix(in srgb, var(--nb-blue) 22%, transparent);
    border-top-color: var(--nb-blue);
    transform: rotate(0deg);
  }
  to {
    border-color: color-mix(in srgb, var(--nb-blue) 22%, transparent);
    border-top-color: var(--nb-blue);
    transform: rotate(360deg);
  }
}
@keyframes nb-press-blue {
  to { border-color: var(--nb-blue); }
}
/* still: the word simply appears at 0.3s, and the ring turns blue there without turning */
@media (prefers-reduced-motion: reduce) {
  .question-card[data-mcq][data-checking] .mcq-option-btn.is-checking:not(.mcq-pset-choose) .mcq-opt-mark {
    animation: nb-press-show 0s linear 0.3s both;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .question-card[data-mcq][data-checking] .mcq-option-btn.is-checking:not(.mcq-pset-choose) .mcq-opt-mark {
    animation: nb-press-blue 0s linear 0.3s both;
  }
}

/* Under the options, in their column (the card is a grid: the number, then the question and its options). */
.question-card > .mcq-answer-note {
  grid-column: 2;
  grid-row: 3;
  max-width: var(--mcq-measure, 46rem);
}
@media (max-width: 640px) {
  .question-card > .mcq-answer-note {
    grid-column: 1 / -1;
  }
}
.mcq-answer-note {
  margin: var(--nb-s4) 0 0;
  font-family: var(--nb-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--nb-ink);
  text-wrap: pretty;
}
.mcq-answer-note[hidden] {
  display: none;
}
.mcq-answer-note .nb-link {
  white-space: nowrap;
}

.tq-input-wrap--signin .tq-signin-box {
  cursor: pointer;
  resize: none;
}
.tq-input-wrap--signin .tq-signin-box::placeholder {
  color: var(--nb-ink);
  opacity: 1;
}

.nb-tq-card .tq-reveal-btn[data-ui-disabled="true"],
.nb-tq-card .tq-reveal-btn[data-ui-disabled="true"]:hover {
  color: var(--nb-quiet-2);
  background: transparent;
  cursor: progress;
}
