/* Existing A4 rules, adapted to the reference markup. Loaded only with media="print". */
@media print{
  @page{size:A4}
  .k-article{padding:0 32px}
  .uem-header{display:none}
  /* A lightbox can return focus to the image link; Chromium fragments its outline across pages. */
  .k :focus-visible{outline:none}
  .k-head,.k-fig{break-inside:avoid;page-break-inside:avoid}
  .k-title{font-size:26pt}
  .k-hero{max-width:150mm;max-height:none;aspect-ratio:auto}
  .k-hero img{height:auto;object-fit:contain}
  .k-body h2,.k-body h3{break-after:avoid-page;page-break-after:avoid}
  .k-body h2+*,.k-body h3+*{break-before:avoid-page;page-break-before:avoid}
  /* Keep only the immediate introduction with a block figure; long paragraphs may still split. */
  .k-body>p:has(+ .k-fig--wide),.k-body>p:has(+ .k-fig--detail){break-after:avoid-page;page-break-after:avoid}
  .k-body .k-fig--wide{margin-right:0}
  /* Leave room for captions on A4; original print panels outside the frame retain their sizing. */
  .k-fig .k-fig__frame img{max-height:180mm;width:auto;object-fit:contain}
  .k-body pre{white-space:pre-wrap;overflow-wrap:anywhere;overflow:visible}
  .k-fig[data-mobile="hide"]{display:block}
  .k-fig figcaption{display:block;overflow:visible;font-size:9pt}
  .k-table{width:100%;max-width:100%;overflow:visible}
  /* Restore table semantics after the narrow-screen card rules, including mobile print. */
  .k-body .k-table--wide{margin-right:0}
  .k-table--stack table{display:table}
  .k-table--stack thead{display:table-header-group;position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
  .k-table--stack tbody{display:table-row-group}
  .k-table--stack tr{display:table-row;background:transparent;border:0;padding:0;margin:0}
  .k-table--stack td{display:table-cell;width:auto;margin:0;border-bottom:1px solid var(--line)}
  .k-table--stack td::before{display:none}
  .k-table--stack td:first-child{width:auto;margin:0;color:var(--blue);font-size:9.5pt;line-height:1.45}
  .k-table table{width:100%;min-width:0;max-width:100%;table-layout:fixed}
  .k-table th,.k-table td{min-width:0;max-width:none;padding:2mm;font-size:9.5pt;line-height:1.45;white-space:normal;overflow-wrap:anywhere;word-break:normal}
  .k-table tr{break-inside:avoid;page-break-inside:avoid}
  .technical-print-panels[hidden]{display:block!important;margin:4mm 0}
  .technical-print-panel{display:block;margin:0 0 4mm;break-inside:avoid;page-break-inside:avoid;line-height:normal}
  .technical-print-panel svg{display:block;width:100%;max-width:100%;height:auto}
  .technical-print-panel-caption{display:block;margin:2mm 0 0;font-size:9pt;line-height:1.3}
}
