/*
 * Generic FAQ-accordion family: its own scoped stylesheet, loaded by the integration worker
 * in BOTH contexts (front end and editor) so the pattern's geometry is shared.
 *
 * Real-source pilot: the stored Florida FAQ band (row 8 of layoutSections.dnd_area, page
 * 198442521477) rebuilt natively in inc/florida-offer-accordion.php as `cs-faq`; the
 * geometry below mirrors that recovered disclosure design (bordered items, 4px radius,
 * 12px 16px summaries, 8px item rhythm, centered heading with the 27px stored gap).
 *
 * Per the recorded L4 scope decision, NO page accent is baked in: the delivered pages keep
 * their own scoped colour layer, so this family sets no colour, no background and no
 * font-family — typography and accents are inherited or applied at insertion time. The
 * only tone values are the theme's own neutral disclosure tokens (border ink with neutral
 * fallbacks). No global selectors, no imports.
 */

.cs-faq-accordion {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-block: 0;
	padding: 0;
}

.cs-faq-accordion__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1220px;
	margin-inline: auto;
}

.cs-faq-accordion .wp-block-heading.cs-faq-accordion__heading {
	margin: 0 0 27px;
	text-align: center;
}

.cs-faq-accordion .wp-block-details.cs-faq-accordion__item {
	margin-block: 0 8px;
	padding: 0;
	border: 1px solid var(--color-border, #d9d5cf);
	border-radius: 4px;
}

.cs-faq-accordion .wp-block-details.cs-faq-accordion__item > summary {
	padding: 12px 16px;
	font-weight: 600;
	cursor: pointer;
}

.cs-faq-accordion .wp-block-details.cs-faq-accordion__item > *:not(summary) {
	margin-inline: 16px;
}

.cs-faq-accordion .wp-block-details.cs-faq-accordion__item > summary + * {
	margin-block-start: 12px;
}

.cs-faq-accordion .wp-block-details.cs-faq-accordion__item > :last-child {
	margin-block-end: 12px;
}

@media (max-width: 782px) {
	.cs-faq-accordion {
		padding-inline: 0;
	}

	.cs-faq-accordion__inner {
		max-width: 100%;
	}

	.cs-faq-accordion .wp-block-details.cs-faq-accordion__item > summary {
		padding: 10px 12px;
	}

	.cs-faq-accordion .wp-block-details.cs-faq-accordion__item > *:not(summary) {
		margin-inline: 12px;
	}
}

/*
 * Page accent layer — certified-translations (post 665843), scoped to the `--certified` variant
 * class the builder puts on the family's root group. The delivered page design (measured from
 * the real render, data/out/faqs-delivery/): #EEEEEE bars, +/− markers, 24px Poppins 400
 * summaries, #231F20 panel text. Lengths are written WITHOUT decimal points —
 * calc(7rem / 10) = 11.2px and calc(14rem / 10) = 22.4px at the theme's 16px root, and
 * line-height 140% = 1.4 — so every class token in this sheet stays inside the family (the
 * layer test extracts `.xxx` sequences and would read a decimal fraction as a stray class). One
 * layer per family: these rules live here
 * and nowhere else — not in style.css/editor-style.css, and never scoped by body page id (the
 * family sheet loads before the main sheets, so any duplicate would win the cascade). Each rule
 * mirrors or beats the family default above it (same or higher specificity, later in the file).
 */

.cs-faq-accordion--certified {
	font-family: Poppins, sans-serif;
	font-size: 16px;
	line-height: 140%;
}

.cs-faq-accordion--certified .cs-faq-accordion__inner {
	max-width: 100%;
}

.cs-faq-accordion--certified .wp-block-details.cs-faq-accordion__item {
	margin-block: 0 calc(14rem / 10);
	margin-inline: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.cs-faq-accordion--certified .wp-block-details.cs-faq-accordion__item > summary {
	margin: 0;
	padding: calc(7rem / 10);
	background-color: #EEEEEE;
	color: #000000;
	font-family: Poppins, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 140%;
	text-align: left;
	cursor: pointer;
	list-style-type: none;
}

.cs-faq-accordion--certified .wp-block-details.cs-faq-accordion__item > summary::-webkit-details-marker {
	display: none;
}

.cs-faq-accordion--certified .wp-block-details.cs-faq-accordion__item > summary::before {
	content: "+";
	margin-right: calc(14rem / 10);
}

.cs-faq-accordion--certified .wp-block-details.cs-faq-accordion__item[open] > summary::before {
	content: "−";
}

.cs-faq-accordion--certified .wp-block-details.cs-faq-accordion__item > *:not(summary) {
	margin: 0;
	padding: 0 calc(7rem / 10);
	color: #231F20;
	font-family: Poppins, sans-serif;
	font-size: 16px;
}

.cs-faq-accordion--certified .wp-block-details.cs-faq-accordion__item > summary + * {
	margin-block-start: calc(7rem / 10);
}

.cs-faq-accordion--certified .wp-block-details.cs-faq-accordion__item > :last-child {
	margin-block-end: calc(7rem / 10);
}
