/**
 * IEMA FAQs block styles.
 *
 * Navy section with a white "FAQs" heading beside a white card of
 * expand/collapse items (native <details>/<summary>). Matches the Figma
 * design: card 840px, 16px radius, 1px dividers, navy questions, grey
 * answers, chevron that flips when open. Desktop is a two-column grid;
 * on mobile the heading stacks above a full-width card. Scoped entirely
 * under `.iema-faqs`.
 */

.iema-faqs {
	width: 100%;
	box-sizing: border-box;
	background-color: #002147;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

.iema-faqs__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 64px 80px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(200px, 1fr) minmax(0, 840px);
	gap: 40px;
	align-items: start;
}

.iema-faqs__heading {
	margin: 0;
	color: #ffffff;
	font-weight: 700;
	font-size: 56px;
	line-height: 61.6px;
}

/* Card -------------------------------------------------------------- */
.iema-faqs__card {
	background-color: #ffffff;
	border-radius: 16px;
	overflow: hidden;
}

/* Item (details) --------------------------------------------------- */
.iema-faqs__item {
	border-top: 1px solid #d3d3d3;
}

.iema-faqs__item:first-child {
	border-top: 0;
}

/* Question row (summary) */
.iema-faqs__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px;
	cursor: pointer;
	list-style: none;
	color: #002147;
	font-weight: 700;
	font-size: 24px;
	line-height: 26.4px;
}

/* Remove the native disclosure triangle. */
.iema-faqs__q::-webkit-details-marker {
	display: none;
}
.iema-faqs__q::marker {
	content: "";
}

.iema-faqs__q-text {
	min-width: 0;
}

.iema-faqs__chevron {
	flex: none;
	color: #002147;
	transition: transform 0.50s ease;
}

.iema-faqs__item[open] .iema-faqs__chevron {
	transform: rotate(180deg);
}

.iema-faqs__q:focus-visible {
	outline: 2px solid #002147;
	outline-offset: -2px;
}

/* Answer ----------------------------------------------------------- */
.iema-faqs__item[open] .iema-faqs__q {
	padding-bottom: 16px;
}

.iema-faqs__a {
	padding: 0 24px 24px;
	color: #707070;
	font-weight: 400;
	font-size: 16px;
	line-height: 22.4px;
}

.iema-faqs__a > :first-child {
	margin-top: 0;
}

.iema-faqs__a > :last-child {
	margin-bottom: 0;
}

.iema-faqs__a p {
	margin: 0 0 1em;
}

.iema-faqs__a a {
	color: #002147;
	text-decoration: underline;
}

/* Mobile ------------------------------------------------------------ */
@media (max-width: 900px) {
	.iema-faqs__inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 40px 24px;
	}

	.iema-faqs__heading {
		font-size: 32px;
		line-height: 35.2px;
	}

	.iema-faqs__q {
		font-size: 20px;
		line-height: 1.2;
	}
}

/* Light theme ------------------------------------------------------- */
/* A navy heading on a light-grey section with a bordered white card,
   used for lists such as "Capabilities". The card interior, dividers,
   navy questions, grey answers and chevron all match the navy theme —
   only the section background, heading colour and card border change. */
.iema-faqs--theme-light {
	background-color: #f6f6f6;
}

.iema-faqs--theme-light .iema-faqs__heading {
	color: #002147;
}

.iema-faqs--theme-light .iema-faqs__card {
	border: 1px solid #767676;
}

.iema-faqs--theme-light .iema-faqs__item {
	border-top-color: #d4d4d4;
}
