/**
 * Live Sports — classic 1980s/90s newspaper box score page
 * Black ink on newsprint white. Dense columns, ruled tables, no dark panels.
 */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

body.live-sports-paper {
  --np-paper: #f7f5ee;
  --np-ink: #101827;
  --np-muted: #4a5568;
  --np-rule: #1a1a1a;
  --np-rule-light: #c4bfb4;
  --np-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --np-body: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --np-mono: "IBM Plex Mono", "Courier New", Courier, monospace;

  background: var(--np-paper) !important;
  color: var(--np-ink) !important;
  font-family: var(--np-body) !important;
}

body.live-sports-paper .live-paper-shell {
  width: min(1200px, calc(100% - 16px));
  margin: 0 auto;
  padding-bottom: 32px;
}

/* ── Header stays navy; content area is pure newsprint ── */
body.live-sports-paper .live-header,
body.live-sports-paper .live-nav {
  background: #07101c !important;
}

body.live-sports-paper .refresh-bar {
  background: #f0ede4 !important;
  color: var(--np-muted) !important;
  border-bottom: 1px solid var(--np-rule-light) !important;
  margin: 0 !important;
}

body.live-sports-paper .refresh-bar strong {
  color: var(--np-ink) !important;
}

body.live-sports-paper .refresh-btn {
  background: #fff !important;
  border: 1px solid var(--np-rule-light) !important;
  color: var(--np-ink) !important;
  border-radius: 0 !important;
}

body.live-sports-paper .section-switch {
  background: var(--np-paper) !important;
  border-bottom: 2px solid var(--np-rule) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 6px 0 !important;
}

body.live-sports-paper .section-switch a {
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--np-muted) !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

body.live-sports-paper .section-switch a.active {
  color: var(--np-ink) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--np-ink) !important;
}

/* ── Archive bar: light paper, dark text ── */
body.live-sports-paper .archive-date-bar {
  background: var(--np-paper) !important;
  color: var(--np-ink) !important;
  border-bottom: 1px solid var(--np-rule-light) !important;
}

body.live-sports-paper .archive-toolbar-main input[type="date"],
body.live-sports-paper .archive-nav-btn,
body.live-sports-paper .archive-pill,
body.live-sports-paper .archive-date-chip {
  background: #fff !important;
  color: var(--np-ink) !important;
  border: 1px solid var(--np-rule-light) !important;
  border-radius: 0 !important;
}

body.live-sports-paper .archive-toolbar-copy strong {
  color: var(--np-ink) !important;
  font-family: var(--np-head) !important;
  font-size: 0.875rem !important;
}

body.live-sports-paper .archive-toolbar-copy small,
body.live-sports-paper .archive-saved-dates {
  color: var(--np-muted) !important;
}

body.live-sports-paper .archive-date-chip.active {
  border-color: var(--np-ink) !important;
  font-weight: 700 !important;
}

/* ── Page masthead ── */
body.live-sports-paper .newspaper-masthead {
  display: block !important;
  padding: 12px 0 8px !important;
  border-bottom: 3px double var(--np-rule) !important;
  background: transparent !important;
}

body.live-sports-paper .newspaper-masthead h1 {
  margin: 0 !important;
  font-family: var(--np-head) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--np-ink) !important;
}

body.live-sports-paper .newspaper-masthead h1::before {
  display: none !important;
}

body.live-sports-paper .newspaper-masthead p {
  margin: 4px 0 0 !important;
  font-size: 0.6875rem !important;
  color: var(--np-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

body.live-sports-paper .warehouse-card {
  display: none !important;
}

/* ── Sport chips: newspaper agate strip ── */
body.live-sports-paper .live-toolbar {
  margin: 8px 0 !important;
  padding: 0 !important;
  border: none !important;
  border-top: 1px solid var(--np-rule-light) !important;
  border-bottom: 1px solid var(--np-rule-light) !important;
  background: transparent !important;
  border-radius: 0 !important;
  gap: 0 !important;
}

body.live-sports-paper .live-chip {
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--np-muted) !important;
  font-size: 0.625rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 6px 10px !important;
  border-right: 1px solid var(--np-rule-light) !important;
}

body.live-sports-paper .live-chip:last-child {
  border-right: none !important;
}

body.live-sports-paper .live-chip.active {
  background: var(--np-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.live-sports-paper .live-info-drawer {
  display: none !important;
}

body.live-sports-paper .la-p0-panel,
body.live-sports-paper .la-p0-shipped-badge,
body.live-sports-paper .feature-callout,
body.live-sports-paper [data-gtm-workbook-tabs] {
  display: none !important;
}

/* ── Standings row ── */
body.live-sports-paper .np-standings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--np-rule);
  margin-bottom: 10px;
  background: #fff;
}

body.live-sports-paper .np-league-block {
  padding: 6px 8px;
  border-right: 1px solid var(--np-rule);
}

body.live-sports-paper .np-league-block:last-child {
  border-right: none;
}

body.live-sports-paper .np-league-title {
  margin: 0 0 6px;
  font-family: var(--np-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid var(--np-rule);
  padding-bottom: 4px;
}

body.live-sports-paper .np-divisions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

body.live-sports-paper .np-division h4 {
  margin: 0 0 3px;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--np-ink);
}

body.live-sports-paper .np-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--np-mono);
  font-size: 0.5625rem;
  line-height: 1.3;
}

body.live-sports-paper .np-standings-table th,
body.live-sports-paper .np-standings-table td {
  padding: 1px 2px;
  text-align: right;
  color: var(--np-ink) !important;
  border: none !important;
}

body.live-sports-paper .np-standings-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.5rem;
  color: var(--np-muted) !important;
  border-bottom: 1px solid var(--np-rule-light) !important;
}

body.live-sports-paper .np-standings-table td:first-child,
body.live-sports-paper .np-standings-table th:first-child {
  text-align: left;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Score strip (matchup cards) ── */
body.live-sports-paper .np-score-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 0 4px;
  border: none;
  border-bottom: 2px solid var(--np-rule);
  background: transparent;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.35;
}

body.live-sports-paper .np-score-item {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
  gap: 6px;
  min-height: 60px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--np-rule);
  border-radius: 8px;
  color: var(--np-ink) !important;
}

body.live-sports-paper .np-score-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body.live-sports-paper .np-score-team:first-child {
  justify-content: flex-start;
}

body.live-sports-paper .np-score-team:last-child {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}

body.live-sports-paper .np-team-logo,
body.live-sports-paper .np-score-team .la-logo-fallback {
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: contain;
}

body.live-sports-paper .np-score-abbr {
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.live-sports-paper .np-score-runs {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.05em;
}

body.live-sports-paper .np-score-at {
  flex-shrink: 0;
  color: var(--np-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

body.live-sports-paper .np-score-team-winner .np-score-abbr,
body.live-sports-paper .np-score-team-winner .np-score-runs {
  color: #0d7a3e;
}

body.live-sports-paper .np-score-team-loser .np-score-abbr,
body.live-sports-paper .np-score-team-loser .np-score-runs {
  color: var(--np-muted);
  opacity: 0.85;
}

/* ── 3-column game grid ── */
body.live-sports-paper .sports-layout {
  display: block !important;
}

body.live-sports-paper .newspaper-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-left: 1px solid var(--np-rule);
  border-top: 1px solid var(--np-rule);
}

body.live-sports-paper .newspaper-grid[data-card-count="1"] {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.live-sports-paper .newspaper-grid[data-card-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* ── Game box: compact newspaper column ── */
body.live-sports-paper .box-score-card {
  border: none !important;
  border-right: 1px solid var(--np-rule) !important;
  border-bottom: 1px solid var(--np-rule) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 8px 7px !important;
  gap: 6px !important;
}

body.live-sports-paper .box-score-card .kicker,
body.live-sports-paper .box-score-card .meta-line,
body.live-sports-paper .box-score-card .mini-score,
body.live-sports-paper .box-score-card .data-confidence-note,
body.live-sports-paper .box-score-card .proof-receipt,
body.live-sports-paper .box-score-card .system-sheet-analysis,
body.live-sports-paper .box-score-card .box-actions,
body.live-sports-paper .box-score-card .box-table:not(.classic-stat-table):not(.line-score),
body.live-sports-paper .box-score-card .np-system-fold {
  display: none !important;
}

body.live-sports-paper .box-score-card h2 {
  display: none !important;
}

body.live-sports-paper .np-game-headline {
  margin: 0;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--np-rule);
  font-family: var(--np-head);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--np-ink) !important;
}

body.live-sports-paper .np-game-headline .np-winner {
  font-weight: 700;
}

/* ── Game context: agate lines, dark on white ── */
body.live-sports-paper .box-game-context {
  margin: 0 !important;
  padding: 4px 0 !important;
  border: none !important;
  background: transparent !important;
}

body.live-sports-paper .box-game-context-head {
  display: none !important;
}

body.live-sports-paper .box-game-context-grid {
  display: block !important;
  font-family: var(--np-mono);
  font-size: 0.5625rem;
  line-height: 1.45;
}

body.live-sports-paper .box-game-context-grid > div {
  display: inline;
}

body.live-sports-paper .box-game-context-grid dt {
  display: none !important;
}

body.live-sports-paper .box-game-context-grid dd {
  display: inline;
  margin: 0 !important;
  color: var(--np-ink) !important;
  font-size: 0.5625rem !important;
  font-weight: 400 !important;
}

body.live-sports-paper .box-game-context-grid > div:not(:last-child) dd::after {
  content: " · ";
  color: var(--np-muted);
}

/* ── Box score tables ── */
body.live-sports-paper .newspaper-box {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  gap: 4px !important;
  border-radius: 0 !important;
}

body.live-sports-paper .newspaper-box-head {
  border-bottom: 1px solid var(--np-rule-light) !important;
  padding-bottom: 2px !important;
}

body.live-sports-paper .newspaper-box-head span {
  font-family: var(--np-mono) !important;
  font-size: 0.5625rem !important;
  font-weight: 600 !important;
  color: var(--np-muted) !important;
  text-transform: uppercase !important;
}

body.live-sports-paper .newspaper-box-head b {
  font-size: 0.5625rem !important;
  color: var(--np-ink) !important;
  font-weight: 600 !important;
}

body.live-sports-paper .line-score,
body.live-sports-paper .classic-stat-table,
body.live-sports-paper .box-table {
  font-family: var(--np-mono) !important;
  font-size: 0.5625rem !important;
  color: var(--np-ink) !important;
  background: transparent !important;
}

body.live-sports-paper .line-score th,
body.live-sports-paper .line-score td,
body.live-sports-paper .classic-stat-table th,
body.live-sports-paper .classic-stat-table td,
body.live-sports-paper .box-table th,
body.live-sports-paper .box-table td {
  padding: 1px 3px !important;
  color: var(--np-ink) !important;
  border-bottom: 1px solid var(--np-rule-light) !important;
  background: transparent !important;
}

body.live-sports-paper .line-score th,
body.live-sports-paper .classic-stat-table th {
  font-size: 0.5rem !important;
  font-weight: 600 !important;
  color: var(--np-muted) !important;
  text-transform: uppercase !important;
}

body.live-sports-paper .line-score td.green {
  font-weight: 700 !important;
  color: var(--np-ink) !important;
}

body.live-sports-paper .box-score-legend,
body.live-sports-paper .boxside-tabs {
  display: none !important;
}

/* Show all stat sections — no tab filtering */
body.live-sports-paper .classic-stat-section[data-box-side] {
  display: block !important;
}

body.live-sports-paper .classic-boxscore {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  font-family: var(--np-mono) !important;
}

body.live-sports-paper .classic-stat-collapsible {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin-bottom: 4px !important;
}

body.live-sports-paper .classic-stat-summary {
  padding: 2px 0 !important;
  cursor: default !important;
  pointer-events: none;
}

body.live-sports-paper .classic-stat-summary::before {
  display: none !important;
}

body.live-sports-paper .classic-stat-summary-title {
  font-family: var(--np-mono) !important;
  font-size: 0.5625rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--np-ink) !important;
}

body.live-sports-paper .classic-stat-summary-preview {
  display: none !important;
}

body.live-sports-paper .classic-stat-collapsible-body {
  padding: 0 !important;
  border: none !important;
}

body.live-sports-paper .classic-stat-section h3 {
  font-size: 0.5625rem !important;
  border-bottom: 1px solid var(--np-rule-light) !important;
}

body.live-sports-paper .stat-kv-grid {
  display: none !important;
}

body.live-sports-paper .box-note {
  font-family: var(--np-mono) !important;
  font-size: 0.5625rem !important;
  color: var(--np-muted) !important;
  line-height: 1.4 !important;
}

body.live-sports-paper .box-note strong {
  color: var(--np-ink) !important;
}

body.live-sports-paper .np-agate-footer {
  margin: 4px 0 0;
  padding-top: 3px;
  border-top: 1px dotted var(--np-rule-light);
  font-family: var(--np-mono);
  font-size: 0.5rem;
  color: var(--np-muted) !important;
}

body.live-sports-paper .np-agate-footer a {
  color: var(--np-ink) !important;
  text-decoration: underline;
}

/* ── Leaders footer ── */
body.live-sports-paper .np-leaders-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--np-rule);
  margin-top: 10px;
  background: #fff;
}

body.live-sports-paper .np-leaders-block {
  padding: 6px 8px;
  border-right: 1px solid var(--np-rule);
}

body.live-sports-paper .np-leaders-block:last-child {
  border-right: none;
}

body.live-sports-paper .np-leaders-title {
  margin: 0 0 4px;
  font-family: var(--np-head);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  border-bottom: 1px solid var(--np-rule-light);
  padding-bottom: 3px;
}

body.live-sports-paper .np-leaders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.live-sports-paper .np-leader-cat h5 {
  margin: 0 0 2px;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--np-muted);
}

body.live-sports-paper .np-leader-line {
  font-family: var(--np-mono);
  font-size: 0.5625rem;
  line-height: 1.35;
  color: var(--np-ink) !important;
}

body.live-sports-paper .sport-filter-empty,
body.live-sports-paper .live-board-loading-head,
body.live-sports-paper .live-board-empty {
  border: 1px solid var(--np-rule-light) !important;
  background: #fff !important;
  color: var(--np-ink) !important;
  border-radius: 0 !important;
}

body.live-sports-paper .live-board-loading-card {
  background: #fff !important;
  border: 1px solid var(--np-rule-light) !important;
  border-radius: 0 !important;
}

@media (max-width: 960px) {
  body.live-sports-paper .newspaper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.live-sports-paper .np-divisions {
    grid-template-columns: 1fr;
  }

  body.live-sports-paper .np-standings-row,
  body.live-sports-paper .np-leaders-row {
    grid-template-columns: 1fr;
  }

  body.live-sports-paper .np-league-block,
  body.live-sports-paper .np-leaders-block {
    border-right: none;
    border-bottom: 1px solid var(--np-rule);
  }
}

@media (max-width: 640px) {
  body.live-sports-paper .newspaper-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.live-sports-paper .live-board-loading-card,
  body.live-sports-paper .live-board-loading-card * {
    animation: none !important;
  }
}