/* Pages for the content carried over from the old site: course details, course dates, staff, reviews, FAQs and the blog. */

.nffat-course-page__summary > * {
	margin: 0 0 12px;
}

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

/* Old-site text arrives with headings inside the summary; keep them at body size there. */
.nffat-course-page__summary :is(h1, h2, h3, h4) {
	font-family: var(--wp--preset--font-family--body);
	font-size: inherit;
	font-weight: 700;
	line-height: inherit;
}

.nffat-course-page__description h4 {
	margin: 32px 0 10px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.15;
}

.nffat-course-page__description figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--wp--preset--color--ink-muted);
}

.nffat-course-page__description :is(ul, ol) {
	--nffat-marker-size: 22px;
	margin: 16px 0 24px;
	padding: 0;
	list-style: none;
	counter-reset: nffat-step;
}

.nffat-course-page__description li {
	position: relative;
	padding-left: 32px;
}

.nffat-course-page__description li + li {
	margin-top: 10px;
}

/* The CRM editor wraps each item's text in a paragraph. */
.nffat-course-page__description li > p {
	margin: 0;
}

/* A first-aid cross in a mint circle, centred on the first line of text. */
.nffat-course-page__description ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc((1lh - var(--nffat-marker-size)) / 2);
	width: var(--nffat-marker-size);
	height: var(--nffat-marker-size);
	border-radius: 50%;
	background:
		linear-gradient(var(--wp--preset--color--teal), var(--wp--preset--color--teal)) center / 10px 2.5px no-repeat,
		linear-gradient(var(--wp--preset--color--teal), var(--wp--preset--color--teal)) center / 2.5px 10px no-repeat,
		var(--wp--preset--color--mint);
}

.nffat-course-page__description ol > li {
	counter-increment: nffat-step;
}

.nffat-course-page__description ol > li::before {
	content: counter(nffat-step);
	position: absolute;
	left: 0;
	top: calc((1lh - 22px) / 2);
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--teal-700);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.nffat-course-page__description img {
	max-width: 100%;
	height: auto;
	border-radius: var(--nffat-radius-inner);
}

.nffat-live-downloads ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.nffat-live-downloads a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 700;
	color: var(--wp--preset--color--teal-700);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

/* Reviews */
.nffat-live-reviews {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-live-review {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--white);
}

.nffat-live-review__stars {
	display: flex;
	gap: 4px;
	margin: 0;
	color: var(--wp--preset--color--magenta);
}

.nffat-live-review__stars .nffat-icon {
	width: 20px;
	height: 20px;
}

.nffat-live-review__quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.nffat-live-review__quote p {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--wp--preset--color--ink);
	overflow-wrap: anywhere;
}

.nffat-live-review__by {
	margin: auto 0 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--teal-700);
}


/* FAQs */
.nffat-live-faqs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 860px;
}

.nffat-live-faq {
	border-radius: var(--nffat-radius-inner);
	background: var(--wp--preset--color--white);
}

.nffat-live-faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	padding: 20px 24px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	list-style: none;
}

.nffat-live-faq__question::-webkit-details-marker {
	display: none;
}

.nffat-live-faq__question::after {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform 200ms var(--nffat-ease-out);
}

.nffat-live-faq[open] .nffat-live-faq__question::after {
	transform: translateY(2px) rotate(-135deg);
}

.nffat-live-faq:has(.nffat-live-faq__question:focus-visible) {
	outline: 3px solid var(--wp--preset--color--magenta-600);
	outline-offset: 3px;
}

.nffat-live-faq__question:focus-visible {
	outline: none;
}

.nffat-live-faq__answer {
	padding: 0 24px 20px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--ink-muted);
}

.nffat-live-faq__answer > * {
	margin: 0 0 12px;
}

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

/* Blog post */
.nffat-post-hero .nffat-photo-hero__title {
	font-size: clamp(36px, 5vw, 68px);
	overflow-wrap: anywhere;
}

.nffat-post-hero__category {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	margin-bottom: 20px;
	padding: 0 14px;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.16);
	color: var(--wp--preset--color--white);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.nffat-post-hero__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 18px;
	margin: 24px 0 0;
	font-size: 15px;
	color: var(--wp--preset--color--teal-100);
}

.nffat-post-hero__author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--wp--preset--color--white);
}

.nffat-post-hero__avatar {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--magenta-600);
	font-size: 14px;
}

.nffat-post-hero__share {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.nffat-post-hero__share :is(a, button) {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 0.3);
	border-radius: 50%;
	background: rgb(255 255 255 / 0.08);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	transition: background-color 200ms var(--nffat-ease-out), border-color 200ms var(--nffat-ease-out);
}

.nffat-post-hero__share .nffat-icon {
	width: 20px;
	height: 20px;
}

.nffat-post-hero__share button[data-copied] {
	background: var(--wp--preset--color--magenta-600);
	border-color: var(--wp--preset--color--magenta-600);
}

.nffat-post-hero__share :is(a, button):focus-visible {
	outline: 3px solid var(--wp--preset--color--white);
	outline-offset: 3px;
}

.nffat-post {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: clamp(32px, 4vw, 48px);
}

.nffat-post > * {
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
}

.nffat-post__content {
	font-size: 18px;
	line-height: 1.75;
	color: var(--wp--preset--color--ink);
}

.nffat-post__content > * {
	margin-block: 0 1.2em;
}

.nffat-post__content > p:first-child {
	font-size: clamp(20px, 1.8vw, 23px);
	line-height: 1.55;
	font-weight: 500;
}

.nffat-post__content :is(h2, h3, h4) {
	margin: 1.8em 0 0.5em;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.nffat-post__content h2 {
	font-size: clamp(28px, 2.6vw, 36px);
}

.nffat-post__content :is(h3, h4) {
	font-size: 24px;
}

.nffat-post__content a {
	color: var(--wp--preset--color--teal-700);
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.nffat-post__content :is(ul, ol) {
	padding-left: 1.3em;
}

.nffat-post__content li + li {
	margin-top: 0.4em;
}

.nffat-post__content li::marker {
	color: var(--wp--preset--color--magenta-600);
}

.nffat-post__content :is(.wp-block-quote, .wp-block-pullquote, blockquote) {
	margin: 2em 0;
	padding: clamp(28px, 4vw, 40px);
	border: 0;
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--teal-50);
	font-size: clamp(19px, 1.7vw, 21px);
	font-weight: 600;
	line-height: 1.55;
	color: var(--wp--preset--color--teal-900);
}

.nffat-post__content blockquote::before {
	content: "\201C";
	display: block;
	height: 0.5em;
	margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 64px;
	line-height: 1;
	color: var(--wp--preset--color--magenta-600);
}

.nffat-post__content blockquote p {
	margin: 0;
}

.nffat-post__content blockquote p + p {
	margin-top: 0.8em;
}

.nffat-post__content > p:empty {
	display: none;
}

.nffat-post__content blockquote cite {
	display: block;
	margin-top: 14px;
	font-size: 15px;
	font-style: normal;
	color: var(--wp--preset--color--teal-700);
}

.nffat-post__content .wp-block-image {
	margin-block: 2em;
}

.nffat-post__content .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--nffat-radius-card);
}

.nffat-post__content figcaption {
	margin-top: 10px;
	font-size: 14px;
	color: var(--wp--preset--color--ink-muted);
	text-align: left;
}

.nffat-post__end {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.nffat-post__back {
	margin: 0;
	font-weight: 700;
}

.nffat-post__back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--wp--preset--color--teal-700);
	text-decoration: none;
}

.nffat-post__back a::before {
	content: "\2190";
	transition: translate 200ms var(--nffat-ease-out);
}

/* Blog lists */
.nffat-posts__items > li {
	margin: 0;
}

.nffat-posts__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--nffat-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-posts__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 12px 12px 24px;
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--white);
}

.nffat-posts__item > * {
	margin: 0 12px;
}

.nffat-posts__image {
	margin: 0 0 8px;
	overflow: hidden;
	border-radius: var(--nffat-radius-inner);
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--line);
}

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

.nffat-posts__date {
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--teal-700);
}

.nffat-posts__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: var(--nffat-title-card);
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.nffat-posts__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.nffat-posts__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.nffat-posts__item:has(.nffat-posts__title a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--magenta-600);
	outline-offset: 3px;
}

.nffat-posts__title a:focus-visible {
	outline: none;
}

.nffat-posts__excerpt p {
	margin: 0;
}

.nffat-posts__excerpt {
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp--preset--color--ink-muted);
}

.nffat-posts__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.nffat-posts__pages {
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 56px;
	font-weight: 700;
}

.nffat-posts__pages .wp-block-query-pagination-numbers {
	display: flex;
	gap: 8px;
}

.nffat-posts__pages > a,
.nffat-posts__pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 48px;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: background-color 200ms var(--nffat-ease-out), color 200ms var(--nffat-ease-out);
}

.nffat-posts__pages .page-numbers {
	padding: 0;
}

.nffat-posts__pages .page-numbers.current {
	background: var(--wp--preset--color--teal-900);
	color: var(--wp--preset--color--white);
}

.nffat-posts__pages .page-numbers.dots {
	background: none;
}

.nffat-posts__pages a:focus-visible {
	outline: 3px solid var(--wp--preset--color--magenta-600);
	outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.nffat-posts__image img {
		transition: transform 400ms var(--nffat-ease-out);
	}

	.nffat-posts__item:hover .nffat-posts__image img {
		transform: scale(1.03);
	}

	.nffat-posts__title a {
		text-decoration: underline;
		text-decoration-color: transparent;
		text-decoration-thickness: 2px;
		text-underline-offset: 5px;
		transition: text-decoration-color 200ms var(--nffat-ease-out);
	}

	.nffat-posts__item:hover .nffat-posts__title a {
		text-decoration-color: var(--wp--preset--color--magenta-600);
	}

	.nffat-posts__pages a:hover:not(.current) {
		background: var(--wp--preset--color--teal-50);
	}

	.nffat-post-hero__share :is(a, button):hover {
		background: rgb(255 255 255 / 0.2);
		border-color: rgb(255 255 255 / 0.6);
	}

	.nffat-post__back a:hover::before {
		translate: -3px 0;
	}

	.nffat-live-downloads a:hover,
	.nffat-live-faq__question:hover {
		color: var(--wp--preset--color--magenta-700);
	}
}

/* The full dates list stacks; the homepage keeps its swipe row. */
@media (max-width: 1099px) {
	.wp-block-nffat-upcoming-courses.nffat-live-upcoming .nffat-courses {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		overflow: visible;
		scroll-snap-type: none;
	}
}

@media (max-width: 699px) {
	.wp-block-nffat-upcoming-courses.nffat-live-upcoming .nffat-courses {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 1099px) {
	.nffat-live-reviews,
	.nffat-posts__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.nffat-live-reviews,
	.nffat-posts__items {
		grid-template-columns: minmax(0, 1fr);
	}

	.nffat-live-review {
		padding: 24px;
	}

	.nffat-live-faq__question {
		padding: 18px 20px;
		font-size: 17px;
	}

	.nffat-live-faq__answer {
		padding: 0 20px 18px;
	}
}

/* Live archives: photo hero, then the list. Upcoming gets a roomier grid with smaller date stickers. */
.nffat-archive-main > .nffat-course-list {
	max-width: none;
}

.nffat-archive__list {
	box-sizing: border-box;
	max-width: 1440px;
	margin-inline: auto;
	padding: 72px var(--wp--style--root--padding-left) 112px;
}

.wp-block-nffat-upcoming-courses.nffat-live-upcoming .nffat-courses {
	gap: var(--nffat-card-gap);
}

.nffat-live-upcoming .nffat-course-card__sticker {
	width: 68px;
	height: 68px;
}

.nffat-live-upcoming .nffat-course-card__day {
	font-size: 24px;
	line-height: 24px;
}

.nffat-live-upcoming .nffat-course-card__month {
	font-size: 10px;
}

@media (max-width: 599px) {
	.nffat-archive__list {
		padding-top: 48px;
	}

	.wp-block-nffat-upcoming-courses.nffat-live-upcoming .nffat-courses {
		gap: 28px;
	}
}

/* Centred landing hero: title and summary sit in the middle of the photo. */
.nffat-photo-hero--centred {
	align-items: center;
	border-radius: 0 0 var(--nffat-radius-panel) var(--nffat-radius-panel);
}

.nffat-photo-hero--centred::after {
	background:
		radial-gradient(ellipse 70% 65% at 50% 55%, rgb(4 41 39 / 0.72) 0%, rgb(4 41 39 / 0.45) 55%, rgb(4 41 39 / 0.2) 100%),
		linear-gradient(180deg, rgb(4 41 39 / 0.55) 0%, rgb(4 41 39 / 0) 24%);
}

.nffat-photo-hero--centred .nffat-photo-hero__image {
	object-position: 50% 55%;
}

.nffat-photo-hero--centred .nffat-photo-hero__inner {
	padding-top: 140px;
	padding-bottom: 96px;
}

.nffat-photo-hero--centred .nffat-photo-hero__content {
	align-items: center;
	max-width: 900px;
	margin-inline: auto;
	text-align: center;
}

.nffat-photo-hero--centred .nffat-photo-hero__summary {
	max-width: 760px;
	font-size: clamp(19px, 1.7vw, 23px);
	line-height: 1.5;
	text-wrap: balance;
}

@media (max-width: 599px) {
	.nffat-photo-hero--centred .nffat-photo-hero__inner {
		padding-top: 120px;
		padding-bottom: 56px;
	}

	.nffat-photo-hero--centred .nffat-photo-hero__summary {
		font-size: 18px;
	}
}
