/* Course detail pages (/breakdowns/<course>/). */
.wp-site-blocks > main.nffat-detail-main {
	margin-block-start: 0;
	padding-bottom: 96px;
}

.wp-site-blocks > main.nffat-detail-main > .nffat-detail {
	max-width: none;
}

.nffat-detail {
	display: flex;
	flex-direction: column;
	gap: 96px;
}

.nffat-detail > :not(.nffat-photo-hero) {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--nffat-page-max);
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left);
}

.nffat-detail > .nffat-course-team {
	width: calc(100% - 2 * var(--wp--style--root--padding-left));
	max-width: calc(var(--nffat-page-max) - 2 * var(--wp--style--root--padding-left));
	padding: clamp(32px, 5vw, 64px);
}

/* Hero */
.nffat-photo-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(560px, 78svh, 760px);
	overflow: hidden;
	border-radius: 0 0 var(--nffat-radius-panel) var(--nffat-radius-panel);
	background: var(--wp--preset--color--teal-900);
	isolation: isolate;
}

.nffat-photo-hero__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
}

.nffat-photo-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgb(4 41 39 / 0.9) 0%, rgb(4 41 39 / 0.6) 45%, rgb(4 41 39 / 0.1) 80%),
		linear-gradient(0deg, rgb(4 41 39 / 0.95) 0%, rgb(4 41 39 / 0.5) 30%, rgb(4 41 39 / 0) 60%),
		linear-gradient(180deg, rgb(4 41 39 / 0.5) 0%, rgb(4 41 39 / 0) 22%);
}

.nffat-photo-hero__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--nffat-page-max);
	margin-inline: auto;
	padding: 160px var(--wp--style--root--padding-right) 64px var(--wp--style--root--padding-left);
	color: var(--wp--preset--color--white);
}

.nffat-photo-hero__content {
	--motion-amount-drift: 120;
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 760px;
}

.nffat-photo-hero__content > * {
	margin: 0;
}

.nffat-photo-hero__crumb a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px 0 14px;
	border: 1px solid rgb(255 255 255 / 0.28);
	border-radius: var(--nffat-radius-pill);
	background: rgb(255 255 255 / 0.14);
	backdrop-filter: blur(8px);
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--white);
	transition: background-color 200ms var(--wp--custom--ease--out), border-color 200ms var(--wp--custom--ease--out);
}

.nffat-photo-hero__crumb a::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	mask: url("../../icons/arrow-right.svg") center / contain no-repeat;
	transform: scaleX(-1);
	transition: transform 200ms var(--wp--custom--ease--out);
}

@media (hover: hover) and (pointer: fine) {
	.nffat-photo-hero__crumb a:hover {
		border-color: rgb(255 255 255 / 0.5);
		background: rgb(255 255 255 / 0.24);
	}

	.nffat-photo-hero__crumb a:hover::before {
		transform: scaleX(-1) translateX(3px);
	}
}

.nffat-photo-hero__title {
	margin-top: 8px !important;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(42px, 5.6vw, 80px);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--white);
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.nffat-photo-hero__summary {
	max-width: 620px;
	font-size: clamp(17px, 1.4vw, 19px);
	line-height: 1.55;
	color: rgb(255 255 255 / 0.88);
}

.nffat-photo-hero__summary > * {
	margin: 0;
}

.nffat-photo-hero__summary b,
.nffat-photo-hero__summary strong {
	font-weight: 600;
	color: var(--wp--preset--color--white);
}

.nffat-photo-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.nffat-photo-hero__facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: var(--nffat-radius-pill);
	background: rgb(255 255 255 / 0.14);
	backdrop-filter: blur(6px);
	font-size: 15px;
	font-weight: 600;
}

.nffat-photo-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px !important;
}

/* Body: outline beside a sticky glance card */
.nffat-detail__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: start;
	gap: clamp(32px, 5vw, 80px);
}

.nffat-detail__main {
	display: flex;
	flex-direction: column;
	gap: 56px;
	min-width: 0;
}

.nffat-detail__intro {
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.55;
	color: var(--wp--preset--color--ink);
}

.nffat-detail__intro > * {
	margin: 0 0 16px;
}

.nffat-detail__intro > :last-child {
	margin-bottom: 0;
}

.nffat-detail__intro > p + p {
	font-size: 17px;
	color: var(--wp--preset--color--ink-muted);
}

.nffat-detail__intro b,
.nffat-detail__intro strong {
	font-weight: 600;
}

.nffat-detail__heading {
	margin: 0 0 24px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.nffat-detail__prose {
	font-size: 17px;
	line-height: 1.65;
}

.nffat-detail__prose > p {
	margin: 0 0 16px;
}

.nffat-detail__lead > * {
	margin: 0 0 20px;
}

.nffat-learn {
	padding: clamp(24px, 3.5vw, 44px);
	border-radius: var(--nffat-radius-panel);
	background: var(--wp--preset--color--white);
}

.nffat-learn__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-learn__list li {
	display: flex;
	gap: 12px;
	font-size: 16px;
	line-height: 1.5;
}

.nffat-learn__list .nffat-icon {
	margin-top: 2px;
	font-size: 22px;
	color: var(--wp--preset--color--leaf);
}

.nffat-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.nffat-fact {
	padding: 28px;
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--teal-50);
	font-size: 16px;
	line-height: 1.55;
}

.nffat-fact > .nffat-icon {
	display: inline-flex;
	box-sizing: content-box;
	padding: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--teal);
	font-size: 22px;
	color: var(--wp--preset--color--white);
}

.nffat-fact__title {
	margin: 16px 0 8px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.1;
}

.nffat-fact p {
	margin: 0;
}

.nffat-audience {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
	gap: 16px clamp(24px, 4vw, 48px);
	align-items: start;
}

.nffat-audience__ask {
	margin: 0;
	font-size: 16px;
	color: var(--wp--preset--color--ink-muted);
}

.nffat-audience__ask a {
	font-weight: 700;
	color: var(--wp--preset--color--magenta-700);
	text-underline-offset: 3px;
}

.nffat-audience__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-audience__list li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block: 16px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.nffat-audience__list .nffat-icon {
	box-sizing: content-box;
	padding: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--teal-50);
	font-size: 18px;
	color: var(--wp--preset--color--teal);
}

.nffat-audience__list.is-in > * {
	--motion-step: 50ms;
}

.nffat-reasons__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 8px;
	list-style: none;
}

/* Sticker cards: each tipped a little, with an offset shadow in its own colour. */
.nffat-reasons__list li {
	--tone: var(--wp--preset--color--teal);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 150px;
	padding: 24px;
	overflow: hidden;
	isolation: isolate;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--white);
	box-shadow: 6px 6px 0 var(--tone);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.nffat-reasons__list li:nth-child(4n+1) { rotate: -1deg; }
.nffat-reasons__list li:nth-child(4n+2) { --tone: var(--wp--preset--color--magenta); rotate: 1deg; }
.nffat-reasons__list li:nth-child(4n+3) { --tone: var(--wp--preset--color--leaf); rotate: 0.8deg; }
.nffat-reasons__list li:nth-child(4n+4) { --tone: var(--wp--preset--color--teal-700); rotate: -0.8deg; }

.nffat-reasons__number {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--tone);
	font-family: var(--wp--preset--font-family--display);
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--white);
}

.nffat-reasons__shape {
	--motion-amount: 40;
	position: absolute;
	right: -20px;
	bottom: -26px;
	z-index: -1;
	width: 110px;
	height: 110px;
	color: var(--tone);
	opacity: 0.25;
	pointer-events: none;
}

.nffat-reasons__shape .nffat-shape {
	width: 100%;
	height: 100%;
}

.nffat-reasons__text {
	max-width: 80%;
}

.nffat-detail__closing {
	padding: 28px 32px;
	border-left: 4px solid var(--wp--preset--color--magenta-600);
	border-radius: 0 var(--nffat-radius-inner) var(--nffat-radius-inner) 0;
	background: var(--wp--preset--color--white);
	font-size: 18px;
	line-height: 1.55;
}

.nffat-detail__closing > * {
	margin: 0 0 8px;
}

.nffat-detail__closing > :last-child {
	margin-bottom: 0;
}

/* Glance card */
.nffat-glance {
	position: sticky;
	top: 120px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--white);
	box-shadow: 0 24px 48px -32px rgb(4 41 39 / 0.35);
}

.nffat-glance__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.1;
}

.nffat-glance__list {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.nffat-glance__row {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 12px;
	align-items: center;
	padding-block: 14px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.nffat-glance__row .nffat-icon {
	grid-row: span 2;
	font-size: 22px;
	color: var(--wp--preset--color--teal);
}

.nffat-glance__row dt {
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--ink-muted);
}

.nffat-glance__row dd {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.nffat-glance__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nffat-glance__actions .nffat-btn {
	justify-content: center;
}

.nffat-glance__downloads {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-glance__download {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 14px 14px 20px;
	border-radius: var(--nffat-radius-inner);
	background: var(--wp--preset--color--teal-50);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: background-color 200ms var(--nffat-ease-out);
}

.nffat-glance__download-title {
	font-weight: 700;
	line-height: 1.3;
}

.nffat-glance__download-go {
	overflow: hidden;
	width: 44px;
	height: 44px;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
}

.nffat-glance__download:active .nffat-glance__download-go {
	transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
	.nffat-glance__download:hover {
		background: var(--wp--preset--color--teal-100);
	}
}

@media (max-width: 1099px) {
	.nffat-audience {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.nffat-glance {
		position: static;
	}
}

@media (max-width: 699px) {
	.nffat-detail {
		gap: 64px;
	}

	.nffat-photo-hero__inner {
		padding: 120px var(--wp--style--root--padding-left) 40px;
	}

	.nffat-photo-hero__summary {
		font-size: 16px;
	}

	.nffat-photo-hero__actions .nffat-btn {
		width: 100%;
		justify-content: center;
	}

	.nffat-learn__list,
	.nffat-reasons__list,
	.nffat-audience__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.nffat-detail__heading {
		margin-bottom: 18px;
	}
}

/* Long checklists: a shorter step keeps the whole list arriving in under a second. */
.nffat-learn__list.is-in > * {
	--motion-step: 40ms;
}

/* Plain pages open with the same photo hero, a little shorter. */
.wp-site-blocks > .nffat-photo-hero--page {
	max-width: none;
	margin-block-start: 0;
}

.nffat-photo-hero--page {
	min-height: clamp(420px, 58svh, 580px);
}

.nffat-photo-hero--page + main {
	padding-top: clamp(56px, 7vw, 96px);
}

.nffat-photo-credit {
	position: absolute;
	right: 20px;
	bottom: 16px;
	z-index: 1;
	max-width: min(60%, 420px);
	font-size: 11px;
	line-height: 1.4;
	text-align: right;
	color: rgb(255 255 255 / 0.7);
}

.nffat-photo-credit a {
	color: inherit;
}

@media (hover: hover) and (pointer: fine) {
	.nffat-photo-credit a:hover {
		color: var(--wp--preset--color--white);
		text-decoration: underline;
	}
}

.nffat-county > .nffat-photo-credit {
	top: 16px;
	bottom: auto;
}
