/* 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; }
}
