/* Editorial content stays in the HTML; homepage guides use native disclosures. */
body.px-site {
	counter-reset: px-editorial;
}

body.px-site .nc-cms-section--rich-text:has(.px-editorial) {
	padding: 0;
	background: #fff;
	color: #405269;
}

body.px-site .nc-cms-section--rich-text .px-editorial {
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding: 0 40px;
}

.px-editorial__panel {
	min-width: 0;
	margin: 0;
	padding-block: 36px;
	border: 0;
	border-bottom: 1px solid #dce5ec;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	counter-increment: px-editorial;
}

.px-editorial__heading {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	min-width: 0;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.px-editorial__mark {
	display: block;
	padding-top: 7px;
	color: #08618e;
}

.px-editorial__mark::before {
	font-family: var(--px-font-display, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	content: counter(px-editorial, decimal-leading-zero);
}

body.px-site .px-editorial__heading h2 {
	max-width: 38ch;
	margin: 0;
	padding: 0;
	font-family: var(--px-font-heading, sans-serif);
	font-size: clamp(25px, 2.2vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.015em;
	text-transform: none;
	color: #132b43;
	overflow-wrap: break-word;
}

.px-editorial__body,
.px-editorial__lead {
	min-width: 0;
	font-family: var(--px-font-ui, sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.85;
	color: #43556b;
	overflow-wrap: break-word;
}

.px-editorial__body {
	margin-left: 64px;
	column-count: 2;
	column-gap: 48px;
}

.px-editorial__body > * {
	break-inside: avoid;
}

.px-editorial__body p {
	margin: 0 0 20px;
}

.px-editorial__body > :last-child {
	margin-bottom: 0;
}

body.px-site .px-editorial__body a {
	color: #066c9e;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

body.px-site .px-editorial__body a:hover {
	color: #074966;
}

.px-editorial__body a:focus-visible {
	outline: 2px solid #0878ad;
	outline-offset: 4px;
}

body.px-site .px-editorial__body strong,
body.px-site .px-editorial__body h3 {
	color: #132b43;
}

.px-editorial__body ul,
.px-editorial__body ol {
	padding-left: 22px;
}

.px-editorial__body li {
	margin-bottom: 10px;
}

/* Compact homepage guide: one clear reading area, without nested cards. */
.px-editorial__panel--disclosure {
	padding: 0;
	scroll-margin-top: 140px;
}

.px-editorial__panel--disclosure > .px-editorial__heading {
	grid-template-columns: 24px 40px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	min-height: 100px;
	margin: 0;
	padding-block: 26px;
	list-style: none;
	cursor: pointer;
}

.px-editorial__panel--disclosure > .px-editorial__heading::-webkit-details-marker {
	display: none;
}

.px-editorial__panel--disclosure .px-editorial__mark {
	padding: 0;
}

.px-editorial__panel--disclosure .px-editorial__toggle {
	grid-area: 1 / 2;
}

.px-editorial__panel--disclosure h2 {
	grid-area: 1 / 3;
}

body.px-site .px-editorial__panel--disclosure h2 {
	max-width: 46ch;
	font-size: clamp(24px, 2vw, 29px);
}

.px-editorial__toggle {
	position: relative;
	display: block;
	width: 40px;
	height: 40px;
	border: 1px solid #d1e0ea;
	border-radius: 50%;
	color: #08618e;
}

.px-editorial__toggle::before,
.px-editorial__toggle::after {
	position: absolute;
	top: 18px;
	left: 12px;
	width: 14px;
	height: 2px;
	background: currentcolor;
	content: "";
}

.px-editorial__toggle::after {
	transform: rotate(90deg);
}

.px-editorial__panel--disclosure[open] .px-editorial__toggle {
	background: #eaf5fc;
	border-color: #9ac8e0;
}

.px-editorial__panel--disclosure[open] .px-editorial__toggle::after {
	display: none;
}

.px-editorial__panel--disclosure > .px-editorial__heading:hover h2 {
	color: #08618e;
}

.px-editorial__panel--disclosure > .px-editorial__heading:focus-visible {
	outline: 2px solid #0878ad;
	outline-offset: 5px;
	border-radius: 4px;
}

.px-editorial__panel--disclosure > .px-editorial__body {
	margin-inline: 100px 24px;
	padding-bottom: 32px;
}

/* Article and service pages keep a continuous, expanded reading flow. */
.px-editorial-article {
	counter-reset: px-editorial;
}

.px-editorial-article .px-editorial__body {
	column-count: 1;
}

.px-editorial-article .px-editorial__heading {
	gap: 18px;
}

body.px-site .px-editorial-article .px-editorial__heading h2 {
	font-size: 28px;
}

.px-editorial-article .px-editorial__heading h2::before {
	content: none;
}

.px-editorial__lead {
	padding-block: 28px;
}

@media (max-width: 800px) {
	body.px-site .nc-cms-section--rich-text .px-editorial {
		padding-inline: 24px;
	}

	.px-editorial__body {
		column-count: 1;
	}
}

@media (max-width: 560px) {
	body.px-site .nc-cms-section--rich-text .px-editorial {
		padding-inline: 20px;
	}

	.px-editorial__panel {
		padding-block: 28px;
	}

	.px-editorial__panel--disclosure {
		padding-block: 0;
	}

	.px-editorial__heading {
		grid-template-columns: 26px minmax(0, 1fr);
		gap: 12px;
	}

	.px-editorial__panel--disclosure > .px-editorial__heading {
		grid-template-columns: 32px minmax(0, 1fr);
		gap: 12px;
		min-height: 96px;
		padding-block: 22px;
	}

	.px-editorial__panel--disclosure .px-editorial__mark {
		display: none;
	}

	.px-editorial__panel--disclosure .px-editorial__toggle {
		grid-area: 1 / 1;
	}

	.px-editorial__panel--disclosure h2 {
		grid-area: 1 / 2;
	}

	body.px-site .px-editorial__heading h2,
	body.px-site .px-editorial__panel--disclosure h2,
	body.px-site .px-editorial-article .px-editorial__heading h2 {
		font-size: 24px;
		line-height: 1.25;
	}

	.px-editorial__body,
	.px-editorial__panel--disclosure > .px-editorial__body {
		margin-inline: 0;
		font-size: 15px;
		line-height: 1.8;
	}

	.px-editorial__toggle {
		width: 32px;
		height: 32px;
	}

	.px-editorial__toggle::before,
	.px-editorial__toggle::after {
		top: 14px;
		left: 9px;
		width: 12px;
	}
}

@media print {
	.px-editorial__toggle,
	.px-editorial__mark {
		display: none;
	}

	.px-editorial__heading,
	.px-editorial__panel--disclosure > .px-editorial__heading {
		display: block;
	}

	.px-editorial__body {
		margin: 0;
		column-count: 1;
	}

	.px-editorial__panel--disclosure > .px-editorial__body {
		display: block;
	}
}
