/* Cap a table's scrolling wrap at the shared column, including its side insets. */
.cert-page.methods-paper > .kpress-table-wrap {
  max-width: min(100%, calc(var(--kpress-measure) + 2 * var(--kpress-column-inset)));
}

/* Long survey tables flow across pages; KPress keeps each row intact. */
@media print {
  .cert-page.methods-paper #methods-and-record-examples + p + .kpress-table-wrap .kpress-table,
  .cert-page.methods-paper
    #selected-bounds-after-the-october-8-intake
    + p
    + .kpress-table-wrap
    .kpress-table {
    break-inside: auto;
    page-break-inside: auto;
  }
}

/* A side length must remain readable as one number in the record comparison. */
.cert-page.methods-paper
  #selected-bounds-after-the-october-8-intake
  + p
  + .kpress-table-wrap
  td:nth-child(2),
.cert-page.methods-paper
  #selected-bounds-after-the-october-8-intake
  + p
  + .kpress-table-wrap
  td:nth-child(3) {
  white-space: nowrap;
}

/* Keep native geometry legible on phones and compact in the printed tutorial. */
.cert-page.methods-paper .methods-diagram {
  display: block;
  width: 100%;
  height: auto;
  max-width: 24rem;
  margin-inline: auto;
}

.cert-page.methods-paper figure {
  break-inside: avoid;
  page-break-inside: avoid;
}
