/**
 * FAQ accordion styles (Req 20.1, 20.2, 20.3).
 *
 * Dark combat-sports surface matching the design system: cards on #141414,
 * orange brand accents, pill-free list rows. The expand/collapse animation is
 * CSS-driven via `max-height` + `opacity` with a transition tuned to 300ms so
 * activating a question reveals/hides its answer within the required window
 * (faq-accordion.js only toggles the open state + ARIA).
 *
 * Loaded only on the FAQs page (inc/faqs.php conditional enqueue).
 */

.faq-wrap {
	max-width: 820px;
	margin: 0 auto;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.faq-item {
	background: var(--atmo1, #141414);
	border: 1px solid var(--border, #2A2A2A);
	border-radius: var(--radius-lg, 16px);
	overflow: hidden;
	transition: border-color var(--dur-fast, 0.2s) ease;
}

.faq-item.is-open {
	border-color: var(--brand, #E59744);
}

/* Question row — full-width accessible button */
.faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	margin: 0;
	padding: 22px 24px;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
	color: #fff;
	font-family: var(--font-body, "Archivo", system-ui, sans-serif);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	transition: color var(--dur-fast, 0.2s) ease;
}

.faq-q:hover,
.faq-q:focus-visible {
	color: var(--brand, #E59744);
}

.faq-q:focus-visible {
	outline: 2px solid var(--brand, #E59744);
	outline-offset: -2px;
}

/* Chevron icon — rotates when open */
.faq-q .faq-icon {
	flex: 0 0 auto;
	color: var(--brand, #E59744);
	font-size: 16px;
	transition: transform var(--dur-fast, 0.2s) ease;
}

.faq-item.is-open .faq-q .faq-icon {
	transform: rotate(180deg);
}

/* Answer panel — animated open/close within 300ms (Req 20.2, 20.3) */
.faq-a {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-item.is-open .faq-a {
	opacity: 1;
}

.faq-a-inner {
	padding: 0 24px 24px;
	color: var(--muted, #B8B8B8);
	font-family: var(--font-body, "Archivo", system-ui, sans-serif);
	font-size: 16px;
	line-height: 1.7;
}

/* Empty-state when no FAQs are available (Req 20.4) */
.faq-empty {
	text-align: center;
	padding: 48px 24px;
	color: var(--muted, #B8B8B8);
	background: var(--atmo1, #141414);
	border: 1px dashed var(--border, #2A2A2A);
	border-radius: var(--radius-lg, 16px);
}

/* Reduced-motion users: collapse instantly, no height animation */
@media (prefers-reduced-motion: reduce) {
	.faq-a {
		transition: none;
	}
	.faq-q .faq-icon,
	.faq-item {
		transition: none;
	}
}
