/* "Am I Good Enough?" quiz (/good-enough/), 2026-11-04. Loaded only on template-quiz.php.
   Colors come from tokens.css, plus white and a few translucent overlays for the ledger and stamp. */

.mg-quiz-page { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } /* room for the crisis bar pinned to the bottom */
/* Embed copy (template-quiz-embed.php, body.mg-quiz-embed): no site header, shown inside another site's box, so no header offsets */
.mg-quiz-embed .mg-quiz-section { padding-top: var(--space-4); padding-bottom: var(--space-3); }
.mg-quiz-embed .mg-quiz__card { scroll-margin-top: 8px; }
.mg-quiz-embed .mg-dgrid__head { top: 0; }
.mg-quiz-embed__credit { max-width: 44rem; margin: 0 auto; padding: 0 var(--space-4) var(--space-4); text-align: center; }
.mg-quiz-section { padding-top: var(--space-6); }
.mg-quiz { max-width: 44rem; margin: 0 auto; --card-pad: var(--space-6); }
.mg-quiz:not(.is-live) .mg-quiz__card .mg-quiz__actions, .mg-quiz:not(.is-live) .mg-quiz__card .mg-quiz__links { display: none; } /* buttons need the script */
.mg-quiz__card { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--card-pad); scroll-margin-top: 112px; }
.mg-quiz__card--dark { --surface-card: var(--canyon-raised); --surface-warm: var(--canyon-raised); --surface-wash: var(--canyon-raised); --text: #ffffff; --text-muted: var(--dusk); --link: var(--sky-tint); --eyebrow: var(--dusk); --line: var(--line-on-dark); --control-border: var(--dusk); --focus-ring: var(--sky-tint); --secondary: var(--sky-tint); --heading-accent: var(--sky-tint); background: var(--canyon); color: #ffffff; border-color: var(--line-on-dark); }
.mg-quiz__card--dark .mg-scripture p, .mg-quiz__card--dark .mg-scripture cite { color: #ffffff; }
.mg-quiz__card--dark a { color: var(--sky-tint); }
.mg-quiz__card--noscript { margin-top: var(--space-5); }
.mg-sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mg-quiz__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-4); font-size: 14px; }
.mg-quiz__back, .mg-quiz__skip, .mg-quiz__links button, .mg-quiz__skipanim { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mg-quiz__back { font-weight: 700; }
.mg-quiz__skip { font-size: 14px; text-align: right; }
.mg-quiz__back:focus-visible, .mg-quiz__skip:focus-visible, .mg-quiz__links button:focus-visible, .mg-quiz__skipanim:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.mg-quiz__progress { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eyebrow); text-align: center; }
.mg-quiz .mg-quiz__eyebrow { margin-bottom: var(--space-2); }
.mg-quiz__h { font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 1.12; margin: 0 0 var(--space-4); color: var(--text); }
.mg-quiz__h:focus { outline: none; }
.mg-quiz__h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.2; margin: var(--space-6) 0 var(--space-3); color: var(--text); }
.mg-quiz p { font-size: 18px; line-height: 1.6; margin: 0 0 var(--space-4); }
.mg-quiz p.mg-small { font-size: 15px; }
.mg-quiz .mg-quiz__lead { font-size: 20px; font-weight: 700; }
.mg-quiz .mg-scripture { margin: 0 0 var(--space-4); max-width: none; }
.mg-quiz .mg-scripture p { margin: 0 0 var(--space-2); }
.mg-quiz .mg-scripture sup { font-size: 0.6em; font-style: normal; margin-right: 2px; color: var(--text-muted); }
.mg-quiz__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.mg-quiz__actions .mg-btn { white-space: normal; height: auto; min-height: var(--button-height); padding-top: 10px; padding-bottom: 10px; line-height: 1.2; text-align: center; }
.mg-quiz .mg-quiz__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin: var(--space-3) 0 0; font-size: 15px; align-items: center; }
.mg-quiz__status { font-size: 14px; color: var(--text-muted); }
.mg-quiz .mg-quiz__care { font-size: 16px; color: var(--text-muted); border-top: 1px solid var(--line); padding-top: var(--space-4); margin: var(--space-5) 0 0; }
.mg-quiz .mg-quiz__note { font-size: 15px; color: var(--text-muted); font-style: italic; }
.mg-quiz .mg-quiz__said { font-size: 17px; font-weight: 700; margin-top: var(--space-4); }
.mg-quiz .mg-quiz__hint { font-size: 14px; color: var(--text-muted); margin: var(--space-2) 0 0; }
.mg-quiz__correction { border: 1px dashed var(--control-border); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); font-size: 17px; }
.mg-quiz__correction b { display: block; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-display); font-weight: 500; color: var(--eyebrow); margin-bottom: 4px; }
.mg-quiz__lockman { max-width: 44rem; margin: var(--space-5) auto 0; text-align: center; }

/* colored boxes (2026-11-05, Chuck's 12-year-old: too much reading, it felt like a wall of text). Teal holds the point of a screen
   (the how-to-read box, the "why" blocks, the key line of each good-news part); gold holds the result under the score cards.
   Verses keep their own sandstone boxes and are never put inside these. On dark ground the fills become faint tints of the same colors. */
.mg-quiz { --qbox-teal: var(--teal-wash); --qbox-gold: var(--sunrise-tint); }
[data-theme="dark"] .mg-quiz, .mg-quiz__card--dark { --qbox-teal: rgba(127, 211, 227, 0.10); --qbox-gold: rgba(232, 163, 61, 0.14); }
.mg-quiz__box { background: var(--qbox-teal); border-left: 4px solid var(--brand-teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-4); color: var(--text); }
.mg-quiz__box > :last-child { margin-bottom: 0; }
.mg-quiz__box .mg-quiz__h3 { margin-top: 0; }
.mg-quiz__box--result { background: var(--qbox-gold); border-left-color: var(--sunrise-gold); margin-top: var(--space-4); }
.mg-quiz .mg-quiz__boxtitle { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 var(--space-2); }
.mg-quiz__guide { margin: 0; padding-left: 1.3em; }
.mg-quiz__guide li { font-size: 17px; line-height: 1.45; margin: 0 0 6px; }
.mg-quiz__guide li:last-child { margin-bottom: 0; font-weight: 700; }
.mg-quiz .mg-quiz__big { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.15; margin: 0 0 var(--space-2); }
.mg-quiz .mg-quiz__key { background: var(--qbox-teal); border-left: 4px solid var(--brand-teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--space-3) var(--space-5); font-size: 20px; line-height: 1.45; font-weight: 700; color: var(--text); }
.mg-quiz__card--dark .mg-quiz__h3 { color: #ffffff; }
.mg-quiz__steps { margin: 0 0 var(--space-4); }
.mg-quiz__steps li div { font-size: 18px; line-height: 1.5; }

/* pick one (vertical list of radios) */
.mg-pick { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-4) 0 0; }
.mg-pick__opt { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: 10px var(--space-4); border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: var(--surface-card); cursor: pointer; font-size: 17px; line-height: 1.4; color: var(--text); }
.mg-pick__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mg-pick__dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--control-border); display: grid; place-items: center; }
.mg-pick__opt.is-checked { border-color: var(--brand-teal); box-shadow: inset 0 0 0 1px var(--brand-teal); font-weight: 700; }
.mg-pick__opt.is-checked .mg-pick__dot { border-color: var(--brand-teal); }
.mg-pick__opt.is-checked .mg-pick__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-teal); }
.mg-pick__opt input:focus-visible + .mg-pick__dot, .mg-scale__opt input:focus-visible + .mg-scale__dot { outline: 2px solid var(--focus-ring); outline-offset: 3px; } /* works everywhere */
.mg-pick__opt:has(input:focus-visible), .mg-scale__opt:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }             /* nicer where :has() exists */
.mg-pick__opt:has(input:focus-visible) .mg-pick__dot, .mg-scale__opt:has(input:focus-visible) .mg-scale__dot { outline: none; }

/* five-stop scale: radios styled like a slider rail with a rising fill */
.mg-scale { border: 0; padding: 0; margin: var(--space-5) 0 0; min-width: 0; }
.mg-scale legend { font-weight: 700; font-size: 18px; padding: 0; margin: 0 0 var(--space-3); color: var(--text); }
.mg-scale__track { position: relative; display: flex; flex-direction: column; gap: 6px; padding-left: 36px; }
.mg-scale__track::before { content: ""; position: absolute; left: 12px; top: var(--rail-top, 26px); height: var(--rail-h, calc(100% - 52px)); width: 4px; border-radius: 2px; background: var(--line); }
.mg-scale__fill { position: absolute; left: 12px; top: var(--rail-top, 26px); height: 0; width: 4px; border-radius: 2px; background: var(--brand-teal); transition: height .25s ease; }
.mg-scale__opt { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: 6px var(--space-4); border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: var(--surface-card); cursor: pointer; font-size: 17px; line-height: 1.3; color: var(--text); }
.mg-scale__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mg-scale__dot { position: absolute; left: -31px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--control-border); background: var(--surface-card); box-sizing: border-box; transition: background-color .15s ease, border-color .15s ease; }
.mg-scale__opt.is-on .mg-scale__dot { border-color: var(--brand-teal); }
.mg-scale__opt.is-checked { border-color: var(--brand-teal); box-shadow: inset 0 0 0 1px var(--brand-teal); font-weight: 700; }
.mg-scale__opt.is-checked .mg-scale__dot { background: var(--brand-teal); border-color: var(--brand-teal); }

/* good deeds grid: one radiogroup per row, short labels across the top (sticky, so they stay in view while scrolling the rows) */
.mg-dgrid { margin: var(--space-4) 0 0; border-top: 1px solid var(--line); }
.mg-dgrid__head, .mg-dgrid__row { display: grid; grid-template-columns: 1fr repeat(5, 46px); align-items: center; gap: 0 2px; }
.mg-dgrid__head { position: sticky; top: 100px; z-index: 2; background: var(--surface-card); padding: var(--space-2) 0 var(--space-1); border-bottom: 1px solid var(--line); }
.mg-dgrid__head span { font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); text-align: center; line-height: 1.15; }
.mg-dgrid__row { border-top: 1px solid var(--line); padding: 4px 0; }
.mg-dgrid__row:first-of-type { border-top: 0; }
.mg-dgrid__label { font-size: 16px; line-height: 1.35; padding: 6px var(--space-2) 6px 0; color: var(--text); }
.mg-dgrid__cell { display: flex; justify-content: center; }
.mg-dgrid__cell label { width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; position: relative; }
.mg-dgrid__cell input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mg-dgrid__dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--control-border); background: var(--surface-card); box-sizing: border-box; }
.mg-dgrid__cell input:checked + .mg-dgrid__dot { background: var(--brand-teal); border-color: var(--brand-teal); }
.mg-dgrid__cell input:focus-visible + .mg-dgrid__dot { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.mg-dgrid__row.is-done .mg-dgrid__label { font-weight: 700; }

/* the ledger: a paper card, stays light in both themes */
.mg-ledger { position: relative; background: var(--bone); color: var(--night); border: 1px solid var(--line-warm); border-radius: var(--radius-md); padding: var(--space-5); margin: var(--space-4) 0; overflow: hidden; }
.mg-quiz .mg-ledger__title { display: flex; justify-content: space-between; gap: var(--space-3); font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sandstone-dark); margin: 0 0 var(--space-3); line-height: 1.3; }
.mg-ledger__row { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 9px 0; border-bottom: 1px dashed var(--dusk); font-size: 16px; line-height: 1.35; transition: color .4s ease; }
.mg-ledger__val { font-family: var(--font-display); font-weight: 600; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mg-ledger__row--zero .mg-ledger__val { color: var(--sandstone-dark); }
.mg-ledger__row--verdict { border-bottom: 0; margin-top: var(--space-2); font-weight: 700; font-size: 18px; align-items: center; }
/* the verdict is a stamp like "Doesn't count"; the border follows currentColor so the wipe's fade dims the whole stamp */
.mg-ledger__row--verdict .mg-ledger__val { display: inline-block; color: var(--crisis-red); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; border: 4px solid currentColor; border-radius: 8px; padding: 7px 14px 5px; transform: rotate(-6deg); }
.mg-ledger__row::after { content: ""; position: absolute; left: 0; top: 50%; height: 3px; width: 0; background: var(--crisis-red); border-radius: 2px; transition: width .45s ease; }
.mg-ledger__stamp { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transform: rotate(-12deg) scale(1.7); }
.mg-ledger__stamp span { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--crisis-red); border: 5px solid var(--crisis-red); border-radius: 8px; padding: 4px 18px; background: rgba(245, 241, 234, 0.88); }
/* the good-deeds card: the totals stand in full, each figure struck through in red, one big red slash corner to corner over both rows, then the stamp */
.mg-ledger__void { position: relative; isolation: isolate; }
.mg-ledger__slash { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: .92; }
.mg-ledger__slash line { stroke: var(--crisis-red); stroke-width: 6px; stroke-linecap: round; }
.mg-ledger__void .mg-ledger__val { text-decoration: line-through; text-decoration-color: var(--crisis-red); text-decoration-thickness: 3px; }
.mg-quiz .mg-ledger__nocount { margin: var(--space-3) 0 var(--space-2); text-align: center; line-height: 1; }
.mg-ledger__nocount span { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--crisis-red); border: 4px solid var(--crisis-red); border-radius: 8px; padding: 4px 14px; transform: rotate(-6deg); }
.mg-ledger__row--nil .mg-ledger__val { color: var(--crisis-red); }
.mg-ledger--verdict { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.mg-ledger--verdict .mg-ledger__row--verdict { margin-top: 0; padding: 6px 0; }

/* the wipe: the debt goes to the cross, every line is struck, the stamp lands */
.mg-wipe { position: relative; padding: 118px 0 var(--space-5); }
.mg-wipe__cross { position: absolute; left: 50%; top: 10px; bottom: 0; width: 26px; margin-left: -13px; border-radius: 5px; background: var(--sunrise-gold); opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform .9s ease; }
.mg-wipe__cross::before { content: ""; position: absolute; top: 48px; left: 50%; width: 176px; height: 26px; margin-left: -88px; border-radius: 5px; background: inherit; }
.mg-wipe .mg-ledger { position: relative; z-index: 1; margin-top: 0; transition: transform .9s ease; }
.mg-wipe.is-rising .mg-wipe__cross { opacity: 1; transform: translateY(0); }
.mg-wipe.is-rising .mg-ledger { transform: translateY(-10px) rotate(-1.5deg); }
.mg-wipe.is-struck .mg-ledger__row::after { width: 100%; }
.mg-wipe.is-struck .mg-ledger__row { color: rgba(27, 27, 27, 0.4); }
.mg-wipe.is-struck .mg-ledger__row--verdict .mg-ledger__val { color: rgba(179, 38, 30, 0.4); }
.mg-wipe.is-struck .mg-ledger__row:nth-child(2)::after { transition-delay: 0s; }
.mg-wipe.is-struck .mg-ledger__row:nth-child(3)::after { transition-delay: .12s; }
.mg-wipe.is-struck .mg-ledger__row:nth-child(4)::after { transition-delay: .24s; }
.mg-wipe.is-struck .mg-ledger__row:nth-child(5)::after { transition-delay: .36s; }
.mg-wipe.is-struck .mg-ledger__row:nth-child(6)::after { transition-delay: .48s; }
.mg-wipe.is-struck .mg-ledger__row:nth-child(7)::after { transition-delay: .6s; }
.mg-wipe.is-struck .mg-ledger__row:nth-child(8)::after { transition-delay: .72s; }
.mg-wipe.is-cancelled .mg-ledger__stamp--cancelled { opacity: 1; transform: rotate(-12deg) scale(1); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .2s ease; }
/* the second stamp: green Redeemed lands over the Guilty stamp, bottom right, after Cancelled */
.mg-ledger__stamp--redeemed { --stamp-green: #2e7d4f; place-items: end end; padding: 0 8px 14px 0; transform: none; }
.mg-ledger__stamp--redeemed span { color: var(--stamp-green); border-color: var(--stamp-green); font-size: 38px; transform: rotate(-8deg) scale(1.6); }
.mg-wipe.is-redeemed .mg-ledger__stamp--redeemed { opacity: 1; transition: opacity .2s ease; }
.mg-wipe.is-redeemed .mg-ledger__stamp--redeemed span { transform: rotate(-8deg) scale(1); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.mg-wipe.is-done .mg-quiz__skipanim { display: none; }
.mg-quiz__skipanim { position: absolute; right: 0; top: 0; z-index: 2; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .mg-wipe *, .mg-wipe *::after, .mg-scale__fill, .mg-scale__dot, .mg-ledger__row, .mg-quiz-care { transition: none !important; }
}
@media (forced-colors: active) {
  .mg-pick__dot::after, .mg-scale__dot, .mg-dgrid__dot, .mg-scale__fill, .mg-wipe__cross, .mg-ledger__row::after { forced-color-adjust: none; }
}

/* the printed handout (#mg-quiz-print, built by tools/build-quiz.py): hidden on screen; "Print the good news" on the end screens prints only it,
   black on white whatever the theme, with the QR codes to John, 1 John and the quiz. theme.css already hides the header and crisis bar. */
.mg-quiz-print { display: none; }
@media print {
  @page { margin: 16mm; }
  html, body.mg-quiz-page { background: #ffffff !important; color: #1b1b1b !important; padding: 0 !important; display: block !important; min-height: 0 !important; } /* theme.css makes body a flex column; WebKit splits pages badly inside flex */
  body.mg-quiz-page > :not(.mg-main), body.mg-quiz-page .mg-main > :not(.mg-quiz-print) { display: none !important; }
  .mg-quiz-print { display: block; color: #1b1b1b; font-family: var(--font-body); font-size: 12pt; line-height: 1.45; }
  .mg-quiz-print a { color: inherit; text-decoration: none; }
  .mg-quiz-print__eyebrow { font-family: var(--font-display); font-weight: 500; font-size: 10pt; letter-spacing: 0.1em; text-transform: uppercase; color: #6e4a33; margin: 0 0 4pt; }
  .mg-quiz-print h1 { font-family: var(--font-display); font-weight: 600; font-size: 26pt; line-height: 1.1; margin: 0 0 8pt; color: #1b1b1b; }
  .mg-quiz-print h2 { font-family: var(--font-display); font-weight: 500; font-size: 15pt; line-height: 1.2; margin: 14pt 0 4pt; color: #1b1b1b; page-break-after: avoid; }
  .mg-quiz-print p, .mg-quiz-print li { margin: 0 0 6pt; }
  .mg-quiz-print__lead { font-weight: 700; font-size: 13pt; }
  .mg-quiz-print__key { font-weight: 700; border-left: 2pt solid #0097b2; padding-left: 8pt; }
  .mg-quiz-print ol { margin: 0 0 6pt 18pt; padding: 0; }
  .mg-quiz-print .mg-scripture { margin: 4pt 0 8pt; padding: 0 0 0 10pt; border-left: 2pt solid #916549; border-radius: 0; background: none; max-width: none; color: #1b1b1b; page-break-inside: avoid; }
  .mg-quiz-print .mg-scripture p { font-family: var(--font-scripture); font-style: italic; font-size: 11.5pt; line-height: 1.4; margin: 0 0 2pt; color: #1b1b1b; }
  .mg-quiz-print .mg-scripture cite { display: block; font-style: normal; font-family: var(--font-body); font-weight: 700; font-size: 9.5pt; color: #6e4a33; }
  .mg-quiz-print .mg-scripture sup { font-size: 0.6em; margin-right: 1pt; color: #6e4a33; }
  .mg-quiz-print__qrs { display: flex; gap: 14pt; align-items: flex-start; margin: 14pt 0 10pt; page-break-inside: avoid; }
  .mg-quiz-print__qrs figure { flex: 1 1 0; margin: 0; text-align: center; }
  .mg-quiz-print__qrs .mg-qr { display: block; width: 30mm; height: 30mm; margin: 0 auto 4pt; background: #ffffff; }
  .mg-quiz-print__qrs figure:first-child .mg-qr { width: 40mm; height: 40mm; }
  .mg-quiz-print__qrs figcaption { font-size: 9.5pt; line-height: 1.3; }
  .mg-quiz-print__qrs figcaption b { display: block; font-size: 10.5pt; }
  .mg-quiz-print__qrs figcaption span { display: block; color: #6e4a33; word-break: break-all; }
  .mg-quiz-print__care { font-weight: 700; border-top: 1pt solid #c9bfb2; padding-top: 6pt; margin-top: 8pt; }
  .mg-quiz-print__from, .mg-quiz-print__lockman { font-size: 8.5pt; color: #555555; }
  .mg-quiz-print__lockman a { color: #555555; text-decoration: none; }
}

/* crisis bar pinned to the bottom of the screen on this page only */
.mg-quiz-care { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--canyon); color: #ffffff; border-top: 1px solid var(--line-on-dark); font-size: 15px; line-height: 1.4; padding: 6px max(16px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-wrap: wrap; gap: 0 22px; align-items: center; justify-content: center; text-align: center; transition: background-color .3s ease; }
.mg-quiz-care a { display: inline-flex; align-items: center; min-height: 44px; color: #ffffff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mg-quiz-care a:focus-visible { outline: 2px solid #ffffff; outline-offset: -4px; }

@media (max-width: 720px) {
  .mg-quiz { --card-pad: var(--space-4); }
  .mg-quiz__card { scroll-margin-top: 96px; }
  .mg-quiz__h { font-size: 29px; }
  .mg-quiz__h3 { font-size: 21px; }
  .mg-quiz p { font-size: 17px; }
  .mg-quiz .mg-quiz__lead { font-size: 18px; }
  .mg-quiz__box { padding: var(--space-3) var(--space-4); }
  .mg-quiz .mg-quiz__key { font-size: 18px; padding: var(--space-3) var(--space-4); }
  .mg-quiz .mg-quiz__big { font-size: 26px; }
  .mg-quiz__top { flex-wrap: wrap; }
  .mg-quiz__actions .mg-btn { flex: 1 1 100%; }
  .mg-dgrid__head, .mg-dgrid__row { grid-template-columns: repeat(5, 1fr); }
  .mg-dgrid__head { top: 94px; }
  .mg-dgrid__head > :first-child, .mg-dgrid__row > .mg-dgrid__label { grid-column: 1 / -1; }
  .mg-dgrid__head > :first-child { display: none; }
  .mg-dgrid__cell label { width: 100%; }
  .mg-ledger { padding: var(--space-4); }
  .mg-ledger__row { font-size: 15px; }
  .mg-ledger__val { font-size: 18px; }
  .mg-ledger__stamp span { font-size: 32px; }
  .mg-ledger__stamp--redeemed span { font-size: 27px; }
  .mg-ledger__nocount span { font-size: 22px; padding: 3px 12px; }
  .mg-ledger__row--verdict .mg-ledger__val { font-size: 24px; padding: 6px 12px 4px; }
  .mg-ledger__slash line { stroke-width: 5px; }
  .mg-quiz-care { font-size: 14px; gap: 0 16px; }
  .mg-quiz-page { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
}
