/*
 * Hadof refinement V19.
 *
 * Repairs the FAQ open-state contrast collision and removes the large-screen
 * double inset from split editorial heroes. The layer stays presentation-only
 * and preserves the complete server-rendered interaction model.
 */

:root {
	--hr19-ink: #111c28;
	--hr19-copy: #46586c;
	--hr19-line: #cfd9e1;
	--hr19-focus: #245ac4;
	--hr19-hover: #f4f7f9;
	--hr19-surface: #f3f5f6;
}

/* Cap hero copy alignment to the actual centered grid, not the full viewport. */
@media (min-width: 901px) {
	body.hadof-v2-content .hadof-x3:not(.hadof-x3-home) > .hx-hub-hero .hx-hub-hero__copy {
		padding-left: max(32px, calc((min(100vw, 1440px) - 1240px) / 2));
	}

	body.hadof-v2-content .hadof-brief-builder > .hx-hub-hero .hx-hub-hero__grid {
		grid-template-columns: minmax(0, .52fr) minmax(0, .48fr);
		max-width: 1360px;
		min-height: clamp(500px, 37vw, 535px);
	}

	body.hadof-v2-content .hadof-brief-builder > .hx-hub-hero .hx-hub-hero__copy {
		padding-left: max(32px, calc((min(100vw, 1360px) - 1240px) / 2));
	}

	body.hadof-v2-content .hadof-brief-builder > .hx-hub-hero .hx-hub-hero__copy h1 {
		font-size: clamp(3rem, 3.45vw, 3.55rem);
		line-height: 1.03;
		max-width: 13ch;
	}
}

/* FAQ: one open editorial list with an explicit, accessible state indicator. */
body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) details,
body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) details[open] {
	background: var(--hr19-surface) !important;
	border-left: 0 !important;
	border-right: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) summary,
body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) details[open] summary {
	align-items: center;
	background: transparent !important;
	color: var(--hr19-ink) !important;
	cursor: pointer;
	display: flex;
	font-size: 1rem;
	font-weight: 750;
	gap: 1rem;
	justify-content: space-between;
	line-height: 1.45;
	list-style: none;
	padding: 1.15rem 0 !important;
}

body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) summary::-webkit-details-marker {
	display: none;
}

body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) summary::marker {
	content: "";
}

body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) summary::after {
	align-items: center;
	color: var(--hr19-focus);
	content: "+";
	display: inline-flex;
	flex: 0 0 1.75rem;
	font-size: 1.4rem;
	font-weight: 500;
	height: 1.75rem;
	justify-content: center;
	line-height: 1;
}

body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) details[open] summary::after {
	content: "−";
}

body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) summary:hover {
	background: var(--hr19-hover) !important;
}

body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) summary:focus-visible {
	border-radius: 2px;
	outline: 3px solid color-mix(in srgb, var(--hr19-focus) 34%, transparent);
	outline-offset: 3px;
}

body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) details > :not(summary) {
	background: transparent !important;
	color: var(--hr19-copy) !important;
	max-width: 72ch;
	padding: 0 3rem 1.35rem 0 !important;
}

body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) details > :not(summary) > :first-child {
	margin-top: 0;
}

body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) details > :not(summary) > :last-child {
	margin-bottom: 0;
}

@media (max-width: 640px) {
	body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) summary,
	body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) details[open] summary {
		font-size: .96rem;
		gap: .75rem;
		padding-block: 1rem !important;
	}

	body.hadof-v2-content :is(.hadof-faq, .hx-faq, .hadof-v2-faq) details > :not(summary) {
		padding: 0 2.25rem 1.2rem 0 !important;
	}
}
