/* SpryCaps — hoja de certamen */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("assets/fonts/kalam-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("assets/fonts/kalam-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jbmono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --desk: #1b2029;
  --desk-2: #232a35;
  --paper: #f3f4f0;
  --paper-shade: #e6e8e2;
  --rule: #c9cfd6;
  --toner: #1c2233;
  --toner-soft: #4a5263;
  --pen: #1f3a93;
  --red: #c8262b;
  --olive: #3d6b2c;
  --forest: #2f5d3a;

  --print: "Archivo", "Arial Narrow", Arial, sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --gap: clamp(56px, 9vw, 120px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  scrollbar-color: var(--toner-soft) var(--desk);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--toner);
  font-family: var(--print);
  font-size: clamp(16px, 1.05vw + 11px, 19px);
  line-height: 1.5;
  font-stretch: 92%;
  -webkit-font-smoothing: antialiased;
  padding: clamp(0px, 3vw, 48px) clamp(0px, 3vw, 48px) clamp(0px, 4vw, 64px);
}

::selection { background: #c9d6ff; color: var(--toner); }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:focus-visible, .table-wrap:focus-visible, summary:focus-visible {
  outline: 2px dashed var(--pen);
  outline-offset: 4px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--pen); color: #fff; padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------- the sheet ---------- */

.sheet {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  background-color: var(--paper);
  /* photocopy toner grain + faint margin rule */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .12 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(transparent 0 31px, rgba(150, 165, 185, .18) 31px 32px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .25);
  padding: clamp(16px, 3vw, 40px) var(--pad) clamp(40px, 6vw, 72px);
  overflow: hidden;
}

/* ---------- header ---------- */

.exam-head {
  display: grid;
  grid-template-columns: 1.35fr 1.6fr 1fr 1fr 1fr .7fr;
  border: 2px solid var(--toner);
}
.cell {
  border-right: 1.5px solid var(--toner);
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 74px;
}
.cell:last-child { border-right: 0; }
.crest { justify-content: center; }
.crest img { width: min(190px, 100%); }
.lbl {
  font-family: var(--print);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--toner-soft);
}
.print { font-family: var(--print); }
.title .print { font-weight: 700; font-stretch: 80%; font-size: 1.05rem; line-height: 1.2; }

.hand { font-family: var(--hand); font-weight: 700; line-height: 1.15; }
.blue { color: var(--pen); }
.red { color: var(--red); }
.green { color: var(--olive); }
.cell .hand { font-size: 1.35rem; transform: rotate(-1.5deg); transform-origin: left; }

.grade { align-items: center; text-align: center; }
.grade-mark {
  font-size: 2.6rem !important;
  line-height: 1;
  transform: rotate(-8deg) !important;
}

/* ---------- instructions / nav ---------- */

.instructions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 14px 0 0;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  font-size: .9rem;
}
.instructions p { margin: 0; flex: 1 1 320px; color: var(--toner-soft); }
.instructions strong { color: var(--toner); }
.instructions ol {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--print); font-size: 14px;
}
.instructions ol a { text-decoration: none; color: var(--toner-soft); }
.instructions ol a:hover { color: var(--pen); text-decoration: underline; }

/* ---------- pen button ---------- */

.pen-btn {
  --b: var(--pen);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--hand); font-weight: 700;
  font-size: 1.3rem; line-height: 1;
  color: #fff; background: var(--b);
  padding: 15px 22px 13px;
  text-decoration: none;
  border-radius: 3px 14px 4px 12px / 12px 4px 14px 3px;
  box-shadow: 0 6px 14px -6px rgba(10, 12, 18, .45);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .2s;
}
.pen-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pen-btn:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: 0 12px 22px -8px rgba(10, 12, 18, .5); background: #19307d; }
.pen-btn:active { transform: translateY(0); }
.pen-btn.small { font-size: 1.05rem; padding: 10px 16px 9px; }
.pen-btn.big { font-size: clamp(1.3rem, 3.4vw, 2.3rem); padding: 20px 28px 17px; overflow-wrap: anywhere; }

.text-link {
  font-family: var(--mono); font-size: .9rem; color: var(--pen);
}

/* ---------- question scaffold ---------- */

.q {
  position: relative;
  padding-top: var(--gap);
}
.q + .q::before {
  content: "";
  position: absolute; left: 0; right: 0; top: calc(var(--gap) / 2);
  border-top: 1px dashed var(--rule);
}
h1, h2 {
  margin: 0;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.02em;
  line-height: .98;
  text-wrap: balance;
}
h1 { grid-column: 1 / -1; font-size: clamp(2.7rem, 6.2vw, 5.9rem); max-width: 19ch; margin-bottom: clamp(4px, 1.5vw, 16px); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); max-width: 22ch; margin-bottom: clamp(28px, 4vw, 44px); }
.qn { color: var(--toner-soft); font-stretch: 100%; font-weight: 600; margin-right: .15em; }
h2 .sub {
  display: block; margin-top: 12px;
  font-size: 1rem; font-weight: 500; font-stretch: 92%; letter-spacing: 0;
  color: var(--toner-soft);
}

.pts {
  position: absolute; right: 0; top: calc(var(--gap) + .4em);
  font-family: var(--mono); font-size: 12px; color: var(--toner-soft);
}

.src {
  display: block;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  color: var(--toner-soft); font-weight: 400; letter-spacing: 0;
}

/* ---------- Q1 ---------- */

.q1 {
  padding-top: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 0 clamp(16px, 3vw, 40px);
  align-items: start;
}
.q1 .pts { top: clamp(28px, 4vw, 52px); }
.q1-copy { position: relative; z-index: 2; }

.choices {
  border: 0; padding: 0;
  margin: clamp(28px, 4vw, 44px) 0 0;
  display: grid; gap: 14px;
}
.choice {
  display: grid;
  grid-template-columns: 34px 30px auto 1fr;
  align-items: center;
  column-gap: 8px;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}
.bubble { width: 30px; height: 30px; }
.bubble circle { fill: none; stroke: var(--toner); stroke-width: 2.2; }
.bubble .ink {
  fill: var(--olive); stroke: none;
  transform-origin: 20px 20px;
  transform: scale(1);
  transition: transform .7s var(--ease) .15s;
}
.opt { font-family: var(--mono); font-size: .9em; color: var(--toner-soft); }
.choice .txt { line-height: 1.25; }
.choice.right .txt { color: var(--forest); }
.choice .aside { font-size: 1.05rem; transform: rotate(-3deg); margin-left: 12px; white-space: nowrap; }
.choice[data-fill="wrong"] .txt { text-decoration: line-through 0 transparent; transition: text-decoration-color .6s; }

.lead {
  max-width: 46ch;
  margin: clamp(28px, 4vw, 40px) 0 0;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--toner);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }

.q1-product {
  position: relative;
  margin: clamp(28px, 4vw, 44px) calc(var(--pad) * -1) 0 0;
  transform: rotate(2deg);
  transform-origin: left top;
}
.q1-product img {
  border: 8px solid #fff;
  border-right-width: 0;
  box-shadow: 0 18px 34px -14px rgba(28, 34, 51, .5);
}
.staple {
  position: absolute; left: 16%; top: -4px; z-index: 2;
  width: 64px;
  fill: none; stroke: var(--toner); stroke-width: 2.4; stroke-linecap: square;
  transform: rotate(-5deg);
}
.q1-product figcaption {
  font-size: 1rem; font-weight: 400;
  margin: 4px 0 0 8%;
  transform: rotate(-2deg);
}

/* ---------- Q2 ---------- */

.q2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(22px, 3vw, 34px); }
.check {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  grid-template-areas: "box txt score" ". src score";
  column-gap: 14px;
  align-items: center;
}
.check .box {
  grid-area: box;
  width: 28px; height: 28px; border: 2px solid var(--toner);
  display: grid; place-items: center;
}
.check .box svg { width: 26px; height: 26px; fill: none; stroke: var(--pen); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: translate(3px, -4px) rotate(-6deg); }
.check .txt { grid-area: txt; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.3; }
.check .src { grid-area: src; margin-top: 4px; }
.check .score { grid-area: score; justify-self: end; }
.big {
  font-family: var(--print); font-weight: 800; font-stretch: 70%;
  font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.circled { position: relative; display: inline-block; color: var(--red); padding: 4px 10px; }
.ring {
  position: absolute; inset: -14px -18px; width: calc(100% + 36px); height: calc(100% + 28px);
  fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  overflow: visible;
}

.graph {
  border: 1.5px solid var(--toner);
  padding: 18px 18px 14px;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  background-color: rgba(255, 255, 255, .55);
}
.g-title { margin: 0 0 12px; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.g-title span { font-weight: 400; color: var(--toner-soft); }
.bars {
  position: relative;
  height: 230px;
  display: flex; align-items: flex-end; gap: 22%;
  padding: 0 14% 26px;
  border-bottom: 2px solid var(--toner);
  margin-bottom: 10px;
}
.bar {
  position: relative; flex: 1;
  height: var(--h);
  background: repeating-linear-gradient(-45deg, var(--toner) 0 2px, transparent 2px 7px);
  border: 2px solid var(--toner);
}
.bar .v {
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-weight: 700; font-size: 14px;
}
.bar .y {
  position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 12px; color: var(--toner-soft);
}
.x9 { position: absolute; left: 4%; top: 38%; max-width: 40%; font-size: 1.4rem; line-height: 1.1; transform: rotate(-6deg); }

.note {
  margin: clamp(32px, 4vw, 48px) 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  max-width: 40ch;
  transform: rotate(-1deg);
}
.note .src { margin-top: 6px; transform: rotate(1deg); }

/* ---------- Q3 ---------- */

.q3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.cloze {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 2.25;
  max-width: 34ch;
}
.blank {
  display: inline;
  border-bottom: 1.5px solid var(--toner);
  padding: 0 .2em 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.blank .hand { font-size: 1.12em; }
.q3-photo { margin: 0; position: relative; }
.q3-photo img {
  border: 6px solid #fff;
  box-shadow: 0 16px 30px -12px rgba(28, 34, 51, .45);
  transform: rotate(1.8deg);
}
.q3-photo figcaption { font-size: 1rem; font-weight: 400; margin-top: 14px; transform: rotate(-1deg); }
.margin-note {
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding-left: 18px;
  border-left: 1px solid var(--toner);
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
}

/* ---------- Q4 table ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%; min-width: 680px;
  border-collapse: collapse;
  border: 2px solid var(--toner);
  font-size: 1rem;
}
.compare th, .compare td {
  border: 1px solid var(--toner);
  padding: 14px 16px;
  text-align: left; vertical-align: top;
}
.compare thead th {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper-shade);
}
.compare tbody th { font-weight: 700; font-stretch: 85%; width: 22%; }
.compare .us { background: rgba(61, 107, 44, .08); }
.compare thead .us { background: var(--forest); color: #fff; }
.compare td .hand { font-size: 1.3rem; }
.compare td .src { margin-top: 4px; }

/* ---------- Q5 tally ---------- */

.tally { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.tally li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px 32px;
  align-items: center;
}
.pct {
  position: relative;
  display: block;
  height: clamp(54px, 6vw, 72px);
  border: 2px solid var(--toner);
  background: #fff;
  overflow: hidden;
}
.pct::before {
  content: "";
  position: absolute; inset: 0;
  width: calc(var(--p) * 1%);
  background: repeating-linear-gradient(-45deg, var(--toner) 0 2px, transparent 2px 7px);
  border-right: 2px solid var(--toner);
}
.pct b {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%) rotate(-1.5deg);
  padding: 0 8px;
  background: var(--paper);
  color: var(--toner);
  font-weight: 800; font-stretch: 70%;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tally .txt { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.3; }
.method { margin-top: 26px; max-width: 80ch; }

/* ---------- Q6 plan ---------- */

.plan { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--toner); }
.plan li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.when { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--pen); padding-top: 4px; }
.what { margin: 0; font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.3; max-width: 50ch; }
.how { margin: 4px 0 0; color: var(--toner-soft); max-width: 60ch; }
.plan .flag { display: inline-block; margin-top: 8px; font-size: 1.2rem; transform: rotate(-3deg); }
.plan li.hot .what { text-decoration: underline wavy var(--red) 1.5px; text-underline-offset: .3em; }
#p6 > .src { margin-top: 14px; }

/* ---------- Q7 signatures ---------- */

.signatures {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 56px) clamp(32px, 6vw, 80px);
}
.signatures li { display: flex; flex-direction: column; }
.sig {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400;
  padding: 0 0 6px 6px;
  border-bottom: 1.5px solid var(--toner);
  transform: rotate(-1.5deg); transform-origin: left bottom;
}
.role { font-size: 14.5px; margin-top: 10px; color: var(--toner-soft); }
.contest { margin: clamp(40px, 5vw, 56px) 0 0; max-width: 60ch; color: var(--toner-soft); }

/* ---------- bonus ---------- */

.bonus { padding-bottom: clamp(20px, 4vw, 40px); }
.bonus h2 { max-width: 18ch; }
.bonus-copy { margin: 0 0 28px; font-size: 1.15rem; max-width: 46ch; }
.final-grade {
  position: absolute; right: clamp(0px, 4vw, 40px); bottom: -10px;
  width: clamp(110px, 14vw, 170px); aspect-ratio: 1;
  display: grid; place-items: center;
  transform: rotate(-10deg);
  pointer-events: none;
}
.final-grade .hand { font-size: clamp(2.6rem, 5vw, 4rem); }
.final-grade svg {
  position: absolute; inset: 0;
  fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}

/* ---------- footer ---------- */

.foot {
  margin-top: clamp(64px, 8vw, 100px);
  padding-top: 22px;
  border-top: 2px solid var(--toner);
  font-size: .9rem;
  color: var(--toner-soft);
  display: grid; gap: 12px;
}
.foot p { margin: 0; max-width: 80ch; }
.foot strong { color: var(--toner); }
.foot summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 14px; color: var(--toner); width: max-content; }
.foot ul { margin: 10px 0 0; padding-left: 18px; font-family: var(--mono); font-size: 12px; display: grid; gap: 6px; }
.copy { font-size: 13px; }
.foot summary::-webkit-details-marker { display: none; }
.foot summary::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 2px 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .25s var(--ease);
}
.foot details[open] summary::before { transform: rotate(45deg); }

/* ---------- motion (enhancement only; content is visible by default) ---------- */

.js .reveal-wait .bubble .ink { transform: scale(0); }
.js .reveal-wait .ring,
.js .reveal-wait.final-grade svg,
.js .reveal-wait .final-grade svg { stroke-dashoffset: 1; }
.js .reveal-wait .aside { opacity: 0; }

.js .bubble .ink { transition: transform .7s var(--ease) .35s; }
.js .ring { transition: stroke-dashoffset .9s var(--ease) .2s; }
.js .final-grade svg { transition: stroke-dashoffset 1.1s var(--ease) .2s; }
.js .aside { transition: opacity .5s ease 1s; }
.check .box svg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .reveal-wait .check .box svg path { stroke-dashoffset: 1; }
.js .check .box svg path { transition: stroke-dashoffset .45s var(--ease); }
.js .check:nth-child(2) .box svg path { transition-delay: .35s; }
.js .check:nth-child(3) .box svg path { transition-delay: .7s; }
.js .choice[data-fill="wrong"] .txt { text-decoration: line-through 2px var(--red); }
.js .reveal-wait .choice[data-fill="wrong"] .txt { text-decoration-color: transparent; }
.js .choice[data-fill="wrong"] .txt { transition: text-decoration-color .5s ease .9s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .pen-btn:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .exam-head { grid-template-columns: 1.2fr 1fr 1fr; }
  .crest { grid-column: 1 / -1; border-right: 0; border-bottom: 1.5px solid var(--toner); align-items: flex-start; }
  .title { grid-column: 1 / -1; border-right: 0; border-bottom: 1.5px solid var(--toner); }
  .exam-head .cell:nth-child(3), .exam-head .cell:nth-child(4) { border-bottom: 1.5px solid var(--toner); }
  .exam-head .cell:nth-child(4) { border-right: 0; }
  .exam-head .cell:nth-child(5) { grid-column: span 2; }
  .exam-head .cell:nth-child(3) { grid-column: span 2; }

  .q1 { grid-template-columns: 1fr; }
  .q1-product { margin: 36px calc(var(--pad) * -1) 0 4%; }
  .q2-grid, .q3-grid { grid-template-columns: 1fr; }
  .graph { max-width: 460px; }
}

@media (max-width: 640px) {
  body { padding: 0; }
  .sheet { box-shadow: none; }
  .exam-head { grid-template-columns: 1fr 1fr; }
  .exam-head .cell { min-height: 64px; padding: 8px 10px 6px; }
  .exam-head .cell:nth-child(3) { grid-column: span 1; border-right: 1.5px solid var(--toner); }
  .exam-head .cell:nth-child(4) { border-right: 0; }
  .exam-head .cell:nth-child(5) { grid-column: span 1; }
  .instructions ol { display: none; }
  .instructions p { flex-basis: 100%; }
  .pts { display: none; }
  .choice { grid-template-columns: 30px 26px 1fr; }
  .choice .aside { grid-column: 3; margin: 2px 0 0; }
  .check { grid-template-columns: 30px 1fr; grid-template-areas: "box txt" ". score" ". src"; }
  .check .score { justify-self: start; margin-top: 6px; }
  .tally li { grid-template-columns: 1fr; }
  .plan li { grid-template-columns: 1fr; gap: 4px; }
  .signatures { grid-template-columns: 1fr; }
  .compare { min-width: 0; border: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border: 2px solid var(--toner); margin-bottom: 16px; }
  .compare tbody th { width: 100%; border: 0; border-bottom: 1.5px solid var(--toner); background: var(--paper-shade); }
  .compare td { border: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 10px 14px; }
  .compare td:last-child { border-bottom: 0; }
  .compare td::before { content: attr(data-label); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--toner-soft); }
  .compare td .src { grid-column: 2; }
  .final-grade { position: relative; right: auto; bottom: auto; margin: 36px 0 0 auto; }
  .q1-product { margin-left: 0; }
}

/* desktop: the print tucks beside the headline's short last line */
@media (min-width: 981px) {
  .q1-product { margin-top: calc(clamp(60px, 7.5vw, 112px) * -1); }
}
