/** Publications landing and detail presentation. */

.ych-page--publications,
.ych-page--publication-detail {
	background: var(--ych-bg-primary);
}

.ych-page--publications .ych-inner-hero h1,
.ych-page--publication-detail .ych-inner-hero h1 {
	font-size: clamp(3rem, 5vw, 4.5rem);
}

.ych-page--publications .ych-content-section,
.ych-page--publication-detail .ych-content-section {
	padding-block: clamp(4rem, 6vw, 6rem);
}

.ych-page--publications .ych-section-heading {
	margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.ych-page--publications .ych-directory-grid {
	gap: clamp(1rem, 2vw, 1.5rem);
}

.ych-page--publications .ych-card {
	border-color: var(--ych-border-strong);
	box-shadow: var(--ych-shadow-small);
}

.ych-page--publication-detail .ych-live-content {
	display: grid;
	max-width: 80rem;
	margin-inline: auto;
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.ych-page--publication-detail .ych-live-content > * {
	width: 100%;
	max-width: none;
	margin: 0 !important;
}

.ych-page--publication-detail .ych-live-content > :not(:has(img, h2, h3, h4, p:not(:empty), li, a)) {
	display: none !important;
}

.ych-page--publication-detail .ych-live-content > :where(
	.wp-block-kadence-rowlayout,
	.wp-block-greenshift-blocks-row
) {
	position: relative;
	overflow: hidden;
	padding: clamp(2.5rem, 5vw, 4.5rem) !important;
	border: 0.0625rem solid var(--ych-border-strong);
	border-radius: var(--ych-radius-panel);
	background:
		radial-gradient(circle at 92% 8%, rgba(154, 114, 208, 0.2), transparent 24rem),
		linear-gradient(145deg, var(--ych-bg-card), var(--ych-bg-secondary)) !important;
	box-shadow: var(--ych-shadow-medium);
}

.ych-page--publication-detail .ych-live-content > :where(
	.wp-block-kadence-rowlayout,
	.wp-block-greenshift-blocks-row
)::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 7rem;
	height: 0.25rem;
	border-radius: 0 0 999px;
	background: var(--ych-accent-gradient);
	content: "";
}

.ych-page--publication-detail .ych-live-content :where(
	.kt-row-column-wrap,
	.gspb_row__content
) {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}

.ych-page--publication-detail .ych-live-content :where(h2, h3) {
	color: var(--ych-text-primary) !important;
	font-family: var(--ych-font-heading);
	font-weight: 700;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.ych-page--publication-detail .ych-live-content h2 {
	font-size: var(--ych-type-h2) !important;
}

.ych-page--publication-detail .ych-live-content :where(p, a) {
	font-family: var(--ych-font-body);
}

.ych-page--publication-detail .ych-live-content p {
	color: var(--ych-text-secondary) !important;
	line-height: 1.7;
}

.ych-page--publication-detail .ych-live-content a {
	color: var(--ych-accent-blue) !important;
	text-underline-offset: 0.2em;
}

.ych-page--publication-detail .ych-empty-state {
	max-width: 58rem;
	margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 4rem);
	border-color: var(--ych-border-strong);
	background:
		radial-gradient(circle at 92% 8%, rgba(154, 114, 208, 0.16), transparent 20rem),
		var(--ych-bg-card);
	box-shadow: var(--ych-shadow-medium);
}

@media (max-width: 40rem) {
	.ych-page--publication-detail .ych-live-content > :where(
		.wp-block-kadence-rowlayout,
		.wp-block-greenshift-blocks-row
	) {
		padding: 2rem 1.5rem !important;
	}
}
