/* Publysh — frontend FAQ accordion styles (theme-neutral)
   Loaded via wp_enqueue_scripts on every front-end page where post content
   may include a `.pb-faq` block. Aggressive button resets so themes that
   style all <button> elements as primary CTAs (GeneratePress, Astra, etc.)
   don't leak their colors into the FAQ. */

.pb-faq { margin: 48px 0; }

/* Use the theme's default H2 styling — don't override font-size/weight. */
.pb-faq h2 { margin: 0 0 4px; }

/* Each item is a row with a top divider; the last has a bottom one too. */
.pb-faq-item {
	border-top: 1px solid #e5e5e5;
}
.pb-faq-item:last-child {
	border-bottom: 1px solid #e5e5e5;
}

/* ── Question button — fully reset, then re-style to look like a row ── */
.pb-faq button.pb-faq-q,
.pb-faq .pb-faq-q {
	display: flex !important;
	width: 100% !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	padding: 18px 0 !important;
	margin: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer !important;
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font: inherit !important;
	font-weight: 600 !important;
	color: inherit !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	-webkit-appearance: none !important;
	   -moz-appearance: none !important;
	        appearance: none !important;
	transition: opacity .15s ease !important;
}
.pb-faq button.pb-faq-q:hover,
.pb-faq button.pb-faq-q:focus,
.pb-faq button.pb-faq-q:active,
.pb-faq button.pb-faq-q:focus-visible,
.pb-faq .pb-faq-q:hover,
.pb-faq .pb-faq-q:focus,
.pb-faq .pb-faq-q:active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	text-decoration: none !important;
	transform: none !important;
	opacity: .75;
}
.pb-faq button.pb-faq-q:focus-visible {
	outline: 2px solid currentColor !important;
	outline-offset: 4px !important;
	opacity: 1;
}

/* Right-aligned chevron — currentColor so it follows the theme's text color. */
.pb-faq-chev {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	opacity: .5;
	transition: transform .25s ease, opacity .2s ease;
}
.pb-faq-q:hover .pb-faq-chev { opacity: 1; }
.pb-faq-item.is-open .pb-faq-chev {
	transform: rotate(180deg);
	opacity: 1;
}
.pb-faq-chev svg {
	width: 100%;
	height: 100%;
	stroke: currentColor !important;
	fill: none !important;
}

.pb-faq-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease;
}
.pb-faq-item.is-open .pb-faq-a {
	max-height: 1500px;
}

.pb-faq-a-inner {
	padding: 0 0 22px;
	color: inherit;
	line-height: 1.7;
}
.pb-faq-a-inner p:first-child { margin-top: 0; }
.pb-faq-a-inner p:last-child  { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.pb-faq-chev, .pb-faq-a, .pb-faq-q { transition: none !important; }
}
