/**
 * Link Hub — full-screen bio page with glass buttons.
 */

body.el-site-link-hub-page {
	background: transparent;
}

body.el-site-link-hub-page .entry-header,
body.el-site-link-hub-page header.entry-header,
body.el-site-link-hub-page h1.entry-title,
body.el-site-link-hub-page .site-header,
body.el-site-link-hub-page #masthead,
body.el-site-link-hub-page .elsc-header,
body.el-site-link-hub-page .elsc-header--dock,
body.el-site-link-hub-page .elsc-drawer,
body.el-site-link-hub-page .elsc-overlay,
body.el-site-link-hub-page .main-header-bar-wrap,
body.el-site-link-hub-page .ast-mobile-header-wrap,
body.el-site-link-hub-page .ast-above-header-wrap,
body.el-site-link-hub-page .ast-below-header-wrap,
body.el-site-link-hub-page #colophon,
body.el-site-link-hub-page .site-footer {
	display: none !important;
}

/* Strip theme gutters so the photo can edge-bleed. */
body.el-site-link-hub-page #page,
body.el-site-link-hub-page .site,
body.el-site-link-hub-page #content.site-content,
body.el-site-link-hub-page .ast-container,
body.el-site-link-hub-page #primary,
body.el-site-link-hub-page #main,
body.el-site-link-hub-page article,
body.el-site-link-hub-page .entry-content,
body.el-site-link-hub-page .entry-content[data-ast-blocks-layout] {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	overflow: visible !important;
}

/* Full-bleed without 100vw (avoids scrollbar shifting the center). */
body.el-site-link-hub-page .entry-content[data-ast-blocks-layout] > .el-lh,
body.el-site-link-hub-page .entry-content > .el-lh,
.el-lh {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.el-lh {
	/* Match Explore Home hero search glass (.eleh-hero__find-row). */
	--el-lh-glass-bg: rgba(8, 20, 32, 0.22);
	--el-lh-glass-bg-hover: rgba(8, 20, 32, 0.28);
	--el-lh-glass-border: rgba(255, 255, 255, 0.52);
	--el-lh-glass-border-hover: rgba(255, 255, 255, 0.78);
	--el-lh-glass-shadow: 0 10px 30px rgba(6, 16, 28, 0.18);
	--el-lh-glass-shadow-hover: 0 14px 34px rgba(6, 16, 28, 0.24);
	--el-lh-text: #ffffff;
	--el-lh-radius: 16px;

	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
	box-sizing: border-box;
	overflow: hidden;
	color: var(--el-lh-text);
	font-family: system-ui, "Segoe UI", Manrope, sans-serif;
	background: transparent;
}

body.admin-bar .el-lh {
	min-height: calc(100vh - 32px);
	min-height: calc(100svh - 32px);
	min-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .el-lh {
		min-height: calc(100vh - 46px);
		min-height: calc(100svh - 46px);
		min-height: calc(100dvh - 46px);
	}
}

.el-lh__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.el-lh__picture,
.el-lh__img,
.el-lh__fallback {
	display: block;
	width: 100%;
	height: 100%;
}

.el-lh__img {
	object-fit: cover;
	object-position: center center;
}

.el-lh__fallback {
	background: linear-gradient(160deg, #0d7a8c 0%, #10233a 55%, #061018 100%);
}

/* No dim overlay — photo stays bright; text uses its own shadow. */
.el-lh__veil {
	display: none;
}

.el-lh__stage {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 41px;
}

.el-lh__brand {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.el-lh__logo {
	/* Width from settings; height follows PNG aspect — no forced square frame. */
	width: var(--el-lh-logo-size-desktop, 200px);
	height: auto;
	max-width: 100%;
	object-fit: contain;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	/* Shadow follows logo alpha — badge-shaped only, not a rectangle. */
	filter:
		drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35))
		drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

body.el-site-link-hub-page .entry-content .el-lh__name,
.el-lh__name {
	margin: 0 !important;
	padding: 0;
	font-size: clamp(calc(1.35rem + 10px), calc(4.5vw + 10px), calc(1.75rem + 10px));
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-shadow:
		0 1px 1px rgba(6, 16, 28, 0.7),
		0 2px 4px rgba(6, 16, 28, 0.45),
		0 6px 18px rgba(6, 16, 28, 0.35);
}

body.el-site-link-hub-page .entry-content .el-lh__tagline,
.el-lh__tagline {
	margin: 0 !important;
	padding: 0;
	max-width: 28em;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.el-lh__nav {
	--anim--hover-time: 280ms;
	--anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);

	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	margin: 0;
	padding: 0;
	gap: 12px;
	overflow: visible;
}

/*
 * Hybrid CTA glass:
 * - Shape/color from earlier find-row glass (16px, rgba(8,20,32,.22), white border)
 * - Soft specular highlight + shine retained from Uiverse glass
 */
.el-lh__btn-wrap {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	border-radius: var(--el-lh-radius);
	background: transparent;
	pointer-events: none;
}

.el-lh__btn-shadow {
	display: none;
}

.el-lh__btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 1px solid var(--el-lh-glass-border);
	border-radius: var(--el-lh-radius);
	cursor: pointer;
	position: relative;
	-webkit-tap-highlight-color: transparent;
	pointer-events: auto;
	z-index: 3;
	overflow: hidden;
	background:
		linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.18) 0%,
			rgba(255, 255, 255, 0.04) 42%,
			rgba(255, 255, 255, 0) 70%
		),
		var(--el-lh-glass-bg);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		inset 0 -1px 0 rgba(0, 0, 0, 0.12),
		var(--el-lh-glass-shadow);
	backdrop-filter: blur(8px) saturate(1.15);
	-webkit-backdrop-filter: blur(8px) saturate(1.15);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	-webkit-font-smoothing: antialiased;
	transition:
		border-color var(--anim--hover-time) var(--anim--hover-ease),
		background-color var(--anim--hover-time) var(--anim--hover-ease),
		box-shadow var(--anim--hover-time) var(--anim--hover-ease),
		transform 0.12s ease;
	box-sizing: border-box;
}

.el-lh__btn:hover,
.el-lh__btn:focus-visible {
	border-color: var(--el-lh-glass-border-hover);
	background:
		linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.24) 0%,
			rgba(255, 255, 255, 0.06) 42%,
			rgba(255, 255, 255, 0) 70%
		),
		var(--el-lh-glass-bg-hover);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.42),
		inset 0 -1px 0 rgba(0, 0, 0, 0.14),
		var(--el-lh-glass-shadow-hover);
	outline: none;
}

.el-lh__btn:active {
	transform: scale(0.985);
}

.el-lh__btn-face {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	padding: 12px 18px;
	box-sizing: border-box;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

.el-lh__btn-face::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		rgba(255, 255, 255, 0) 35%,
		rgba(255, 255, 255, 0.22) 50%,
		rgba(255, 255, 255, 0) 65%
	);
	background-size: 220% 100%;
	background-position: 120% 0;
	mix-blend-mode: screen;
	opacity: 0.55;
	transition: background-position 0.55s var(--anim--hover-ease), opacity 0.25s ease;
}

.el-lh__btn:hover .el-lh__btn-face::after,
.el-lh__btn:focus-visible .el-lh__btn-face::after {
	background-position: -20% 0;
	opacity: 0.85;
}

.el-lh__btn-icon {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	display: inline-flex;
	width: 22px;
	height: 22px;
	color: #fff;
}

.el-lh__btn-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.el-lh__btn-label {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	text-align: center;
	padding-right: 22px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.el-lh__social {
	--el-lh-social-size: 56px;

	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin-top: 29px;
}

/* Same hybrid glass as .el-lh__btn — circular 56px. */
.el-lh__social-wrap {
	position: relative;
	z-index: 2;
	width: var(--el-lh-social-size);
	height: var(--el-lh-social-size);
	border-radius: 999px;
	background: transparent;
	pointer-events: none;
}

.el-lh__social-shadow {
	display: none;
}

.el-lh__social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--el-lh-social-size);
	height: var(--el-lh-social-size);
	margin: 0;
	padding: 0;
	border: 1px solid var(--el-lh-glass-border);
	border-radius: 999px;
	cursor: pointer;
	position: relative;
	-webkit-tap-highlight-color: transparent;
	pointer-events: auto;
	z-index: 3;
	overflow: hidden;
	background:
		linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.18) 0%,
			rgba(255, 255, 255, 0.04) 42%,
			rgba(255, 255, 255, 0) 70%
		),
		var(--el-lh-glass-bg);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		inset 0 -1px 0 rgba(0, 0, 0, 0.12),
		var(--el-lh-glass-shadow);
	backdrop-filter: blur(8px) saturate(1.15);
	-webkit-backdrop-filter: blur(8px) saturate(1.15);
	color: #fff !important;
	text-decoration: none !important;
	transition:
		border-color var(--anim--hover-time) var(--anim--hover-ease),
		background-color var(--anim--hover-time) var(--anim--hover-ease),
		box-shadow var(--anim--hover-time) var(--anim--hover-ease),
		transform 0.12s ease;
}

.el-lh__social-btn:hover,
.el-lh__social-btn:focus-visible {
	border-color: var(--el-lh-glass-border-hover);
	background:
		linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.24) 0%,
			rgba(255, 255, 255, 0.06) 42%,
			rgba(255, 255, 255, 0) 70%
		),
		var(--el-lh-glass-bg-hover);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.42),
		inset 0 -1px 0 rgba(0, 0, 0, 0.14),
		var(--el-lh-glass-shadow-hover);
	outline: none;
}

.el-lh__social-btn:active {
	transform: scale(0.96);
}

.el-lh__social-face {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.el-lh__social-face::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		rgba(255, 255, 255, 0) 35%,
		rgba(255, 255, 255, 0.22) 50%,
		rgba(255, 255, 255, 0) 65%
	);
	background-size: 220% 100%;
	background-position: 120% 0;
	mix-blend-mode: screen;
	opacity: 0.55;
	transition: background-position 0.55s var(--anim--hover-ease), opacity 0.25s ease;
}

.el-lh__social-btn:hover .el-lh__social-face::after,
.el-lh__social-btn:focus-visible .el-lh__social-face::after {
	background-position: -20% 0;
	opacity: 0.85;
}

.el-lh__social-btn svg {
	position: relative;
	z-index: 2;
	width: 26px;
	height: 26px;
	display: block;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.el-lh__btn,
	.el-lh__social-btn {
		background: rgba(8, 20, 32, 0.55);
	}
}

@media (max-width: 1024px) {
	/*
	 * Pin photo only — page stays scrollable so pull-to-refresh works.
	 * Do not lock html/body overflow or position:fixed the whole section.
	 */
	.el-lh__media {
		position: fixed;
		inset: 0;
		z-index: 0;
	}

	body.admin-bar .el-lh__media {
		top: 32px;
	}

	.el-lh__stage {
		gap: 16px;
		/* Slightly narrower column than full mobile bleed. */
		max-width: 340px;
	}

	.el-lh__btn {
		font-size: 1.25rem;
		line-height: 1.15;
	}

	.el-lh__logo {
		width: var(--el-lh-logo-size-tablet, 160px);
		height: auto;
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .el-lh__media {
		top: 46px;
	}
}

@media (min-width: 1025px) {
	.el-lh__stage {
		max-width: 420px;
	}
}

@media (max-width: 639px) {
	.el-lh__logo {
		width: var(--el-lh-logo-size-mobile, 112px);
		height: auto;
	}
}
