/* styles/matchup-summary.css */
/* Matchup: the header as the Summary card (scripts/matchup-summary.js; on in the app and under the feature matchup_summary_header). The page's own blocks
   it was read from are hidden; the live line and the Write-up row stay the page's, under the card's rows. */
.game-header .tmb-msum-src { display: none !important; }
.game-header.tmb-msum-on { padding: 14px 14px 12px !important; }
.game-header.tmb-msum-on > .d-flex { display: block !important; }
.tmb-msum { color: #fff; }
.tmb-msum-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.tmb-msum-top span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.tmb-msum-top b { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.tmb-msum-team { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 8px 0; }
.tmb-msum-team + .tmb-msum-team { border-top: 1px solid rgba(255, 255, 255, .12); }
/* the logo is as tall as the name and the division or conference under it; the chips go on the line below */
.tmb-msum-team > img, .tmb-msum-nologo { width: 40px; height: 40px; object-fit: contain; }
.tmb-msum-tm { display: flex; flex-direction: column; min-width: 0; }
.tmb-msum-tm b { font-size: 19px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmb-msum-tm span { font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmb-msum-tm span:empty { display: none; }
.tmb-msum-rec { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tmb-msum-rec b { display: block; font-size: 19px; font-weight: 700; line-height: 1.2; }
.tmb-msum-rec span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.tmb-msum-links { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tmb-msum-links a { height: 24px; padding: 0 9px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff !important; font-size: 12px; font-weight: 600; line-height: 24px; text-decoration: none !important; white-space: nowrap; }
.tmb-msum-raw { grid-column: 1 / -1; font-size: 13px; }
.tmb-msum-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tmb-msum-tile { min-width: 0; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.tmb-msum-tile > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmb-msum-tile > div { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tmb-msum-tile b { font-size: 22px; font-weight: 700; line-height: 1.15; }
.tmb-msum-tile s { font-size: 14px; text-decoration: none; color: rgba(255, 255, 255, .6); }
.tmb-msum-tile i { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .45); }
.tmb-msum-tile small { font-size: 13px; color: rgba(255, 255, 255, .7); }
.tmb-msum-tile em { display: block; margin-top: 1px; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .6); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tmb-msum-tile-wide { grid-column: 1 / -1; }
/* the staff's click-to-edit number, copied into a tile (the grid's phone rule would shrink it) */
.game-header .tmb-two-way.tmb-msum-tw { display: contents; }
.game-header .tmb-two-way.tmb-msum-tw span { font-size: inherit !important; }
.tmb-msum-tile .tmb-so-box { width: 90px; font-size: 18px; }
.tmb-msum-wx { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-size: 13px; line-height: 1.35; }
.tmb-msum-wx span { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
/* The page's own rows left under the card: the write-ups and the Write-up button, full width. */
.game-header.tmb-msum-on .tmb-wu-btn-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
.game-header.tmb-msum-on .tmb-wu-thoughts { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; white-space: normal; }
.game-header.tmb-msum-on .tmb-wu-btn { align-self: flex-start; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid rgba(255, 255, 255, .35); background: transparent !important; color: #fff !important; font-size: 13px; font-weight: 600; }

/* A wide header (the website on a desktop): the teams on the left, the numbers on the right. */
@media (min-width: 900px) {
	.game-header.tmb-msum-on { padding: 18px 22px 16px !important; }
	.tmb-msum-tm b, .tmb-msum-rec b { font-size: 22px; }
	.tmb-msum-team { grid-template-columns: 44px minmax(0, 1fr) auto; }
	.tmb-msum-team > img, .tmb-msum-nologo { width: 44px; height: 44px; }
	.tmb-msum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
	.tmb-msum-top { grid-column: 1 / -1; }
	.tmb-msum-teams { grid-column: 1; grid-row: 2 / span 2; }
	.tmb-msum-tiles { grid-column: 2; margin-top: 0; }
	.tmb-msum-wx { grid-column: 2; }
	.tmb-msum:not(:has(.tmb-msum-tiles, .tmb-msum-wx)) .tmb-msum-teams { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
	.tmb-msum:not(:has(.tmb-msum-tiles, .tmb-msum-wx)) .tmb-msum-team + .tmb-msum-team { border-top: 0; }
	.game-header.tmb-msum-on .tmb-wu-btn-wrap { flex-direction: row; align-items: center; flex-wrap: wrap; }
	/* MLB and the NHL on a wide screen: the game Total is a third column beside the teams' three rows. */
	.tmb-msum-tiles:has(.tmb-msum-tile-wide) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .62fr); }
	.tmb-msum-tiles .tmb-msum-tile-wide { grid-column: 3; grid-row: 1 / span 3; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
	.tmb-msum-tiles .tmb-msum-tile-wide > div { flex-wrap: wrap; }
	/* A header with the tiles: the write-ups (the Baller Picks menu, the Write-up button) sit under the tiles,
	   their foot level with the second team's chips, and the forecast under them. The page's own wrappers
	   between the header and that row take no box of their own (display: contents), so the row is placed in the
	   header's grid without being moved in the document. */
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 28px; align-items: start; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) > .tmb-msum,
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) > .d-flex,
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) > .d-flex > div:not(.tmb-msum-src),
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-wu-inflow { display: contents !important; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) > .d-flex > div > :not(.tmb-msum-src):not(.tmb-wu-inflow) { grid-column: 2; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-msum-top { grid-row: 1; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-msum-teams { grid-row: 2 / span 2; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-msum-tiles { grid-row: 2; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-wu-btn-wrap { grid-column: 2; grid-row: 3; align-self: end; margin: 10px 0 8px; }
	/* The write-ups menu (or the one write-up's link) is as wide as the tile above it; the Write-up button beside it. */
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-wu-btn-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-wu-btn-wrap > :is(.tmb-wu-menu, .tmb-wu-thoughts) { grid-column: 1; width: 100%; min-width: 0; margin: 0; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-wu-menu > summary.tmb-wu-thoughts { width: 100%; box-sizing: border-box; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-wu-menu > summary .fa-caret-down { margin-left: auto; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-wu-menu-list { min-width: 100%; box-sizing: border-box; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-wu-btn-wrap > .tmb-wu-btn { grid-column: 2; justify-self: start; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-wu-btn-wrap > .tmb-wu-btn:first-child { grid-column: 1; }
	/* With a forecast (football) the write-ups go under it (Zach: under the tiles saves no room there). */
	.game-header.tmb-msum-on:has(.tmb-msum-tiles):has(.tmb-msum-wx) .tmb-msum-teams { grid-row: 2 / span 3; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles) .tmb-msum-wx { grid-row: 3; align-self: start; margin-top: 8px; }
	.game-header.tmb-msum-on:has(.tmb-msum-tiles):has(.tmb-msum-wx) .tmb-wu-btn-wrap { grid-row: 4; }
}

/* ---- The hero layout (feature matchup_hero_header; scripts/matchup-summary.js, hero()). The card's three rows are
   the header's own flex children (.tmb-hero is display: contents), so what the page left under them (the live line)
   sits between the matchup row and the foot line, and the page's Baller Picks / Write-up row is placed in the date
   line's right corner. Colours hang off the header's own green (--tmb-game-header-bg), so a partner's follows. ---- */
.game-header.tmb-hero-on { display: flex; flex-direction: column; padding: 0 !important; border-radius: 12px !important; border: 1px solid rgba(255, 255, 255, .14) !important; box-shadow: 0 3px 10px rgba(0, 0, 0, .06); }
.game-header.tmb-hero-on > .tmb-msum.tmb-hero { display: contents; }
.game-header.tmb-hero-on > .d-flex { order: 3; display: block !important; padding: 0 26px; }
.game-header.tmb-hero-on > .d-flex > div { margin: 0 !important; }
.game-header.tmb-hero-on .tmb-live-line:not([hidden]) { margin: 0 0 14px !important; }
.tmb-hero-meta { order: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-height: 30px; padding: 16px 23px 0; padding-right: 250px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.tmb-hero-label { padding: 4px 6px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.tmb-hero-neutral { padding: 3px 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: help; }
.tmb-hero-matchup { order: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 18px 25px; padding: 23px 26px 25px; }
.tmb-hero-team { display: flex; align-items: center; gap: 15px; flex: 1 1 0; min-width: 170px; }
.tmb-hero-team > img { width: 66px; height: 66px; object-fit: contain; flex: none; }
.tmb-hero-team > div { min-width: 0; }
.tmb-hero-city { display: block; min-height: 12px; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.tmb-hero-team h2 { margin: 2px 0 6px; font-size: 30px; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmb-hero-rec { font-size: 13px; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; }
.tmb-hero-rec > span { color: rgba(255, 255, 255, .62); }
.tmb-hero-rec em { font-style: normal; }
.tmb-hero-team h2 sup { top: -.75em; margin-right: 4px; font-size: .45em; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .7); }
.tmb-hero-sub { display: block; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmb-hero-score { margin-left: 14px; flex: none; font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tmb-hero-vs { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.tmb-hero-market { display: flex; gap: 30px; flex: none; padding: 4px 0 4px 30px; border-left: 1px solid rgba(255, 255, 255, .2); }
.tmb-hero-market > div { min-width: 90px; }
.tmb-hero-market span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.tmb-hero-market strong { display: block; margin: 4px 0; font-size: 30px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tmb-hero-market strong span { display: inline; font-size: inherit; letter-spacing: 0; color: inherit; text-transform: none; }
.tmb-hero-market small { font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.tmb-hero-market .tmb-so-box { width: 110px; }
/* MLB and the NHL: a cell of two rows, the road team on top (moneyline; run / puck line with its price) */
.tmb-hero-market > .tmb-hero-two { min-width: 0; }
.tmb-hero-two p { display: flex; align-items: baseline; gap: 8px; margin: 3px 0 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tmb-hero-two p em { flex: 1 1 auto; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .72); }
.tmb-hero-market .tmb-hero-two strong { display: inline; margin: 0; font-size: 19px; line-height: 1.3; }
.tmb-hero-two p i { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .72); }
.tmb-hero-two small { display: block; margin-top: 3px; white-space: nowrap; }
.tmb-hero-two .tmb-so-box { width: 70px; }
.tmb-hero-bottom { order: 4; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding: 13px 23px; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 0 0 11px 11px; background: rgba(0, 0, 0, .16); font-size: 12px; color: rgba(255, 255, 255, .7); }
.tmb-hero-bottom > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.tmb-hero-bottom > div:last-child { gap: 4px 6px; }
.tmb-hero-bottom a { color: inherit !important; text-decoration: none !important; white-space: nowrap; }
.tmb-hero-bottom a:hover { color: #fff !important; }
.tmb-hero-bottom b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.tmb-hero-bottom i { font-style: normal; opacity: .5; }
.tmb-hero-bottom > .tmb-hero-wx { display: block; flex: 1 1 100%; line-height: 1.4; }
.tmb-hero-wx > span { margin-right: 6px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tmb-hero-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; vertical-align: 2px; opacity: 1 !important; background: var(--tmb-blue-300, #8fb8e8); }
.tmb-hero-dot1 { background: var(--tmb-green-300, #9fd39a); }
/* the page's own Baller Picks menu and Write-up button: the date line's right corner */
.game-header.tmb-hero-on .tmb-wu-inflow { width: auto; min-width: 0; }
.game-header.tmb-hero-on .tmb-wu-btn-wrap { position: absolute; top: 13px; right: 23px; width: auto; min-width: 0; margin: 0; flex-wrap: nowrap; justify-content: flex-end; }
.game-header.tmb-hero-on .tmb-wu-menu-list { left: auto; right: 0; }
@media (max-width: 1250px) {
	.tmb-hero-matchup { gap: 14px 17px; }
	.tmb-hero-team > img { width: 48px; height: 48px; }
	.tmb-hero-team h2, .tmb-hero-market strong { font-size: 24px; }
	.tmb-hero-market { gap: 20px; padding-left: 20px; }
	.tmb-hero-market > div { min-width: 76px; }
}
@media (max-width: 760px) {
	.tmb-hero-meta { padding: 12px 14px 0; font-size: 12px; }
	.tmb-hero-meta:has(~ .d-flex .tmb-wu-btn-wrap), .game-header.tmb-hero-on:has(.tmb-wu-btn-wrap) .tmb-hero-meta { padding-right: 14px; }
	.tmb-hero-matchup { padding: 14px; gap: 10px; }
	.tmb-hero-team { gap: 8px; min-width: 0; }
	.tmb-hero-sub { font-size: 10.5px; white-space: normal; }
	.tmb-hero-market:has(.tmb-hero-two) { justify-content: space-between; gap: 10px; }
	.tmb-hero-market > .tmb-hero-two { display: block; }
	.tmb-hero-market .tmb-hero-two strong { font-size: 16px; }
	.tmb-hero-two p { gap: 5px; }
	.tmb-hero-two p em { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
	.tmb-hero-bottom > .tmb-hero-wx { margin-top: 6px; }
	.tmb-hero-team > img { width: 36px; height: 36px; }
	.tmb-hero-team h2 { font-size: 19px; margin: 1px 0 3px; }
	.tmb-hero-city { font-size: 8.5px; }
	.tmb-hero-rec { font-size: 11px; }
	.tmb-hero-rec > span { font-size: 10px; }
	.tmb-hero-rec em { display: none; }   /* the division: no room beside the record on a phone */
	.tmb-hero-vs { font-size: 8.5px; }
	.tmb-hero-score { margin-left: 6px; font-size: 24px; }
	.tmb-hero-market { flex: 1 1 100%; justify-content: space-around; gap: 0; margin-top: 4px; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
	.tmb-hero-market > div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 14px; }
	.tmb-hero-market strong { grid-area: 1 / 2 / 3; margin: 0; font-size: 23px; }
	.tmb-hero-bottom { display: block; padding: 10px 14px; font-size: 11px; }
	.tmb-hero-bottom > div:last-child { margin-top: 6px; }
	.game-header.tmb-hero-on > .d-flex { padding: 0 14px; }
	.game-header.tmb-hero-on .tmb-wu-btn-wrap { position: static; margin: 0 0 12px; flex-wrap: wrap; justify-content: flex-start; }
}
