/* ==========================================================================
   Certification overview (/education/naa-certification/)
   The page borrows the front page's vocabulary: .naa-lean-section with a
   .naa-lean-section__head, .naa-lean-pathways cards, and the brand-green
   .naa-lean-section--brand band with .naa-lean-tiers. This file only adds the
   few layout boxes those pieces do not already carry, plus the colour
   corrections the band needs (lean-chrome.css paints every h1-h4 brand green,
   which on a green band is green on green).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.naa-cert-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Section heads
   The front page's .naa-lean-section__head is a column with a 20px gap. On the
   wider viewports the lead sits beside the heading, as it does on the home
   page's "Featured programmes" row.
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
	.naa-certification-page .naa-lean-section__head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 48px;
	}

	.naa-certification-page .naa-lean-section__head > div {
		max-width: 34ch;
	}

	.naa-certification-page .naa-lean-section__head > .naa-lean-lead {
		max-width: 44ch;
		margin: 0;
	}
}

/* --------------------------------------------------------------------------
   "What it is" cards
   -------------------------------------------------------------------------- */
.naa-cert-cards {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.naa-cert-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.naa-cert-cards .naa-lean-card__top {
	color: var(--naa-brand);
}

/* --------------------------------------------------------------------------
   Pathway cards
   Same card as the front page. Two differences, both deliberate: this is the
   page a reader lands on to compare pathways, so the description is not kept
   behind a hover, and each card carries a visible call to action. The shade is
   deepened to keep the extra copy readable over the photograph.
   -------------------------------------------------------------------------- */
.naa-cert-pathways-section {
	background: color-mix(in srgb, var(--naa-brand-soft) 45%, #fff);
	border-top: 1px solid var(--naa-border);
	border-bottom: 1px solid var(--naa-border);
}

.naa-cert-pathway {
	aspect-ratio: auto;
	min-height: 420px;
}

.naa-cert-pathway .naa-lean-pathway__shade {
	background: linear-gradient(to top, rgba(9, 20, 15, 0.95), rgba(22, 59, 44, 0.6) 55%, rgba(22, 59, 44, 0.15));
}

.naa-cert-pathway .naa-lean-pathway__kicker {
	min-height: 0;
}

/*
 * naa-cert-outcome-visible: .naa-lean-pathway__outcome is collapsed until
 * hover on the front page. On a comparison page that hides the answer from
 * touch users entirely, so it is open from the start here.
 */
.naa-cert-pathway .naa-lean-pathway__outcome {
	max-height: none;
	opacity: 0.85;
	overflow: visible;
}

.naa-cert-pathway__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(249, 253, 251, 0.25);
	color: var(--naa-brand-fg);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.naa-cert-pathway:hover .naa-cert-pathway__cta {
	gap: 10px;
}

.naa-cert-empty {
	margin: 0;
	color: var(--naa-muted);
}

/* --------------------------------------------------------------------------
   How we teach (brand band)
   -------------------------------------------------------------------------- */
.naa-cert-model__head {
	position: relative;
	max-width: 720px;
	margin: 0 auto 56px;
	text-align: center;
}

.naa-cert-model__head .naa-lean-label {
	justify-content: center;
}

.naa-cert-label--onbrand {
	color: rgba(249, 253, 251, 0.7);
}

.naa-cert-label--onbrand::before {
	background: rgba(249, 253, 251, 0.3);
}

/*
 * naa-cert-onbrand-h2: .naa-lean-h2 is brand green and lean-chrome.css paints
 * h2 brand green as well. Two classes take it back on the green band without
 * !important.
 */
.naa-lean-chrome .naa-cert-h2--onbrand,
.naa-cert-model .naa-cert-h2--onbrand {
	color: var(--naa-brand-fg);
}

.naa-cert-h2--onbrand span {
	color: rgba(249, 253, 251, 0.7);
}

.naa-cert-model__lead {
	margin: 20px auto 0;
	max-width: 60ch;
	color: rgba(249, 253, 251, 0.8);
	font-size: 16px;
	line-height: 1.6;
}

.naa-cert-model .naa-lean-card__top {
	color: var(--naa-brand-fg);
}

.naa-cert-eyebrow--onbrand {
	color: rgba(249, 253, 251, 0.7);
}

/*
 * naa-cert-tier-h3: same green-on-green problem as the heading above. The
 * front page solves it with an inline style on each card; here it is a rule.
 */
.naa-lean-chrome .naa-cert-model .naa-lean-tier h3,
.naa-cert-model .naa-lean-tier h3 {
	color: var(--naa-brand-fg);
}

.naa-cert-tier__text {
	margin: 16px 0 0;
	color: rgba(249, 253, 251, 0.8);
	font-size: 14px;
	line-height: 1.6;
}

.naa-cert-model .naa-lean-tier ul {
	border-top-color: rgba(249, 253, 251, 0.25);
	color: var(--naa-brand-fg);
}

.naa-cert-model .naa-lean-tier--featured {
	border-color: rgba(249, 253, 251, 0.45);
	background: rgba(249, 253, 251, 0.09);
}

.naa-cert-model .naa-lean-disclaimer {
	color: var(--naa-brand-fg);
	opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Treatments
   -------------------------------------------------------------------------- */
.naa-cert-groups {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 800px) {
	.naa-cert-groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.naa-cert-group .naa-lean-card__top {
	color: var(--naa-brand);
}

.naa-cert-list {
	margin: 24px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--naa-border);
	list-style: none;
}

.naa-cert-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 12px;
	color: var(--naa-muted);
	font-size: 14px;
	line-height: 1.55;
}

.naa-cert-list li:last-child {
	margin-bottom: 0;
}

.naa-cert-list li::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	margin-top: 8px;
	border-radius: 50%;
	background: var(--naa-brand);
}

/* --------------------------------------------------------------------------
   What you receive
   -------------------------------------------------------------------------- */
.naa-cert-receive {
	background: color-mix(in srgb, var(--naa-brand-soft) 45%, #fff);
	border-top: 1px solid var(--naa-border);
}

.naa-cert-receive__grid {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 900px) {
	.naa-cert-receive__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
	}
}

.naa-cert-receive__cta {
	margin-top: 32px;
}

.naa-cert-checklist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.naa-cert-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 20px 0;
	border-bottom: 1px solid var(--naa-border);
	color: var(--naa-fg);
	font-size: 16px;
	line-height: 1.5;
}

.naa-cert-checklist li:first-child {
	padding-top: 0;
}

.naa-cert-checklist li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.naa-cert-checklist svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--naa-brand);
}
