/* Approved Code 1 basketball Gamecast body, scoped to its native route. */
#tsp-stories.code1-nba-game { color-scheme: light;
      font: 15px/1.4 "TSP Inter", Inter, system-ui, sans-serif;
      color: #17202a;
      
      --line: #dfe3e7;
      --muted: #4b5968; }
#tsp-stories.code1-nba-game * { box-sizing: border-box; }
#tsp-stories.code1-nba-game a { color: inherit; text-decoration: none; }
#tsp-stories.code1-nba-game a:hover { color: #124375; }
#tsp-stories.code1-nba-game :focus-visible { outline: 2px solid #145484; outline-offset: 3px; }
#tsp-stories.code1-nba-game h1, #tsp-stories.code1-nba-game h2, #tsp-stories.code1-nba-game h3, #tsp-stories.code1-nba-game p { margin: 0; }
#tsp-stories.code1-nba-game h2 { font-size: 17px; line-height: 1.25; }
#tsp-stories.code1-nba-game h3 { font-size: 14px; }
#tsp-stories.code1-nba-game { max-width: 1154px; margin: auto; padding: 12px; }
#tsp-stories.code1-nba-game .card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
#tsp-stories.code1-nba-game .scoreboard { position: sticky; top: 0; z-index: 3; overflow: hidden; box-shadow: 0 2px 5px #1420330c; }
#tsp-stories.code1-nba-game .score-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 15px; border-bottom: 1px solid var(--line); }
#tsp-stories.code1-nba-game .score-head h1 { font-size: 14px; }
#tsp-stories.code1-nba-game .snapshot { color: var(--muted); font-size: 11px; font-weight: 600; text-align: end; }
#tsp-stories.code1-nba-game .venue { margin: 1px 12px 9px; color: var(--muted); font-size: 11px; text-align: center; }
#tsp-stories.code1-nba-game .matchup { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: clamp(7px, 2vw, 24px); align-items: center; padding: 13px 16px 10px; }
#tsp-stories.code1-nba-game .side { display: flex; align-items: center; gap: 8px; min-width: 0; }
#tsp-stories.code1-nba-game .side.away { justify-content: flex-end; }
#tsp-stories.code1-nba-game .side.home { flex-direction: row-reverse; justify-content: flex-end; }
#tsp-stories.code1-nba-game .side img { width: clamp(31px, 5.6vw, 55px); height: auto; }
#tsp-stories.code1-nba-game .side span { font-weight: 800; line-height: 1.15; }
#tsp-stories.code1-nba-game .side small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
#tsp-stories.code1-nba-game .side.home > span { text-align: end; }
#tsp-stories.code1-nba-game .center { text-align: center; }
#tsp-stories.code1-nba-game .totals { display: grid; grid-template-columns: 2.2ch .5ch 2.2ch; gap: 6px; align-items: center; color: #111921; font-size: clamp(28px, 5vw, 44px); font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; }
#tsp-stories.code1-nba-game .totals b { font-weight: inherit; }
#tsp-stories.code1-nba-game .totals span { color: #617080; font-size: .5em; }
#tsp-stories.code1-nba-game .clock { margin-top: 6px; color: #8a2528; font-size: 11px; font-weight: 800; white-space: nowrap; }
#tsp-stories.code1-nba-game .linescore { width: min(100% - 28px, 430px); margin: 1px auto 9px; border-collapse: collapse; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
#tsp-stories.code1-nba-game .linescore :is(th, td) { padding: 2px 5px; }
#tsp-stories.code1-nba-game .linescore thead, #tsp-stories.code1-nba-game .pending { color: var(--muted); }
#tsp-stories.code1-nba-game .linescore tr > :first-child { text-align: start; }
#tsp-stories.code1-nba-game .linescore tr > :last-child { font-weight: 850; }
#tsp-stories.code1-nba-game .game-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
#tsp-stories.code1-nba-game .game-nav a { min-height: 38px; display: grid; place-items: center; padding: 5px 1px; color: #39495b; font-size: 12px; font-weight: 700; text-align: center; }
#tsp-stories.code1-nba-game .game-nav .current { box-shadow: inset 0 -3px #c7a41b; color: #17202a; }
#tsp-stories.code1-nba-game .game-nav a:hover { background: #f4f6f8; }
#tsp-stories.code1-nba-game .play { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; margin-top: 12px; }
#tsp-stories.code1-nba-game .play p { margin-top: 3px; font-weight: 650; }
#tsp-stories.code1-nba-game .play time { color: var(--muted); font-size: 12px; font-weight: 750; text-align: end; white-space: nowrap; }
#tsp-stories.code1-nba-game .details-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: 12px; margin-top: 12px; }
#tsp-stories.code1-nba-game .detail > h2 { padding: 12px 14px; border-bottom: 1px solid var(--line); }
#tsp-stories.code1-nba-game .detail-content { padding: 10px 14px 12px; }
#tsp-stories.code1-nba-game .detail-content > p { color: var(--muted); font-size: 13px; }
#tsp-stories.code1-nba-game .stats { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
#tsp-stories.code1-nba-game .stats :is(th, td) { padding: 5px 4px; text-align: center; }
#tsp-stories.code1-nba-game .stats tr > :first-child { text-align: start; }
#tsp-stories.code1-nba-game .stats tbody tr + tr { border-top: 1px solid var(--line); }
#tsp-stories.code1-nba-game .leaders td { width: 37%; }
#tsp-stories.code1-nba-game .leaders small { display: block; margin-top: 2px; color: var(--muted); }
#tsp-stories.code1-nba-game .court-card { grid-column: 1 / -1; }
#tsp-stories.code1-nba-game .court { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#tsp-stories.code1-nba-game .court caption { padding: 2px 4px 6px; font-size: 14px; font-weight: 800; text-align: start; }
#tsp-stories.code1-nba-game .court th[scope="row"] { font-weight: 650; }
#tsp-stories.code1-nba-game .stats a { color: #183f61; font-weight: 700; }
#tsp-stories.code1-nba-game .stats a:hover { color: #092d4e; background: #e7f0f7; }
@media (max-width: 700px) {
    #tsp-stories.code1-nba-game { padding: 9px; }
    #tsp-stories.code1-nba-game .details-grid { grid-template-columns: minmax(0,1fr); gap: 9px; margin-top: 9px; }
    #tsp-stories.code1-nba-game .play { margin-top: 9px; }
    #tsp-stories.code1-nba-game .court { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 420px) {
    #tsp-stories.code1-nba-game .matchup { padding: 10px 8px 8px; }
    #tsp-stories.code1-nba-game .side { gap: 3px; }
    #tsp-stories.code1-nba-game .side span { font-size: 12px; }
    #tsp-stories.code1-nba-game .score-head { padding-inline: 10px; }
    #tsp-stories.code1-nba-game .score-head h1 { font-size: 13px; }
    #tsp-stories.code1-nba-game .snapshot { font-size: 10px; }
}

@layer tsp-preview-typography {
    #tsp-stories.code1-nba-game :is(.team-name, .matchup .side > span) {
        font-size: var(--tsp-approved-team) !important;
        line-height: 1.3 !important;
    }
    #tsp-stories.code1-nba-game .scoreboard :is(.totals b, .score) {
        font-size: var(--tsp-approved-score) !important;
        line-height: 1.1 !important;
    }
    #tsp-stories.code1-nba-game :is(table, th, td, .game-facts dt, .game-facts dd) {
        font-size: var(--tsp-approved-data) !important;
        line-height: 1.35 !important;
    }
    #tsp-stories.code1-nba-game :is(.snapshot, .clock, .period, .venue) {
        font-size: var(--tsp-approved-detail) !important;
        line-height: 1.35 !important;
    }
}

#tsp-stories.code1-nba-game #sgp-panel > .sgp-section:first-child {
    margin-top: 12px;
}
