.notebook {
  margin-block: 2rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: white;
  border: 1px solid #c6cdd4;
  border-top: 4px solid #b08e50;
}
.notebook h3 { margin: 1.25rem 0 .25rem; }
.notebook p, .notebook figure, .notebook ol { margin: .4rem 0; }
.notebook pre { font: 1rem/1.2 monospace; }
.notebook table { width: 100%; max-width: 42rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.notebook th, .notebook td { padding: .5rem .25rem; text-align: start; border-bottom: 1px solid #c6cdd4; }
.notebook caption { text-align: start; font-weight: bold; margin: 1rem 0 .25rem; }
.notebook button { margin-top: 1rem; }
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: white; color: black; font-size: 11pt; }
  body:has(.notebook:not([hidden])) > :not(main),
  main:has(.notebook:not([hidden])) > :not(.notebook),
  .notebook button { display: none; }
  main { max-width: none; padding: 0; }
  .notebook { margin: 0; padding: 0; border: 0; }
  .notebook tr, .notebook figure { break-inside: avoid; }
  .notebook :is(h2, h3, caption) { break-after: avoid; }
}
