/**
 * Userhub Home
 * Layer: Site / Intent
 * Architecture: Trinity synthesis page.
 */

.home-page-body {
	background: linear-gradient(to bottom, #fafafa 0%, #ffffff 300px);
	padding-bottom: 4rem;
}

.home-section {
	position: relative;
}

.home-section[id] {
	scroll-margin-top: calc(var(--tds-header-stack-h) + var(--tds-space-md));
}

.home-page-body .ch-limit {
	max-width: 70ch;
}

/* Hero */
.uh-home-hero {
	border-bottom: 0;
}
.uh-home-hero .uh-hero__motif {
	transform: translateX(3vw);
	opacity: 0.82;
}
.uh-home-hero__kicker {
	font-weight: var(--tds-weight-medium);
	letter-spacing: var(--tds-type-track-label);
}

.uh-home-hero__title {
	max-width: 13.5ch;
	font-size: var(--tds-type-display);
	font-weight: var(--tds-weight-semibold);
	line-height: var(--tds-type-line-display);
	letter-spacing: var(--tds-type-track-display);
	text-wrap: balance;
}

.uh-home-hero .row {
	padding-top: clamp(1.25rem, 3vh, 2rem);
	padding-bottom: clamp(3rem, 5.5vh, 4rem);
}

/* Homepage dossier modifier */
.home-page-body .uh-dossier-card--home {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	background: #ffffff;
	border-color: var(--tds-border);
	border-radius: 0;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		transform 220ms ease,
		box-shadow 220ms ease;
}

.home-page-body .uh-card-excerpt {
	font-family: var(--tds-font-system);
}

.home-page-body .uh-dossier-card--featured-publication .uh-card-excerpt {
	font-family: var(--tds-font-system);
}

.home-page-body .uh-dossier-card--home:hover,
.home-page-body .uh-dossier-card--home:focus-within {
	background-color: var(--tds-surface-soft);
	border-color: var(--tds-brand-a22);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
	transform: translateY(-2px);
}

.home-page-body .uh-dossier-card--home a {
	color: inherit;
	text-decoration: none;
}

.home-page-body .uh-dossier-card--home a:hover,
.home-page-body .uh-dossier-card--home a:focus-visible {
	color: var(--tds-brand-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.home-page-body .uh-icon-wireframe svg {
	width: 36px;
	height: 36px;
	color: var(--tds-text-main);
	stroke-width: 1.35px;
	transition:
		color 180ms ease,
		transform 180ms ease;
}

.home-page-body .uh-dossier-card--home:hover .uh-icon-wireframe svg,
.home-page-body .uh-dossier-card--home:focus-within .uh-icon-wireframe svg {
	color: var(--tds-brand-strong);
	transform: translateY(-1px);
}

/* Typography restraint */
.home-page-body h2,
.home-page-body h3 {
	font-family: var(--tds-font-system);
}

.home-page-body h2,
.home-page-body h3,
.home-page-body .h6 {
	font-weight: var(--tds-weight-semibold);
}

.home-page-body .semantic-kicker {
	color: var(--tds-brand-strong);
	font-weight: var(--tds-weight-medium);
	letter-spacing: var(--tds-type-track-label);
}

.uh-home-card-kicker {
	font-weight: var(--tds-weight-medium);
	letter-spacing: var(--tds-type-track-label);
}

.uh-home-card-kicker:first-child {
	color: var(--tds-brand-strong) !important;
}

/* Links */
.home-page-body .home-section a.fw-bold,
.home-page-body .uh-section-link:not(.uh-action-link) {
    font-weight: var(--tds-weight-medium) !important;
}
/* Final CTA */
.uh-home-final-cta {
	border-top: 1px solid var(--tds-border);
}

/* Telemetry registry should remain secondary */

/* Responsive */
@media (max-width: 991.98px) {
	.home-page-body {
		padding-bottom: 3rem;
	}

	.home-page-body .uh-dossier-card--home {
		padding: 2rem;
	}
}

@media (max-width: 767.98px) {
	.home-page-body .uh-dossier-card--home {
		padding: 1.5rem;
	}

	.uh-home-hero .uh-hero__motif {
		opacity: 0.24;
		transform: none;
	}

	.uh-home-hero .uh-hero__motif,
	.uh-home-hero .uh-hero__motif canvas {
		pointer-events: none !important;
		touch-action: pan-y;
	}

}

@media (prefers-reduced-motion: reduce) {
	.home-page-body .uh-dossier-card--home,
	.home-page-body .uh-icon-wireframe svg {
		transition: none !important;
		transform: none !important;
	}
}

/* Publishing / Journal evidence grid */
.uh-home-publication-grid {
	background: #ffffff;
}

.home-page-body .uh-dossier-card--featured-publication {
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.uh-home-featured-title {
	max-width: 46rem;
	font-weight: var(--tds-weight-semibold);
}

.uh-home-publication-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid var(--tds-ink-a08);
	color: var(--tds-text-muted);
	font-family: var(--tds-font-system);
	font-size: var(--tds-type-size-caption);
	font-weight: var(--tds-weight-medium);
	letter-spacing: var(--tds-type-track-label);
	text-transform: uppercase;
}

.home-page-body .uh-dossier-card--framework {
	min-height: 100%;
}

@media (max-width: 767.98px) {
	.uh-home-publication-meta {
		flex-direction: column;
		gap: 0.25rem;
	}
}

/* TYPE-01: keep the first section label within the desktop fold. */
.home-page-body .home-section { padding-block: var(--tds-space-05); }
