.preview-toolbar { padding-block: 23px; }
.preview-toolbar h1 { font: italic 700 2.5rem/1 var(--display); text-transform: uppercase; }
#paper-pages { width: min(100% - 32px, 210mm); margin: 0 auto 30px; }
.paper-page { background: white; padding: 10mm; margin: 0 0 16px; border: 1px solid var(--line); color: #111; }
.paper-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.paper-head h2 { font: italic 700 24pt/1.1 var(--display); text-transform: uppercase; }
.paper-head span, .paper-guide { font-size: 10pt; }
.paper-guide { margin: 3mm 0 6mm; max-width: 148mm; }
.paper-bands { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4mm; }
/* Reserve space on A4 for the heading, scale and margins while fitting long place names. */
.paper-measure { position: fixed; top: 0; left: 0; width: 54mm; height: 225mm; overflow: hidden; visibility: hidden; pointer-events: none; }
.band { display: flex; flex-direction: column; flex: none; width: 54mm; min-height: 211mm; padding: 2.6mm; border: .28mm dashed #373737; color: #161616; }
.band-head { padding-bottom: 2.4mm; border-bottom: .5mm solid #202020; }
.band-head strong { font: italic 700 12pt/1.1 var(--display); text-transform: uppercase; }
.band-head h3 { font: 600 17pt/1.08 var(--display); margin: 1mm 0 1.5mm; overflow-wrap: anywhere; }
.band-head p { font-size: 8.1pt; line-height: 1.38; }
.band-head b { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.band-keys, .band-times { display: flex; align-items: baseline; justify-content: space-between; gap: 1.3mm; }
.band-keys { padding-top: 1mm; text-transform: uppercase; font-size: 7.5pt; font-weight: 650; }
.band-row { padding: 1.45mm 0; border-bottom: .2mm solid #a2a2a2; }
.band-point { font-size: 9pt; font-weight: 600; overflow-wrap: anywhere; }
.band-times { font-variant-numeric: tabular-nums; font-size: 11.5pt; line-height: 1.25; }
.band-times > :last-child { text-align: right; white-space: nowrap; }
.band-day { font-size: 7.5pt; color: #222; }
.band-finish { border-block: .5mm solid #262626; }
.band-last { margin-top: 2mm; font-size: 8pt; }
.band-tab { display: grid; place-items: center; margin-top: auto; min-height: 19mm; border-top: .25mm dotted #777; font-size: 8pt; color: #444; }
.ruler { width: 50mm; border: solid #222; border-width: .4mm .3mm 0; margin: 5mm 0 0; text-align: center; font-size: 8pt; line-height: 1.4; }
@media screen and (max-width: 680px) {
  .preview-toolbar { align-items: flex-start; gap: 14px; }
  .paper-page { padding: 5mm; }
  .paper-bands { justify-content: center; }
}
/* The sheet supplies its own safe margin. Browser URL/date headers stay outside the wristband template. */
@page { size: A4 portrait; margin: 0; }
@media print {
  :root, body { background: white; color: black; }
  #site, .preview-toolbar { display: none !important; }
  #paper[hidden], #paper { display: block !important; }
  #paper-pages { width: auto; margin: 0; }
  .paper-page { width: auto; margin: 0; padding: 10mm; border: 0; break-after: page; }
  .paper-page:last-child { break-after: auto; }
  .paper-bands { flex-wrap: nowrap; gap: 5mm; }
  .band, .band-row { break-inside: avoid; }
}
