.print-setup { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; }
.print-setup label { min-width: min(100%, 170px); }
.print-setup p:empty { display: none; }
#sheets { width: min(100%, 735px); margin: 16px auto 0; display: grid; gap: 12px; }
.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 7px; background: #d9ddef; }
.print-card { min-width: 0; aspect-ratio: 63/88; display: grid; justify-items: center; align-content: start; gap: 3px; text-align: center; padding: 5px; border: 1px solid #5c6da8; background: #fff; color: #101c4c; }
.print-card h2 { font: 700 clamp(.8rem, 2vw, 1.25rem)/1 var(--display); overflow-wrap: anywhere; }
.print-card p { font-size: clamp(.58rem, 1.6vw, .82rem); line-height: 1.15; }
.print-card img { width: min(86%, 52mm); height: auto; image-rendering: pixelated; }
.print-card strong { font: 700 clamp(.63rem, 1.6vw, .86rem) ui-monospace, monospace; }
@page { size: A4 portrait; margin: 9mm; }
@media print {
    :root, body { color: #000; background: #fff; }
    .site-header, .heading, .print-setup { display: none; }
    .print-site .page, #sheets { display: block; width: auto; padding: 0; margin: 0; max-width: none; }
    .sheet { grid-template-columns: repeat(3, 63mm); width: max-content; margin: 0 auto; padding: 0; gap: 0; background: #fff; break-inside: avoid; }
    .sheet + .sheet { break-before: page; }
    .print-card { width: 63mm; height: 88mm; padding: 2mm 1mm; border: .3mm solid #222; color: #000; }
    .print-card h2 { font: 700 12pt system-ui, sans-serif; }
    .print-card p { font-size: 9pt; }
    .print-card img { width: 52mm; height: 52mm; }
    .print-card strong { font: 700 12pt ui-monospace, monospace; }
}
