/* ExamStudyAid: multiple choice in the Study v5 look (owner, 2026-11-27: the old MCQs "look ugly, dull, and very, very
   thick and heavy, especially on mobile", and "the question itself, it's so bulky ... it takes half the screen" in the
   videos). The owner picked look B, compact, from the demo (Desktop/Claude work/Study pages/MCQ new look, demo). A layer
   loaded after notebook-mcq.css, notebook-mcq-pictures.css, answer-gate.css and practice-lit.css on every page that
   draws MCQs (the MCQ index, the tutor's quiz, the daily review). What it does:
   - one column: the number "Q01" stands in front of the question's first line in the soft ink, not in a margin column,
     so the question runs the full width and takes a line less;
   - the question at 16px on a phone (the site's own size elsewhere), regular weight, a word the file bolds kept bold;
   - each option its own white tile with no edge and no ring, the letter in a pale circle; the right answer fills solid
     green with its words in the page tone, a wrong pick takes a pale red wash with its letter filled red;
   - the response on one white sheet with no edge;
   - from 1280px an answered card stands its response beside the question, as before, in two columns.
   A picture question keeps its own cards (notebook-mcq-pictures.css) and takes the same head, column and response.
   Tokens only, both themes; no edge, no glow, no capsule. The checking state (answer-gate.css) outranks these rules. */

html body .question-card[data-mcq] {
  --mcq5-tile: var(--nb-paper-raised);
  --mcq5-stem-lh: 1.45;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
  padding: var(--nb-s7) 0 var(--nb-s8);
}
html body .question-card[data-mcq] + .question-card[data-mcq] {
  border-top: 0;
}

/* the daily task's item opens a little closer to its head (review-lit.css) */
html body .nb-review .nb-review-item .question-card[data-mcq] {
  padding-top: var(--nb-s4);
}

/* ── The head: the number in front of the question's first line ── */
html body .question-card[data-mcq] .mcq-q-head {
  display: block;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
html body .question-card[data-mcq] .mcq-q-no {
  float: left;
  display: block;
  height: calc(var(--mcq5-stem-lh) * 1em);
  margin: 0 var(--nb-s2) 0 0;
  font-family: var(--nb-sans);
  font-size: inherit;
  font-weight: 600;
  line-height: var(--mcq5-stem-lh);
  color: var(--nb-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html body .question-card[data-mcq] .mcq-q-head {
  font-size: var(--nb-text-md);
}
/* the question and its options keep the reading measure (notebook-mcq.css, 46rem), so a short answer is not a 980px bar */
html body .question-card[data-mcq] :is(.mcq-q-head, .mcq-options) {
  max-width: var(--mcq-measure, 46rem);
}
html body .question-card[data-mcq] .mcq-question {
  line-height: var(--mcq5-stem-lh);
}

/* ── The options: white tiles, no edge ── */
html body .question-card[data-mcq] .mcq-options,
html body .question-card[data-mcq] .mcq-pset-col {
  grid-column: 1;
  grid-row: 2;
  max-width: none;
}
/* a picture card at rest: no edge, the tile's corners (the edge keeps its width, transparent, so the cards' measured
   sizes do not move); a chosen, right or wrong card keeps its coloured ring (notebook-mcq-pictures.css) */
html body .question-card[data-mcq] .mcq-pset-card[data-pset-mark=""] > .mcq-option-btn.mcq-pset-choose {
  border-color: transparent;
}
html body .question-card[data-mcq] .mcq-pset-card > .mcq-option-btn.mcq-pset-choose {
  border-radius: var(--nb-r-lg);
}
html body .question-card[data-mcq] .mcq-options {
  gap: var(--nb-s2);
  margin-top: var(--nb-s5);
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose) {
  gap: var(--nb-s3);
  min-height: 52px;
  padding: var(--nb-s3) var(--nb-s4) var(--nb-s3) var(--nb-s3);
  border: 0;
  border-radius: var(--nb-r-lg);
  background: var(--mcq5-tile);
  box-shadow: none;
  font-family: var(--nb-sans);
  line-height: 1.35;
  transition: background-color var(--nb-dur-1) var(--nb-ease);
}
@media (hover: hover) {
  html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose):hover:not(:disabled) {
    background: color-mix(in srgb, var(--nb-blue) 8%, var(--mcq5-tile));
  }
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose):active:not(:disabled) {
  background: color-mix(in srgb, var(--nb-ink) 6%, var(--mcq5-tile));
  transform: none;
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose):focus-visible {
  outline: 2px solid var(--nb-blue);
  outline-offset: 2px;
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose) .mcq-opt-badge {
  width: 28px;
  height: 28px;
  font-size: var(--nb-text-sm);
  font-weight: 600;
  background: color-mix(in srgb, var(--nb-ink) 6%, var(--mcq5-tile));
  color: var(--nb-ink);
}
@media (hover: hover) {
  html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose):hover:not(:disabled) .mcq-opt-badge {
    background: color-mix(in srgb, var(--nb-blue) 14%, var(--mcq5-tile));
    color: var(--nb-blue);
  }
}
/* no ring at the row's end: the mark shows only once answered, a tick or a cross with no circle and no words */
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose) .mcq-opt-mark {
  display: none;
  width: auto;
  height: auto;
  margin-left: auto;
  border: 0;
  background: none;
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose):is(.is-correct, .is-incorrect) .mcq-opt-mark {
  display: inline-flex;
  border: 0;
  background: none;
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose):is(.is-correct, .is-incorrect) .mcq-opt-mark::before {
  display: block;
  width: 20px;
  height: 20px;
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose):is(.is-correct, .is-incorrect) .mcq-opt-mark::after {
  content: none;
}

/* checking (answer-gate.css): on a phone the mark is the small ring that turns blue while the answer is on its way */
@media (max-width: 640px) {
  html body .question-card[data-mcq][data-checking] .mcq-option-btn.is-checking:not(.mcq-pset-choose) .mcq-opt-mark {
    width: 20px;
    height: 20px;
    border: 2px solid color-mix(in srgb, var(--nb-blue) 22%, transparent);
    border-radius: var(--nb-r-pill);
  }
}
/* the refusal line under the options (answer-gate.css put it in the old second column) */
html body .question-card[data-mcq] > .mcq-answer-note {
  grid-column: 1;
}

/* answered: the right answer fills solid green, its words in the page tone (6.6:1 by day, 9.9:1 by night); a wrong pick a
   pale red wash, its letter filled red; the rest stay as they were, in the one ink */
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose).is-correct {
  border: 0;
  background: var(--nb-success);
  color: var(--nb-paper);
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose).is-correct .mcq-opt-text,
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose).is-correct .mcq-opt-mark {
  color: var(--nb-paper);
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose).is-correct .mcq-opt-badge {
  background: color-mix(in srgb, var(--nb-paper) 22%, transparent);
  color: var(--nb-paper);
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose).is-incorrect {
  border: 0;
  background: color-mix(in srgb, var(--nb-error) 12%, var(--mcq5-tile));
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose).is-incorrect .mcq-opt-badge {
  background: var(--nb-error);
  color: var(--nb-paper);
}
html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose).is-incorrect .mcq-opt-mark {
  color: var(--nb-error);
}
@media (prefers-reduced-motion: no-preference) {
  html body .question-card[data-mcq].is-answered .mcq-option-btn:not(.mcq-pset-choose).is-correct {
    animation: mcq5-fill var(--nb-dur-2) var(--nb-ease);
  }
}
@keyframes mcq5-fill {
  from { transform: scale(0.985); }
  to { transform: none; }
}

/* ── The response: one white sheet, no edge ── */
html body .question-card[data-mcq] .mcq-reasoning {
  grid-column: 1;
  grid-row: 3;
  max-width: var(--mcq-measure, 46rem);
}
html body .question-card[data-mcq] .mcq-reasoning.is-visible {
  margin-top: var(--nb-s3);
  padding: var(--nb-s5) var(--nb-s5) var(--nb-s6);
  border: 0;
  border-radius: var(--nb-r-lg);
  background: var(--nb-paper-raised);
}
html body .question-card[data-mcq] .mcq-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--nb-s1) var(--nb-s3);
  padding-bottom: var(--nb-s4);
}
html body .question-card[data-mcq] .mcq-verdict-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--nb-s1) var(--nb-s3);
}
html body .question-card[data-mcq] .mcq-verdict-text {
  font-size: var(--nb-text-xl);
  font-weight: 650;
  letter-spacing: -0.015em;
}
html body .question-card[data-mcq] .mcq-answer-ref,
html body .question-card[data-mcq] .mcq-answer-ref-label {
  font-size: var(--nb-text-sm);
  color: var(--nb-soft);
}
html body .question-card[data-mcq] .mcq-answer-ref-item + .mcq-answer-ref-item {
  padding-left: 0;
  border-left: 0;
}
html body .question-card[data-mcq] :is(.mcq-explanation, .mcq-misconception) {
  margin-top: var(--nb-s4);
}
html body .question-card[data-mcq] .mcq-explanation-label,
html body .question-card[data-mcq] .mcq-misconception .mcq-misconception-label {
  margin-bottom: var(--nb-s1);
  padding-left: 0;
  font-size: var(--nb-text-base);
  font-weight: 650;
  line-height: 1.35;
}
html body .question-card[data-mcq] .mcq-explanation-text,
html body .question-card[data-mcq] .mcq-misconception .mcq-misconception-text {
  font-size: var(--nb-text-base);
  line-height: 1.5;
}

/* ── A phone: compact, so a question, its options and the verdict fit one screen (the videos) ── */
@media (max-width: 640px) {
  html body .question-card[data-mcq] {
    --mcq5-stem-lh: 1.4;
    padding: var(--nb-s6) 0 var(--nb-s6);
  }
  html body .question-card[data-mcq] .mcq-q-head,
  html body .question-card[data-mcq] .mcq-question {
    font-size: 16px;
  }
  html body .question-card[data-mcq] .mcq-q-no {
    font-size: 15px;
    line-height: calc(16px * var(--mcq5-stem-lh));
    height: calc(16px * var(--mcq5-stem-lh) - 2px);
  }
  html body .question-card[data-mcq] .mcq-question {
    letter-spacing: -0.006em;
  }
  html body .question-card[data-mcq] .mcq-options {
    margin-top: 14px;
    gap: 6px;
  }
  html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose) {
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px 10px 10px;
    font-size: 16px;
    line-height: 1.3;
  }
  html body .question-card[data-mcq] .mcq-option-btn:not(.mcq-pset-choose) .mcq-opt-badge {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  html body .question-card[data-mcq] .mcq-reasoning.is-visible {
    padding: var(--nb-s4) var(--nb-s4) 18px;
  }
  html body .question-card[data-mcq] .mcq-verdict-text {
    font-size: 19px;
  }
  html body .question-card[data-mcq] .mcq-answer-ref,
  html body .question-card[data-mcq] .mcq-answer-ref-label {
    font-size: 14px;
  }
  html body .question-card[data-mcq] .mcq-explanation-text,
  html body .question-card[data-mcq] .mcq-misconception .mcq-misconception-text {
    font-size: 15px;
    line-height: 1.47;
  }
}

/* ── 1280px and up: an answered card stands its response beside the question, in two columns ── */
@media (min-width: 1280px) {
  html body .question-card[data-mcq].is-answered {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 36%, 440px);
    grid-template-rows: auto auto 1fr;
    column-gap: var(--nb-s7);
  }
  html body .question-card[data-mcq].is-answered > .mcq-reasoning {
    grid-column: 2;
    grid-row: 1 / -1;
    margin-top: 0;
  }
}
