/* Single staff, review and FAQ pages, plus the 404 and search pages. */
.nffat-related {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.nffat-related > .nffat-section-title,
.nffat-related > .nffat-section-head {
	margin: 0;
}

/* Staff member */
.nffat-person {
	display: grid;
	grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 6vw, 96px);
}

.nffat-person__media {
	position: relative;
	aspect-ratio: 4 / 5;
	margin: 24px;
}

.nffat-person__media::before,
.nffat-person__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--nffat-radius-panel);
	transition: transform 420ms var(--wp--custom--ease--out);
}

.nffat-person__media::before {
	background: var(--wp--preset--color--magenta-100);
	transform: rotate(-7deg) translate(-16px, 12px);
}

.nffat-person__media::after {
	background: var(--wp--preset--color--teal-100);
	transform: rotate(5deg) translate(16px, 10px);
}

/* The cards start tucked behind the photo and fan out once it has risen in. */
.nffat-person__media::before,
.nffat-person__media::after {
	animation: nffat-person-fan 900ms var(--wp--custom--ease--out) 450ms backwards;
}

@keyframes nffat-person-fan {
	from { transform: none; }
}

.nffat-person__frame {
	position: relative;
	z-index: 1;
	height: 100%;
	overflow: hidden;
	border: 10px solid var(--wp--preset--color--white);
	border-radius: var(--nffat-radius-panel);
	background: var(--wp--preset--color--teal);
	box-shadow: var(--wp--custom--shadow--photo);
}

@media (hover: hover) and (pointer: fine) {
	.nffat-person__media:hover::before { transform: rotate(-11deg) translate(-26px, 16px); }
	.nffat-person__media:hover::after { transform: rotate(9deg) translate(26px, 12px); }
}

@media (prefers-reduced-motion: reduce) {
	.nffat-person__media::before,
	.nffat-person__media::after { transition: none; animation: none; }
}

.nffat-person__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nffat-person__monogram {
	display: grid;
	place-items: center;
	height: 100%;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(96px, 14vw, 180px);
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--white);
}

.nffat-person__shape {
	--motion-amount: 90;
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 2;
	width: 56px;
	height: 56px;
	color: var(--wp--preset--color--magenta);
}

.nffat-person__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.nffat-person__text > * {
	margin: 0;
}

.nffat-person__name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(42px, 5.4vw, 80px);
	line-height: 0.98;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.nffat-person__role {
	padding: 8px 16px;
	border-radius: var(--nffat-radius-pill);
	background: var(--wp--preset--color--teal-50);
	font-size: 16px;
	font-weight: 700;
	color: var(--wp--preset--color--teal-700);
}

.nffat-person__bio {
	max-width: 640px;
	font-size: 18px;
	line-height: 1.65;
}

.nffat-person__bio > * {
	margin: 0 0 14px;
}

.nffat-person__text > .nffat-btn {
	margin-top: 8px;
}

.nffat-person__team .nffat-team__heading {
	margin: 0 0 32px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(32px, 3.4vw, 48px);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

/* Review */
.nffat-review-hero {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 960px;
	margin-inline: auto;
	padding: clamp(32px, 6vw, 80px);
	overflow: hidden;
	border-radius: var(--nffat-radius-panel);
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	isolation: isolate;
}

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

.nffat-review-hero .nffat-course-page__crumbs a {
	color: var(--wp--preset--color--white);
}

.nffat-review-hero .nffat-live-review__stars {
	color: #FFD166;
}

.nffat-review-hero__mark {
	position: absolute;
	right: clamp(16px, 4vw, 48px);
	top: clamp(16px, 4vw, 40px);
	z-index: -1;
	font-size: clamp(96px, 14vw, 180px);
	color: rgb(255 255 255 / 0.12);
}

.nffat-review-hero__quote,
.nffat-review-hero__quote p {
	margin: 0 0 24px;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.2;
	text-wrap: pretty;
}

.nffat-review-hero__quote.is-empty {
	font-size: clamp(22px, 2.4vw, 30px);
	color: rgb(255 255 255 / 0.8);
}

.nffat-review-hero__by {
	margin-bottom: 0 !important;
	font-weight: 700;
	color: var(--wp--preset--color--teal-100);
}

/* FAQ answer */
.nffat-answer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-areas: "head head" "body ask";
	gap: 32px clamp(32px, 5vw, 64px);
	align-items: start;
}

.nffat-answer__head {
	grid-area: head;
	max-width: 900px;
}

.nffat-answer__question {
	margin: 8px 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(36px, 4.6vw, 64px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.nffat-answer__body {
	grid-area: body;
	padding: clamp(24px, 4vw, 44px);
	border-left: 6px solid var(--wp--preset--color--magenta-600);
	border-radius: 0 var(--nffat-radius-card) var(--nffat-radius-card) 0;
	background: var(--wp--preset--color--white);
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.6;
}

.nffat-answer__body > * {
	margin: 0 0 14px;
}

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

.nffat-answer__ask {
	grid-area: ask;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 28px;
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--teal-50);
}

.nffat-answer__ask p {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	line-height: 1.1;
}

/* 404 and search */
.nffat-lost {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	max-width: 760px;
	padding-block: clamp(40px, 8vw, 120px);
}

.nffat-lost > * {
	margin: 0;
}

.nffat-lost__code {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(96px, 16vw, 220px);
	line-height: 0.85;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--magenta-600);
}

.nffat-lost__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(36px, 4.6vw, 64px);
	line-height: 1.02;
	letter-spacing: -0.02em;
}

.nffat-lost__text {
	font-size: 19px;
	line-height: 1.55;
	color: var(--wp--preset--color--ink-muted);
}

.nffat-lost__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.nffat-search-form {
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 560px;
}

.nffat-search-form .wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
	width: 100%;
}

.nffat-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 12px 20px;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: var(--nffat-radius-pill);
	background: var(--wp--preset--color--white);
	font: inherit;
	font-size: 16px;
}

.nffat-search-form input[type="search"]:focus-visible {
	outline: 3px solid var(--wp--preset--color--magenta-600);
	outline-offset: 1px;
}

.nffat-search-form .wp-block-search__button {
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--nffat-radius-pill);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.nffat-search__head {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
}

.nffat-search__head > * {
	margin: 0;
}

.nffat-search__results {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 900px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-search__results > li {
	position: relative;
	margin: 0;
	padding: 22px 26px;
	border-radius: var(--nffat-radius-inner);
	background: var(--wp--preset--color--white);
}

.nffat-search__results .wp-block-post-title {
	margin: 0 0 6px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.15;
}

.nffat-search__results .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.nffat-search__results .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.nffat-search__results .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 15px;
	color: var(--wp--preset--color--ink-muted);
}

@media (hover: hover) and (pointer: fine) {
	.nffat-search__results .wp-block-post-title a:hover {
		color: var(--wp--preset--color--magenta-700);
	}
}

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

	.nffat-answer {
		grid-template-areas: "head" "body" "ask";
	}

	.nffat-person__media {
		max-width: 420px;
	}
}
