/* Nana FAQ – neutral base styles. Inherits fonts/colours from the nana theme.
   Override in the theme via the .nana-faq classes or these variables. */
.nana-faq {
	--nana-faq-border: currentColor;
	--nana-faq-gap: 0;
	--nana-faq-pad: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: var(--nana-faq-gap);
}
.nana-faq__group + .nana-faq__group { margin-top: 2.5rem; }
.nana-faq__group-title,
.nana-faq__title { margin: 0 0 1rem; }

.nana-faq__item {
	border-bottom: 1px solid color-mix(in srgb, var(--nana-faq-border) 20%, transparent);
}
.nana-faq__q {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: var(--nana-faq-pad) 0;
	font-weight: 600;
}
.nana-faq__q::-webkit-details-marker { display: none; }
.nana-faq__q::after {
	content: "+";
	flex: none;
	font-size: 1.4em;
	line-height: 1;
	transition: transform .2s ease;
}
.nana-faq__item[open] .nana-faq__q::after { transform: rotate(45deg); }
.nana-faq__q:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.nana-faq__a { padding: 0 0 var(--nana-faq-pad); }
.nana-faq__a > :first-child { margin-top: 0; }
.nana-faq__a > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.nana-faq__q::after { transition: none; }
}
