/* ==========================================================================
   Home — FAQ: The Answer Margin
   Scoped to .el-faq. Behaviour: assets/js/sections/home-faq.js
   Native <details>: works fully without JavaScript.
   ========================================================================== */

.el-faq {
	max-width: var(--el-wide, 1240px);
	margin: 0 auto;
	padding: var(--wp--preset--spacing--60, 5rem) var(--el-gutter, 1.25rem);
	box-sizing: content-box;
	color: var(--el-ink, #070816);
}

.el-faq p,
.el-faq h2 {
	margin: 0;
}

/* ---------- Header ---------- */

.el-faq__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2.5rem;
}

.el-faq__eyebrow {
	margin-bottom: 1rem !important;
	color: var(--el-muted, #555a6b);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.el-faq__title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.04em;
}

/* Same brand gradient as the Index numbers */
.el-faq__grad {
	color: var(--el-blue, #003dfa);
	background-image: linear-gradient(100deg, #003dfa 15%, #fb484c 90%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.el-faq__more {
	flex: none;
	color: var(--el-ink, #070816);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.el-faq__more:hover {
	color: var(--el-blue, #003dfa);
}

.el-faq a:focus-visible {
	outline: 2px solid var(--el-blue, #003dfa);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- Questions ---------- */

.el-faq__list {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	border-top: 1px solid var(--el-ink, #070816);
}

.el-faq__item {
	border-bottom: 1px solid var(--el-line, #e6e8ed);
}

.el-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.875rem 0;
	list-style: none;
	cursor: pointer;
	border-radius: 6px;
}

.el-faq__q::-webkit-details-marker,
.el-faq__q::marker {
	display: none;
	content: "";
}

.el-faq__q:focus-visible {
	outline: 2px solid var(--el-blue, #003dfa);
	outline-offset: 4px;
}

.el-faq__qtext {
	min-width: 0;
	font-size: clamp(1.25rem, 2.1vw, 1.75rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.el-faq__icon {
	flex: none;
	width: 28px;
	height: 28px;
}

.el-faq__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.el-faq__icon circle {
	fill: #fff;
	stroke: var(--el-ink, #070816);
	stroke-width: 1.5;
	transition: fill 0.22s ease;
}

.el-faq__icon line {
	stroke: var(--el-ink, #070816);
	stroke-width: 1.75;
	stroke-linecap: round;
	transition: stroke 0.22s ease, transform 0.22s ease;
}

.el-faq__v {
	transform-box: fill-box;
	transform-origin: center;
}

/* Expanded state: filled ink circle with a minus */
.el-faq__item[open]:not(.is-closing) .el-faq__icon circle {
	fill: var(--el-ink, #070816);
}

.el-faq__item[open]:not(.is-closing) .el-faq__icon line {
	stroke: #fff;
}

.el-faq__item[open]:not(.is-closing) .el-faq__v {
	transform: scaleY(0);
}

/* ---------- Answer: a margin note ---------- */

.el-faq__panel {
	overflow: hidden;
}

.el-faq__answer {
	position: relative;
	min-height: 3.5rem;
	margin-left: 33.333%;
	padding: 0.25rem 0 2.25rem 6.5rem;
}

/* The mark sits in the margin and never adds height to the answer */
.el-faq__mark {
	position: absolute;
	left: 0;
	top: 0.25rem;
	height: 0.4em;
	color: var(--el-blue, #003dfa);
	font-size: 8.5rem;
	font-weight: 800;
	line-height: 0.72;
	letter-spacing: -0.04em;
	user-select: none;
}

.el-faq__answer p {
	max-width: 36rem;
	color: #3d4150;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.55;
}

.el-faq__answer a {
	color: var(--el-ink, #070816);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
	overflow-wrap: anywhere;
}

.el-faq__answer a:hover {
	color: var(--el-blue, #003dfa);
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
	.el-faq__head {
		display: block;
	}

	.el-faq__more {
		display: inline-block;
		margin-top: 1.125rem;
	}

	.el-faq__q {
		padding: 1.375rem 0;
		gap: 1rem;
	}

	.el-faq__icon {
		width: 22px;
		height: 22px;
	}

	.el-faq__answer {
		min-height: 1.75rem;
		margin-left: 0;
		padding: 0.125rem 0 1.625rem 2.75rem;
	}

	.el-faq__mark {
		top: 0.125rem;
	}

	.el-faq__mark {
		font-size: 4rem;
		line-height: 0.74;
	}

	.el-faq__answer p {
		font-size: 1.0625rem;
	}
}

/* ---------- Reduced motion: instant ---------- */

@media (prefers-reduced-motion: reduce) {
	.el-faq__icon circle,
	.el-faq__icon line {
		transition: none;
	}
}
