/*
 * d35/faq: WordPress/accessibility fixes (expected differences, tools/qa/regression-a2.txt).
 */

/* The toggle is a real <button> here (live: a div). Reset the browser's button look so the design CSS applies as on live. */
.faq-section button.accordion-toggle {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
	font: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-align: left;
}

/* Live has divs inside the toggle; a button may only hold phrasing content, so they are spans shown as blocks. */
.faq-section .accordion-toggle > .base-p,
.faq-section .accordion-toggle > .accordion-icon {
	display: block;
}

/* Focus visible (WCAG 2.4.7): Webflow's .w-dropdown-toggle:focus { outline: 0 } would hide it. */
.faq-section .accordion-toggle:focus-visible {
	outline: 3px solid var(--wp--preset--color--focus);
	outline-offset: -3px;
	box-shadow: inset 0 0 0 5px var(--wp--preset--color--title);
}

/* Items beyond the five live ones have no Webflow interaction (no data-w-id): open without animation. */
.faq-section .accordion-content.w--open:not([style*="height"]) {
	height: auto;
}

/* Editor preview: question and answer visible while editing. */
.d35-faq-item-preview {
	background-color: var(--_colors---tokens--neutrals--0-white);
	padding: 20px;
}
