/* Free Schema Generator — frontend FAQ accordion. */

.fsg-faq {
	margin: 2.5em 0;
	padding: 0;
}

.fsg-faq h2 {
	margin: 0 0 1rem;
	font-size: 1.6em;
	line-height: 1.3;
}

.fsg-faq-item {
	margin: 0 0 0.75rem;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fsg-faq-item:hover {
	border-color: #b8b8bc;
}

.fsg-faq-item[open] {
	border-color: #5b4bc4;
	box-shadow: 0 2px 12px rgba(91, 75, 196, 0.12);
}

.fsg-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	margin: 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 1.05em;
	line-height: 1.4;
	color: #1d2327;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
}

.fsg-faq-question::-webkit-details-marker {
	display: none;
}

.fsg-faq-question::marker {
	content: "";
}

.fsg-faq-question::after {
	content: "";
	flex: 0 0 auto;
	width: 0.55em;
	height: 0.55em;
	border-right: 2px solid #5b4bc4;
	border-bottom: 2px solid #5b4bc4;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}

.fsg-faq-item[open] .fsg-faq-question::after {
	transform: rotate(225deg) translateY(-2px);
}

.fsg-faq-question:hover {
	color: #5b4bc4;
}

.fsg-faq-question:focus-visible {
	outline: 2px solid #5b4bc4;
	outline-offset: 2px;
}

.fsg-faq-answer {
	padding: 0 1.25rem 1.25rem;
	line-height: 1.65;
	color: #3c434a;
}

.fsg-faq-answer > *:first-child {
	margin-top: 0;
}

.fsg-faq-answer > *:last-child {
	margin-bottom: 0;
}

.fsg-faq-answer p {
	margin: 0 0 0.75em;
}

.fsg-faq-answer a {
	color: #5b4bc4;
}

@media (max-width: 600px) {
	.fsg-faq {
		margin: 2em 0;
	}

	.fsg-faq h2 {
		font-size: 1.35em;
	}

	.fsg-faq-question {
		padding: 0.85rem 1rem;
		font-size: 1em;
	}

	.fsg-faq-answer {
		padding: 0 1rem 1rem;
	}
}
