/* Lapapoe FAQ — extends the lfp-* design tokens defined in lapapoe-figma.css */

.lfp-page--faq .lfp-hero {
	padding: 56px 0 48px;
}

/* The shared hero is a two-column grid built around a photo. This page has no
   hero photo, so collapse it to a single full-width column. */
.lfaq-hero .lfp-container {
	grid-template-columns: 1fr;
}

.lfaq-hero .lfp-hero-text {
	max-width: 760px;
}

.lfaq-hero .lfp-subtext {
	max-width: 620px;
}

/* Jump links --------------------------------------------------------------- */

.lfaq-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 8px;
}

.lfaq-jump-link {
	display: inline-flex;
	align-items: center;
	padding: 9px 20px;
	border-radius: var(--lp-radius-pill);
	background: var(--lp-badge-tint);
	color: var(--lp-purple);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.lfaq-jump-link:hover,
.lfaq-jump-link:focus-visible {
	background: var(--lp-white);
	border-color: var(--lp-purple);
	color: var(--lp-purple);
}

/* Sections ----------------------------------------------------------------- */

.lfaq-section {
	scroll-margin-top: 24px;
}

.lfaq-section-head {
	margin-bottom: 28px;
}

/* Accordion ---------------------------------------------------------------- */

.lfaq-accordion {
	max-width: 860px;
}

.lfaq-item {
	background: var(--lp-white);
	border: 1px solid #EDE4ED;
	border-radius: var(--lp-radius-md);
	margin-bottom: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lfp-section--white .lfaq-item {
	background: var(--lp-tint-bg);
	border-color: #E7DCE7;
}

.lfaq-item:hover {
	border-color: #D9C3D9;
}

.lfaq-item.is-open {
	border-color: var(--lp-purple);
	box-shadow: 0 6px 20px rgba(102, 0, 102, 0.07);
}

.lfaq-question {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

.lfaq-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: var(--lp-font);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--lp-text-dark);
}

.lfaq-trigger:hover .lfaq-trigger-text,
.lfaq-item.is-open .lfaq-trigger-text {
	color: var(--lp-purple);
}

.lfaq-trigger:focus-visible {
	outline: 3px solid var(--lp-purple);
	outline-offset: -3px;
	border-radius: var(--lp-radius-md);
}

.lfaq-chevron {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--lp-badge-tint);
	color: var(--lp-purple);
	transition: transform 0.3s ease, background 0.2s ease;
}

.lfaq-item.is-open .lfaq-chevron {
	transform: rotate(180deg);
	background: var(--lp-purple);
	color: var(--lp-white);
}

/* Panels render open and are collapsed by faq.js, so the answers are still
   readable if JavaScript never runs. The .lfaq-js class is set synchronously in
   the document head, so there is no flash of expanded content. */
.lfaq-panel {
	overflow: hidden;
	transition: height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.lfaq-js .lfaq-panel {
	height: 0;
}

.lfaq-panel[hidden] {
	display: none;
}

.lfaq-answer {
	padding: 0 22px 22px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--lp-text-body);
}

.lfaq-answer > *:first-child {
	margin-top: 0;
}

.lfaq-answer > *:last-child {
	margin-bottom: 0;
}

.lfaq-answer p {
	margin: 0 0 12px;
}

.lfaq-answer ul,
.lfaq-answer ol {
	margin: 0 0 12px;
	padding-left: 22px;
}

.lfaq-answer li {
	margin-bottom: 6px;
}

.lfaq-answer strong {
	color: var(--lp-text-dark);
}

.lfaq-answer a {
	color: var(--lp-purple);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Childcare Centers section ------------------------------------------------
   Mirrors the green scheme the For Childcare Centers page uses, so the two
   pages read as the same part of the site. */

#faq-centers {
	background: var(--lp-green-tint);
}

#faq-centers .lfp-h2 {
	color: var(--lp-green);
}

#faq-centers .lfaq-item {
	background: var(--lp-white);
	border-color: #E2E8C4;
}

#faq-centers .lfaq-item:hover {
	border-color: #C7D18C;
}

#faq-centers .lfaq-item.is-open {
	border-color: var(--lp-green);
	box-shadow: 0 6px 20px rgba(122, 140, 0, 0.1);
}

#faq-centers .lfaq-trigger:hover .lfaq-trigger-text,
#faq-centers .lfaq-item.is-open .lfaq-trigger-text {
	color: var(--lp-green);
}

#faq-centers .lfaq-trigger:focus-visible {
	outline-color: var(--lp-green);
}

#faq-centers .lfaq-chevron {
	background: var(--lp-green-tint);
	color: var(--lp-green);
}

#faq-centers .lfaq-item.is-open .lfaq-chevron {
	background: var(--lp-green);
	color: var(--lp-white);
}

#faq-centers .lfaq-answer a {
	color: var(--lp-green);
}

/* The matching jump link picks up the same accent. */
.lfaq-jump-link[href$="#faq-centers"] {
	background: var(--lp-green-tint);
	color: var(--lp-green);
}

.lfaq-jump-link[href$="#faq-centers"]:hover,
.lfaq-jump-link[href$="#faq-centers"]:focus-visible {
	border-color: var(--lp-green);
	color: var(--lp-green);
}

/* Closing CTA -------------------------------------------------------------- */

.lfaq-cta {
	background: var(--lp-badge-tint);
}

.lfaq-cta-row {
	justify-content: center;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 900px) {
	.lfp-page--faq .lfp-hero {
		padding: 40px 0 32px;
	}

	.lfaq-accordion {
		max-width: none;
	}
}

@media (max-width: 560px) {
	.lfaq-trigger {
		padding: 16px 16px;
		font-size: 16px;
		gap: 12px;
	}

	.lfaq-chevron {
		flex-basis: 28px;
		width: 28px;
		height: 28px;
	}

	.lfaq-answer {
		padding: 0 16px 18px;
		font-size: 15px;
	}

	.lfaq-jump {
		gap: 8px;
	}

	.lfaq-jump-link {
		font-size: 14px;
		padding: 8px 16px;
	}
}

/* Respect reduced-motion and keep everything usable without animation. */
@media (prefers-reduced-motion: reduce) {
	.lfaq-panel,
	.lfaq-chevron,
	.lfaq-item {
		transition: none !important;
	}
}

/* Printing / no-JS: never let an answer be unreachable. */
.no-js .lfaq-panel,
.lfaq-panel.is-static {
	height: auto !important;
}
