/* 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) {
	padding-left: 1.2em;
}

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

.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 {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

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

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

.nffat-post__terms {
	margin-bottom: 8px !important;
	font-size: 14px;
	font-weight: 700;
}

.nffat-post__terms a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--teal-700);
}

.nffat-post__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;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.nffat-post__date {
	margin-top: 16px !important;
	font-size: 15px;
	color: var(--wp--preset--color--ink-muted);
}

.nffat-post__image {
	margin: 0;
}

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

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

.nffat-posts__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	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: 24px;
	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;
	gap: 12px;
	margin-top: 40px;
	font-weight: 700;
}

.nffat-posts__pages :is(a, span) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 8px;
	color: var(--wp--preset--color--teal-700);
}

@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-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;
	}
}
