/* NFL tool pages: Scores archive, Coverage Map, Standings */

/* ---------- Team logos ---------- */

.tp-logo {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
}
.tp-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tp-logo-abbr {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: #e9eef5;
  color: var(--navy);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .02em;
}
.tp-logo-fallback img {
  display: none !important;
}
.tp-logo-fallback .tp-logo-abbr {
  display: grid;
}
.tp-logo-compact {
  width: 24px;
  height: 24px;
}
.tp-logo-table {
  width: 30px;
  height: 30px;
}
.tp-logo-hero {
  width: 54px;
  height: 54px;
}
.tp-logo-lg {
  width: 64px;
  height: 64px;
}
.tp-logo-fallback.tp-logo-compact .tp-logo-abbr,
.tp-logo-fallback.tp-logo-table .tp-logo-abbr {
  border-radius: 6px;
  font-size: 8px;
}
.tp-logo-tinted::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 16px;
  height: 3px;
  margin-left: -8px;
  border-radius: 2px;
  background: var(--tp-team-color, transparent);
}

/* ---------- Shared tool controls ---------- */

/* Grid children must be allowed to shrink: a section holding a horizontally
   scrollable table would otherwise stretch the whole page on small screens. */
.tp-scores-content > *,
.tp-standings-content > *,
.tp-coverage-content > * {
  min-width: 0;
}

.tp-week-jump {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.tp-week-jump-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.tp-week-jump-head strong {
  font-size: 14px;
  letter-spacing: -.01em;
}
.tp-week-jump-head span {
  color: var(--muted);
  font-size: 12px;
}
.tp-week-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tp-week-jump a {
  min-width: 40px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
}
.tp-week-jump a:hover {
  border-color: var(--blue);
  background: #eef6fc;
}
.tp-week-jump a.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 14px rgba(13, 39, 69, .22);
}

.tp-stat-strip {
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  overflow: hidden;
}
.tp-stat-strip div {
  padding: 16px 20px;
}
.tp-stat-strip span {
  color: #7c8798;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tp-stat-strip strong {
  display: block;
  margin-top: 3px;
  font-size: 21px;
  letter-spacing: -.015em;
}
.tp-stat-strip .tp-updated {
  font-size: 15px;
  line-height: 1.3;
}

.tp-verification-note {
  margin: 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: #edf4f1;
  color: #48665a;
  text-align: center;
  font-size: 13px;
}

/* ---------- Scores ---------- */

.tp-score-days {
  display: grid;
  gap: 22px;
}

.tp-score-day {
  overflow: hidden;
}

.tp-score-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
}
.tp-score-day-head h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.01em;
}
.tp-score-day-head span {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8eef5;
  color: #4d5b6b;
  font-size: 11px;
  font-weight: 800;
}

.tp-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border-top: 1px solid var(--line);
}

.tp-score-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transition: background .15s ease;
}
.tp-score-card:nth-child(3n+1) {
  border-left: 0;
}
.tp-score-card:hover {
  background: #fbfdff;
}
.tp-score-card .matchup-team-row {
  min-height: 40px;
  gap: 12px;
}
.tp-score-card .team-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.tp-score-card .team-link:hover {
  color: var(--blue);
}
.tp-score-card .tp-team-name {
  font-size: 15px;
  font-weight: 700;
}
.tp-score-card .team-row-score {
  font-size: 19px;
  font-weight: 650;
  color: #97a2b1;
}
.tp-score-card .matchup-team-row.tp-defeated .team-link {
  opacity: .6;
}
.tp-score-card .matchup-team-row.tp-winner .tp-team-name,
.tp-score-card .matchup-team-row.tp-winner .team-row-score {
  color: var(--navy);
  font-weight: 850;
}
.tp-score-records {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.tp-score-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  font-size: 12px;
  color: var(--muted);
}
.tp-score-card-foot a {
  margin-left: auto;
  font-weight: 750;
  white-space: nowrap;
}

.tp-no-scores {
  padding: 30px;
  text-align: center;
}
.tp-no-scores h2 {
  margin: 0 0 8px;
}
.tp-no-scores p {
  margin: 0;
  color: var(--muted);
}

.tp-upcoming-list {
  overflow: hidden;
}
.tp-upcoming-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-top: 1px solid #eef2f7;
}
.tp-upcoming-row:first-child {
  border-top: 0;
}
.tp-upcoming-row:hover {
  background: #fbfdff;
}
.tp-upcoming-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.tp-upcoming-matchup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-upcoming-matchup .team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}
.tp-upcoming-matchup .team-link:hover {
  color: var(--blue);
}
.tp-upcoming-matchup .at {
  margin: 0;
}
.tp-upcoming-meta {
  color: var(--muted);
  font-size: 12px;
}
.tp-upcoming-row > a {
  flex: 0 0 auto;
  font-weight: 750;
  font-size: 13px;
}

/* ---------- Coverage map ---------- */

.tp-caveat {
  padding: 14px 18px;
  border: 1px solid #f1d47c;
  border-radius: 12px;
  background: #fff4d5;
  color: #694b00;
  font-size: 13px;
}
.tp-caveat strong::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: #f0c14b;
  color: #4a3400;
  font-size: 12px;
  font-weight: 900;
  vertical-align: -3px;
}

.tp-window-list {
  display: grid;
  gap: 22px;
}

.tp-window {
  overflow: hidden;
  border-top: 4px solid var(--blue);
}
.tp-window.cm-fox {
  border-top-color: #a32020;
}
.tp-window.cm-cbs {
  border-top-color: var(--blue);
}

.tp-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
}
.tp-window-head h3 {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 20px;
  letter-spacing: -.01em;
}
.tp-window-head h3::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 9px;
  height: 24px;
  margin-right: 11px;
  border-radius: 3px;
  background: var(--blue);
}
.cm-fox .tp-window-head h3::before {
  background: #a32020;
}
.tp-window-head span {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8eef5;
  color: #4d5b6b;
  font-size: 11px;
  font-weight: 800;
}

.tp-window-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
}

.tp-cm-game {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tp-cm-game:nth-child(2n+1) {
  border-left: 0;
}
.tp-cm-lead {
  background: #f6faff;
}
.tp-cm-matchup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-cm-team {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.tp-cm-game-main h4 {
  margin: 0 0 10px;
  font-size: 17px;
}
.tp-cm-game-main h4 .tp-cm-team {
  font-size: 17px;
}
.tp-cm-announcers {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.tp-cm-note {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 750;
  color: var(--navy);
}
.tp-cm-markets {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.tp-cm-markets span {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 10px;
}
.tp-cm-game-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tp-cm-game-side a {
  font-weight: 750;
  font-size: 13px;
}
.tp-badge-lead {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.cm-fox .tp-badge-lead {
  background: #a32020;
}
.tp-cm-tbd {
  color: #9a6400;
  font-size: 12px;
  font-weight: 800;
}

/* ---------- Coverage map: network summary ---------- */

.tp-network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tp-network-card {
  overflow: hidden;
}

.tp-network-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
}
.tp-network-head h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.02em;
}
.tp-network-single {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef1f5;
  color: #55606e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tp-network-count {
  margin: 0;
  padding: 0 20px 14px;
  color: var(--muted);
  font-size: 13px;
}

.tp-network-windows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.tp-network-windows li {
  display: grid;
  gap: 3px;
  padding: 13px 20px;
  border-top: 1px solid #eef2f7;
}
.tp-network-windows li:first-child {
  border-top: 0;
}
.tp-network-slot {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tp-network-windows strong {
  font-size: 15px;
}
.tp-network-games,
.tp-network-lead {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Coverage map: market list ---------- */

.tp-market-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.tp-market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tp-market-table th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  color: #536071;
  font-size: 10px;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.tp-market-table td {
  padding: 11px 16px;
  border-top: 1px solid #eef2f7;
  vertical-align: middle;
}
.tp-market-table tbody tr:hover {
  background: #fbfdff;
}
.tp-market-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}
.tp-market-network {
  color: var(--navy);
  font-weight: 800;
}
.tp-market-window {
  color: var(--muted);
  font-size: 12px;
}
.tp-market-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.tp-market-game {
  white-space: nowrap;
}
.tp-market-logos {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 9px;
  vertical-align: middle;
}
.tp-market-logos .tp-logo {
  width: 20px;
  height: 20px;
}
.tp-market-logos .tp-logo-abbr {
  border-radius: 5px;
  font-size: 7px;
}

.tp-primetime-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tp-primetime-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-top: 4px solid var(--navy);
}
.tp-primetime-slot {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tp-primetime-card h3 {
  margin: 0;
  font-size: 17px;
}
/* These cards sit three to a row, so the matchup stacks (away / at / home) instead of
   letting the "at" dangle at the end of the first wrapped line. */
.tp-primetime-card .tp-cm-matchup {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.tp-primetime-card .tp-cm-matchup .at {
  margin-left: 33px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.tp-primetime-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Standings ---------- */

.tp-conference-list {
  display: grid;
  gap: 30px;
}

.tp-conference-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -.02em;
}
.tp-conference-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.tp-follow-up {
  margin-top: 16px;
}

.tp-division-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tp-division {
  overflow: hidden;
}
.tp-division-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
}
.tp-division-head h3,
.tp-division-head h4 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.01em;
}
.tp-div-leader-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  padding: 3px 10px 3px 5px;
  border-radius: 999px;
  background: #e8f1f9;
  color: var(--navy);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.tp-div-leader-badge .tp-logo {
  width: 18px;
  height: 18px;
}
.tp-div-leader-badge .tp-logo-abbr {
  border-radius: 5px;
  font-size: 7px;
}

.tp-standings-wrap {
  overflow-x: auto;
}
.tp-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.tp-standings-table th {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  color: #536071;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-align: center;
}
.tp-standings-table th:first-child {
  text-align: left;
  padding-left: 14px;
}
.tp-standings-table td {
  padding: 9px;
  border-top: 1px solid #eef2f7;
  text-align: center;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.tp-standings-table td:first-child {
  text-align: left;
  padding-left: 14px;
}
.tp-team-cell {
  white-space: nowrap;
}
.tp-team-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 650;
}
.tp-team-link:hover {
  color: var(--blue);
}
.tp-team-name {
  font-weight: 700;
}
.tp-standings-table tbody tr:hover {
  background: #fbfdff;
}
.tp-standings-table tbody tr.tp-playoff td:first-child {
  border-left: 3px solid var(--blue);
}
.tp-standings-table tbody tr.tp-leader td {
  background: #f2f8fd;
}
.tp-standings-table a {
  color: var(--ink);
  font-weight: 650;
}
.tp-standings-table a:hover {
  color: var(--blue);
}
.tp-seed {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 5px;
  background: #e3eaf2;
  color: var(--navy);
  font-size: 10px;
  font-weight: 850;
}
.tp-playoff .tp-seed {
  background: var(--blue);
  color: #fff;
}
.tp-star {
  margin-right: 5px;
  color: #b8860b;
  font-size: 11px;
}
.tp-pct {
  font-weight: 750;
}

@media (max-width: 960px) {
  .tp-score-grid,
  .tp-primetime-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tp-window-games {
    grid-template-columns: 1fr;
  }
  .tp-cm-game:nth-child(n) {
    border-left: 0;
  }
  .tp-score-card:nth-child(3n+1) {
    border-left: 1px solid var(--line);
  }
  .tp-score-card:nth-child(2n+1) {
    border-left: 0;
  }
  .tp-division-grid {
    grid-template-columns: 1fr;
  }
  .tp-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tp-score-grid,
  .tp-primetime-list,
  .tp-network-grid {
    grid-template-columns: 1fr;
  }
  .tp-stat-strip {
    grid-template-columns: 1fr;
  }
  .tp-division-grid {
    grid-template-columns: 1fr;
  }
  .tp-score-day-head,
  .tp-window-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .tp-upcoming-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .tp-week-jump {
    padding: 14px;
  }
  .tp-week-jump a {
    min-width: 36px;
    padding: 6px 8px;
  }
  .tp-score-card .tp-team-name {
    font-size: 14px;
  }
  .tp-score-card:nth-child(n) {
    border-left: 0;
  }
}

@media print {
  .tp-caveat,
  .tp-verification-note {
    border-color: #aaa;
    background: #fff;
    color: #333;
  }
  .tp-logo {
    box-shadow: none;
  }
}
