/* THT Fixture Schema — front-end Match FAQ block.
 *
 * Loaded on single round-up posts that have complete fixture metadata.
 * Also used inside the admin live-preview pane so editors see the exact
 * render. Scoped to .tht-match-faq to avoid leaking styles into JNews.
 */

.tht-match-faq {
	margin: 32px 0;
	padding: 24px;
	background: #f7f7f8;
	border: 1px solid #e7e7ea;
	border-radius: 6px;
	font-family: inherit;
}

.tht-match-faq__title {
	margin: 0 0 16px 0;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

.tht-match-faq__list {
	display: flex;
	flex-direction: column;
}

.tht-match-faq__item {
	border-bottom: 1px solid #e5e5e7;
	padding: 14px 0;
}

.tht-match-faq__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.tht-match-faq__item:first-child {
	padding-top: 0;
}

.tht-match-faq__q {
	cursor: pointer;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.4;
	color: #1a1a1a;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-right: 4px;
}

.tht-match-faq__q::-webkit-details-marker {
	display: none;
}

.tht-match-faq__q:hover .tht-match-faq__q-text {
	color: #1f7a34;
}

.tht-match-faq__q-text {
	flex: 1;
}

.tht-match-faq__chevron {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	position: relative;
	transition: transform 0.2s ease;
}

.tht-match-faq__chevron::before,
.tht-match-faq__chevron::after {
	content: "";
	position: absolute;
	background: currentColor;
	top: 50%;
	left: 50%;
	border-radius: 1px;
}

.tht-match-faq__chevron::before {
	width: 14px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.tht-match-faq__chevron::after {
	width: 2px;
	height: 14px;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

.tht-match-faq__item[open] .tht-match-faq__chevron::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.tht-match-faq__a {
	padding: 12px 0 4px 0;
	color: #3a3a3a;
	font-size: 15px;
	line-height: 1.65;
}

.tht-match-faq__a p {
	margin: 0;
}

/* Dark-mode friendly if JNews child theme opts in. */
@media (prefers-color-scheme: dark) {
	.tht-match-faq {
		background: #1b1d21;
		border-color: #2a2d33;
	}
	.tht-match-faq__title,
	.tht-match-faq__q {
		color: #f1f2f4;
	}
	.tht-match-faq__item {
		border-bottom-color: #2a2d33;
	}
	.tht-match-faq__a {
		color: #c8ccd2;
	}
}
