/* Football-analysis hub inspired by the reference structure, while retaining
 * the existing Xoilac shell and typography. */
.xndh-hub {
	background: #090c0c;
	padding: 58px 0 72px;
}

.xndh-hub__shell {
	width: min(1140px, calc(100% - 32px));
	margin: 0 auto;
}

.xndh-hub__heading {
	margin: 0 auto 48px;
	max-width: 1080px;
	text-align: center;
}

.xndh-hub__heading h1 {
	margin: 0;
	color: #15e56f;
	font: 800 clamp(29px, 3.2vw, 43px)/1.15 "Barlow", Arial, sans-serif;
	letter-spacing: .025em;
	text-transform: uppercase;
}

.xndh-hub__intro {
	margin: 20px auto 0;
	max-width: 1000px;
	color: #e5e8e8;
	font: 400 clamp(18px, 2vw, 24px)/1.55 "Barlow", Arial, sans-serif;
}

.xndh-hub__intro > :first-child {
	margin-top: 0;
}

.xndh-hub__intro > :last-child {
	margin-bottom: 0;
}

.xndh-hub__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 320px));
	justify-content: center;
	gap: 30px 40px;
}

.xndh-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #303636;
	border-radius: 18px;
	background: #171a1a;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.xndh-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: radial-gradient(circle at 50% 25%, rgba(21, 229, 111, .19), transparent 40%), #202526;
}

.xndh-card__media::after {
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .46));
	content: "";
	pointer-events: none;
}

.xndh-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
}

.xndh-card:hover .xndh-card__media img,
.xndh-card:focus-within .xndh-card__media img {
	transform: scale(1.035);
}

.xndh-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: rgba(255, 255, 255, .42);
	font: 800 clamp(25px, 4vw, 43px)/1 "Barlow", Arial, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.xndh-card__date {
	display: grid;
	position: absolute;
	z-index: 1;
	top: 14px;
	left: 0;
	min-width: 58px;
	padding: 8px 7px;
	border: 2px solid #31527c;
	background: #fff;
	color: #3a5e8d;
	font-family: Arial, sans-serif;
	line-height: 1;
	text-align: center;
}

.xndh-card__date span {
	font-size: 23px;
	font-weight: 700;
}

.xndh-card__date small {
	margin-top: 3px;
	font-size: 14px;
	font-weight: 700;
}

.xndh-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	padding: 18px 18px 22px;
	text-align: center;
}

.xndh-card__body h2 {
	margin: 0;
	color: #15e56f;
	font: 700 clamp(19px, 1.6vw, 24px)/1.2 "Barlow", Arial, sans-serif;
}

.xndh-card__body h2 a {
	color: inherit;
	text-decoration: none;
}

.xndh-card__body h2 a:hover,
.xndh-card__body h2 a:focus-visible {
	color: #fff;
}

.xndh-card__body p {
	margin: 16px 0 0;
	color: #e1e5e5;
	font: 400 16px/1.5 "Barlow", Arial, sans-serif;
}

.xndh-hub__empty {
	max-width: 700px;
	margin: 0 auto;
	padding: 36px;
	border: 1px solid #303636;
	border-radius: 18px;
	background: #171a1a;
	color: #e5e8e8;
	text-align: center;
}

.xndh-hub__empty h2 {
	margin: 0;
	color: #15e56f;
	font: 700 26px/1.25 "Barlow", Arial, sans-serif;
}

.xndh-hub__empty p {
	margin: 14px 0 0;
	font: 400 18px/1.55 "Barlow", Arial, sans-serif;
}

.xndh-hub__reader {
	max-width: 840px;
	margin: 52px auto 0;
	padding-top: 42px;
	border-top: 1px solid #303636;
	color: #e5e8e8;
	font: 400 18px/1.65 "Barlow", Arial, sans-serif;
}

.xndh-hub__reader-content > :first-child {
	margin-top: 0;
}

.xndh-hub__reader-content h2,
.xndh-hub__reader-content h3 {
	color: #fff;
	font-family: "Barlow", Arial, sans-serif;
	line-height: 1.25;
}

.xndh-hub__reader-content h2 {
	margin: 34px 0 15px;
	font-size: clamp(26px, 3vw, 34px);
}

.xndh-hub__reader-content h3 {
	margin: 26px 0 12px;
	font-size: clamp(22px, 2.5vw, 28px);
}

.xndh-hub__reader-content p,
.xndh-hub__reader-content ul,
.xndh-hub__reader-content ol {
	margin: 0 0 18px;
}

.xndh-hub__reader-content img,
.xndh-hub__reader-content table {
	max-width: 100%;
	height: auto;
}

.xndh-hub__pagination {
	margin: 38px 0 0;
	text-align: center;
}

.xndh-hub__pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.xndh-hub__pagination .page-numbers {
	display: inline-grid;
	min-width: 38px;
	min-height: 38px;
	padding: 0 10px;
	place-items: center;
	border: 1px solid #3a4141;
	border-radius: 7px;
	background: #171a1a;
	color: #fff;
	font: 700 16px/1 "Barlow", Arial, sans-serif;
	text-decoration: none;
}

.xndh-hub__pagination .current,
.xndh-hub__pagination a:hover,
.xndh-hub__pagination a:focus-visible {
	border-color: #e8ea00;
	background: #e8ea00;
	color: #131616;
}

@media (max-width: 980px) {
	.xndh-hub__grid {
		grid-template-columns: repeat(2, minmax(0, 320px));
		gap: 26px;
	}
}

@media (max-width: 620px) {
	.xndh-hub {
		padding: 36px 0 48px;
	}

	.xndh-hub__shell {
		width: min(100% - 22px, 520px);
	}

	.xndh-hub__heading {
		margin-bottom: 30px;
	}

	.xndh-hub__intro {
		font-size: 18px;
	}

	.xndh-hub__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.xndh-card__body h2 {
		font-size: 21px;
	}

	.xndh-card__body p {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.xndh-card__media img {
		transition: none;
	}
}
