/* Article template — header chrome + sticky left CTA. Uses Paradox Brand tokens. */

html:has(.px-article),
body:has(.px-article) {
	overflow-x: clip;
}

.px-article {
	background: var(--px-cream, #f5f1ea);
	color: var(--px-ink, #2a3228);
	overflow-x: clip;
	max-width: 100%;
}

.px-article__shell {
	width: min(1180px, calc(100% - 2rem));
	max-width: 100%;
	margin-inline: auto;
	padding: 2rem 0 4rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-areas:
		"hero rail"
		"body rail";
	gap: 1.5rem 2rem;
	align-items: start;
	overflow-x: clip;
}

.px-article__hero {
	grid-area: hero;
	min-width: 0;
	background: var(--px-white, #fff);
	border: 1px solid var(--px-line, rgba(61, 74, 58, 0.12));
	border-radius: var(--px-radius, 16px);
	box-shadow: var(--px-shadow, 0 12px 40px rgba(47, 58, 47, 0.08));
	padding: 1.5rem 1.5rem 1.25rem;
}

.px-article__kicker {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--px-olive-soft, #5a6b58);
}

.px-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.45rem;
	margin: 0 0 0.9rem;
	font-size: 0.82rem;
	color: var(--px-muted, #6b7468);
}

.px-crumbs a {
	color: var(--px-olive-soft, #5a6b58);
}

.px-crumbs a:hover {
	color: var(--px-olive-deep, #2f3a2f);
}

.px-article__title {
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	line-height: 1.35;
	color: var(--px-olive-deep, #2f3a2f);
}

.px-article__dek {
	margin: 0.85rem 0 0;
	font-size: 1.02rem;
	line-height: 1.8;
	color: var(--px-muted, #6b7468);
}

.px-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.15rem 1.5rem;
	margin-top: 1.25rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--px-line, rgba(61, 74, 58, 0.12));
}

.px-article__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.px-article__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.px-article__author-label,
.px-article__facts span {
	margin: 0;
	font-size: 0.75rem;
	color: var(--px-muted, #6b7468);
}

.px-article__author-name,
.px-article__facts time,
.px-article__facts strong {
	margin: 0.1rem 0 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--px-olive-deep, #2f3a2f);
}

.px-article__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.px-article__facts li {
	display: grid;
	gap: 0.1rem;
}

.px-article__media {
	margin: 1.25rem 0 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--px-cream-2, #ede6dc);
}

.px-article__image {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.px-article__media figcaption {
	padding: 0.65rem 0.9rem 0.8rem;
	font-size: 0.82rem;
	color: var(--px-muted, #6b7468);
}

.px-article__body {
	grid-area: body;
	min-width: 0;
	max-width: 100%;
	background: var(--px-white, #fff);
	border: 1px solid var(--px-line, rgba(61, 74, 58, 0.12));
	border-radius: var(--px-radius, 16px);
	box-shadow: var(--px-shadow, 0 12px 40px rgba(47, 58, 47, 0.08));
	padding: 1.25rem 1.25rem 2rem;
	overflow-wrap: anywhere;
	overflow-x: clip;
}

.px-article__body .elementor,
.px-article__body .e-con {
	max-width: 100%;
	min-width: 0;
}

.px-article__body .px-table-wrap,
.px-article__body .px-support-table {
	max-width: 100%;
}

.px-article__body .elementor-section.elementor-section-boxed > .elementor-container,
.px-article__body .e-con {
	max-width: none;
}

.px-article__body .elementor-widget-theme-page-title,
.px-article__body .elementor-page-title {
	display: none;
}

.px-article__body h2 {
	scroll-margin-top: calc(var(--px-header-h, 76px) + 1.25rem);
	margin: 2.1rem 0 0.75rem;
	padding-bottom: 0.45rem;
	border-bottom: 2px solid rgba(197, 179, 150, 0.45);
	color: var(--px-olive-deep, #2f3a2f);
	line-height: 1.45;
}

.px-article__body h3 {
	margin: 1.35rem 0 0.45rem;
	color: var(--px-olive, #3d4a3a);
	font-size: 1.05rem;
}

.px-article__body p {
	margin: 0 0 0.9rem;
	line-height: 1.9;
	color: var(--px-ink, #2a3228);
}

.px-article__body .e-n-accordion {
	margin-top: 0.5rem;
	border: 1px solid var(--px-line, rgba(61, 74, 58, 0.12));
	border-radius: 14px;
	overflow: hidden;
	background: var(--px-cream, #f5f1ea);
}

.px-article__body .e-n-accordion-item {
	border-bottom: 1px solid var(--px-line, rgba(61, 74, 58, 0.12));
}

.px-article__body .e-n-accordion-item-title {
	padding: 0.85rem 1rem;
	background: #fff;
}

.px-article__rail {
	grid-area: rail;
	min-width: 0;
	align-self: stretch;
}

.px-article__sticky {
	position: sticky;
	top: calc(var(--px-header-h, 76px) + 1rem);
	z-index: 40;
}

.px-cta {
	padding: 1.25rem 1.15rem 1.2rem;
	background:
		linear-gradient(180deg, rgba(245, 241, 234, 0.65), rgba(255, 255, 255, 0.92) 42%),
		var(--px-white, #fff);
	border: 1px solid var(--px-line, rgba(61, 74, 58, 0.12));
	border-radius: var(--px-radius, 16px);
	box-shadow: var(--px-shadow, 0 12px 40px rgba(47, 58, 47, 0.08));
}

.px-cta__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--px-olive-soft, #5a6b58);
}

.px-cta__title {
	margin: 0 0 0.45rem;
	font-size: 1.2rem;
	line-height: 1.45;
	font-weight: 700;
	color: var(--px-olive-deep, #2f3a2f);
}

.px-cta__lead {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	line-height: 1.7;
	color: var(--px-muted, #6b7468);
}

.px-cta__field {
	margin-bottom: 0.75rem;
}

.px-cta__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.86rem;
	font-weight: 600;
}

.px-cta__field input {
	width: 100%;
	min-height: 46px;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--px-line, rgba(61, 74, 58, 0.18));
	border-radius: 12px;
	background: var(--px-white, #fff);
	color: var(--px-ink, #2a3228);
	font: inherit;
}

.px-cta__field input:focus {
	outline: 2px solid var(--px-gold, #c5b396);
	outline-offset: 1px;
	border-color: var(--px-olive-soft, #5a6b58);
}

.px-cta__hp {
	position: absolute !important;
	inset-inline-start: 0;
	top: 0;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	pointer-events: none;
}

.px-cta__form {
	position: relative;
	overflow: hidden;
}

.px-cta__submit {
	width: 100%;
	min-height: 48px;
	margin-top: 0.15rem;
	border: 0;
	border-radius: 999px;
	background: var(--px-olive, #3d4a3a);
	color: var(--px-white, #fff);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.px-cta__submit:hover {
	background: var(--px-olive-deep, #2f3a2f);
	transform: translateY(-1px);
}

.px-cta__submit:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

.px-cta__status {
	margin: 0.75rem 0 0;
	font-size: 0.86rem;
	line-height: 1.6;
}

.px-cta__status.is-ok {
	color: var(--px-olive, #3d4a3a);
}

.px-cta__status.is-err {
	color: #8a3a32;
}

.px-toc {
	margin-top: 1.25rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--px-line, rgba(61, 74, 58, 0.12));
}

.px-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0.15rem 0;
	border: 0;
	background: transparent;
	color: var(--px-olive-deep, #2f3a2f);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	text-align: inherit;
	cursor: pointer;
}

.px-toc__toggle:focus-visible {
	outline: 2px solid var(--px-gold, #c5b396);
	outline-offset: 3px;
	border-radius: 8px;
}

.px-toc__chevron {
	width: 0.55rem;
	height: 0.55rem;
	border-inline-end: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex: 0 0 auto;
}

.px-toc.is-open .px-toc__chevron {
	transform: rotate(-135deg);
}

.px-toc__title {
	margin: 0 0 0.65rem;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--px-olive-deep, #2f3a2f);
}

.px-toc__list {
	margin: 0.65rem 0 0;
	padding: 0 1.1rem 0 0;
	display: grid;
	gap: 0.35rem;
}

.px-toc__list[hidden] {
	display: none;
}

.px-toc__list a {
	display: block;
	padding: 0.28rem 0;
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--px-muted, #6b7468);
	border-radius: 8px;
}

.px-toc__list a:hover,
.px-toc__list a[aria-current="true"] {
	color: var(--px-olive-deep, #2f3a2f);
	font-weight: 600;
}

@media (max-width: 980px) {
	.px-article__shell {
		grid-template-columns: 1fr;
		grid-template-areas:
			"hero"
			"body"
			"rail";
		padding: 1.25rem 0 2.5rem;
		gap: 1rem;
	}

	.px-article__rail {
		position: static;
		inset: auto;
		z-index: auto;
		padding: 0;
		background: transparent;
		border: 0;
	}

	.px-article__sticky {
		position: static;
	}
}

@media (max-width: 640px) {
	.px-article__hero,
	.px-article__body {
		padding: 1rem 0.85rem 1.15rem;
	}

	.px-article__image {
		max-height: 260px;
	}

	.px-cta {
		padding: 1rem 0.95rem 0.95rem;
	}
}
