.knowledge-hub {
	--knowledge-accent: var(--play);
	--knowledge-line: rgba(255, 255, 255, 0.12);
	background: #05070a;
}

.knowledge-page-hero {
	background:
		linear-gradient(to bottom, transparent 66%, #05070a 100%),
		radial-gradient(circle at 15% 70%, rgba(21, 153, 255, 0.2), transparent 31%),
		radial-gradient(circle at 88% 68%, rgba(21, 153, 255, 0.08), transparent 29%),
		#030609;
}

.knowledge-world-line > span:last-child {
	color: #aeb7c0;
}

.knowledge-index {
	position: relative;
	padding: 104px 0 126px;
	overflow: hidden;
	background:
		linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px),
		#05070a;
	background-size: 72px 72px;
}

.knowledge-index::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 0 20%, rgba(21, 153, 255, 0.1), transparent 27%),
		radial-gradient(circle at 100% 70%, rgba(21, 153, 255, 0.06), transparent 30%);
}

.knowledge-index > .category-shell {
	position: relative;
	z-index: 1;
}

.knowledge-index-heading {
	display: grid;
	grid-template-columns: 1fr minmax(280px, 520px);
	gap: 70px;
	align-items: end;
	margin-bottom: 48px;
}

.knowledge-index-heading h2 {
	margin: 0;
	font-size: clamp(38px, 4.2vw, 64px);
	line-height: 1;
	letter-spacing: -0.045em;
}

.knowledge-index-heading > p {
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.7;
}

.knowledge-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.knowledge-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--knowledge-line);
	background: linear-gradient(180deg, #0d1218, #090d12);
	transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.knowledge-card:hover,
.knowledge-card:focus-within {
	transform: translateY(-5px);
	border-color: color-mix(in srgb, var(--knowledge-accent) 65%, transparent);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.knowledge-card-visual {
	position: relative;
	min-height: 235px;
	display: block;
	overflow: hidden;
	background:
		linear-gradient(180deg, transparent 30%, rgba(2, 4, 7, 0.9)),
		url("../images/play-hero-840.webp") center / cover no-repeat;
}

.knowledge-card-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, transparent 34%, rgba(2, 4, 7, 0.9)),
		linear-gradient(145deg, rgba(21, 153, 255, 0.13), transparent 48%);
}

.knowledge-card-visual img,
.knowledge-card-placeholder {
	width: 100%;
	height: 100%;
	min-height: 235px;
	display: block;
	object-fit: cover;
	transition: transform 600ms ease;
}

.knowledge-card-placeholder {
	background: url("../images/play-hero-840.webp") center / cover no-repeat;
}

.knowledge-card:hover .knowledge-card-visual img,
.knowledge-card:focus-within .knowledge-card-visual img,
.knowledge-card:hover .knowledge-card-placeholder,
.knowledge-card:focus-within .knowledge-card-placeholder {
	transform: scale(1.035);
}

.knowledge-card-label {
	position: absolute;
	z-index: 1;
	left: 20px;
	bottom: 18px;
	color: var(--knowledge-accent);
	font: 850 9px var(--font-geist-mono), monospace;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.knowledge-card-copy {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 25px 24px 24px;
}

.knowledge-card-meta {
	margin: 0 0 13px;
	color: #7f8a95;
	font: 800 9px var(--font-geist-mono), monospace;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.knowledge-card-copy h3 {
	margin: 0;
	font-size: clamp(21px, 2vw, 28px);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.knowledge-card-copy h3 a {
	color: #fff;
}

.knowledge-card-copy > p:not(.knowledge-card-meta) {
	margin: 16px 0 24px;
	color: #a7b0b9;
	font-size: 14px;
	line-height: 1.65;
}

.knowledge-card-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	color: #fff;
	font: 850 9px var(--font-geist-mono), monospace;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.knowledge-card-link svg {
	width: 17px;
	height: 17px;
	color: var(--knowledge-accent);
}

.knowledge-empty-state {
	min-height: 360px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 64px 32px;
	border: 1px solid var(--knowledge-line);
	text-align: center;
	background: linear-gradient(145deg, rgba(14, 20, 27, 0.95), rgba(7, 11, 16, 0.95));
}

.knowledge-empty-icon {
	width: 54px;
	height: 54px;
	margin-bottom: 24px;
	background: url("../icons/guide-stream.svg") center / contain no-repeat;
}

.knowledge-empty-state h2 {
	margin: 0;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.02;
	letter-spacing: -0.045em;
}

.knowledge-empty-state > p:last-child {
	max-width: 620px;
	margin: 22px auto 0;
	color: #9ca6b0;
	line-height: 1.7;
}

@media (max-width: 900px) {
	.knowledge-index-heading {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.knowledge-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.knowledge-index {
		padding: 76px 0 90px;
	}

	.knowledge-card-grid {
		grid-template-columns: 1fr;
	}

	.knowledge-card-visual,
	.knowledge-card-visual img,
	.knowledge-card-placeholder {
		min-height: 220px;
	}

	.knowledge-empty-state {
		min-height: 330px;
		padding: 52px 22px;
	}
}
