/* Portable FAQ accordion. Site styles can override these custom properties. */
.tc-faq-accordion {
	display: grid;
	width: 100%;
	gap: 0;
	--tc-faq-ink: var(--contrast, #231f20);
	--tc-faq-accent: var(--tc-blue, #39bced);
}

.tc-faq-item,
.tc-faq-item:first-child {
	border: 0;
}

.tc-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	cursor: pointer;
	list-style: none;
}

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

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

.tc-faq-question-title {
	flex: 1;
	margin: 0;
	color: var(--tc-faq-ink);
	font-size: 22px;
	line-height: 1.4;
}

.tc-faq-icon {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	color: var(--tc-faq-accent);
}

.tc-faq-icon::before,
.tc-faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 15px;
	height: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

.tc-faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.tc-faq-item[open] .tc-faq-icon::after {
	transform: translate(-50%, -50%) rotate(0);
}

.tc-faq-answer {
	padding: 2px 40px 16px 0;
}

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

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

.tc-faq-question:focus-visible {
	outline: 2px solid var(--tc-faq-accent);
	outline-offset: 4px;
}

@media (max-width: 768px) {
	.tc-faq-question {
		gap: 12px;
		padding: 9px 0;
	}

	.tc-faq-question-title {
		font-size: 20px;
	}

	.tc-faq-answer {
		padding: 2px 0 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tc-faq-icon::before,
	.tc-faq-icon::after {
		transition: none;
	}
}

