/* The Exam Practice front page (/learn/, learn-home.asp). Everything is under .lh; colours are the exam app's own
   variables (index.min.css), with their values as fallbacks. Keep this file ASCII. */
.lh {
	--lh-ink: var(--neutrals-1, #2e3d52);
	--lh-soft: var(--neutrals-2, #7b7a8c);
	--lh-line: var(--neutrals-4, #e2e3eb);
	--lh-blue: var(--blue-1, #5086db);
	--lh-blue2: var(--blue-2, #7aa3e4);
	--lh-tint: var(--blue-4, #dee8f8);
	--lh-chip: var(--neutrals-5, #eff2f9);
	color: var(--lh-ink);
}

.lh .button {
	display: inline-block;
	margin: 0;
	max-width: none;
}

/* top: title and lead on the left, four numbers on the right */
.lh-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 2.5rem 3.5rem;
	align-items: center;
	margin-bottom: 4rem;
}

.lh-hero .exam-home__title {
	max-width: 38rem;
}

.lh-hero .exam-home__lead {
	margin-bottom: 1.75rem;
}

.lh-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.lh-cta__link {
	color: var(--lh-blue);
	font-weight: 500;
	line-height: 1.4;
}

.lh-cta__link:hover {
	text-decoration: underline;
}

.lh-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.lh-stat {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1.25rem 1.5rem;
	border-radius: 1rem;
	border: 0.0625rem solid var(--lh-line);
	background: #fff;
}

.lh-stat strong {
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.1;
}

.lh-stat span {
	font-weight: 300;
	line-height: 1.4;
	color: var(--lh-soft);
}

/* sections */
.lh-section {
	margin-bottom: 4rem;
	scroll-margin-top: 1.5rem;
}

.lh-h2 {
	margin-bottom: 0.625rem;
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.2;
}

.lh-sub {
	max-width: 44rem;
	margin-bottom: 0.5rem;
	font-weight: 300;
	line-height: 1.6;
	color: var(--lh-soft);
}

.lh-h3 {
	margin: 2rem 0 0.875rem;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lh-soft);
}

/* a year group or section: a small card */
.lh-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem;
}

.lh-card {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	min-height: 9.5rem;
	padding: 1.125rem 1.25rem 1.25rem;
	border-radius: 1rem;
	border: 0.0625rem solid var(--lh-line);
	background: #fff;
	color: var(--lh-ink);
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

/* KS2 SATs and 11+ hold several subjects: half the row each */
.lh-card--wide {
	grid-column: span 3;
	min-height: 0;
}

/* Years 7 to 9: three across */
.lh-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lh-grid--three .lh-card {
	min-height: 0;
}

.lh-card:hover,
.lh-card:focus-visible {
	border-color: var(--lh-blue2);
	box-shadow: 0 0.5rem 1.5rem rgba(80, 134, 219, 0.16);
	transform: translateY(-0.125rem);
}

.lh-card__kicker {
	font-size: 0.8125rem;
	line-height: 1.3;
	color: var(--lh-soft);
}

.lh-card__title {
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
}

.lh-card__subjects {
	line-height: 1.45;
}

.lh-card__meta {
	margin-top: auto;
	padding-top: 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--lh-soft);
}

/* GCSE and A-Level: two wide cards with their subjects */
.lh-bigs {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 1.25rem;
}

.lh-big {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 1.5rem 1.75rem 1.75rem;
	border-radius: 1rem;
	border: 0.0625rem solid var(--lh-line);
	background: #fff;
}

.lh-big__title {
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.2;
}

.lh-big__meta {
	margin-top: -0.5rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--lh-soft);
}

.lh-big__text {
	font-weight: 300;
	line-height: 1.6;
}

.lh-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.lh-tags li {
	list-style: none;
	padding: 0.3125rem 0.625rem;
	border-radius: 2rem;
	background: var(--lh-chip);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.lh-big .button {
	margin-top: auto;
}

/* how it works: the app's numbered steps on a white panel */
.lh-panel {
	margin-top: 1.5rem;
	padding: 1.75rem;
	border-radius: 1rem;
	border: 0.0625rem solid var(--lh-line);
	background: #fff;
}

/* what you get */
.lh-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.lh-feature {
	padding: 1.25rem 1.375rem 1.375rem;
	border-radius: 1rem;
	border: 0.0625rem solid var(--lh-line);
	background: #fff;
}

.lh-feature h3 {
	margin-bottom: 0.375rem;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.35;
}

.lh-feature p {
	font-weight: 300;
	line-height: 1.55;
	color: var(--lh-soft);
}

/* the account line at the foot */
.lh-account {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 1.25rem 1.75rem;
	border-radius: 1rem;
	border: 0.0625rem solid var(--lh-line);
	background: #fff;
}

.lh-account__text {
	flex: 1 1 22rem;
	line-height: 1.55;
}

.lh-account__text strong {
	font-weight: 500;
}

.lh-account__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

@media (max-width: 68rem) {
	.lh-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.lh-grid--three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.lh-card--wide {
		grid-column: span 2;
	}
}

@media (max-width: 56rem) {
	.lh-hero {
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 3rem;
	}

	.lh-bigs {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.lh-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.lh-card--wide {
		grid-column: span 3;
	}
}

@media (max-width: 36rem) {
	.lh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.lh-grid--three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.lh-grid--three .lh-card {
		padding: 0.875rem 0.75rem 1rem;
	}

	.lh-card--wide {
		grid-column: span 2;
	}

	.lh-card {
		min-height: 0;
		padding: 1rem 1rem 1.125rem;
	}

	.lh-features {
		grid-template-columns: minmax(0, 1fr);
	}

	.lh-stat {
		padding: 1rem 1.125rem;
	}

	.lh-stat strong {
		font-size: 1.5rem;
	}

	.lh-big {
		padding: 1.25rem 1.25rem 1.5rem;
	}

	.lh-panel {
		padding: 1.25rem;
	}

	.lh-section {
		margin-bottom: 3rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lh-card {
		transition: none;
	}

	.lh-card:hover,
	.lh-card:focus-visible {
		transform: none;
	}
}
