/*
 * FAQ block (accordion on <details>). Source: wordpress/aronex mvp/Home.dc.html.
 * Mobile first. Desktop from 1024px: FAQ in the left column next to the form.
 * Colors and sizes come only from assets/css/tokens.css.
 */

.aronex-faq__title {
	margin: 0 0 var(--space-4);
	font-size: var(--text-xl);
	line-height: var(--leading-h3);
	font-weight: var(--font-weight-medium);
	color: var(--color-text);
}

.aronex-faq__list {
	border-top: 1px solid var(--color-border);
}

.aronex-faq__item {
	border-bottom: 1px solid var(--color-border);
}

.aronex-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-4) 0;
	font-size: var(--text-base);
	color: var(--color-text);
	cursor: pointer;
	list-style: none;
	/* Removes the browser's blue flash on tap; keyboard focus is still shown by :focus-visible */
	-webkit-tap-highlight-color: transparent;
}

.aronex-faq__question::-webkit-details-marker {
	display: none;
}

/* The plus is drawn with two lines, not a text glyph, so it sits exactly in the centre of the circle */
.aronex-faq__question::after {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	border: 1px solid var(--color-accent-strong);
	border-radius: var(--radius-pill);
	background:
		linear-gradient(var(--color-accent-strong), var(--color-accent-strong)) center / 10px 1.5px no-repeat,
		linear-gradient(var(--color-accent-strong), var(--color-accent-strong)) center / 1.5px 10px no-repeat;
	box-sizing: border-box;
	transition: transform 0.2s ease;
}

.aronex-faq__item[open] .aronex-faq__question::after {
	transform: rotate(45deg);
}

.aronex-faq__question:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.aronex-faq__answer {
	padding: 0 var(--space-5) var(--space-4) 0;
	font-size: var(--text-sm);
	line-height: var(--leading-body);
	color: var(--color-text-muted);
}

/* Desktop */
@media (min-width: 1024px) {
	.aronex-faq__title {
		margin-bottom: var(--space-6);
		font-size: var(--text-3xl);
		line-height: var(--leading-h2);
	}

	.aronex-faq__question {
		padding: var(--space-5) 0;
		font-size: var(--text-md);
	}

	.aronex-faq__answer {
		font-size: var(--text-base);
	}
}
