.btfc-homepage {
	background: var(--btfc-bg);
}

/* Hero */

.btfc-hero {
	display: grid;
	overflow: hidden;
	background: var(--btfc-navy-deep);
	color: var(--btfc-white);
}

.btfc-hero__copy {
	display: flex;
	align-items: center;
	padding: var(--btfc-space-16) var(--btfc-space-16);
	background: linear-gradient(90deg, rgb(7 16 34 / 1) 0%, rgb(7 16 34 / 0.96) 70%, rgb(7 16 34 / 0.82) 100%);
}

.btfc-hero__copy-inner {
	width: min(100%, 34rem);
}

.btfc-hero .btfc-kicker {
	margin-bottom: var(--btfc-space-8);
	color: var(--btfc-gold);
}

.btfc-hero__title {
	color: var(--btfc-white);
	font-size: clamp(1.75rem, 5.5vw, 2.35rem);
}

.btfc-hero__intro {
	margin: var(--btfc-space-8) 0 var(--btfc-space-16);
	font-size: var(--btfc-fs-md);
	color: rgb(255 255 255 / 0.92);
}

.btfc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--btfc-space-8);
}

.btfc-hero__media {
	min-height: 10rem;
	background: var(--btfc-navy-mid);
}

.btfc-hero__media img {
	width: 100%;
	height: 100%;
	max-height: 10rem;
	object-fit: cover;
	object-position: center 28%;
	display: block;
}

@media (min-width: 48rem) {
	.btfc-hero {
		grid-template-columns: minmax(17.5rem, 1fr) minmax(16rem, 1.15fr);
		min-height: 13.75rem;
		align-items: stretch;
	}

	.btfc-hero__copy {
		padding: var(--btfc-space-16) var(--btfc-space-24);
	}

	.btfc-hero__copy-inner {
		margin: 0;
		max-width: 32rem;
	}

	.btfc-hero__title {
		font-size: clamp(1.7rem, 2.8vw, 2.35rem);
	}

	.btfc-hero__media,
	.btfc-hero__media img {
		min-height: 0;
		max-height: none;
		height: 100%;
	}
}

@media (min-width: 64rem) {
	.btfc-hero {
		height: 16.5rem;
		min-height: 16.5rem;
	}

	.btfc-hero__copy {
		padding: var(--btfc-space-16) var(--btfc-space-32);
	}

	.btfc-hero__title {
		font-size: clamp(2.15rem, 2.8vw, 2.75rem);
	}
}

/* Next match — homepage hero */

/* — Section shell — */
.btfc-home-next {
	width: min(100% - (var(--btfc-gutter) * 2), var(--btfc-container));
	margin-inline: auto;
	padding: var(--btfc-space-24) var(--btfc-space-16) var(--btfc-space-32);
	background: var(--btfc-navy);
	color: var(--btfc-white);
}

.btfc-home-next .btfc-home-next__inner {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

/* — Panel appearance — */
.btfc-home-next .btfc-match-panel {
	background: transparent;
	color: var(--btfc-white);
	box-shadow: none;
	padding: 0;
	border-radius: 0;
}

/* — Match details (left) — */
.btfc-home-next .btfc-match-panel__title {
	color: var(--btfc-white);
	font-style: italic;
}

.btfc-home-next .btfc-match-panel__title::before {
	content: "";
	display: block;
	width: 2.75rem;
	height: 3px;
	margin-bottom: var(--btfc-space-12);
	background: var(--btfc-gold);
}

.btfc-home-next .btfc-match-meta {
	color: rgb(255 255 255 / 0.92);
}

.btfc-home-next .btfc-match-panel__intro p {
	color: rgb(255 255 255 / 0.92);
}

.btfc-home-next .btfc-match-meta .btfc-icon {
	color: var(--btfc-gold);
	width: 1.25em;
	height: 1.25em;
}

/* — Fixture composition — */
.btfc-home-next .btfc-match-sides {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--btfc-space-16);
	width: max-content;
	max-width: 100%;
	margin-inline: auto;
}

.btfc-home-next .btfc-match-sides__team {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-width: 6.25rem;
	max-width: 12.5rem;
	gap: var(--btfc-space-12);
	align-items: center;
	text-align: center;
}

.btfc-home-next .btfc-match-sides__name {
	color: var(--btfc-white);
	font-size: clamp(0.95rem, 3.1vw, 1.375rem);
	line-height: 1.05;
	white-space: nowrap;
}

.btfc-home-next .btfc-match-sides__vs {
	flex: 0 0 auto;
	align-self: center;
	color: var(--btfc-white);
	font-size: 2rem;
	line-height: 1;
}

/* — Crest rendering (override layout.css circular mask) — */
.btfc-media--crest-away {
	background: linear-gradient(135deg, #1d4ed8, #93c5fd);
}

.btfc-home-next .btfc-match-sides .btfc-media--crest,
.btfc-home-next .btfc-match-sides img.btfc-media--crest {
	box-sizing: content-box;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: auto;
	height: auto;
	max-width: 6.5rem;
	max-height: 5.5rem;
	margin-inline: auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
	object-fit: contain;
	object-position: center;
}

.btfc-home-next .btfc-match-sides .btfc-media--crest img,
.btfc-home-next .btfc-match-sides .btfc-media--crest .custom-logo,
.btfc-home-next .btfc-match-sides .btfc-media--crest .site-header__crest,
.btfc-home-next .btfc-match-sides .btfc-media--crest .site-header__crest svg {
	display: block;
	width: auto;
	height: auto;
	max-width: 6.5rem;
	max-height: 5.5rem;
	border-radius: 0;
	object-fit: contain;
	object-position: center;
}

.btfc-home-next .btfc-media--crest-away {
	border-radius: 0;
}

/* — Actions (right) — */
.btfc-home-next .btfc-match-actions {
	align-items: stretch;
	gap: var(--btfc-space-16);
}

.btfc-home-next .btfc-match-actions a {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	color: var(--btfc-white);
	font-size: var(--btfc-fs-lg);
	font-weight: 700;
	white-space: nowrap;
}

.btfc-home-next .btfc-match-actions a:not(:first-child) .btfc-icon {
	color: var(--btfc-gold);
}

.btfc-home-next .btfc-match-actions a:not(:first-child):hover,
.btfc-home-next .btfc-match-actions a:not(:first-child):focus-visible {
	color: rgb(255 255 255 / 0.86);
}

.btfc-home-next .btfc-match-actions a:first-child {
	min-height: 2.5rem;
	background: var(--btfc-gold);
	color: var(--btfc-text-on-gold);
	font-size: var(--btfc-fs-lg);
	border-radius: var(--btfc-radius-sm);
	justify-content: center;
}

.btfc-home-next .btfc-match-actions a:first-child .btfc-icon {
	color: var(--btfc-text-on-gold);
	width: 1.35em;
	height: 1.35em;
}

.btfc-home-next .btfc-match-actions a:first-child:hover,
.btfc-home-next .btfc-match-actions a:first-child:focus-visible {
	background: var(--btfc-gold-hover);
	color: var(--btfc-text-on-gold);
}

/* — Tablet: content-hugging three-column layout (≥768px) — */
@media (min-width: 48rem) {
	.btfc-home-next .btfc-match-panel {
		grid-template-columns: max-content minmax(0, 1fr) max-content;
		align-items: center;
	}

	.btfc-home-next .btfc-match-panel__intro {
		grid-column: 1;
		justify-self: start;
		padding-right: var(--btfc-space-24);
		border-right: 1px solid rgb(248 200 0 / 0.55);
	}

	.btfc-home-next .btfc-match-sides {
		grid-column: 2;
		justify-self: center;
		align-self: center;
		width: max-content;
		max-width: 100%;
		min-width: 0;
		margin-inline: 0;
		gap: var(--btfc-space-24);
	}

	.btfc-home-next .btfc-match-actions {
		grid-column: 3;
		justify-self: stretch;
		min-width: 10.5rem;
		padding-left: var(--btfc-space-24);
		border-left: 1px solid rgb(248 200 0 / 0.55);
	}

	.btfc-home-next .btfc-match-meta {
		font-size: var(--btfc-fs-md);
		gap: var(--btfc-space-12);
	}

	.btfc-home-next .btfc-match-actions a:not(:first-child) {
		font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
	}

	.btfc-home-next .btfc-match-actions a:not(:first-child) .btfc-icon {
		width: 1.3em;
		height: 1.3em;
	}

	.btfc-home-next .btfc-match-sides__team {
		flex: 0 0 10rem;
		width: 10rem;
		max-width: 10rem;
	}

	.btfc-home-next .btfc-match-sides__name {
		font-size: clamp(1.375rem, 2.6vw, 1.75rem);
	}

	.btfc-home-next .btfc-match-sides__vs {
		font-size: 2.25rem;
	}

	.btfc-home-next .btfc-match-sides .btfc-media--crest,
	.btfc-home-next .btfc-match-sides img.btfc-media--crest,
	.btfc-home-next .btfc-match-sides .btfc-media--crest img,
	.btfc-home-next .btfc-match-sides .btfc-media--crest .custom-logo,
	.btfc-home-next .btfc-match-sides .btfc-media--crest .site-header__crest,
	.btfc-home-next .btfc-match-sides .btfc-media--crest .site-header__crest svg {
		max-width: 6.75rem;
		max-height: 6.5rem;
	}
}

/* — Desktop fixture scale (≥1024px) — */
@media (min-width: 64rem) {
	.btfc-home-next .btfc-match-panel__title {
		font-size: clamp(2rem, 2.5vw, 2.625rem);
		margin-bottom: 1.25rem;
	}

	.btfc-home-next .btfc-match-meta {
		font-size: clamp(1rem, 1.1vw, 1.125rem);
		gap: var(--btfc-space-12);
	}

	.btfc-home-next .btfc-match-sides {
		gap: clamp(var(--btfc-space-24), 3.5vw, var(--btfc-space-48));
	}

	.btfc-home-next .btfc-match-sides__team {
		flex: 0 0 12rem;
		width: 12rem;
		max-width: 12rem;
	}

	.btfc-home-next .btfc-match-sides__name {
		font-size: clamp(1.625rem, 1.85vw, 2rem);
	}

	.btfc-home-next .btfc-match-sides__vs {
		font-size: 2.75rem;
	}

	.btfc-home-next .btfc-match-sides .btfc-media--crest,
	.btfc-home-next .btfc-match-sides img.btfc-media--crest,
	.btfc-home-next .btfc-match-sides .btfc-media--crest img,
	.btfc-home-next .btfc-match-sides .btfc-media--crest .custom-logo,
	.btfc-home-next .btfc-match-sides .btfc-media--crest .site-header__crest,
	.btfc-home-next .btfc-match-sides .btfc-media--crest .site-header__crest svg {
		max-width: 9rem;
		max-height: 8.5rem;
	}

	.btfc-home-next {
		padding-block: var(--btfc-space-32);
	}

	.btfc-home-next .btfc-match-actions {
		gap: 1.25rem;
		min-width: 12.5rem;
	}

	.btfc-home-next .btfc-match-actions a:first-child {
		min-height: 3.25rem;
		font-size: clamp(1.25rem, 1.35vw, 1.375rem);
	}

	.btfc-home-next .btfc-match-actions a:not(:first-child) {
		font-size: clamp(1.25rem, 1.7vw, 1.375rem);
		min-height: 2.75rem;
	}

	.btfc-home-next .btfc-match-actions a:not(:first-child) .btfc-icon {
		width: 1.35em;
		height: 1.35em;
	}
}

/* Latest News */

.btfc-home-news__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--btfc-space-12);
	margin-bottom: var(--btfc-space-16);
}

.btfc-home-news__head .btfc-section-heading {
	margin: 0;
}

.btfc-home-news__all {
	font-family: var(--btfc-font-display);
	font-size: var(--btfc-fs-sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--btfc-navy);
}

.btfc-home-news__all:hover,
.btfc-home-news__all:focus-visible {
	color: var(--btfc-gold);
}

.btfc-home-news__grid {
	display: grid;
	gap: var(--btfc-space-16);
	grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
	.btfc-home-news__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.btfc-home-news__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.btfc-home-news .btfc-post-card {
	min-width: 0;
	border-bottom-color: var(--btfc-navy);
}

.btfc-home-news {
	background: var(--btfc-white);
}

/* Featured story + upcoming events */

.btfc-home-split {
	display: grid;
	gap: var(--btfc-space-24);
	padding-top: var(--btfc-space-32);
	padding-bottom: var(--btfc-space-32);
	background: var(--btfc-white);
}

.btfc-story {
	position: relative;
	container-type: inline-size;
	min-width: 0;
	min-height: 28rem;
	background: var(--btfc-navy-deep);
	color: var(--btfc-white);
	border-radius: var(--btfc-radius-lg);
	overflow: hidden;
}

.btfc-story:not(.btfc-story--no-media)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgb(7 16 34 / 0.97) 0%,
		rgb(7 16 34 / 0.9) 22%,
		rgb(8 24 56 / 0.62) 48%,
		rgb(8 24 56 / 0.18) 72%,
		transparent 88%
	);
}

.btfc-story__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	background: var(--btfc-navy-mid);
	color: inherit;
}

.btfc-story__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 32%;
	display: block;
}

.btfc-story__copy {
	position: absolute;
	z-index: 2;
	inset: auto 0 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	width: 100%;
	min-width: 0;
	padding: var(--btfc-space-24) var(--btfc-space-16);
	background: transparent;
}

.btfc-story--no-media {
	display: flex;
	flex-direction: column;
}

.btfc-story--no-media .btfc-story__copy {
	position: relative;
	inset: auto;
	flex: 1;
	justify-content: center;
	background: var(--btfc-navy-deep);
}

.btfc-story .btfc-kicker {
	margin-bottom: var(--btfc-space-8);
}

.btfc-story__title {
	margin: 0 0 var(--btfc-space-12);
	max-width: 100%;
	font-family: var(--btfc-font-display);
	font-size: clamp(1.75rem, 6.5cqi, 3rem);
	font-style: italic;
	font-weight: 800;
	line-height: 1.06;
	text-transform: uppercase;
	color: var(--btfc-white);
}

.btfc-story__text {
	margin: 0 0 var(--btfc-space-16);
	max-width: 40rem;
	color: rgb(255 255 255 / 0.92);
}

.btfc-story__copy .btfc-button {
	align-self: flex-start;
	width: auto;
}

.btfc-whats-on {
	min-width: 0;
}

.btfc-whats-on .btfc-section-heading {
	margin-bottom: var(--btfc-space-16);
}

.btfc-whats-on .btfc-button {
	width: 100%;
	margin-top: var(--btfc-space-16);
}

@media (min-width: 48rem) {
	.btfc-story {
		min-height: 30rem;
	}

	.btfc-story__copy {
		padding: var(--btfc-space-32) var(--btfc-space-24);
	}
}

@media (min-width: 64rem) {
	.btfc-home-split {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		align-items: start;
	}

	.btfc-home-split:not(:has(.btfc-story)) .btfc-whats-on {
		grid-column: 2;
	}

	.btfc-story {
		aspect-ratio: 4 / 3;
		min-height: 32rem;
		width: 100%;
	}

	.btfc-story__copy {
		padding: var(--btfc-space-32);
	}

	.btfc-story__title {
		font-size: clamp(2rem, 7cqi, 3.125rem);
	}
}

/* Explore */

.btfc-explore__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--btfc-space-12);
	margin-bottom: var(--btfc-space-16);
}

.btfc-explore__intro {
	margin: 0;
	color: var(--btfc-text-muted);
}

.btfc-explore-card__photo {
	width: 2.5rem;
	height: 2.5rem;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.btfc-partners__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--btfc-space-12);
	margin-bottom: var(--btfc-space-16);
}

.btfc-partners__head .btfc-section-heading {
	margin-bottom: 0;
}

/* Partners */

.btfc-partners .btfc-section-heading {
	margin-bottom: var(--btfc-space-16);
}

.btfc-home-section {
	width: min(100% - (var(--btfc-gutter) * 2), var(--btfc-container));
	margin: var(--btfc-space-32) auto;
}

.btfc-homepage .btfc-explore,
.btfc-homepage .btfc-partners {
	background: var(--btfc-white);
}

.btfc-homepage .btfc-explore__intro {
	display: none;
}

@media (min-width: 64rem) {
	.btfc-homepage .btfc-explore {
		margin-top: var(--btfc-space-48);
	}

	.btfc-homepage .btfc-partners {
		margin-bottom: var(--btfc-space-48);
	}
}
