/* TV Guide panels on Home and sport fronts. Every selector starts at a guide. */
#tsp-stories.v3-page :is(#home-tv-guide.v3-tv-guide-wall, #fbs-tv-guide, #ncaam-tv-guide, #ncaaw-tv-guide, #tennis-tv-guide, #boxing-tv-guide, #soccer-review-tv-guide, #wnba-tv-guide) {
  --tv-panel-ink: #14212c;
  --tv-panel-muted: #4b5965;
  --tv-panel-border: #dbe2e7;
  --tv-panel-paper: #fff;
  --tv-panel-row: #f4f6f8;
  --tv-panel-accent: #a5232d;
  --tv-panel-link: #205e86;
  --tv-panel-inset: 16px;
  --tv-panel-heading-size: 21px;
  --tv-panel-link-size: 15px;
  border: 1px solid var(--tv-panel-border);
  border-block-start: 4px solid var(--tv-panel-accent);
  border-radius: 8px;
  background: var(--tv-panel-paper);
  color: var(--tv-panel-ink);
}

#tsp-stories.v3-page :is(#fbs-tv-guide, #ncaam-tv-guide, #ncaaw-tv-guide, #tennis-tv-guide, #boxing-tv-guide, #soccer-review-tv-guide, #wnba-tv-guide) > :is(.special-front-header, .nfl-collection-head) {
  min-height: 44px;
  padding: 10px var(--tv-panel-inset);
  border-block-end: 1px solid var(--tv-panel-border);
  background: var(--tv-panel-paper);
}

/* Keep the guide measures in the existing layer that sets front typography. */
@layer tsp-preview-typography {
  #tsp-stories.v3-page :is(#home-tv-guide.v3-tv-guide-wall, #fbs-tv-guide, #ncaam-tv-guide, #ncaaw-tv-guide, #tennis-tv-guide, #boxing-tv-guide, #soccer-review-tv-guide, #wnba-tv-guide) :is(.preview-guide-head, .special-front-header, .nfl-collection-head) :is(h2, h2 > a) {
    font-size: var(--tv-panel-heading-size) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
  }

  #tsp-stories.v3-page :is(#fbs-tv-guide, #ncaam-tv-guide, #ncaaw-tv-guide, #tennis-tv-guide, #boxing-tv-guide) .special-front-list a,
  #tsp-stories.v3-page :is(#soccer-review-tv-guide, #wnba-tv-guide) > ul a {
    font-size: var(--tv-panel-link-size) !important;
    line-height: 1.35 !important;
    font-weight: 650 !important;
  }
}

#tsp-stories.v3-page :is(#home-tv-guide.v3-tv-guide-wall, #fbs-tv-guide, #ncaam-tv-guide, #ncaaw-tv-guide, #tennis-tv-guide, #boxing-tv-guide, #soccer-review-tv-guide, #wnba-tv-guide) :is(.preview-guide-head, .special-front-header, .nfl-collection-head) :is(h2, h2 > a) {
  margin: 0;
  color: var(--tv-panel-ink);
  letter-spacing: -.025em;
  text-transform: none;
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall .preview-guide-head h2 > a {
  color: inherit;
  text-decoration: none;
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall .preview-guide-head h2 > a:hover {
  text-decoration: underline;
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall[data-preview-guide-style="compact"] .preview-guide-banner {
  padding-inline: var(--tv-panel-inset);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall .preview-guide-head {
  padding-block-end: 8px;
  border-block-end: 1px solid var(--tv-panel-border);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall :is(.preview-guide-listing, .preview-guide-empty) {
  border: 1px solid var(--tv-panel-border);
  border-radius: 5px;
  background: var(--tv-panel-row);
}

#tsp-stories.v3-page #nhl-tv-guide #home-tv-guide.v3-tv-guide-wall .preview-guide-listing {
  background: var(--tv-panel-row);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall .preview-guide-outlets {
  border-color: var(--tv-panel-border);
  color: var(--tv-panel-ink);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall :is(.preview-guide-listing time, .preview-guide-time, .preview-guide-outlets dt, .preview-guide-at, .preview-guide-picker, .preview-guide-empty, .preview-guide-pending) {
  color: var(--tv-panel-muted);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall :is(.preview-guide-all, .preview-guide-picker select) {
  min-height: 44px;
  border: 1px solid var(--tv-panel-border);
  border-radius: 5px;
  background: var(--tv-panel-paper);
  color: var(--tv-panel-link);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall :is(.preview-guide-all, .preview-guide-picker select):hover {
  border-color: var(--tv-panel-link);
  background: var(--tv-panel-row);
  color: var(--tv-panel-link);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall :is(.preview-guide-directory, .preview-guide-more-games) > summary {
  min-height: 44px;
  color: var(--tv-panel-link);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall .preview-guide-directory > summary {
  margin-inline: var(--tv-panel-inset);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall .preview-guide-directory > .tvg-content {
  --tvg-muted: var(--tv-panel-muted);
  --tvg-rule: var(--tv-panel-border);
  --tvg-soft: var(--tv-panel-row);
  padding-inline: var(--tv-panel-inset);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall .preview-guide-directory :is(a.tvg-item, .tvg-browse-teams) {
  color: var(--tv-panel-link);
}

#tsp-stories.v3-page #home-tv-guide.v3-tv-guide-wall .preview-guide-directory :is(a.tvg-item, .tvg-browse-teams):hover {
  background: var(--tv-panel-row);
  text-decoration: underline;
}

#tsp-stories.v3-page :is(#fbs-tv-guide, #ncaam-tv-guide, #ncaaw-tv-guide, #tennis-tv-guide, #boxing-tv-guide) > .special-front-body,
#tsp-stories.v3-page :is(#soccer-review-tv-guide, #wnba-tv-guide) > ul {
  padding-inline: var(--tv-panel-inset);
}

#tsp-stories.v3-page :is(#fbs-tv-guide, #ncaam-tv-guide, #ncaaw-tv-guide, #tennis-tv-guide, #boxing-tv-guide) .special-front-list > li + li,
#tsp-stories.v3-page :is(#soccer-review-tv-guide, #wnba-tv-guide) > ul > li + li {
  border-block-start: 1px solid var(--tv-panel-border);
}

#tsp-stories.v3-page :is(#fbs-tv-guide, #ncaam-tv-guide, #ncaaw-tv-guide, #tennis-tv-guide, #boxing-tv-guide) .special-front-list a,
#tsp-stories.v3-page :is(#soccer-review-tv-guide, #wnba-tv-guide) > ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: var(--tv-panel-link);
  overflow-wrap: anywhere;
}

#tsp-stories.v3-page #soccer-review-tv-guide .soccer-review-department-link {
  margin-inline: var(--tv-panel-inset);
}

#tsp-stories.v3-page #soccer-review-tv-guide .soccer-review-department-link a {
  color: var(--tv-panel-link);
}

#tsp-stories.v3-page :is(#home-tv-guide.v3-tv-guide-wall, #fbs-tv-guide, #ncaam-tv-guide, #ncaaw-tv-guide, #tennis-tv-guide, #boxing-tv-guide, #soccer-review-tv-guide, #wnba-tv-guide) :is(a, select, summary):focus-visible {
  outline: 2px solid var(--tv-panel-link);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  #tsp-stories.v3-page :is(#home-tv-guide.v3-tv-guide-wall, #fbs-tv-guide, #ncaam-tv-guide, #ncaaw-tv-guide, #tennis-tv-guide, #boxing-tv-guide, #soccer-review-tv-guide, #wnba-tv-guide) {
    --tv-panel-inset: 12px;
    --tv-panel-heading-size: 18px;
    --tv-panel-link-size: 16px;
  }
}
/* The TV Guide palette on published viewing tables and interactive guide panels. */
body.tsp-tv-guide-article .reading-story-body {
  --guide-ink: #14212c;
  --guide-muted: #4b5965;
  --guide-border: #dbe2e7;
  --guide-paper: #fff;
  --guide-alt: #f4f6f8;
  --guide-red: #a5232d;
  --guide-link: #205e86;
  --guide-type: Inter, system-ui, sans-serif;
}

body.tsp-tv-guide-article .reading-story-body :is(
  .tsp-table-scroll, .tsp-article-table, .table-scroll, .table-wrap, .wp-block-table
) {
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-x: auto;
  border: 1px solid var(--guide-border);
  border-radius: 8px;
  background: var(--guide-paper);
}

body.tsp-tv-guide-article .reading-story-body :is(.wp-block-table, .table-wrap, .tsp-article-table) > .tsp-table-scroll {
  margin: 0;
  border: 0;
  border-radius: 0;
}

body.tsp-tv-guide-article .reading-story-body table {
  inline-size: 100%;
  margin-block: 0;
  color: var(--guide-ink);
  background: var(--guide-paper);
  font: 400 .875rem/1.45 var(--guide-type);
  font-variant-numeric: tabular-nums;
  border-collapse: collapse;
}

body.tsp-tv-guide-article .reading-story-body table > caption {
  padding: 10px 12px;
  color: var(--guide-muted);
  text-align: start;
  font: 650 .8125rem/1.4 var(--guide-type);
}

body.tsp-tv-guide-article .reading-story-body table :is(th, td) {
  padding: 10px 12px;
  border: 0;
  border-block-end: 1px solid var(--guide-border);
  text-align: start;
  vertical-align: middle;
  font: inherit;
  overflow-wrap: anywhere;
}

body.tsp-tv-guide-article .reading-story-body table thead th {
  color: var(--guide-ink);
  background: var(--guide-alt);
  font-weight: 730;
}

body.tsp-tv-guide-article .reading-story-body table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

body.tsp-tv-guide-article .reading-story-body table tbody th[scope="row"] {
  font-weight: 730;
}

body.tsp-tv-guide-article .reading-story-body table tbody tr:last-child > :is(th, td) {
  border-block-end: 0;
}

body.tsp-tv-guide-article .reading-story-body table a {
  color: var(--guide-link);
}

/* These controls and schedule sections sit inside the article's native reader. */
body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv, #tsp-boxing-schedule, #tsp-tv-guide) {
  min-inline-size: 0;
  max-inline-size: 100%;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) :is(
  .tv-controls, .tv-summary, .tv-highlights, .tv-month, .tv-secondary
),
body.tsp-tv-guide-article .reading-story-body #tsp-boxing-schedule :is(.controls, .fight-card) {
  box-sizing: border-box;
  min-inline-size: 0;
  margin-block: 16px;
  border: 1px solid var(--guide-border);
  border-radius: 8px;
  background: var(--guide-paper);
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) :is(.tv-controls, .tv-highlights, .tv-secondary) {
  padding: 14px;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) :is(
  .tv-kicker, .tv-note, .tv-results, .tv-stat > span, .tv-month-head > span
) {
  color: var(--guide-muted);
  font: 600 .8125rem/1.4 var(--guide-type);
  overflow-wrap: anywhere;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) :is(.tv-summary, .tv-highlight-grid, .tv-fields) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
  gap: 10px;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-summary {
  padding: 10px;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) :is(.tv-stat, .tv-highlight) {
  min-inline-size: 0;
  padding: 10px;
  background: var(--guide-alt);
  border-radius: 5px;
  overflow-wrap: anywhere;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) :is(.tv-stat > strong, .tv-highlight > strong) {
  display: block;
  color: var(--guide-ink);
  font: 800 1.125rem/1.25 var(--guide-type);
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-fields {
  align-items: end;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-fields label {
  min-inline-size: 0;
  color: var(--guide-muted);
  font: 650 .8125rem/1.4 var(--guide-type);
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-fields select {
  display: block;
  inline-size: 100%;
  margin-block-start: 4px;
}

body.tsp-tv-guide-article .reading-story-body :is(
  #tsp-nfl-tv, #tsp-nhl-tv, #tsp-boxing-schedule, #tsp-tv-guide
) :is(button, input, select) {
  box-sizing: border-box;
  max-inline-size: 100%;
  min-block-size: 44px;
  padding: 7px 10px;
  border: 1px solid var(--guide-border);
  border-radius: 5px;
  color: var(--guide-ink);
  background: var(--guide-paper);
  font: 650 .8125rem/1.4 var(--guide-type);
}

body.tsp-tv-guide-article .reading-story-body #tsp-boxing-schedule .filters button[aria-pressed="true"],
body.tsp-tv-guide-article .reading-story-body #tsp-tv-guide .filters .chip[aria-pressed="true"] {
  color: var(--guide-paper);
  background: var(--guide-ink);
  border-color: var(--guide-ink);
}

body.tsp-tv-guide-article .reading-story-body :is(
  #tsp-nfl-tv, #tsp-nhl-tv, #tsp-boxing-schedule, #tsp-tv-guide
) :is(button, input, select, summary, a):focus-visible {
  outline: 2px solid var(--guide-link);
  outline-offset: 2px;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-jump a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 4px;
  color: var(--guide-link);
  font: 700 .875rem/1.4 var(--guide-type);
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-month-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px;
  border-block-end: 1px solid var(--guide-border);
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-month-head > h2 {
  margin: 0;
  color: var(--guide-ink);
  font: 800 1.125rem/1.25 var(--guide-type);
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-month > table {
  table-layout: fixed;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-month > table th:nth-child(1) {
  inline-size: 18%;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-month > table th:nth-child(2) {
  inline-size: 16%;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-month > table th:nth-child(4) {
  inline-size: 25%;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-month [scope="col"] {
  white-space: normal;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-game :is(strong, a) {
  font-weight: 730;
}

body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-network {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid var(--guide-border);
  border-radius: 4px;
  background: var(--guide-alt);
  color: var(--guide-ink);
  font: 650 .75rem/1.35 var(--guide-type);
}

/* The two football archive widgets retain their own date and time-zone controls. */
body.tsp-tv-guide-article .reading-story-body #tsp-tv-guide[data-theme="light"] {
  --board: var(--guide-paper);
  --board-2: #f8f9fa;
  --rule: var(--guide-border);
  --text: var(--guide-ink);
  --dim: var(--guide-muted);
  --body: var(--guide-ink);
  --page: var(--guide-paper);
  --page-text: var(--guide-ink);
  --epl: var(--guide-link);
  --liga: var(--guide-red);
  --ucl: #365684;
  --score: #14663c;
  border: 1px solid var(--guide-border);
  border-radius: 8px;
  font: 400 .875rem/1.45 var(--guide-type);
}

body.tsp-tv-guide-article .reading-story-body #tsp-tv-guide[data-theme="light"] .wrap {
  padding: 14px;
}

body.tsp-tv-guide-article .reading-story-body #tsp-tv-guide[data-theme="light"] :is(.hero, .note, .board) {
  border-radius: 8px;
}

body.tsp-tv-guide-article .reading-story-body #tsp-tv-guide[data-theme="light"] .hero {
  border-block-start: 3px solid var(--guide-red);
}

body.tsp-tv-guide-article .reading-story-body #tsp-tv-guide[data-theme="light"] .hero::after {
  content: none;
}

body.tsp-tv-guide-article .reading-story-body #tsp-tv-guide[data-theme="light"] .hero h2 {
  color: var(--guide-ink);
  font: 800 clamp(1.2rem, 3vw, 1.5rem)/1.15 var(--guide-type);
}

body.tsp-tv-guide-article .reading-story-body #tsp-tv-guide[data-theme="light"] :is(.hero, .note, .board) a {
  color: var(--guide-link);
}

body.tsp-tv-guide-article .reading-story-body #tsp-tv-guide[data-theme="light"] .board thead th {
  color: var(--guide-ink);
  background: var(--guide-alt);
}

body.tsp-tv-guide-article .reading-story-body #tsp-tv-guide[data-theme="light"] .board thead small {
  color: var(--guide-muted);
}

body.tsp-tv-guide-article .reading-story-body #tsp-boxing-schedule .fight-card summary {
  padding-inline: 12px;
  font: 730 .9375rem/1.35 var(--guide-type);
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  body.tsp-tv-guide-article .reading-story-body table {
    font-size: .8125rem;
  }

  body.tsp-tv-guide-article .reading-story-body table :is(th, td) {
    padding: 8px 6px;
  }

  body.tsp-tv-guide-article .reading-story-body :is(#tsp-nfl-tv, #tsp-nhl-tv) .tv-month > table :is(th, td) {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.tsp-tv-guide-article .reading-story-body #tsp-boxing-schedule .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tsp-tv-guide-article .reading-story-body #tsp-boxing-schedule .fight-card summary {
    padding-inline-end: 24px;
  }
}

/* Keep deep-linked archive groups below the sticky site navigation. */
.guide-page .guide-library-group {
  scroll-margin-top: 72px;
}

/* The Boxing horizon sits inside the native reader’s 16px phone gutters. */
@media (max-width: 600px) {
  body.tsp-tv-guide-article .reading-story-body #tsp-boxing-schedule .horizon {
    margin-inline: 0;
  }
}
