/* ── Pool League Schedule — Print Stylesheet ── */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 11pt;
  color: #000;
  background: #fff;
  padding: 0.5in 0.75in;
}

/* ── Report header ── */
.print-header {
  text-align: center;
  border-bottom: 2px solid #000;
  padding-bottom: 0.4in;
  margin-bottom: 0.35in;
}

.print-header h1 {
  font-size: 22pt;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.print-header .subtitle {
  font-size: 12pt;
  color: #444;
  margin-top: 4pt;
}

/* ── Round blocks ── */
.round-block {
  margin-bottom: 0.25in;
  page-break-inside: avoid;
}

.round-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: #222;
  color: #fff;
  padding: 4pt 8pt;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 10pt;
}

.round-label {
  font-weight: bold;
  font-size: 11pt;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.round-date {
  font-size: 10pt;
}

/* ── Match table ── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table tr {
  border-bottom: 1px solid #ddd;
}

.schedule-table td {
  padding: 4pt 8pt;
  font-size: 10.5pt;
}

.schedule-table td.team.home {
  width: 30%;
  font-weight: bold;
}

.schedule-table td.vs {
  width: 6%;
  text-align: center;
  color: #555;
  font-style: italic;
}

.schedule-table td.team.away {
  width: 30%;
}

.schedule-table td.venue {
  width: 34%;
  text-align: right;
  color: #444;
  font-style: italic;
  font-size: 10pt;
}

.bye-row td {
  color: #666;
  font-style: italic;
  font-size: 10pt;
  padding: 3pt 8pt;
}

/* ── Footer ── */
.print-footer {
  margin-top: 0.4in;
  padding-top: 8pt;
  border-top: 1px solid #ccc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 9pt;
  color: #666;
  text-align: center;
}

/* ── Screen: minimal dark preview ── */
@media screen {
  body {
    background: #000;
    color: #dee2e6;
    color-scheme: dark;
    padding: 1.5rem;
  }
  .print-header {
    border-bottom-color: #495057;
  }
  .print-header .subtitle {
    color: #8d9299;
  }
  .round-header {
    background: #343a40;
    color: #f8f9fa;
  }
  .schedule-table tr {
    border-bottom-color: #373b3e;
  }
  .schedule-table td.vs,
  .schedule-table td.venue,
  .bye-row td,
  .print-footer {
    color: #8d9299;
  }
  .no-print button {
    background: #343a40;
    color: #dee2e6;
    border: 1px solid #495057;
    border-radius: 4px;
    cursor: pointer;
    padding: 4pt 14pt;
    font-size: 10pt;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin-right: 8pt;
  }
}

/* ── Print output: force white paper ── */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .round-block { page-break-inside: avoid; }
  .no-print { display: none !important; }

  @page {
    margin: 0.6in 0.75in;
    size: letter portrait;
  }
}
