/* FAQ — Figma: FAQ Section (46:1773), FAQ Item / Expand Icon components */
.faq {
	padding: var(--section-y-sm) 0 50px;
	background: var(--color-neutral-5);
	scroll-margin-top: 78px;
}

.faq__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(32px, 3.4vw, 49px);
}

.faq__title {
	text-align: center;
	color: var(--color-dark);
}

.faq__list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.faq-item {
	border: 1px solid var(--color-faq-border);
	border-radius: var(--radius-card);
	background: var(--color-neutral-5);
	transition: background-color var(--duration) var(--ease);
}

.faq-item.is-open {
	background: var(--color-light);
}

.faq-item__heading {
	font: inherit;
}

.faq-item__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 18px 18px 18px clamp(18px, 1.67vw, 24px);
	text-align: left;
	border-radius: var(--radius-card);
}

.faq-item__question {
	color: var(--color-dark);
}

/* Expand Icon: 41×41 tile with a 12×2 bar (+ vertical bar when closed) */
.faq-item__icon {
	position: relative;
	flex: none;
	width: 41px;
	height: 41px;
	border-radius: var(--radius-btn);
	background: var(--color-neutral-4);
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	background: var(--color-dark);
	transition: transform var(--duration) var(--ease);
}

.faq-item__icon::after {
	transform: rotate(90deg);
}

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

.faq-item__panel {
	padding: 0 18px 28px clamp(18px, 1.67vw, 24px);
	margin-top: -2px;
}

.faq-item__answer {
	max-width: 1100px;
	color: var(--color-neutral-1);
}

/* Answers from the FAQ post type can have several paragraphs */
.faq-item__answer > * + * {
	margin-top: 0.75em;
}

/* FAQ page — Figma: FAQ Section (113:4014 / 113:4131): one section per topic, title on the left */
.faq--topic .faq__title {
	text-align: left;
}

/* Last topic before the footer */
.faq--last {
	padding-bottom: var(--section-y);
}

/* Figma 113:4018: the answer uses the full item width */
.faq--topic .faq-item__answer {
	max-width: none;
}
