/* Plain CSS on purpose: fixtures.css is a byte-for-byte copy, no compile needed. */

.content.fixtures {
	--fx-win: #1e9e52;
	--fx-lose: #d63a2f;
	--fx-draw: #7a7a7a;
}

.content.fixtures .block,
.content.fixtures .block:last-child {
	box-sizing: content-box;
	max-width: 1000px;
	margin: 0 auto;
	padding: 3rem 5dvw 5dvw;
}

.content.fixtures [hidden] {
	display: none !important;
}

.content.fixtures button {
	font: inherit;
	cursor: pointer;
	border: 0;
}

/* With JS the tabs name the list, so the headings are only for the no-JS fallback. */
.content.fixtures h3 {
	margin: 2rem 0 1rem;
	font-size: 2rem;
}

.content.fixtures.has-tabs h3,
.content.fixtures:not(.has-tabs) .fx-tabs,
.content.fixtures:not(.has-tabs) .fx-filters {
	display: none;
}

/* Tabs */

.content.fixtures .fx-tabs {
	display: flex;
	gap: 0.5rem;
	border-bottom: 3px solid #111;
}

.content.fixtures .fx-tabs button {
	padding: 0.85rem 1.5rem;
	font-family: "Alfa Slab One", serif;
	font-size: 1.25rem;
	color: #111;
	background: #e9e9e9;
	border-radius: 6px 6px 0 0;
}

.content.fixtures .fx-tabs button.is-active {
	color: #fff;
	background: #111;
}

.content.fixtures .fx-tabs button span {
	display: inline-block;
	min-width: 1.6rem;
	margin-left: 0.4rem;
	padding: 0.1rem 0.4rem;
	font-family: 'Roboto', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	vertical-align: middle;
	color: #111;
	background: #fff;
	border-radius: 999px;
}

.content.fixtures .fx-tabs button.is-active span {
	color: #fff;
	background: var(--bsj-color);
}

/* Filters */

.content.fixtures .fx-filters {
	display: grid;
	gap: 0.6rem;
	margin: 1.25rem 0 1.5rem;
}

.content.fixtures .fx-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.content.fixtures .fx-chips button,
.content.fixtures .fx-dates button {
	padding: 0.4rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #111;
	background: #fff;
	border: 1px solid #cfcfcf;
	border-radius: 999px;
}

.content.fixtures .fx-dates {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.content.fixtures .fx-dates label {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	font-size: 0.8rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.content.fixtures .fx-dates input {
	padding: 0.35rem 0.6rem;
	font: inherit;
	color: #111;
	background: #fff;
	border: 1px solid #cfcfcf;
	border-radius: 999px;
}

.content.fixtures .fx-chips button:hover,
.content.fixtures .fx-dates button:hover {
	border-color: #111;
}

.content.fixtures .fx-chips button.is-active {
	color: #fff;
	background: var(--bsj-color);
	border-color: var(--bsj-color);
}

/* Match rows */

.content.fixtures .fx-row {
	display: grid;
	/* Fixed outer columns, so the score sits at the same place in every row. */
	grid-template-columns: 4.5rem 1fr 15.5rem;
	gap: 1rem;
	align-items: center;
	margin-bottom: 0.35rem;
	padding: 0.45rem 0.8rem;
	color: #111;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-left: 5px solid #111;
	border-radius: 6px;
}

.content.fixtures .fx-row.fx-win {
	border-left-color: var(--fx-win);
}

.content.fixtures .fx-row.fx-lose {
	border-left-color: var(--fx-lose);
}

.content.fixtures .fx-row.fx-draw {
	border-left-color: var(--fx-draw);
}

.content.fixtures .fx-date {
	display: grid;
	justify-items: center;
	line-height: 1.15;
	text-align: center;
}

.content.fixtures .fx-date strong {
	font-family: "Alfa Slab One", serif;
	font-size: 1.35rem;
	font-weight: 400;
}

.content.fixtures .fx-date span {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
	opacity: 0.7;
}

.content.fixtures .fx-date em {
	margin-top: 0.15rem;
	padding: 0.05rem 0.45rem;
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 700;
	color: #fff;
	background: #111;
	border-radius: 4px;
}

.content.fixtures .fx-teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.75rem;
	align-items: center;
	font-size: 0.95rem;
}

.content.fixtures .fx-team:first-child {
	text-align: right;
}

.content.fixtures .fx-team.is-us {
	font-weight: 700;
}

.content.fixtures .fx-score {
	box-sizing: border-box;
	width: 8.5rem;
	padding: 0.15rem 0.6rem;
	font-weight: 700;
	white-space: nowrap;
	text-align: center;
	background: #f1f1f1;
	border-radius: 4px;
}

.content.fixtures .fx-meta {
	margin-top: 0.2rem;
	font-size: 0.78rem;
	text-align: center;
	opacity: 0.7;
}

.content.fixtures .fx-side {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.content.fixtures .fx-tag {
	padding: 0.2rem 0.55rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
	color: #111;
	background: #ececec;
	border-radius: 999px;
}

.content.fixtures .fx-tag.fx-football,
.content.fixtures .fx-tag.fx-hurling,
.content.fixtures .fx-tag.fx-ladies-football,
.content.fixtures .fx-tag.fx-camogie {
	color: #fff;
	background: #111;
}

.content.fixtures .fx-badge {
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
	border-radius: 50%;
}

.content.fixtures .fx-win .fx-badge {
	background: var(--fx-win);
}

.content.fixtures .fx-lose .fx-badge {
	background: var(--fx-lose);
}

.content.fixtures .fx-draw .fx-badge {
	background: var(--fx-draw);
}

.content.fixtures .fx-empty {
	padding: 2rem 0;
	text-align: center;
	opacity: 0.7;
}

@media (max-width: 800px) {
	.content.fixtures .fx-tabs button {
		flex: 1;
		padding: 0.75rem 0.5rem;
		font-size: 1rem;
	}

	.content.fixtures .fx-row {
		grid-template-columns: 4.5rem 1fr;
		gap: 0.6rem;
		padding: 0.6rem;
	}

	.content.fixtures .fx-teams {
		grid-template-columns: 1fr;
		gap: 0.25rem;
		justify-items: start;
		font-size: 1rem;
	}

	.content.fixtures .fx-team:first-child,
	.content.fixtures .fx-meta {
		text-align: left;
	}

	.content.fixtures .fx-score {
		width: auto;
	}

	.content.fixtures .fx-side {
		grid-column: 1 / -1;
	}
}
