/* Past multiple-choice questions (lib/past-mcq.js, assets/js/past-mcq.js).
   Loaded after past-frq.css, whose page frame these pages share, and built on
   site.css tokens so both color schemes come for free. */

.pm-choices { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--sp-2) 0 var(--sp-1); }
.pm-choice { min-width: 3.4rem; min-height: 3rem; font-size: var(--fs-3); font-weight: 800; }
.pm-choice.pm-picked { outline: 3px solid var(--accent); outline-offset: 1px; }
.pm-choice.pm-right { border-color: var(--good); background: var(--good-tint); color: var(--ink); }
.pm-choice.pm-wrong { border-color: var(--bad); background: var(--bad-tint); color: var(--ink); }
.pm-result { min-height: 1.4em; margin: var(--sp-3) 0 0; font-size: var(--fs-3); }
.pm-result.pm-good { border-left: 4px solid var(--good); background: var(--good-tint); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; }
.pm-result.pm-bad { border-left: 4px solid var(--bad); background: var(--bad-tint); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; }
.pm-tools { margin-top: var(--sp-2); }

/* The worked explanation under the choices (lib/past-mcq-explain.js). */
.pm-explain { margin-top: var(--sp-2); }
.pm-why { padding-left: 0; list-style: none; }
.pm-why li { margin-bottom: var(--sp-2); }
.pm-why li.pm-why-right { border-left: 4px solid var(--good); padding-left: 10px; }

/* College Board's PDF framed on one question (lib/past-mcq.js viewerHash).
   --pm-h is the region's height over the page's width, so the frame grows
   with the viewer's fit-to-width zoom; Chrome's viewer fits the page into the
   frame less about 22px of edge and scrollbar. Firefox always shows its own
   toolbar, about 32px, on top. */
/* Phones get the button only (past-frq.css hides .pf-pdf under 900px), so
   the wrapper goes too, margin and all. */
.pm-frame { display: none; container-type: inline-size; margin-top: var(--sp-3); }
.pm-frame + .pm-frame { margin-top: var(--sp-2); }
@media (min-width: 900px) { .pm-frame { display: block; } }
.pm-frame .pf-pdf { --pm-extra: 4px; height: min(calc((100cqw - 22px) * var(--pm-h) + var(--pm-extra)), 85vh); min-height: 0; margin-top: 0; }
@supports (-moz-appearance: none) { .pm-frame .pf-pdf { --pm-extra: 36px; } }
.pm-frame-label { margin: 0 0 var(--sp-1); color: var(--muted); font-size: var(--fs-2); }
/* A viewer that ignores the open parameters (Safari's, assets/js/past-mcq.js)
   gets the whole page at full height, as before framing. */
.pm-unframed .pm-frame .pf-pdf { height: 78vh; min-height: 520px; }
.pm-unframed .pm-frame-stimulus { display: none; }
