/* FAQ (Figma "FAQ"): heading beside the questions from 1024px, stacked below. */

.s-faq__inner {
	display: grid;
	gap: 32px;
}

@media (min-width: 1024px) {
	.s-faq__inner {
		grid-template-columns: minmax(0, 368fr) minmax(0, 656fr);
		gap: 112px;
		align-items: start;
	}
}

.s-faq__heading {
	text-transform: uppercase;
	/* Figma breaks "FREQUENTLY ASKED / QUESTIONS" where the line runs out, not balanced. */
	text-wrap: wrap;
}

.s-faq__list {
	display: grid;
	gap: 16px;
}

.s-faq__item {
	padding-top: 16px;
	border-top: 1px solid var(--c-line);
}

@media (min-width: 768px) {
	.s-faq__list {
		gap: 32px;
	}

	.s-faq__item {
		padding-top: 32px;
	}
}

.s-faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-family: var(--f-display);
	font-size: var(--t-title-s);
	line-height: var(--lh-title-s);
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

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

.s-faq__question .icon {
	width: 24px;
	height: 24px;
	stroke-width: 2;
	transition: transform 0.2s;
}

.s-faq__item[open] .s-faq__question .icon {
	transform: rotate(180deg);
}

.s-faq__answer {
	margin-top: 16px;
	color: var(--c-text-2);
}

.s-faq__answer p + p {
	margin-top: 20px;
}

.bg-dark .s-faq__answer {
	color: inherit;
}
