/* --- Game Hub Block ---
   Wine section, white cards. Two columns from 900px, stacked below. Numbers use tabular figures
   in the theme's own font -- no monospace anywhere. */

.basebelles-game-hub {
	--bb-hub-radius: 18px;
	--bb-hub-gap: clamp(16px, 2.5vw, 36px);
	--bb-hub-tint: color-mix(in srgb, var(--bb-sandstone-cream) 70%, #fff);
	box-sizing: border-box;
	padding: clamp(16px, 4vw, 48px);
	background: var(--bb-wine-red-banner);
	color: var(--bb-deep-navy);
}

/* Full width: the wine runs edge to edge, the cards stay at the theme's wide width. */
.basebelles-game-hub.alignfull > .bb-hub-head,
.basebelles-game-hub.alignfull > .bb-hub-grid {
	max-width: var(--wp--style--global--wide-size, 90rem);
	margin-inline: auto;
}

.basebelles-game-hub *,
.basebelles-game-hub *::before,
.basebelles-game-hub *::after {
	box-sizing: border-box;
}

/* Heading on the wine: "ALCS · Game 2" with the season on the right. */
.bb-hub-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: var(--bb-hub-gap);
}

.basebelles-game-hub .bb-hub-title {
	margin: 0;
	font-weight: 800;
	line-height: 1.05;
	color: var(--bb-sandstone-cream);
}

.bb-hub-kicker {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bb-sandstone-cream) 80%, transparent);
}

.bb-hub-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--bb-hub-gap);
	align-items: stretch;
}

@media (min-width: 900px) {
	.bb-hub-grid {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	}

	.bb-hub-grid.is-single {
		grid-template-columns: minmax(0, 1fr);
	}
}

.bb-hub-main,
.bb-hub-side {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bb-hub-card,
.bb-hub-main > .basebelles-today-game {
	flex: 1;
	padding: clamp(20px, 3vw, 44px);
	border-radius: var(--bb-hub-radius);
	background: #fff;
	color: var(--bb-deep-navy);
}

/* Today's Game brings its own box; inside the hub the card is the box. */
.bb-hub-main > .basebelles-today-game {
	width: auto;
	margin: 0;
	border: 0;
	box-shadow: none;
	font-family: inherit;
}

.basebelles-game-hub .bb-hub-eyebrow {
	margin: 0 0 12px;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bb-accent-slate);
}

.basebelles-game-hub .bb-hub-eyebrow.is-accent {
	color: var(--bb-wine-red);
}

.bb-hub-source {
	letter-spacing: 0.08em;
	font-weight: 600;
}

.basebelles-game-hub .is-win {
	color: var(--bb-green);
}

.basebelles-game-hub .is-loss {
	color: var(--bb-wine-red);
}

.basebelles-game-hub .bb-hub-link {
	align-self: flex-start;
	font-weight: 700;
	color: var(--bb-wine-red);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.basebelles-game-hub .bb-hub-link:hover,
.basebelles-game-hub .bb-hub-link:focus-visible {
	color: var(--bb-deep-navy);
}

.bb-hub-empty {
	color: var(--bb-accent-slate);
}

.basebelles-game-hub .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Series card (postseason) --- */

/* Centered with the status under it; the game list and footnote stay left-aligned. */
.basebelles-game-hub .bb-hub-series .bb-hub-eyebrow {
	text-align: center;
}

.bb-hub-series-status {
	margin: 0 0 20px;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
}

.bb-hub-series-status.is-positive {
	color: var(--bb-green);
}

.bb-hub-series-status.is-negative {
	color: var(--bb-wine-red);
}

.basebelles-game-hub .bb-hub-series-games {
	display: grid;
	gap: 5px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.bb-hub-series-game {
	display: grid;
	grid-template-columns: 3.5em 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-radius: 12px;
	background: var(--bb-hub-tint);
	font-variant-numeric: tabular-nums;
}

.bb-hub-series-num,
.bb-hub-series-where,
.bb-hub-series-value {
	white-space: nowrap;
}

.bb-hub-series-num {
	font-weight: 700;
	color: var(--bb-accent-slate);
}

.bb-hub-series-value {
	font-weight: 700;
	text-align: right;
	color: var(--bb-deep-navy);
}

.bb-hub-series-game.is-won .bb-hub-series-value {
	color: var(--bb-green);
}

.bb-hub-series-game.is-lost .bb-hub-series-value {
	color: var(--bb-wine-red);
}

.bb-hub-series-game.is-dim {
	opacity: 0.6;
}

/* Today's (or the next) game. */
.bb-hub-series-game.is-next {
	background: var(--bb-deep-navy);
	color: #fff;
}

.bb-hub-series-game.is-next .bb-hub-series-num,
.bb-hub-series-game.is-next .bb-hub-series-value {
	color: #fff;
}

.bb-hub-series-game.is-live .bb-hub-series-value {
	color: var(--bb-red);
}

.bb-hub-series-game.is-next.is-live .bb-hub-series-value {
	color: #fff;
}

.bb-hub-foot {
	margin: auto 0 0;
	color: var(--bb-accent-slate);
	line-height: 1.6;
}

.bb-hub-if-necessary {
	font-size: 0.9em;
	font-style: italic;
}

/* --- Division card (regular season) --- */

.bb-hub-division {
	display: flex;
	flex-direction: column;
}

.bb-hub-division-top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	padding-bottom: 20px;
	margin-bottom: 24px;
	border-bottom: 1px dashed color-mix(in srgb, var(--bb-accent-slate) 40%, transparent);
}

.bb-hub-last {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 0;
}

.basebelles-game-hub .bb-hub-last .bb-hub-eyebrow {
	margin: 0;
}

.bb-hub-last-result,
.bb-hub-last-opponent {
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.bb-hub-last-opponent {
	color: var(--bb-deep-navy);
}

.basebelles-game-hub .bb-hub-division-name {
	margin-bottom: 8px;
}

.basebelles-game-hub .bb-hub-standings {
	width: 100%;
	margin: 0 0 16px;
	border: 0;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.bb-hub-standings th,
.bb-hub-standings td {
	padding: 12px 8px;
	border: 0;
	border-bottom: 1px solid var(--bb-sandstone-cream);
	text-align: right;
	white-space: nowrap;
}

/* basebelles.css paints every thead navy; this one is a plain rule under the labels. */
.basebelles-game-hub .bb-hub-standings thead {
	background: none;
	color: inherit;
}

.bb-hub-standings thead th {
	padding-top: 6px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--bb-deep-navy);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bb-accent-slate);
}

.bb-hub-standings abbr {
	text-decoration: none;
	cursor: help;
}

.bb-hub-standings .is-team {
	width: 100%;
	text-align: left;
}

.bb-hub-standings tbody th {
	font-weight: 600;
}

.bb-hub-team {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.bb-hub-team-logo {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.bb-hub-team-badge {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bb-deep-navy);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
}

.bb-hub-standings tr.is-us th,
.bb-hub-standings tr.is-us td {
	background: var(--bb-hub-tint);
	font-weight: 800;
	color: var(--bb-deep-navy);
}

.bb-hub-standings tr.is-us th {
	box-shadow: inset 4px 0 0 var(--bb-wine-red);
}

.bb-hub-standings tr.is-us .bb-hub-team-badge {
	box-shadow: 0 0 0 3px var(--bb-wine-red);
}

.bb-hub-wildcard {
	margin: 0 0 12px;
	font-weight: 700;
	color: var(--bb-deep-navy);
}

.bb-hub-next {
	margin: auto 0 0;
	padding-top: 8px;
	color: var(--bb-accent-slate);
}

.bb-hub-next-label {
	margin-right: 10px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bb-wine-red);
}

/* Phones: drop the logos to give the numbers room. */
@media (max-width: 480px) {
	.bb-hub-standings th,
	.bb-hub-standings td {
		padding: 10px 4px;
	}

	.bb-hub-team-logo,
	.bb-hub-team-badge {
		display: none;
	}
}

/* --- Countdown card (off season) --- */

.bb-hub-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.basebelles-game-hub .bb-hub-countdown .bb-hub-eyebrow {
	margin-bottom: 4px;
}

.bb-hub-count {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	line-height: 1;
}

.bb-hub-count-number {
	font-size: clamp(4rem, 9vw, 6.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.bb-hub-count-unit {
	font-size: 1.75rem;
	font-weight: 800;
}

.bb-hub-count-caption,
.bb-hub-count-today {
	margin: 12px 0 24px;
	font-size: 1.15rem;
	color: var(--bb-accent-slate);
}

.bb-hub-count-today {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--bb-deep-navy);
}

.basebelles-game-hub .bb-hub-button {
	display: inline-block;
	margin-top: 8px;
	padding: 12px 40px;
	border: 3px solid var(--bb-deep-navy);
	border-radius: 999px;
	background: #fff;
	color: var(--bb-deep-navy);
	font-size: 1.15rem;
	font-weight: 700;
	text-decoration: none;
}

.basebelles-game-hub .bb-hub-button:hover,
.basebelles-game-hub .bb-hub-button:focus-visible {
	background: var(--bb-deep-navy);
	color: #fff;
}

/* --- News card --- */

.bb-hub-news {
	display: flex;
	flex-direction: column;
}

.basebelles-game-hub .bb-hub-news-list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.bb-hub-news-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--bb-sandstone-cream);
}

.basebelles-game-hub .bb-hub-news-item a {
	font-weight: 600;
	line-height: 1.35;
	color: var(--bb-deep-navy);
	text-decoration: none;
}

.basebelles-game-hub .bb-hub-news-item a:hover,
.basebelles-game-hub .bb-hub-news-item a:focus-visible {
	color: var(--bb-wine-red);
	text-decoration: underline;
}

.bb-hub-news-item time {
	flex-shrink: 0;
	font-size: 0.9rem;
	color: var(--bb-accent-slate);
	white-space: nowrap;
}

.bb-hub-news .bb-hub-link {
	margin-top: auto;
}
