/*
  Box score share/export styles
  --------------------------------
  This file contains only the CSS needed for:
  - The "Create shareable box score" button
  - The desktop print modal
  - The paper-style box score artifact
  - The mobile centered share/save-image popup
  - The print stylesheet used by the desktop Print button

  It expects the HTML generated by box-score-share.js.
*/
.box-page-actions {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 14px;
}

.print-box-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--white);
  border-radius: 8px;
  padding: 9px 14px;
  background: var(--white);
  color: #080807;
  cursor: pointer;
  font-weight: 900;
}

.print-box-button:hover {
  border-color: var(--gold);
  background: var(--gold);
}

.print-box-score {
  display: none;
}

.print-preview-shell {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 18px;
  overflow: hidden;
  background: rgba(5, 6, 5, .96);
}

.print-preview-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.print-preview-note > div:first-child {
  display: grid;
  gap: 2px;
}

.print-preview-note strong {
  color: var(--gold);
}

.print-preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.print-preview-print,
.print-preview-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  background: #171916;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.print-preview-print {
  min-height: 34px;
  border-radius: 8px;
  padding: 8px 12px;
  color: #080807;
  background: var(--white);
}

.print-preview-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 17px;
}

.mobile-share-only {
  display: none;
}

.print-preview-print:hover,
.print-preview-close:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #080807;
}

.print-preview-stage {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
}

.print-preview-shell .print-box-score {
  display: block;
  width: 900px;
  min-width: 900px;
  max-height: calc(100vh - 86px);
  margin: 0 auto;
  overflow-y: auto;
  padding: 36px;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

.print-preview-shell .print-score-header {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: end;
  gap: 20px;
  border-bottom: 4px solid #111;
  padding-bottom: 12px;
}

.print-preview-shell .print-brand {
  display: grid;
  gap: 7px;
  align-items: start;
}

.print-preview-shell .print-brand img {
  width: 156px;
  max-width: 100%;
  height: auto;
  filter: none;
}

.print-preview-shell .print-brand span {
  color: #6f5b0f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.print-preview-shell .print-game-meta {
  display: grid;
  gap: 7px;
  justify-items: end;
  text-align: right;
}

.print-preview-shell .print-game-meta h1,
.print-preview-shell .print-game-meta p {
  margin: 0;
  color: #111;
}

.print-preview-shell .print-game-meta h1 {
  font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: .95;
}

.print-preview-shell .print-game-meta p {
  color: #4b4b4b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.print-preview-shell .print-scoreline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 20px;
}

.print-preview-shell .print-score-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #111;
  border-left: 8px solid #c5a21d;
  padding: 10px 12px;
}

.print-preview-shell .print-score-team span {
  overflow: hidden;
  color: #111;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-preview-shell .print-score-team strong {
  color: #111;
  font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  text-align: right;
}

.print-preview-shell .print-team-box {
  break-inside: avoid;
  margin-top: 16px;
}

.print-preview-shell .print-team-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: end;
  gap: 12px;
  border-bottom: 2px solid #c5a21d;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.print-preview-shell .print-team-title span {
  display: block;
  margin-bottom: 3px;
  color: #6f5b0f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.print-preview-shell .print-team-title h3 {
  margin: 0;
  color: #111 !important;
  font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  font-size: 21px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.print-preview-shell .print-team-title strong {
  color: #111;
  font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  text-align: right;
}

.print-preview-shell .print-box-table {
  width: 100%;
  border-collapse: collapse;
  color: #111;
  table-layout: fixed;
}

.print-preview-shell .print-box-table th,
.print-preview-shell .print-box-table td {
  border: 0;
  border-bottom: 1px solid #d7d3c5;
  padding: 4px 5px;
  color: #111;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
}

.print-preview-shell .print-box-table th {
  border-bottom: 1.75px solid #111;
  color: #6f5b0f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.print-preview-shell .print-box-table th:nth-child(1),
.print-preview-shell .print-box-table td:nth-child(1) {
  width: 28px;
}

.print-preview-shell .print-box-table th:nth-child(2),
.print-preview-shell .print-box-table td:nth-child(2) {
  width: 210px;
  text-align: left;
}

.print-preview-shell .print-box-table tbody tr:nth-child(even):not(.print-total-row):not(.print-pct-row) {
  background: #fbfaf5 !important;
}

.print-preview-shell .print-box-table td strong {
  color: #111;
  font-size: 13px;
}

.print-preview-shell .print-total-row td {
  border-top: 2px solid #111;
  border-bottom: 0;
  color: #111;
  font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.print-preview-shell .print-total-row td:first-child {
  text-align: left;
}

.print-preview-shell .print-pct-row td {
  border-bottom: 0;
  padding-top: 0;
  color: #6f5b0f;
  font-size: 12px;
  font-weight: 900;
}


@media print {
  @page {
    size: letter portrait;
    margin: .38in;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html,
  body {
    width: auto;
    min-width: 0;
    background: #fff !important;
    color: #111 !important;
  }

  .site-header,
  .event-bar,
  .back-link,
  .breadcrumbs,
  .detail-section > .section-header,
  .box-page-actions,
  .print-preview-note,
  .box-score-stack,
  .site-footer,
  .search-backdrop {
    display: none !important;
  }

  .app-shell,
  main,
  .route-region,
  .content-section.detail-section {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
  }

  .print-preview-shell {
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .print-box-score {
    display: block !important;
    width: 100%;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
  }

  .print-score-header {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: end;
    gap: 20px;
    border-bottom: 4px solid #111;
    padding-bottom: 12px;
  }

  .print-brand {
    display: grid;
    gap: 7px;
    align-items: start;
  }

  .print-brand img {
    width: 156px;
    max-width: 100%;
    height: auto;
    filter: none;
  }

  .print-brand span {
    color: #6f5b0f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .print-game-meta {
    display: grid;
    gap: 7px;
    justify-items: end;
    text-align: right;
  }

  .print-game-meta h1,
  .print-game-meta p {
    margin: 0;
    color: #111;
  }

  .print-game-meta h1 {
    font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    line-height: .95;
  }

  .print-game-meta p {
    color: #4b4b4b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .print-scoreline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0 20px;
  }

  .print-score-team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #111;
    border-left: 8px solid #c5a21d;
    padding: 10px 12px;
  }

  .print-score-team span {
    overflow: hidden;
    color: #111;
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .print-score-team strong {
    color: #111;
    font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
    text-align: right;
  }

  .print-team-box {
    break-inside: avoid;
    margin-top: 16px;
  }

  .print-team-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: end;
    gap: 12px;
    border-bottom: 2px solid #c5a21d;
    padding-bottom: 6px;
    margin-bottom: 6px;
  }

  .print-team-title span {
    display: block;
    margin-bottom: 3px;
    color: #6f5b0f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .print-team-title h3 {
    margin: 0;
    color: #111 !important;
    font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
    font-size: 21px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
  }

  .print-team-title strong {
    color: #111;
    font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
    font-size: 25px;
    line-height: 1;
    text-align: right;
  }

  .print-box-table {
    width: 100%;
    border-collapse: collapse;
    color: #111;
    table-layout: fixed;
  }

  .print-box-table th,
  .print-box-table td {
    border: 0;
    border-bottom: 1px solid #d7d3c5;
    padding: 4px 5px;
    color: #111;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
  }

  .print-box-table th {
    border-bottom: 1.75px solid #111;
    color: #6f5b0f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .print-box-table th:nth-child(1),
  .print-box-table td:nth-child(1) {
    width: 28px;
  }

  .print-box-table th:nth-child(2),
  .print-box-table td:nth-child(2) {
    width: 210px;
    text-align: left;
  }

  .print-box-table tbody tr:nth-child(even):not(.print-total-row):not(.print-pct-row) {
    background: #fbfaf5 !important;
  }

  .print-box-table td strong {
    color: #111;
    font-size: 13px;
  }

  .print-total-row td {
    border-top: 2px solid #111;
    border-bottom: 0;
    color: #111;
    font-family: "Futura Black", Futura, "Futura PT", "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
  }

  .print-total-row td:first-child {
    text-align: left;
  }

  .print-pct-row td {
    border-bottom: 0;
    padding-top: 0;
    color: #6f5b0f;
    font-size: 12px;
    font-weight: 900;
  }
}
@media (max-width: 980px) {
  .nba-leaderboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 720px) {
  .print-preview-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(0, 0, 0, .78);
  }

  .print-preview-note {
    width: min(100%, var(--print-preview-scaled-width, 348px));
    min-height: 42px;
    align-items: center;
    padding: 8px 0;
  }

  .print-preview-note span {
    font-size: 9px;
    line-height: 1.15;
  }

  .print-only {
    display: none;
  }

  .mobile-share-only {
    display: inline-grid;
  }

  .print-preview-print {
    min-height: 40px;
    padding: 8px 12px;
  }

  .print-preview-print:disabled {
    cursor: wait;
    opacity: .72;
  }

  .print-preview-close {
    width: 40px;
    height: 40px;
    border-color: #484b41;
    background: #11130f;
    color: var(--white);
    font-size: 18px;
  }

  .print-preview-stage {
    flex: 0 0 auto;
    width: var(--print-preview-scaled-width, 348px);
    height: var(--print-preview-scaled-height, 310px);
    min-height: 0;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
  }

  .print-preview-shell .print-box-score {
    width: 900px;
    min-width: 900px;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    overflow: visible;
    padding: 36px;
    transform: scale(var(--print-preview-scale, .38));
    transform-origin: top center;
    will-change: transform;
  }
}
