/* Report renderer (app/js/report.js): deliberately plain. Console tokens only;
   the real report design comes later. The print rules are the part that
   matters now: only a FROZEN report prints (it is mirrored into #print-root),
   on US Letter, without splitting a block across pages. */
.report { font-size: 15px; line-height: 1.45; }
.report .rcopy { display: inline-block; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.1em;
  color: var(--stop); border: 2px solid currentColor; border-radius: var(--r-sm); padding: 3px 10px; margin-bottom: 8px; }
.report .rcopy--top { font-size: 15px; }
.report .rstamp { font-size: 12.5px; color: var(--text-lo); margin-bottom: 6px; }
.report .rblock { padding: 14px 0; border-bottom: 1px solid var(--border); }
.report .rblock:last-child { border-bottom: none; }
.report .rblock__t { font-weight: 700; font-size: 16px; margin: 0 0 10px; }
.report h2.rblock__t { font-size: 20px; }
.report .kv { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--surface-3); }
.report .kv:last-child { border-bottom: none; }
.report .rtiles { display: flex; flex-wrap: wrap; gap: 10px; }
.report .rtile { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; min-width: 150px; flex: 1 1 150px; }
.report .rtile__l { font-size: 13px; color: var(--text-mid); }
.report .rtile__v { font-size: 20px; font-weight: 700; }
.report .rtile__c { font-size: 12.5px; color: var(--text-mid); }
.report .rtable { width: 100%; border-collapse: collapse; }
.report .rtable th, .report .rtable td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--surface-3); }
.report .rhidden { font-size: 12px; color: var(--text-lo); font-weight: 400; }
.report ul, .report ol { margin: 0; padding-left: 20px; }
.report p { margin: 0 0 8px; }

#print-root { display: none; }

@media print {
  @page { size: letter; margin: 0.6in; }
  body.has-print { background: #fff !important; }
  body.has-print #root { display: none !important; }
  body.has-print #print-root {
    display: block; color: #000; background: #fff;
    --text-mid: #333; --text-lo: #555; --border: #bbb; --surface-3: #ddd; --stop: #000;
  }
  #print-root .report .rblock { break-inside: avoid; page-break-inside: avoid; }
  #print-root .report .rtable tr { break-inside: avoid; }
}

/* Event results pages (app/js/results.js, migration 000112). Same console
   tokens. A wide athletes x measures grid scrolls sideways inside its card
   (the athlete column stays put), so a phone never scrolls the whole page;
   in print it lands on a landscape page with every column visible. */
.office .resout { overflow: hidden; }
.report .rscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.report .rgrid { font-size: 14px; }
.report .rgrid th, .report .rgrid td { white-space: nowrap; vertical-align: top; }
.report .rgrid tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 600; }
.report .rgrid thead th { font-weight: 600; font-size: 13px; color: var(--text-mid); }
.report .rsort { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.report .rsort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.report .runit, .report .rcell__s { font-size: 12px; font-weight: 400; color: var(--text-lo); }
.report .rrank { font-size: 12px; font-weight: 600; color: var(--text-mid); }
.report .rpb { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 0 3px; }
.report .rfoot { margin-top: 10px; font-size: 12.5px; color: var(--text-lo); }
.report .rdists { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 12px; }
.report .rdist { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; min-width: 0; }
.report .rstrip { position: relative; height: 18px; margin: 12px 8px 4px; border-bottom: 2px solid var(--border); }
.report .rdot { position: absolute; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text-lo); opacity: 0.75; }
.report .rdot--me { width: 14px; height: 14px; margin-left: -7px; bottom: -8px; z-index: 1; background: var(--accent); opacity: 1; }
.report .rstrip__med { position: absolute; bottom: -9px; height: 22px; border-left: 2px dashed var(--text-mid); }
.report .rdist__n { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 8px; font-size: 12.5px; color: var(--text-mid); }
.report .rdist__me { margin-top: 6px; font-size: 13px; }

@page results { size: letter landscape; margin: 0.4in; }
@media print {
  #print-root .rresults { page: results; font-size: 11px; }
  #print-root .rscroll { overflow: visible; }
  #print-root .rgrid { font-size: 9.5px; }
  #print-root .rgrid th, #print-root .rgrid td { padding: 3px 4px; white-space: normal; position: static; background: #fff; }
  #print-root .rsort { pointer-events: none; }
  #print-root .rdist { break-inside: avoid; page-break-inside: avoid; }
  #print-root .rdot { background: #777; }
  #print-root .rdot--me, #print-root .rpb { background: #000; color: #fff; }
}

/* Printed evaluation (eval.js evalPrintHTML, ASF-104 interim). The score bar is
   a filled span; print-color-adjust keeps the fill when the browser's
   "background graphics" option is off. */
.report .ebar { display: block; height: 10px; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.report .ebar__f { display: block; height: 100%; background: var(--accent); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print { #print-root .ebar__f { background: #333; } }
