/* NBA-inspired full-page composition. Soccer is separate. */
.matchup-page{max-width:1440px;margin:auto;padding:24px 32px}
.nba-matchup{background:#fff;border:1px solid #bccdd7;border-radius:8px;overflow:hidden;margin:25px 0 35px}
.nba-matchup .nba-matchup-heading{display:block;box-sizing:border-box;background:#172b3d;color:#fff;padding:24px;border-bottom:3px solid #268d9b}
.nba-matchup-heading>a.secondary{display:inline-block;margin-bottom:24px;background:#fff;color:#183e50;border:1px solid #b8d0df;text-decoration:none;padding:10px 14px}
.nba-matchup .nba-matchup-heading :is(h1,h2){color:#fff;font-family:inherit;font-size:24px;font-weight:750;line-height:1.35;display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0}
.nba-matchup .nba-matchup-heading :is(.team-badge,.history-team,.team-badge>span,.history-team>span){color:inherit}
.nba-matchup .nba-matchup-heading .eyebrow{color:#8ce0e6;margin:0 0 12px}
.nba-matchup .nba-matchup-heading>p:not(.eyebrow){color:#d5e5ee;font-size:13px;line-height:1.6;margin:14px 0}
.nba-matchup-heading .team-logo-frame{background:#fff;border-radius:4px}
.nba-matchup-heading .matchup-header-odds{width:100%;margin-top:20px}
.nba-matchup .nba-research-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:12px 18px;background:#edf3f6;border-bottom:1px solid #b7c9d4}
.nba-matchup .nba-research-tabs button{min-height:44px;background:#fff;color:#213c4e;border:1px solid #8fa9b9;border-radius:4px;padding:10px 14px;font-size:13px;font-weight:650}
.nba-matchup .nba-research-tabs button[aria-pressed=true]{background:#172b3d;color:#fff;border-color:#172b3d}
.nba-matchup .nba-research-tabs button:hover{box-shadow:0 0 0 1px #356e86}
.nba-matchup :is(button,a,summary):focus-visible{outline:3px solid #168397;outline-offset:3px}
.matchup-page-body,#nba-matchup-body{padding:24px;color:#213c4e;line-height:1.65}
.nba-matchup :is(.research-preview,.research-performers,.research-history,.research-trends,.goalie-outlook,.nba-panel){box-sizing:border-box;background:#fff;border:1px solid #cdd9e0;border-radius:8px;padding:20px;margin:0 0 20px;min-width:0}
.nba-matchup :is(.research-section-title,.research-player-heading){display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.nba-matchup .research-section-title{justify-content:space-between;margin-bottom:14px}
.nba-matchup :is(h3,.research-section-title h3){color:#213c4e;font-size:16px;margin:0 0 10px}
.nba-matchup .research-section-title>span,.nba-matchup .research-note{font-size:12px;color:#526778;line-height:1.6}
.nba-matchup :is(.research-player-grid,.nba-performers){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.nba-matchup .research-player{min-width:0;padding:16px;background:#f6f9fb;border:1px solid #d4e0e7;border-top:3px solid var(--team-color,#268d9b);border-radius:8px}
.nba-matchup .research-player-grid:has(>.research-player:only-child){grid-template-columns:minmax(0,1fr)}
.nba-matchup .research-player-grid:has(>.research-player:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.nba-matchup .research-player a{color:#096c85}.nba-matchup .research-player .nba-stat-strip{gap:14px}.nba-matchup .research-player .nba-stat-strip strong{font-size:22px}
.nba-matchup .research-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.nba-matchup :is(.research-table-scroll,.table-scroll){max-width:100%;overflow:auto}
.news-provenance{font-size:11px}.news-provenance summary{cursor:pointer;color:#405d6d}
.matchup-facts{border:1px solid #c6d6df;border-radius:8px;background:#fff;padding:20px;margin:0 0 20px;color:#213c4e;line-height:1.65}.matchup-facts li{margin:8px 0}.matchup-facts details{font-size:12px;color:#405d6d}.matchup-facts summary{cursor:pointer;font-weight:650}
@media(max-width:900px){.nba-matchup .research-history-grid{grid-template-columns:1fr}}
@media(max-width:650px){.matchup-page{padding:16px}.nba-matchup .nba-matchup-heading{padding:20px 16px}.nba-matchup .nba-matchup-heading :is(h1,h2){font-size:22px;gap:12px}.matchup-page-body,#nba-matchup-body{padding:16px}.nba-matchup .nba-research-tabs button{flex:1 1 140px}.nba-matchup :is(.research-player-grid,.research-player-grid:has(>.research-player:nth-child(2):last-child),.nba-two-col){grid-template-columns:1fr}.nba-matchup :is(.research-preview,.research-performers,.research-history,.research-trends,.goalie-outlook,.nba-panel){padding:16px}.nba-matchup .research-section-title{align-items:flex-start}}

/* Compact same-day fixture navigation in matchup headers. */
.matchup-game-nav{margin:0 0 22px;max-width:100%;min-width:0}
.matchup-game-nav-label{color:#d5e5ee;font-size:12px;font-weight:700;margin-bottom:8px}
.matchup-game-nav-label span{font-weight:400;opacity:.8;margin-left:8px}
.matchup-game-nav-track{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 3px 9px;scrollbar-color:#84c5cc #253e50}
.matchup-game-nav-track>a{flex:0 0 156px;box-sizing:border-box;display:flex;flex-direction:column;gap:5px;min-height:62px;padding:10px 12px;background:#fff;color:#213c4e;border:1px solid #b8d0df;border-radius:4px;text-decoration:none;font-size:12px;line-height:1.3}
.matchup-game-nav-track>a[aria-current=page]{border:2px solid #51d4db;background:#e7f8f9}
.matchup-game-nav-track>a span{color:#526778;font-size:11px}
.matchup-game-nav-track>a.game-card{min-height:0;flex-basis:180px}
.matchup-game-nav-track:focus-visible{outline:3px solid #51d4db;outline-offset:2px}
@media(max-width:650px){.matchup-game-nav-track>a{flex-basis:145px}.matchup-game-nav-label span{display:block;margin:3px 0 0}}

.matchup-nav-teams{display:flex;align-items:center;gap:4px;white-space:nowrap;color:#213c4e}
.matchup-nav-teams .history-team{display:inline-flex;align-items:center;gap:3px;color:inherit;font-size:12px}
.matchup-nav-teams .team-logo-frame,.matchup-nav-teams .history-team>img{flex:0 0 24px}
.matchup-nav-teams .matchup-nav-at{color:#526778;font-size:11px}

/* A gentle visual hierarchy for written matchup previews. */
.nba-matchup .research-preview,.nba-matchup .matchup-preview-grid .nba-panel{background:#f8fbfc;border:1px solid #cbdce2;border-top:3px solid #268d9b;border-radius:8px;box-shadow:0 2px 8px #17394f0b}
.nba-matchup .research-preview p,.nba-matchup .matchup-preview-grid .nba-panel p{line-height:1.75;color:#304b5d}
.nba-matchup .research-preview p:not(.research-note) strong{color:#155e70}
.nba-matchup .research-preview .research-section-title h3,.nba-matchup .matchup-preview-grid h3{color:#173e50;font-size:18px}
.nba-matchup .research-preview .research-note,.nba-matchup .matchup-preview-grid .nba-source{color:#526778;font-size:12px}
.nba-matchup .matchup-preview-grid .eyebrow{color:#167989;letter-spacing:.08em}
.nba-matchup .research-preview>p:not(.research-note):first-of-type,.nba-matchup .matchup-preview-grid .nba-status+p{background:#eaf5f6;border-left:3px solid #42a5ae;border-radius:4px;padding:12px 14px;color:#203f4b}
/* NHL recent form: two last-5 tables (away first), shaped like the head-to-head table. */
.research-recent .research-recent-team+.research-recent-team{margin-top:18px}
.research-recent-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}
.research-recent-head>span{font-size:12px;color:var(--muted,#6a7a86)}
.research-recent-table th,.research-recent-table td{white-space:nowrap;vertical-align:middle}
.research-recent-table td:first-child,.research-recent-table th:first-child{text-align:left}
.research-recent-table td .history-team,.research-recent-table td .team-badge{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.research-at{font-style:normal;font-size:11px;font-weight:700;color:var(--muted,#6a7a86);margin-right:4px;text-transform:uppercase}
.research-result{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;margin-right:6px;border-radius:4px;font-size:11px;font-weight:800;color:#fff;background:#8793a0}
.research-result.is-win{background:#1f8a54}.research-result.is-loss{background:#c4473b}
/* Starting-goalie strip at the top of the game preview. */
.goalie-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 16px}
.goalie-strip-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(127,127,127,.28);border-radius:10px;background:rgba(127,127,127,.07);min-width:0}
.goalie-strip-face{position:relative;display:inline-grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;overflow:hidden;background:rgba(127,127,127,.2);font-size:12px}
.goalie-strip-face img{position:absolute;inset:0;width:36px;height:36px;object-fit:cover;background:#dde6ec}
.goalie-strip-face:has(>img)>b{visibility:hidden}
.goalie-strip-name{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}
.goalie-strip-name strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.goalie-strip-name small{font-size:11px;opacity:.7}
.goalie-strip .goalie-status{min-width:0;min-height:26px;padding:2px 12px;flex:0 0 auto}
@media(max-width:700px){.goalie-strip{grid-template-columns:1fr}}
