/* Zen Aura — "Good to know" section: a core group with a heading and core Details blocks.
   Edit the questions like ordinary text; add one with the Details block. ZA-MARKER: faq-styles */

.za-faq {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--100);
}

.za-faq > * ,
.za-faq .za-faq__grid > *,
.za-faq .za-faq__head > * {
	margin-block: 0;
}

.za-faq .za-faq__grid {
	display: grid;
	gap: var(--wp--preset--spacing--70);
}

.za-faq .za-faq__head h2 {
	color: var(--wp--preset--color--brand);
}

/* the gold lotus under the heading */
.za-faq .za-faq__head::after {
	content: "";
	display: none;
	width: 6rem;
	aspect-ratio: 200 / 150;
	margin-top: var(--wp--preset--spacing--50);
	background: var(--wp--custom--decor--lotus-gold) center / contain no-repeat;
	opacity: 0.8;
}

.za-faq .za-faq__list > * {
	margin-block: 0;
}

.za-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--custom--line--soft);
}

.za-faq .wp-block-details:first-child {
	border-top: 1px solid var(--wp--custom--line--soft);
}

.za-faq .wp-block-details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--50);
	padding-block: var(--wp--preset--spacing--50);
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	line-height: var(--wp--custom--leading--heading);
	color: var(--wp--preset--color--brand);
}

.za-faq .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.za-faq .wp-block-details > summary:focus-visible {
	outline-offset: 4px;
}

/* round "+" that turns into "x" when open */
.za-faq .wp-block-details > summary::after {
	content: "";
	flex: none;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--wp--custom--radius--pebble);
	border: 1px solid var(--wp--preset--color--accent);
	background:
		linear-gradient(var(--wp--preset--color--brand), var(--wp--preset--color--brand)) center / 0.8rem 1.5px no-repeat,
		linear-gradient(var(--wp--preset--color--brand), var(--wp--preset--color--brand)) center / 1.5px 0.8rem no-repeat;
	transition: transform var(--wp--custom--duration--calm) var(--wp--custom--ease--gentle), background-color var(--wp--custom--duration--calm) var(--wp--custom--ease--gentle);
}

.za-faq .wp-block-details[open] > summary::after {
	transform: rotate(45deg);
	background-color: var(--wp--preset--color--glow);
}

.za-faq .wp-block-details > :not(summary) {
	margin: 0;
	padding-bottom: var(--wp--preset--spacing--60);
	max-width: 60ch;
	color: var(--wp--preset--color--soft);
}

.za-faq .wp-block-details a {
	color: var(--wp--preset--color--brand);
	text-decoration-color: var(--wp--preset--color--accent);
}

@media (prefers-reduced-motion: no-preference) {
	.za-faq .wp-block-details[open] > :not(summary) {
		animation: za-rise var(--wp--custom--duration--calm) var(--wp--custom--ease--gentle);
	}
}

@media (min-width: 56rem) {
	.za-faq .za-faq__grid {
		grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
		column-gap: var(--wp--preset--spacing--90);
	}

	.za-faq .za-faq__head::after {
		display: block;
	}
}
