/* N4 sample print sheets share the registration poster's public print page. */
@page sample { size: A4; margin: 0; }
.kit-sample { display: none; }
.kit-sample:target { display: block; }
.poster-page:has(.kit-sample:target) > :is(.print-tools, main) { display: none; }
.kit-sample {
  color: #142c3c; font-size: 1.0625rem; line-height: 1.55;
  nav { width: min(calc(100% - 2rem), 210mm); margin: 1rem auto; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
  nav a { color: #20614f; }
  nav button { margin-left: auto; min-height: 44px; padding: .6rem 1rem; background: #0d2137; color: white; border: 0; font: inherit; cursor: pointer; }
  .print-sheet {
    width: min(100%, 210mm); min-height: 297mm; margin: 0 auto 1rem; padding: 12mm;
    display: grid; line-height: 1.3; color: #0d2137; background: white; break-after: page;
  }
  .print-face { align-self: center; display: flex; flex-direction: column; align-items: start; gap: 5mm; padding: 6mm; font-size: 18pt; }
  .print-face p, .print-face h1 { margin: 0; color: inherit; }
  .print-face h1 { font: 700 32pt/1.05 var(--font-display); }
  .school-name { border-left: 1mm solid var(--accent); padding-left: 3mm; font-weight: 700; }
  .school-qr img { display: block; max-width: 100%; height: auto; }
  .sample-url { display: block; text-decoration: underline; font-size: 11pt; color: inherit; }
  .a4 { position: relative; width: 210mm; height: 297mm; margin: 0 auto 16px; background: #fff; overflow: hidden; break-after: page; }
  .a4:last-child { break-after: auto; }
  .block {
    position: absolute; left: 20mm; top: 13.5mm; width: 170mm; height: 270mm;
    display: grid; grid-template-columns: repeat(2, 85mm); grid-template-rows: repeat(5, 54mm); align-content: start;
  }
  .mark { position: absolute; display: block; background: #142c3c; }
  .mark.v { width: .25mm; height: 6mm; }
  .mark.v.top { top: -8mm; }
  .mark.v.bottom { top: 272mm; }
  .mark.x0 { left: -.125mm; }
  .mark.x1 { left: 84.875mm; }
  .mark.x2 { left: 169.875mm; }
  .mark.h { width: 6mm; height: .25mm; }
  .mark.h.left { left: -8mm; }
  .mark.h.right { left: 172mm; }
  .mark.y0 { top: -.125mm; }
  .mark.y1 { top: 53.875mm; }
  .mark.y2 { top: 107.875mm; }
  .mark.y3 { top: 161.875mm; }
  .mark.y4 { top: 215.875mm; }
  .mark.y5 { top: 269.875mm; }
  .card {
    display: grid; grid-template-columns: 3.5mm minmax(0, 1fr) 35mm; width: 85mm; height: 54mm; overflow: hidden;
    background: #fff; color: #142c3c; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .card .stripe { background: #20614f; }
  .card.stradipass .stripe { background: #8b522e; }
  .card.volapass .stripe { background: #176494; }
  .card.linguipass .stripe { background: #2b676d; }
  .card .face { min-width: 0; padding: 4.5mm 1mm 4mm 4mm; display: flex; flex-direction: column; }
  .card p { margin: 0; }
  .card .school { font: 700 10pt/1.15 var(--font-display), sans-serif; overflow-wrap: anywhere; }
  .card .app { margin-top: 1.6mm; display: flex; align-items: center; gap: 1.6mm; font: 700 10pt/1 var(--font-display), sans-serif; }
  .card .logo { width: 6.5mm; height: 6.5mm; }
  .card .who {
    margin-top: auto; font: 760 17pt/1 var(--font-display), sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
  .card .scan { margin-top: 2mm; font: 10pt/1.2 var(--font-text), sans-serif; color: #536770; }
  .card .code { display: flex; align-items: center; justify-content: center; padding-right: 1.5mm; }
  .card .code-image { display: block; width: 33mm; height: 33mm; }
  .card .hand-name { margin-top: 2mm; font-size: 11pt; }
  @media screen and (max-width: 210mm) {
    .a4 { width: fit-content; max-width: 100%; height: auto; }
    .block { position: static; width: auto; height: auto; grid-template-columns: 1fr; grid-template-rows: none; }
    .mark { display: none; }
    .card { max-width: 100%; border-bottom: 1px dashed #536770; }
    .print-sheet { min-height: 0; padding: 1rem; }
  }
  @media print {
    nav { display: none; }
    .print-sheet, .a4 { margin: 0; }
  }
}
@media print {
  .poster-page:has(.kit-sample:target) { page: sample; print-color-adjust: exact; }
}
