@media print {
  @page { size: A4; margin: 17mm 15mm; }
  :root, body { background: #fff; color: #172c34; color-scheme: light; }
  body { font: 9pt/1.36 Helvetica, Arial, sans-serif; }
  main { padding: 0; max-width: none; }
  h1 { font-size: 19pt; line-height: 1.1; }
  h2 { font-size: 13pt; margin: 13pt 0 4pt; }
  h3, .ex h3 { font-size: 10pt; margin: 10pt 0 3pt; }
  h1, h2, h3 { break-after: avoid; }
  p { margin: 4pt 0 7pt; }
  .cards { grid-template-columns: repeat(4, 1fr); gap: 4pt; margin: 7pt 0; }
  .card { padding: 4pt 6pt; border-radius: 2pt; }
  .card b { font-size: 13pt; }
  .card span, .lg, .note, td.src { font-size: 8pt; }
  .scroll { overflow: visible; }
  svg.chart { display: block; width: 100%; border: 0; border-radius: 0; }
  svg, tr { break-inside: avoid; }
  table { break-inside: auto; table-layout: fixed; font-size: 8pt; line-height: 1.22; border-radius: 0; }
  th, td { padding: 3pt 4pt; overflow-wrap: anywhere; word-break: normal; }
  th { color: #263f46; }
  .nowrap { white-space: normal; }
  .ex { break-inside: avoid; margin: 7pt 0; padding: 4pt 7pt; border-radius: 2pt; }
  .msg b { font-size: 8pt; }
  pre { color: #172c34; font: 7.8pt/1.28 Menlo, monospace; padding: 3pt 5pt; overflow-wrap: anywhere; }
  main > h2:nth-of-type(3), main > h2:nth-of-type(5), main > h2:nth-of-type(7),
  main > h2:nth-of-type(8), main > h3:nth-of-type(2), main > h3:nth-of-type(3) { break-before: page; }
  main > div:nth-child(19) th:nth-child(1) { width: 28%; }
  main > div:nth-child(19) th:nth-child(2) { width: 16%; }
  main > div:nth-child(19) th:nth-child(3) { width: 16%; }
  main > div:nth-child(19) th:nth-child(4) { width: 13%; }
  main > div:nth-child(19) th:nth-child(5) { width: 16%; }
  main > div:nth-child(19) th:nth-child(6) { width: 11%; }
  main > div:nth-child(22) th:nth-child(1) { width: 48%; }
  main > div:nth-child(22) th:nth-child(2) { width: 52%; }
  main > div:nth-child(24) th:nth-child(1) { width: 13%; }
  main > div:nth-child(24) th:nth-child(2) { width: 56%; }
  main > div:nth-child(24) th:nth-child(3) { width: 31%; }
  main > div:nth-child(30) th:nth-child(1) { width: 23%; }
  main > div:nth-child(30) th:nth-child(2) { width: 26%; }
  main > div:nth-child(30) th:nth-child(3) { width: 15%; }
  main > div:nth-child(30) th:nth-child(4) { width: 13%; }
  main > div:nth-child(30) th:nth-child(5) { width: 12%; }
  main > div:nth-child(30) th:nth-child(6) { width: 11%; }
  main > div:nth-child(32) th:nth-child(1) { width: 21%; }
  main > div:nth-child(32) th:nth-child(2) { width: 10%; }
  main > div:nth-child(32) th:nth-child(3) { width: 10%; }
  main > div:nth-child(32) th:nth-child(4) { width: 11%; }
  main > div:nth-child(32) th:nth-child(5) { width: 8%; }
  main > div:nth-child(32) th:nth-child(6) { width: 40%; }
  main > div:nth-child(34) th:nth-child(1) { width: 32%; }
  main > div:nth-child(34) th:nth-child(2) { width: 12%; }
  main > div:nth-child(34) th:nth-child(3) { width: 56%; }
}
