/* LMG Post FAQs — theme-neutral accordion styling. */

.lmg-faqs {
	margin: 2.5rem 0;
}

.lmg-faqs__title {
	margin: 0 0 1rem;
}

.lmg-faqs__list {
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.lmg-faq {
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* Reset the heading wrapper so it inherits body type; the button carries the styling. */
.lmg-faq__heading {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
}

.lmg-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 1rem 0.25rem;
	background: none;
	border: 0;
	font: inherit;
	font-size: 1.125em;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	color: inherit;
	cursor: pointer;
}

/* Keep answer copy at the normal body size, a touch smaller than the question. */
.lmg-faq__a-inner {
	font-size: 1rem;
}

.lmg-faq__q:hover .lmg-faq__q-text {
	text-decoration: underline;
}

.lmg-faq__q:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Plus / minus indicator built from two bars. */
.lmg-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
}

.lmg-faq__icon::before,
.lmg-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.85rem;
	height: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 200ms ease;
}

.lmg-faq__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

/* Open state: the vertical bar rotates flat, leaving a "minus". */
.lmg-faq.is-open .lmg-faq__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

/* Panel height is animated in JS (Web Animations API) for smoothness. */
.lmg-faq__a {
	overflow: hidden;
}

.lmg-faq__a[hidden] {
	display: none;
}

.lmg-faq__a-inner {
	padding-bottom: 1.25rem;
}

.lmg-faq__a-inner > :first-child {
	margin-top: 0;
}

.lmg-faq__a-inner > :last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.lmg-faq__a,
	.lmg-faq__icon::before,
	.lmg-faq__icon::after {
		transition: none;
	}
}
