/* v084 — Paper workspace: the Mark Scheme was clipping every answer down to a
   single line on the cropped units (M1/M2/S1/S2/FP1-FP3).

   Measured on the live site, M1-2014-JUN-Standard:
     - all 7 answer crops loaded fine (Q1_ms .. Q7_ms, 442-1235px tall),
     - but the pane laid them out as 7 equal rows of 103.7px
       ( = pane height 810 / 7 ), and every .continuousPdfPage carries
       overflow:hidden, so each answer was cut to 92px and the 7 stumps were
       stacked on top of each other. It looked like "only the question number
       and the first line are there".
     - P1-P4 looked fine because those papers render through PdfPageViewer,
       which sets an explicit height on every page, so the rows never collapse.

   Fix: let each row take the height of the answer it holds, and stop clipping
   inside the Mark Scheme pane. Deliberately NOT !important and NOT touching the
   question viewer — PdfPageViewer still owns page heights there. */

body.ial-v029 .paperAnswerBook.paper-show-ms .v029PaperMarkSchemePane {
  grid-auto-rows: max-content;
}

body.ial-v029 .v029PaperMarkSchemePane .continuousPdfPage {
  overflow: visible;
  height: auto;
}

/* Give the answers a bit of air and keep them readable against the pane. */
body.ial-v029 .v029PaperMarkSchemePane .continuousPdfPageImage {
  border-radius: 2px;
}

/* On a narrow screen the pane loses its own scroll height; make sure it keeps
   one so the answers can still be reached by swiping. */
@media (max-width: 900px) {
  body.ial-v029 .paperAnswerBook.paper-show-ms .v029PaperMarkSchemePane {
    min-height: 320px;
  }
}
