/* FTF FAQ — native <details> accordion, styled to the panel treatment. */

.ftf-faq {
	display: grid;
	gap: 0.75rem;
	max-inline-size: 820px;
}

.ftf-faq__item {
	background: var(--wp--preset--color--surface-raised, #26262C);
	border: 1px solid var(--wp--preset--color--line, #3A3A42);
	border-radius: 12px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.055) inset, 0 18px 40px -28px rgba(0, 0, 0, 0.9);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.ftf-faq__item[open] {
	border-color: var(--wp--preset--color--accent, #BE1622);
}

.ftf-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.35rem;
	cursor: pointer;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--wp--preset--color--contrast, #F5F6F7);
	list-style: none;
}

/* Hide the native marker in both engines. */
.ftf-faq__q::-webkit-details-marker {
	display: none;
}

.ftf-faq__q:hover {
	color: var(--wp--preset--color--accent-bright, #F4707A);
}

.ftf-faq__q:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-bright, #F4707A);
	outline-offset: -3px;
	border-radius: 12px;
}

/* Plus that becomes a minus, drawn rather than typed so it stays crisp. */
.ftf-faq__icon {
	position: relative;
	flex: none;
	inline-size: 18px;
	block-size: 18px;
}

.ftf-faq__icon::before,
.ftf-faq__icon::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 0;
	inline-size: 18px;
	block-size: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--accent-bright, #F4707A);
	transform: translateY(-50%);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.ftf-faq__icon::after {
	transform: translateY(-50%) rotate(90deg);
}

.ftf-faq__item[open] .ftf-faq__icon::after {
	transform: translateY(-50%) rotate(0deg);
	opacity: 0;
}

.ftf-faq__a {
	padding: 0 1.35rem 1.35rem;
	color: var(--wp--preset--color--muted, #B4B6BD);
}

.ftf-faq__a p {
	margin: 0;
	max-inline-size: 68ch;
}

@media (prefers-reduced-motion: no-preference) {
	.ftf-faq__item[open] .ftf-faq__a {
		animation: ftf-faq-in 0.28s ease;
	}

	@keyframes ftf-faq-in {
		from { opacity: 0; transform: translateY(-4px); }
		to   { opacity: 1; transform: none; }
	}
}
