/* aieo-faq-accordion.css — self-contained accordion for the [faq] / [aieo_faq]
 * shortcode (AIEO_FAQ). Native <details>/<summary>: top-bordered rows + a
 * rotating chevron, mirroring the storefront accordions but with NO theme
 * dependency (theme tokens are used only as optional var() fallbacks). Questions
 * render in their natural case (NOT uppercased). Everything is scoped under
 * .aieo-faq / .aieo-faq-accordion so it can never bleed into the theme. */

.aieo-faq {
	width: 100%;
	margin: 0;
}

.aieo-faq__title {
	font-family: var(--wp--preset--font-family--aeonik, inherit);
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 0.75rem;
}

.aieo-faq__section-title {
	font-family: var(--wp--preset--font-family--aeonik, inherit);
	font-weight: 400;
	font-size: 1.125rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 1.75rem 0 0.25rem;
}

.aieo-faq-accordion {
	width: 100%;
}

.aieo-faq-accordion__item {
	border-top: 1px solid var(--wp--preset--color--border, #e6e6e6);
}
.aieo-faq-accordion__item:last-of-type {
	border-bottom: 1px solid var(--wp--preset--color--border, #e6e6e6);
}

.aieo-faq-accordion__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	list-style: none;
	padding: 1rem 0;
	margin: 0;
	font-family: var(--wp--preset--font-family--aeonik, inherit);
	font-size: 1.125rem;          /* 18px mobile */
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.01em;
	text-transform: none;         /* questions are NOT capitalised */
	color: var(--wp--preset--color--fg, #1a1a1a);
}
.aieo-faq-accordion__q::-webkit-details-marker { display: none; }
.aieo-faq-accordion__q::after {
	content: "";
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
	border-right:  2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 200ms ease;
	margin-bottom: 4px;
}
.aieo-faq-accordion__item[open] > .aieo-faq-accordion__q::after {
	transform: rotate(-135deg);
	margin-bottom: -4px;
}

.aieo-faq-accordion__a {
	padding: 0 0 1rem;
	line-height: 1.6;
}
.aieo-faq-accordion__a > :first-child { margin-top: 0; }
.aieo-faq-accordion__a > :last-child  { margin-bottom: 0; }

@media (min-width: 768px) {
	.aieo-faq-accordion__q {
		font-size: 1.375rem;      /* 22px desktop */
		line-height: 1.2;
	}
}
