/* Public edition-based race reports. Scoped to one shortcode, no theme/menu overrides. */
.tbcr-public-results,.tbcr-public-results *{box-sizing:border-box}
.tbcr-public-results{width:min(94vw,1500px)!important;max-width:none!important;position:relative!important;margin:28px 0 65px!important;color:#f3f6fd;font-family:inherit;text-align:center}
.wp-block-shortcode:has(.tbcr-public-results){overflow:visible!important}
.wp-block-cover:has(.tbcr-public-results){overflow-x:clip!important;overflow-y:visible!important}
.tbcr-public-results h2{color:#f5c542!important;font-size:clamp(22px,2.5vw,32px)!important;line-height:1.25!important;font-weight:900!important;margin:6px 0 8px!important;text-transform:uppercase}
.tbcr-public-results .tbcr-public-report-note{color:#eef2f9!important;font-size:14px!important;margin:4px auto 18px!important;max-width:1000px}
.tbcr-public-report-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:20px;margin:0 auto 22px;background:rgba(5,20,40,.92);border:1px solid rgba(245,197,66,.43);border-radius:11px;text-align:left}
.tbcr-public-report-picker label{display:flex;flex-direction:column;gap:8px;color:#f5c542;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;min-width:0}
.tbcr-public-report-picker select{width:100%!important;min-width:0!important;height:48px!important;max-width:100%!important;padding:8px 12px!important;background:#f9fbff!important;color:#15243a!important;border:1px solid #bac9dc!important;border-radius:7px!important;font-size:14px!important;font-weight:600!important;letter-spacing:normal!important;text-transform:none!important;box-shadow:none!important;cursor:pointer}
.tbcr-public-report-picker select:focus-visible{outline:2px solid #f5c542;outline-offset:2px}
.tbcr-public-results .tbcr-report-section{margin:0 0 23px;padding:22px 16px;background:rgba(2,17,35,.88);border:1px solid rgba(245,197,66,.43);border-radius:10px;min-width:0}
.tbcr-public-results .tbcr-report-section>h3{font-size:clamp(18px,2vw,23px)!important;color:#f5c542!important;margin:0 0 16px!important;font-weight:800!important;text-transform:uppercase}
.tbcr-public-report-scroller{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tbcr-public-results table{width:100%!important;min-width:950px!important;border-collapse:collapse!important;text-align:left!important;color:#fff!important;margin:0!important}
.tbcr-public-results th{background:#303736!important;color:#f5c542!important;border-bottom:1px solid rgba(245,197,66,.58)!important;padding:14px 12px!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase!important;white-space:nowrap}
.tbcr-public-results td{padding:14px 12px!important;border-bottom:1px solid rgba(255,255,255,.14)!important;font-size:13px!important;color:#fff!important;vertical-align:middle}
.tbcr-public-results tbody tr:nth-child(even){background:rgba(255,255,255,.06)!important}
.tbcr-public-results td:first-child{color:#f5c542!important;font-weight:800!important}
.tbcr-report-empty{padding:24px!important;color:#fff;text-align:center}
.tbcr-report-info{font-size:13px!important;color:#e5ebf4!important;margin:0 0 15px!important;text-align:center}
.tbcr-public-results .tbcr-report-alert{padding:18px 20px;background:rgba(7,23,45,.91);color:#fff!important;border:1px solid rgba(245,197,66,.5);border-radius:8px;font-size:14px!important;margin:10px 0 22px!important}
.tbcr-public-results .tbcr-champion-details{display:block;max-width:300px;white-space:normal;line-height:1.65}
@media(max-width:1050px){.tbcr-public-report-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tbcr-public-results{width:96vw!important}.tbcr-public-report-picker{grid-template-columns:1fr;padding:15px;gap:10px}.tbcr-public-results .tbcr-report-section{padding:16px 9px}.tbcr-public-results td,.tbcr-public-results th{padding:11px 9px!important}}

/* v0.5.8.48: eight Race Report columns; six Champion Bird columns. */
.tbcr-public-results .tbcr-report-section--race table{min-width:1100px!important}
.tbcr-public-results .tbcr-report-section--champion table{min-width:880px!important}
.tbcr-public-results .tbcr-report-section--race th:nth-child(5),
.tbcr-public-results .tbcr-report-section--race td:nth-child(5){white-space:nowrap!important;font-variant-numeric:tabular-nums}
.tbcr-public-results .tbcr-report-section--race th:last-child,
.tbcr-public-results .tbcr-report-section--race td:last-child{white-space:nowrap!important;font-variant-numeric:tabular-nums}

/* v0.5.8.45: Three columns for Race Report-only editions. */
.tbcr-public-report-picker--race-only{grid-template-columns:repeat(3,minmax(0,1fr))}
.tbcr-public-report-picker select:disabled{opacity:.55!important;cursor:not-allowed!important;background:#e1e5ed!important}
@media(max-width:1050px){.tbcr-public-report-picker--race-only{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tbcr-public-report-picker--race-only{grid-template-columns:1fr}}

/* v0.5.8.66: browser-native printing and Save as PDF; no extra server library. */
.tbcr-report-print-toolbar{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin:0 auto 18px;color:#f3f6fd;font-size:13px}
.tbcr-report-print-toolbar button{padding:11px 24px;background:#f5c542;color:#091c34;border:0;border-radius:6px;font-size:14px;font-weight:800;cursor:pointer}
.tbcr-report-print-toolbar button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.tbcr-print-document-heading{display:none}
@page{size:portrait;margin:9mm}
@media print {
  html,body{background:white!important;background-image:none!important}
  body *{visibility:hidden!important}
  .tbcr-public-results,.tbcr-public-results *{visibility:visible!important}
  .tbcr-public-results{position:absolute!important;top:0!important;left:0!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:white!important;color:black!important;text-align:left!important}
  .tbcr-public-report-picker,.tbcr-report-print-toolbar{display:none!important}
  .tbcr-print-document-heading{display:block!important;margin:0 0 12px!important;border-bottom:2px solid #222;padding-bottom:8px}
  .tbcr-print-document-heading h1{color:#111!important;font-size:19pt!important;margin:0 0 5px!important}
  .tbcr-print-document-heading p{color:#333!important;font-size:10pt!important;margin:0!important}
  .tbcr-public-results h2{font-size:14pt!important;color:#111!important;text-align:left!important}
  .tbcr-public-results .tbcr-public-report-note,.tbcr-public-results .tbcr-report-info{color:#333!important;font-size:8pt!important;text-align:left!important;margin:5px 0!important}
  .tbcr-public-results .tbcr-report-section{border:0!important;border-radius:0!important;padding:0!important;margin:9px 0!important;background:white!important;break-inside:auto}
  .tbcr-public-results .tbcr-report-section>h3{color:#111!important;font-size:11pt!important;text-align:left!important;margin:0 0 6px!important}
  .tbcr-public-report-scroller{overflow:visible!important;width:100%!important}
  .tbcr-public-results table,.tbcr-public-results .tbcr-report-section--race table,.tbcr-public-results .tbcr-report-section--champion table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important;border-collapse:collapse!important;color:#000!important}
  .tbcr-public-results th{font-size:7pt!important;padding:5px 4px!important;background:#ececec!important;color:#111!important;border:1px solid #999!important;white-space:normal!important}
  .tbcr-public-results td,.tbcr-public-results td:first-child{font-size:7pt!important;padding:5px 4px!important;color:#111!important;border:1px solid #aaa!important;overflow-wrap:anywhere}
  .tbcr-public-results tbody tr:nth-child(even){background:white!important}
  .tbcr-public-results thead{display:table-header-group!important}
  .tbcr-public-results tr{break-inside:avoid;page-break-inside:avoid}
  .tbcr-public-results .tbcr-report-alert{color:#111!important;background:white!important}
}

/* v0.5.8.67: compact A4/Letter portrait results; print only. */
@media print {
  .tbcr-public-results{font-family:Arial,Helvetica,sans-serif!important}
  .tbcr-public-results .tbcr-report-section{width:100%!important}
  .tbcr-public-results .tbcr-public-report-note,
  .tbcr-public-results .tbcr-report-info{font-size:7pt!important;line-height:1.25!important}
  .tbcr-public-results table,
  .tbcr-public-results .tbcr-report-section--race table,
  .tbcr-public-results .tbcr-report-section--champion table{
    table-layout:fixed!important;width:100%!important;min-width:0!important;
  }
  .tbcr-public-results th{font-size:6pt!important;line-height:1.15!important;padding:4px 2px!important;overflow-wrap:normal!important}
  .tbcr-public-results td,.tbcr-public-results td:first-child{font-size:6.5pt!important;line-height:1.2!important;padding:4px 2px!important;overflow-wrap:anywhere!important}
  .tbcr-report-section--race th:nth-child(1),.tbcr-report-section--race td:nth-child(1){width:6%!important}
  .tbcr-report-section--race th:nth-child(2),.tbcr-report-section--race td:nth-child(2){width:13%!important}
  .tbcr-report-section--race th:nth-child(3),.tbcr-report-section--race td:nth-child(3){width:15%!important}
  .tbcr-report-section--race th:nth-child(4),.tbcr-report-section--race td:nth-child(4){width:6%!important}
  .tbcr-report-section--race th:nth-child(5),.tbcr-report-section--race td:nth-child(5){width:24%!important;white-space:nowrap!important;font-size:6.1pt!important}
  .tbcr-report-section--race th:nth-child(6),.tbcr-report-section--race td:nth-child(6){width:10%!important}
  .tbcr-report-section--race th:nth-child(7),.tbcr-report-section--race td:nth-child(7){width:13%!important}
  .tbcr-report-section--race th:nth-child(8),.tbcr-report-section--race td:nth-child(8){width:13%!important;white-space:nowrap!important}
}

/* v0.5.8.68: compact the PUBLIC Race Report on phones only.
   Keep horizontal scrolling for the full eight fields instead of deleting data. */
@media screen and (max-width: 600px) {
  .tbcr-public-results .tbcr-report-section--race {padding:14px 6px!important;}
  .tbcr-public-results .tbcr-report-section--race table {
    width:760px!important; min-width:760px!important; table-layout:fixed!important;
  }
  .tbcr-public-results .tbcr-report-section--race th,
  .tbcr-public-results .tbcr-report-section--race td {
    padding:9px 4px!important; font-size:11px!important; line-height:1.3!important;
    white-space:nowrap!important; overflow:hidden!important; text-overflow:clip!important;
  }
  .tbcr-public-results .tbcr-report-section--race th {font-size:10px!important;letter-spacing:0!important;}
  .tbcr-public-results .tbcr-report-section--race th:nth-child(1),
  .tbcr-public-results .tbcr-report-section--race td:nth-child(1){width:6%!important;}
  .tbcr-public-results .tbcr-report-section--race th:nth-child(2),
  .tbcr-public-results .tbcr-report-section--race td:nth-child(2){width:15%!important;}
  .tbcr-public-results .tbcr-report-section--race th:nth-child(3),
  .tbcr-public-results .tbcr-report-section--race td:nth-child(3){width:19%!important;}
  .tbcr-public-results .tbcr-report-section--race th:nth-child(4),
  .tbcr-public-results .tbcr-report-section--race td:nth-child(4){width:7%!important;}
  .tbcr-public-results .tbcr-report-section--race th:nth-child(5),
  .tbcr-public-results .tbcr-report-section--race td:nth-child(5){width:23%!important;}
  .tbcr-public-results .tbcr-report-section--race th:nth-child(6),
  .tbcr-public-results .tbcr-report-section--race td:nth-child(6){width:9%!important;}
  .tbcr-public-results .tbcr-report-section--race th:nth-child(7),
  .tbcr-public-results .tbcr-report-section--race td:nth-child(7){width:11%!important;}
  .tbcr-public-results .tbcr-report-section--race th:nth-child(8),
  .tbcr-public-results .tbcr-report-section--race td:nth-child(8){width:10%!important;}
  /* Mobile-only abbreviated label; original heading remains in desktop and print. */
  .tbcr-public-results .tbcr-report-section--race th:first-child{font-size:0!important;}
  .tbcr-public-results .tbcr-report-section--race th:first-child::after{content:"POS";font-size:10px!important;}
}

/* v0.5.8.69: abbreviate only Race Report's first column in print/PDF. */
@media print {
  .tbcr-public-results .tbcr-report-section--race th:first-child{font-size:0!important;}
  .tbcr-public-results .tbcr-report-section--race th:first-child::after{content:"POS"!important;font-size:6pt!important;line-height:1.15!important;}
}
