.nffat-home-faq {
	display: grid;
	gap: 48px;
	padding: 112px var(--wp--style--root--padding-right) 112px var(--wp--style--root--padding-left);
	position: relative;
	isolation: isolate;
	background: var(--wp--preset--color--teal-50);
}

.nffat-home-faq > .nffat-contour {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	max-width: none;
	height: 100%;
	pointer-events: none;
}

.nffat-home-faq > * {
	box-sizing: border-box;
	width: 100%;
	max-width: 840px;
	margin: 0 auto;
}

.nffat-home-faq__title {
	text-align: center;
}

.nffat-home-faq__badge {
	display: inline-grid;
	place-items: center;
	width: 1em;
	height: 1em;
	margin-left: 0.15em;
	vertical-align: -0.12em;
	border-radius: 50%;
	background: var(--wp--preset--color--magenta);
	color: var(--wp--preset--color--white);
	rotate: -8deg;
}

.nffat-home-faq__badge svg {
	width: 52%;
	height: 52%;
}

.nffat-home-faq__list {
	padding: 8px 32px;
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--white);
}

.nffat-home-faq__list > * {
	margin-block: 0;
}

.nffat-home-faq__list .wp-block-details + .wp-block-details {
	border-top: 1px solid var(--wp--preset--color--line);
}

.nffat-home-faq__list summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.nffat-home-faq__list summary::-webkit-details-marker {
	display: none;
}

.nffat-home-faq__list summary::after {
	content: "";
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background:
		linear-gradient(#fff, #fff) center / 14px 2px no-repeat,
		linear-gradient(#fff, #fff) center / 2px 14px no-repeat,
		var(--wp--preset--color--magenta);
	transition: rotate 400ms var(--nffat-ease-out), background-color 200ms;
}

.nffat-home-faq__list details[open] summary::after {
	rotate: 135deg;
}

.nffat-home-faq__list details > :not(summary) {
	max-width: 620px;
	margin: 0;
	padding: 0 60px 24px 0;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.65;
	color: var(--wp--preset--color--ink-muted);
}

.nffat-home-faq__note {
	margin-top: -16px;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	justify-self: center;
	width: auto;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--wp--preset--color--teal-50);
}

@media (prefers-reduced-motion: no-preference) {
	.nffat-home-faq__list details::details-content {
		block-size: 0;
		overflow: hidden;
		opacity: 0;
		transition: block-size 450ms var(--nffat-ease-out), opacity 300ms var(--nffat-ease-out), content-visibility 450ms allow-discrete;
	}

	.nffat-home-faq__list details[open]::details-content {
		block-size: auto;
		opacity: 1;
	}

	@supports (interpolate-size: allow-keywords) {
		.nffat-home-faq {
			interpolate-size: allow-keywords;
		}
	}
}

@media (prefers-reduced-motion: no-preference) {
	.nffat-faq-word {
		display: inline-block;
		overflow: hidden;
		margin-bottom: -0.14em;
		padding-bottom: 0.14em;
		vertical-align: top;
	}

	.nffat-faq-word > span {
		display: inline-block;
	}

	.nffat-in-faq-title.is-in .nffat-faq-word > span {
		animation: nffat-faq-word calc(650ms * var(--nffat-speed)) var(--nffat-motion-ease) calc(var(--w) * 90ms * var(--nffat-speed)) backwards;
	}

	.nffat-in-faq-title.is-in .nffat-home-faq__badge {
		animation: nffat-faq-badge calc(600ms * var(--nffat-speed)) var(--nffat-motion-ease-back) calc(330ms * var(--nffat-speed)) backwards;
	}

	.nffat-in-faq-list.is-in {
		animation-name: nffat-faq-card;
		--motion-duration: 800ms;
		--motion-ease: var(--nffat-motion-ease-in-out);
	}

	.nffat-in-faq-list.is-in > .wp-block-details {
		animation: nffat-faq-row calc(550ms * var(--nffat-speed)) var(--nffat-motion-ease) calc((250ms + var(--r) * 110ms) * var(--nffat-speed)) backwards;
	}

	.nffat-in-faq-list.is-in > .wp-block-details summary::after {
		animation: nffat-faq-plus calc(450ms * var(--nffat-speed)) var(--nffat-motion-ease-back) calc((450ms + var(--r) * 110ms) * var(--nffat-speed)) backwards;
	}

	.nffat-in-faq-list > .wp-block-details:nth-child(1) { --r: 0; }
	.nffat-in-faq-list > .wp-block-details:nth-child(2) { --r: 1; }
	.nffat-in-faq-list > .wp-block-details:nth-child(3) { --r: 2; }
	.nffat-in-faq-list > .wp-block-details:nth-child(4) { --r: 3; }
}

@keyframes nffat-faq-word {
	from { translate: 0 115%; }
}

@keyframes nffat-faq-badge {
	from { opacity: 0; scale: 0; rotate: -140deg; }
}

@keyframes nffat-faq-card {
	from { clip-path: inset(0 0 100% 0 round var(--nffat-radius-card)); }
	to { clip-path: inset(0 round var(--nffat-radius-card)); }
}

@keyframes nffat-faq-row {
	from { opacity: 0; translate: -28px 0; }
}

@keyframes nffat-faq-plus {
	from { scale: 0; }
}

@media (hover: hover) {
	.nffat-home-faq__list summary:hover::after {
		background-color: var(--wp--preset--color--magenta-600);
	}
}

@media (max-width: 1099px) {
	.nffat-home-faq {
		padding-block: 72px;
	}
}

@media (max-width: 599px) {
	.nffat-home-faq {
		gap: 32px;
		padding-block: 56px;
	}

	.nffat-home-faq__list {
		padding: 4px 20px;
	}

	.nffat-home-faq__list summary {
		font-size: 17px;
	}

	.nffat-home-faq__list details > :not(summary) {
		padding-right: 0;
	}
}
