/* HBC Matchs : forfaits et matchs de Coupe de France (les autres styles des matchs sont dans le thème). */

.hbc-match__score--forfeit {
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hbc-match__forfeit-tag {
	border-radius: 0.35rem;
	background: #F6E3E7;
	padding: 0.05rem 0.35rem;
	color: #8A2E43;
	font-size: 0.68rem;
	font-weight: 800;
	vertical-align: 0.1em;
}

.hbc-match__cup {
	display: block;
	width: max-content;
	max-width: 100%;
	margin-top: 0.25rem;
	border-radius: 0.4rem;
	background: #FFF3D6;
	padding: 0.1rem 0.4rem;
	color: #7A5410;
	font-size: 0.66rem;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1.35;
	white-space: nowrap;
}

.hbc-match__cup-long {
	display: none;
}

/* Listes datées (pages équipes) : la colonne est plus large, on écrit « Coupe de France · 2e tour ». */
.hbc-match-list--dated .hbc-match__cup-short {
	display: none;
}

.hbc-match-list--dated .hbc-match__cup-long {
	display: inline;
}

.hbc-match-list--dated .hbc-match__cup {
	white-space: normal;
}

.hbc-match--cup {
	background: linear-gradient(90deg, #FFFBF1, #fff 40%);
}

.hbc-next-match--cup {
	border-top-color: #B88A32;
}

.hbc-next-match__badge--cup {
	background: #FFF3D6;
	color: #7A5410;
}

.hbc-team-meta__cup {
	border-radius: 999px;
	background: #FFF3D6;
	padding: 0.25rem 0.75rem;
	color: #7A5410;
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration: none;
}

.hbc-team-meta__cup:hover,
.hbc-team-meta__cup:focus-visible {
	background: #7A5410;
	color: #fff;
}

.hbc-team-cup {
	margin-top: 2.5rem;
	border: 1px solid #E8D6A8;
	border-top: 4px solid #B88A32;
	border-radius: 1rem;
	background: #FFFDF7;
	padding: 1.25rem 1.4rem 1.4rem;
}

.hbc-team-cup__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.4rem 1rem;
	margin-bottom: 1rem;
}

.hbc-team-cup__head h2 {
	margin: 0;
}

.hbc-team-cup .hbc-match-list {
	display: grid;
	gap: 0.6rem;
}

/* Bloc coupe : mêmes colonnes que les listes de la page équipe ; la catégorie et « Coupe de France » sont implicites. */
.hbc-team-cup .hbc-match__cat,
.hbc-team-cup .hbc-match__cup-name,
.hbc-team-cup .hbc-match__cup-sep {
	display: none;
}

.hbc-team-cup .hbc-match-list--dated .hbc-match,
.hbc-team-cup .hbc-match-list--dated .hbc-match:has(.hbc-match__venue) {
	grid-template-columns: 9.5rem minmax(0, 1fr) 7rem auto;
	grid-template-areas: "time teams venue link";
}

@media (max-width: 620px) {
	.hbc-team-cup {
		padding: 1rem;
	}

	.hbc-team-cup .hbc-match-list--dated .hbc-match,
	.hbc-team-cup .hbc-match-list--dated .hbc-match:has(.hbc-match__venue) {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"time link"
			"teams teams"
			"venue venue";
	}
}
