/*
 * FAQ.
 * Desktop: "Contact > FAQ": copy 400 | accordion 780, gap 60.
 */

.syb-faq__inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.syb-faq__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.syb-faq__copy .syb-head {
	gap: 14px;
	margin-bottom: 0;
}

.syb-faq__buttons {
	justify-content: flex-start;
}

.syb-faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.syb-faq__item {
	border: 1px solid var(--c-line);
	border-radius: var(--radius-md);
	background: var(--c-white);
	box-shadow: var(--shadow-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.syb-faq__item:has(.syb-faq__question[aria-expanded="true"]) {
	border-color: #cfe2ff;
	box-shadow: var(--shadow-md);
}

.syb-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 18px;
	border: 0;
	background: none;
	color: var(--c-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: left;
	cursor: pointer;
}

.syb-faq__toggle {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c-tile);
	color: var(--c-blue);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.syb-faq__toggle svg:last-child,
.syb-faq__question[aria-expanded="true"] .syb-faq__toggle svg:first-child {
	display: none;
}

.syb-faq__question[aria-expanded="true"] .syb-faq__toggle {
	background: var(--c-primary);
	color: var(--c-white);
}

.syb-faq__question[aria-expanded="true"] .syb-faq__toggle svg:last-child {
	display: block;
}

.syb-faq__answer {
	padding: 0 18px 18px;
}

.syb-faq__answer p {
	max-width: 640px;
	color: var(--c-body);
	font-size: 16px;
	line-height: 26px;
}

@media (min-width: 768px) {
	.syb-faq__question {
		padding: 20px 24px;
		font-size: 18px;
		line-height: 26px;
	}

	.syb-faq__answer {
		padding: 0 24px 20px;
	}

	/* The answer sits 12px under the question row, as in the design. */
	.syb-faq__question[aria-expanded="true"] {
		padding-bottom: 12px;
	}
}

@media (min-width: 1000px) {
	.syb-faq__inner {
		display: grid;
		grid-template-columns: minmax(0, 400fr) minmax(0, 780fr);
		align-items: start;
		gap: 60px;
	}
}
