/*
 * Print styles. Division and team schedules print as one plain table (the
 * Print frames in Figma): black text on white, status as plain text with no
 * colored badges, and none of the site chrome. The rules page gets a minimal
 * version of the same.
 */

@media print {
  :root {
    --surface-page: #fff;
    --surface-card: #fff;
    --surface-raised: #fff;
    --text-primary: #000;
    --text-muted: #000;
    --text-caption: #000;
    --border: #999;
    --border-strong: #000;
  }

  @page {
    margin: 0.5in;
  }

  /* Schedules are wide tables, so they print landscape. Browsers that ignore
     the size keep the portrait default; the rules page stays portrait. */
  @page schedule {
    size: landscape;
    margin: 0.5in;
  }

  .page--schedule {
    page: schedule;
  }

  body {
    min-height: 0;
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  /* Site chrome and interactive controls. */
  .skip-link,
  .site-header,
  .alert-banner,
  .drawer,
  .site-footer,
  .breadcrumb,
  .button,
  .button-row,
  .print-button,
  .filters,
  .print-hide,
  .rules__menu {
    display: none !important;
  }

  .page {
    padding: 0;
  }

  .container {
    max-width: none;
    padding-inline: 0;
  }

  h1 {
    font-size: 22pt;
    letter-spacing: -0.01em;
  }

  .page-head {
    display: block;
    margin-bottom: 12pt;
  }

  .eyebrow,
  .page-lead {
    color: #000;
    font-size: 10pt;
  }

  .section__title {
    margin-bottom: 8pt;
    font-size: 14pt;
  }

  /* The schedule table: same plain table whatever the screen width. */
  .games__table {
    display: table;
    width: 100%;
    background: none;
    border: 0;
    border-top: 1pt solid #000;
    font-size: 10pt;
  }

  .games__table thead {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    display: table-header-group;
  }

  .games__table tbody {
    display: table-row-group;
  }

  .games__table tr {
    display: table-row;
    break-inside: avoid;
  }

  .games__table th,
  .games__table td {
    display: table-cell;
    padding: 5pt 6pt;
    background: none;
    color: #000;
    border-bottom: 0.5pt solid #999;
    text-align: left;
  }

  .games__table thead th {
    background: none;
    color: #000;
    border-bottom: 1pt solid #000;
    font-weight: 700;
  }

  .games__table td::before,
  .game .game__id::before {
    content: none;
  }

  .game {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .game--canceled .game__time-value {
    color: #000;
  }

  /* Status prints as plain black text on white, never as a colored badge. */
  .badges {
    display: block;
    margin-top: 2pt;
  }

  .badge {
    display: block;
    padding: 0;
    background: none !important;
    color: #000 !important;
    border: 0;
    font-weight: 400;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .icon {
    display: none;
  }

  /* Rules: just the text. */
  .rules--menu {
    display: block;
  }

  .layout-row,
  .layout-col {
    display: block;
  }

  .layout-row h2,
  .layout-row h3 {
    break-after: avoid;
  }

  .callout {
    border: 1pt solid #000;
    background: none;
    color: #000;
  }
}
