/* Printable results sheet (print.html): always black on white, A4 landscape. Screen view = print preview. */
html,body{background:#fff!important;color:#000!important;color-scheme:light}
body.print-page{font-size:11pt;padding:16px}
body.print-page .wrap{max-width:1100px;gap:10px}
body.print-page header.noprint{background:#c8102e;color:#fff;border-radius:8px;border-bottom:6px solid #7d0a1d}
body.print-page .sheet-head{text-align:center;border-bottom:2px solid #000;padding-bottom:8px;margin-bottom:6px}
.sheet-head .org{font-family:var(--display);font-weight:600;letter-spacing:.14em;text-transform:uppercase;font-size:11pt}
.sheet-head .ttl{font-family:var(--display);font-weight:700;font-size:26pt;line-height:1.1;margin:2px 0;text-transform:none}
.sheet-head .evl{font-size:12pt}
.sheet-head .when{font-size:9pt;color:#444;margin-top:2px}
section.sheet{background:#fff;border:0;border-top:0;padding:0;margin:14px 0 0;break-inside:auto}
section.sheet h2{color:#000;font-size:15pt;margin:0 0 4px;border-bottom:1px solid #000;padding-bottom:2px;break-after:avoid}
section.sheet h2 small{color:#333}
section.sheet table{font-size:10pt}
section.sheet th{background:#e6e6e6!important;color:#000!important;border-top:1px solid #000;border-bottom:1px solid #000;padding:4px 5px}
section.sheet td{color:#000;border-bottom:1px solid #999;padding:4px 5px;font-size:10pt}
section.sheet td.rank,section.sheet td.tt{color:#000}
section.sheet td.ser{color:#222}
section.sheet td .x,section.sheet td.total .x,section.sheet td.tt .x,section.sheet td.ser .x{color:#000!important;font-weight:600}
section.sheet td.total,section.sheet td.tt{font-weight:700}
section.sheet tr.teamstart td{border-top:2px solid #000}
section.sheet tr.out td{opacity:1;color:#777}
section.sheet tr.out td.total{color:#777}
section.sheet .pill{border:0;color:#333;font-size:8pt;padding:0 0 0 4px}
section.sheet tbody tr{break-inside:avoid}
section.sheet thead{display:table-header-group}
.signs{display:flex;justify-content:space-around;gap:40px;margin-top:36px;break-inside:avoid}
.signs div{flex:1;text-align:center;font-size:10pt}
.signs span{display:block;border-bottom:1px solid #000;height:34px;margin-bottom:4px}
@page{size:A4 landscape;margin:10mm}
@media print{
  .noprint{display:none!important}
  body.print-page{padding:0}
  section.sheet.men-start{break-before:page}
}
/* QR block at the end of the printed sheet */
.qr-foot{display:flex;align-items:center;gap:14px;margin-top:18px;break-inside:avoid}
.qr-foot .qrimg{width:30mm;height:30mm;line-height:0;flex:none}
.qr-foot .qrimg svg{width:100%;height:100%;display:block}
.qr-foot .u{font-family:var(--mono);font-size:8.5pt;color:#333;overflow-wrap:anywhere}
/* QR poster page (qr.html) */
.poster{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px 0 30px}
.p-org{font-family:var(--display);font-weight:600;letter-spacing:.2em;font-size:14pt}
.p-title{font-family:var(--display);font-weight:700;font-size:clamp(2rem,6vw,3.4rem);margin:0;text-transform:none;line-height:1.1;color:#000}
.p-comp{font-size:1.4rem;font-weight:600;color:#c8102e;min-height:1.6em}
.p-qr{width:min(78vw,520px);line-height:0;border:3px solid #000;border-radius:10px;overflow:hidden;margin:6px 0}
.p-qr svg{width:100%;height:auto;display:block}
.p-sub{font-size:1.1rem;max-width:34em}
.p-url{font-family:var(--mono);font-size:.95rem;color:#333;overflow-wrap:anywhere;max-width:40em}
label.chk{display:inline-flex;gap:6px;align-items:center;font-size:.85rem;color:#fff}
@media print{
  body.poster-page .poster{padding-top:6mm}
  .p-qr{width:150mm}
  .p-title{font-size:34pt}
  .p-comp{font-size:20pt}
  .p-sub{font-size:14pt}
}
.p-title span{color:#000}
/* logo on the printed sheet and the poster */
.plogo{display:block;margin:0 auto 4px;width:18mm;height:18mm}
.plogo.big{width:34mm;height:34mm;margin-bottom:6px}
