/**
 * FAQs page — Figma 1695:570493
 */
.dfq-page {
	--dfq-bg: #f9f7f5;
	--dfq-surface: #ffffff;
	--dfq-text: #323c48;
	--dfq-border: #323c48;
	--dfq-accent: #4779b9;
	--dfq-muted: rgba(50, 60, 72, 0.72);
	--dfq-max: 160rem;
	--dfq-pad: clamp(1.6rem, 3.5vw, 6rem);
	background: var(--dfq-bg);
}

.dfq-page.secondary {
	background: var(--dfq-bg);
}

.dfq-section {
	padding: clamp(4rem, 7vw, 10rem) 0 clamp(6rem, 8vw, 10rem);
}

.dfq-inner {
	width: 100%;
	max-width: var(--dfq-max);
	margin: 0 auto;
	padding: 0 var(--dfq-pad);
	box-sizing: border-box;
}

.dfq-title {
	margin: 0 0 clamp(3rem, 4vw, 5rem);
	font-family: var(--delco-font-display);
	font-size: clamp(4.4rem, 4.8vw, 6.24rem);
	font-weight: 500;
	line-height: 1.05;
	color: var(--dfq-text);
	text-align: center;
	text-transform: none;
}

/* ── Category pills ─────────────────────────────────────────────────────────── */
.dfq-tabs {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: clamp(0.8rem, 1.2vw, 1.8rem);
	margin: 0 0 clamp(2rem, 2.3vw, 2.3rem);
	width: 100%;
}

.dfq-tabs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
	max-width: 18rem;
	min-height: 5rem;
	padding: 1.2rem 1.4rem;
	border-radius: 5rem;
	border: 0.3rem solid var(--dfq-border);
	background: var(--dfq-surface);
	color: var(--dfq-border);
	font-family: var(--delco-font-title);
	font-size: clamp(1.05rem, 0.85vw, 1.35rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.16rem;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dfq-tabs__btn:hover {
	border-color: var(--dfq-accent);
}

.dfq-tabs__btn.is-active {
	background: var(--dfq-border);
	border: 1px solid var(--dfq-accent);
	color: var(--dfq-bg);
}

.dfq-tabs__btn:focus-visible {
	outline: 2px solid var(--dfq-accent);
	outline-offset: 3px;
}

/* ── Panels ─────────────────────────────────────────────────────────────────── */
.dfq-panel[hidden] {
	display: none !important;
}

.dfq-panel__card {
	background: var(--dfq-surface);
	border-radius: 2rem;
	padding: clamp(3rem, 4vw, 5.5rem);
}

/* Paired rows — same layout + sync behaviour as landing Popular FAQs */
.dfq-panel__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 6rem;
	row-gap: 4rem;
	align-items: stretch;
	width: 100%;
}

.dfq-panel__col {
	display: none;
}

/* Accordion — match landing .hf-faq type scale (home-figma.css) */
.dfq-panel .hf-faq {
	border-bottom: 1px solid rgba(50, 60, 72, 0.18);
	padding-bottom: 2.4rem;
	min-width: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.dfq-panel__grid > .hf-faq:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	height: auto;
	max-width: none;
}

.dfq-panel .hf-faq__q {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	font-family: var(--delco-font-title);
	font-size: 1.71rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--dfq-text);
	cursor: pointer;
	list-style: none;
}

.dfq-panel .hf-faq__q > span:first-child {
	flex: 1 1 auto;
	min-width: 0;
	line-height: inherit;
}

.dfq-panel .hf-faq__q::-webkit-details-marker {
	display: none;
}

.dfq-panel .hf-faq__icon {
	flex: 0 0 auto;
	width: 2.4rem;
	height: 2.4rem;
	margin-top: 0;
	position: relative;
}

.dfq-panel .hf-faq__icon::before,
.dfq-panel .hf-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--dfq-text);
	border-radius: 1px;
	transform: translate(-50%, -50%);
}

.dfq-panel .hf-faq__icon::before {
	width: 2.4rem;
	height: 2px;
}

.dfq-panel .hf-faq__icon::after {
	width: 2px;
	height: 2.4rem;
	opacity: 1;
	transition: opacity 0.25s ease;
}

.dfq-panel .hf-faq[open] .hf-faq__icon::after {
	opacity: 0;
}

.dfq-panel .hf-faq__a {
	overflow: hidden;
	margin-top: 0;
	will-change: height, opacity;
}

.dfq-panel .hf-faq[open]:not(.is-animating) .hf-faq__a {
	margin-top: 1.44rem;
}

.dfq-panel .hf-faq__a-inner {
	font-family: var(--delco-font-body);
	font-size: var(--delco-type-body, 1.6rem);
	line-height: 1.6;
	letter-spacing: 0;
	color: var(--dfq-text);
}

.dfq-panel .hf-faq__a-inner p {
	margin: 0 0 1em;
}

.dfq-panel .hf-faq__a-inner p:last-child {
	margin-bottom: 0;
}

/* Override legacy .content h2 (blue / weight 900) and broken list indent */
.dfq-panel .hf-faq__a-inner.content :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .title) {
	font-family: var(--delco-font-body) !important;
	font-size: var(--delco-type-body, 1.6rem) !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	color: var(--dfq-text) !important;
	margin: 1.8rem 0 0.85rem !important;
	display: block;
	position: static;
	text-transform: none;
}

.dfq-panel .hf-faq__a-inner.content :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .title):first-child {
	margin-top: 0 !important;
}

.dfq-panel .hf-faq__a-inner.content :is(ul, ol) {
	margin: 0.85rem 0 1.4rem !important;
	padding-left: 0 !important;
	list-style: none !important;
}

.dfq-panel .hf-faq__a-inner.content :is(ul, ol) li {
	position: relative !important;
	display: block !important;
	margin: 0 0 0.75rem !important;
	padding-left: 1.35em !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	color: var(--dfq-text) !important;
	list-style: none !important;
}

.dfq-panel .hf-faq__a-inner.content ul li::before {
	content: "" !important;
	display: block !important;
	position: absolute;
	left: 0.15em;
	top: 0.55em;
	width: 0.45em;
	height: 0.45em;
	border: none !important;
	border-radius: 50%;
	background: currentColor;
	transform: none !important;
	opacity: 0.75;
}

.dfq-panel .hf-faq__a-inner.content ol {
	counter-reset: dfq-ol;
}

.dfq-panel .hf-faq__a-inner.content ol li {
	counter-increment: dfq-ol;
}

.dfq-panel .hf-faq__a-inner.content ol li::before {
	content: counter(dfq-ol) "." !important;
	display: block !important;
	position: absolute;
	left: 0;
	top: 0;
	width: 1.2em;
	height: auto;
	border: none !important;
	background: none;
	transform: none !important;
	font-weight: 500;
	font-size: 0.95em;
	line-height: inherit;
	color: inherit;
	opacity: 0.85;
}

.dfq-panel .hf-faq__a-inner.content strong,
.dfq-panel .hf-faq__a-inner.content b {
	font-weight: 600;
	color: var(--dfq-text);
}

.dfq-panel .hf-faq__a-inner.content a {
	color: var(--dfq-accent);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* ── CTA spacing on FAQs page ───────────────────────────────────────────────── */
.dfq-page .hf-cta {
	background: var(--dfq-bg);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.dfq-section {
		padding: 3.2rem 0 4.8rem;
	}

	.dfq-title {
		font-size: clamp(2.8rem, 7.5vw, 3.6rem);
		line-height: 1.15;
		margin-bottom: 2rem;
	}

	.dfq-tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		gap: 0.8rem;
		margin-bottom: 1.6rem;
		padding-bottom: 0.4rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.dfq-tabs::-webkit-scrollbar {
		display: none;
	}

	.dfq-tabs__btn {
		flex: 0 0 auto;
		min-width: auto;
		width: auto;
		min-height: 4rem;
		padding: 0.9rem 1.6rem;
		border-width: 0.2rem;
		border-radius: 4rem;
		font-size: 1.1rem;
		letter-spacing: 0.12rem;
		white-space: nowrap;
	}

	.dfq-panel__grid {
		display: flex;
		flex-direction: column;
		gap: 0;
		align-items: stretch;
	}

	.dfq-panel__card {
		padding: 2rem 1.8rem;
		border-radius: 1.2rem;
	}

	.dfq-panel .hf-faq {
		order: var(--faq-i, 0);
		height: auto;
		display: block;
		padding: 1.8rem 0;
		border-bottom: 1px solid rgba(50, 60, 72, 0.18);
	}

	.dfq-panel .hf-faq:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}

	.dfq-panel .hf-faq__q {
		align-items: center;
		gap: 1.6rem;
		font-size: 1.6rem;
		font-weight: 600;
		line-height: 1.45;
	}

	.dfq-panel .hf-faq__icon {
		width: 2rem;
		height: 2rem;
		margin-top: 0.1rem;
	}

	.dfq-panel .hf-faq__icon::before {
		width: 1.8rem;
	}

	.dfq-panel .hf-faq__icon::after {
		height: 1.8rem;
	}

	.dfq-panel .hf-faq[open]:not(.is-animating) .hf-faq__a {
		margin-top: 1.2rem;
	}

	.dfq-panel .hf-faq__a-inner {
		font-size: 1.5rem;
		line-height: 1.55;
		letter-spacing: 0;
	}
}

@media (max-width: 560px) {
	.dfq-section {
		padding: 2.4rem 0 4rem;
	}

	.dfq-title {
		font-size: clamp(2.5rem, 8vw, 3rem);
		margin-bottom: 1.6rem;
	}

	.dfq-tabs {
		gap: 0.6rem;
		margin-bottom: 1.2rem;
	}

	.dfq-tabs__btn {
		min-height: 3.6rem;
		padding: 0.75rem 1.4rem;
		font-size: 1rem;
		letter-spacing: 0.1rem;
	}

	.dfq-panel__card {
		padding: 1.6rem 1.4rem;
	}
}
