/**
 * "FAQ" block styles.
 *
 * Font sizes come from this block's ACF fields, passed in as CSS custom
 * properties on the block wrapper's inline style (see faq.php) — the
 * mobile value is the default and the min-width:768px query below swaps
 * each one over to its desktop value, matching the mobile-first
 * min-width breakpoint pattern used elsewhere in this theme.
 */
.spz-faq {
	--spz-faq-border: rgba(255, 255, 255, 0.12);
	--spz-faq-bg: rgba(255, 255, 255, 0.04);
	--spz-faq-bg-open: rgba(255, 255, 255, 0.07);

	margin: 2rem auto;
	color: var(--color-text, #ffffff);
	font-family: var(--font-family, inherit);
}

.spz-faq__heading {
	font-size: var(--spz-faq-heading-fs-m, 24px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 1.25rem;
}

.spz-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.spz-faq__item {
	background: var(--spz-faq-bg);
	border: 1px solid var(--spz-faq-border);
	border-radius: 0.75rem;
	overflow: hidden;
	transition: background-color 0.2s ease;
}

.spz-faq__item[open] {
	background: var(--spz-faq-bg-open);
}

/* Remove the default marker so we can draw our own animated chevron. */
.spz-faq__question {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	font-size: var(--spz-faq-question-fs-m, 16px);
	font-weight: 600;
	line-height: 1.4;
}

.spz-faq__question::-webkit-details-marker {
	display: none;
}

/* The question is rendered as a heading tag (h2–h6, editor-selectable) for
   proper document outline/SEO — reset it so it just inherits the summary's
   own font size/weight/line-height instead of the browser's heading
   defaults. */
.spz-faq__question-text {
	margin: 0;
	font: inherit;
	color: inherit;
}

.spz-faq__question:focus-visible {
	outline: 2px solid #00a3ff;
	outline-offset: -2px;
}

.spz-faq__icon {
	flex: 0 0 auto;
	width: 0.625rem;
	height: 0.625rem;
	border-right: 2px solid var(--color-text, #ffffff);
	border-bottom: 2px solid var(--color-text, #ffffff);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.spz-faq__item[open] .spz-faq__icon {
	transform: rotate(-135deg);
}

.spz-faq__answer {
	padding: 0 1.25rem 1.125rem;
	font-size: var(--spz-faq-answer-fs-m, 14px);
	line-height: 1.6;
	opacity: 0.9;
}

.spz-faq__answer > *:first-child {
	margin-top: 0;
}

.spz-faq__answer > *:last-child {
	margin-bottom: 0;
}

.spz-faq-block-placeholder {
	margin: 0;
	padding: 12px;
	border: 1px dashed #757575;
	border-radius: 2px;
	background: #f6f7f7;
	color: #1e1e1e;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
}

@media (min-width: 768px) {
	.spz-faq__heading {
		font-size: var(--spz-faq-heading-fs-d, 32px);
	}

	.spz-faq__question {
		font-size: var(--spz-faq-question-fs-d, 18px);
	}

	.spz-faq__answer {
		font-size: var(--spz-faq-answer-fs-d, 16px);
	}
}
