/* LifestyleGH premium phase. All selectors are scoped to the child theme. */
:root {
	--lgh-paper: #ffffff;
	--lgh-surface: #f5f7f8;
	--lgh-ink: #111318;
	--lgh-muted: #66707a;
	--lgh-line: rgba(17, 19, 24, 0.11);
	--lgh-coral: var(--color-primary, #ff184e);
	--lgh-green: #167c5a;
	--lgh-gold: #b98525;
	--lgh-blue: #2f6690;
	--lgh-glass: rgba(255, 255, 255, 0.78);
	--lgh-shadow: 0 18px 54px rgba(24, 31, 38, 0.12);
	--lgh-shadow-hover: 0 26px 64px rgba(24, 31, 38, 0.18);
}

:root[data-theme="dark"] {
	--lgh-paper: #15171b;
	--lgh-surface: #0e1013;
	--lgh-ink: #f6f7f8;
	--lgh-muted: #abb2ba;
	--lgh-line: rgba(255, 255, 255, 0.13);
	--lgh-glass: rgba(20, 22, 27, 0.8);
	--lgh-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
	--lgh-shadow-hover: 0 26px 64px rgba(0, 0, 0, 0.46);
}

.lgh-premium,
.lgh-premium main {
	background: var(--lgh-surface);
	color: var(--lgh-ink);
}

/* Match Magezix's post-title scale while correcting the heading hierarchy. */
.post-details h1 {
	font-size: 38px;
	margin-bottom: 18px;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
}

@media only screen and (min-width: 1200px) and (max-width: 1500px) {
	.post-details h1 {
		font-size: 30px;
	}
}

@media (max-width: 1199px) {
	.post-details h1 {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.post-details h1 {
		font-size: 20px;
	}
}

.lgh-premium .header__main-wrap,
.lgh-premium .header__main-wrap.uk-active,
.lgh-premium .header--3 .header__main-wrap,
.lgh-premium .header--3 .header__main-wrap.uk-sticky.uk-active {
	background: var(--lgh-glass);
	border-bottom: 1px solid var(--lgh-line);
	box-shadow: 0 10px 34px rgba(21, 28, 34, 0.08);
	backdrop-filter: blur(18px) saturate(145%);
	-webkit-backdrop-filter: blur(18px) saturate(145%);
}

.lgh-home {
	overflow: clip;
}

.lgh-hero {
	padding: 38px 0 30px;
}

.lgh-band {
	padding: 74px 0;
}

.lgh-band + .lgh-band {
	border-top: 1px solid var(--lgh-line);
}

.lgh-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 26px;
}

.lgh-section-heading--intro {
	align-items: center;
	margin-bottom: 30px;
}

.lgh-section-heading h1,
.lgh-section-heading h2,
.lgh-related h2 {
	margin: 0;
	color: var(--lgh-ink);
	font-family: "Jost", sans-serif;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.08;
}

.lgh-section-heading h1 {
	max-width: 760px;
	font-size: 48px;
}

.lgh-section-heading h2,
.lgh-related h2 {
	font-size: 38px;
}

.lgh-section-heading > p {
	max-width: 430px;
	margin: 0;
	color: var(--lgh-muted);
	font-size: 16px;
	line-height: 1.6;
}

.lgh-eyebrow {
	margin: 0 0 8px;
	color: var(--lgh-coral);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.lgh-bento {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.72fr) minmax(250px, 0.72fr);
	grid-template-rows: 270px 270px;
	gap: 16px;
}

.lgh-feature {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border-radius: 8px;
	background: #20242a;
	box-shadow: var(--lgh-shadow);
	isolation: isolate;
}

.lgh-feature--lead {
	grid-row: 1 / span 2;
}

.lgh-feature__media,
.lgh-feature__media img,
.lgh-feature__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.lgh-feature__media img {
	object-fit: cover;
	transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 500ms ease;
}

.lgh-feature__shade {
	z-index: 1;
	background: linear-gradient(180deg, rgba(10, 13, 17, 0.04) 20%, rgba(10, 13, 17, 0.9) 100%);
}

.lgh-feature__content {
	position: absolute;
	z-index: 2;
	inset: auto 0 0;
	padding: 24px;
	color: #ffffff;
}

.lgh-feature--lead .lgh-feature__content {
	padding: 38px;
}

.lgh-feature h2 {
	margin: 0;
	color: #ffffff;
	font-size: 23px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.16;
}

.lgh-feature--lead h2 {
	max-width: 740px;
	font-size: 44px;
}

.lgh-feature h2 a,
.lgh-feature h2 a:hover {
	color: inherit;
}

.lgh-feature__content > p {
	max-width: 680px;
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 16px;
	line-height: 1.55;
}

.lgh-feature:hover .lgh-feature__media img {
	transform: scale(1.045);
	filter: saturate(1.08);
}

.lgh-kicker {
	display: inline-flex;
	align-items: center;
	min-height: 27px;
	margin-bottom: 10px;
	padding: 0 10px;
	border-radius: 6px;
	background: var(--lgh-coral);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.lgh-kicker:hover {
	background: var(--lgh-green);
	color: #ffffff;
}

.lgh-story-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 14px;
	color: inherit;
	font-size: 12px;
	opacity: 0.72;
}

.lgh-story-meta span + span::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-right: 9px;
	border-radius: 50%;
	background: currentColor;
	vertical-align: middle;
	opacity: 0.6;
}

.lgh-picks {
	background: var(--lgh-paper);
}

.lgh-picks__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
	gap: 16px;
}

.lgh-picks__grid .lgh-card--editor-lead {
	grid-row: span 3;
}

.lgh-picks__grid .lgh-card--editor-lead .lgh-card__media {
	aspect-ratio: 16 / 10;
}

.lgh-card--editor-side {
	display: grid;
	grid-template-columns: 155px minmax(0, 1fr);
}

.lgh-card--editor-side .lgh-card__media {
	height: 100%;
	min-height: 185px;
	aspect-ratio: auto;
}

.lgh-card--editor-side .lgh-card__excerpt {
	display: none;
}

.lgh-latest-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.lgh-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--lgh-line);
	border-radius: 8px;
	background: var(--lgh-paper);
	box-shadow: var(--lgh-shadow);
	transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.lgh-card:hover {
	transform: translateY(-5px);
	border-color: rgba(255, 24, 78, 0.32);
	box-shadow: var(--lgh-shadow-hover);
}

.lgh-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #d9dde1;
}

.lgh-card__media img,
.lgh-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lgh-card__placeholder {
	background: linear-gradient(135deg, var(--lgh-blue), var(--lgh-green));
}

.lgh-card__media img {
	transition: transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 400ms ease;
}

.lgh-card:hover .lgh-card__media img {
	transform: scale(1.045);
	filter: saturate(1.06);
}

.lgh-card__body {
	padding: 21px;
}

.lgh-card__title {
	margin: 0;
	color: var(--lgh-ink);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
}

.lgh-card__title a,
.lgh-card__title a:hover {
	color: inherit;
}

.lgh-card__excerpt {
	margin: 12px 0 0;
	color: var(--lgh-muted);
	font-size: 14px;
	line-height: 1.6;
}

.lgh-save {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	margin-top: 16px;
	padding: 0 11px;
	border: 1px solid var(--lgh-line);
	border-radius: 6px;
	background: transparent;
	color: var(--lgh-ink);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lgh-save:hover {
	transform: translateY(-1px);
	border-color: var(--lgh-coral);
}

.lgh-save.is-saved {
	border-color: rgba(22, 124, 90, 0.55);
	background: rgba(22, 124, 90, 0.11);
	color: var(--lgh-green);
}

.lgh-save.is-saved i::before {
	font-weight: 900;
}

.lgh-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--lgh-ink);
	font-size: 14px;
	font-weight: 800;
}

.lgh-text-link:hover {
	color: var(--lgh-coral);
}

.lgh-topic-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.lgh-topic {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	background: var(--lgh-blue);
	box-shadow: var(--lgh-shadow);
}

.lgh-topic::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(8, 12, 16, 0.84));
}

.lgh-topic:nth-child(2) {
	background: var(--lgh-green);
}

.lgh-topic:nth-child(3) {
	background: var(--lgh-gold);
}

.lgh-topic:nth-child(4) {
	background: var(--lgh-coral);
}

.lgh-topic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms ease;
}

.lgh-topic:hover img {
	transform: scale(1.05);
}

.lgh-topic span {
	position: absolute;
	z-index: 2;
	inset: auto 18px 16px;
	color: #ffffff;
	font-size: 23px;
	font-weight: 800;
}

.lgh-related {
	margin-top: 56px;
	padding-top: 42px;
	border-top: 1px solid var(--lgh-line);
}

.lgh-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.lgh-related .lgh-card__body {
	padding: 15px;
}

.lgh-related .lgh-card__title {
	font-size: 16px;
}

.lgh-related .lgh-story-meta {
	display: none;
}

.lgh-search-results {
	width: min(820px, calc(100vw - 32px));
	max-height: min(520px, 62vh);
	margin: 14px auto 0;
	overflow: auto;
	border: 1px solid var(--lgh-line);
	border-radius: 8px;
	background: var(--lgh-glass);
	box-shadow: var(--lgh-shadow-hover);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.lgh-search-results[hidden] {
	display: none;
}

.lgh-search-result {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px;
	border-bottom: 1px solid var(--lgh-line);
	color: var(--lgh-ink);
	text-align: left;
}

.lgh-search-result:last-child {
	border-bottom: 0;
}

.lgh-search-result img,
.lgh-search-result__image {
	display: block;
	width: 74px;
	height: 58px;
	border-radius: 6px;
	background: var(--lgh-blue);
	object-fit: cover;
}

.lgh-search-result strong {
	display: block;
	font-size: 15px;
	line-height: 1.3;
}

.lgh-search-result small,
.lgh-search-empty {
	color: var(--lgh-muted);
	font-size: 12px;
}

.lgh-saved-toggle,
.lgh-saved-close,
.lgh-saved-remove {
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--lgh-line);
	background: var(--lgh-paper);
	color: var(--lgh-ink);
	cursor: pointer;
}

.lgh-saved-toggle {
	position: fixed;
	z-index: 998;
	right: 22px;
	bottom: 22px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	box-shadow: var(--lgh-shadow-hover);
}

.lgh-saved-count {
	position: absolute;
	top: -5px;
	right: -5px;
	display: grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--lgh-coral);
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
}

.lgh-saved-panel {
	position: fixed;
	z-index: 999;
	right: 22px;
	bottom: 82px;
	width: min(390px, calc(100vw - 32px));
	max-height: min(560px, calc(100vh - 130px));
	overflow: auto;
	border: 1px solid var(--lgh-line);
	border-radius: 8px;
	background: var(--lgh-glass);
	box-shadow: var(--lgh-shadow-hover);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.lgh-saved-panel[hidden] {
	display: none;
}

.lgh-saved-panel header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px;
	border-bottom: 1px solid var(--lgh-line);
}

.lgh-saved-panel h2 {
	margin: 0;
	color: var(--lgh-ink);
	font-size: 22px;
	letter-spacing: 0;
}

.lgh-saved-close,
.lgh-saved-remove {
	width: 34px;
	height: 34px;
	border-radius: 50%;
}

.lgh-saved-list {
	padding: 8px 20px 20px;
}

.lgh-saved-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 34px;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--lgh-line);
}

.lgh-saved-item a {
	color: var(--lgh-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.lgh-saved-empty {
	margin: 12px 0 0;
	color: var(--lgh-muted);
	font-size: 14px;
}

.lgh-search-empty {
	display: block;
	padding: 22px;
	text-align: center;
}

.lgh-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.lgh-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1199px) {
	.lgh-bento {
		grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
		grid-template-rows: 250px 250px 230px;
	}

	.lgh-feature--lead {
		grid-row: 1 / span 2;
	}

	.lgh-latest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.lgh-section-heading,
	.lgh-section-heading--intro {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.lgh-section-heading h1 {
		font-size: 40px;
	}

	.lgh-picks__grid {
		grid-template-columns: 1fr;
	}

	.lgh-picks__grid .lgh-card--editor-lead {
		grid-row: auto;
	}

	.lgh-topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.lgh-hero {
		padding-top: 24px;
	}

	.lgh-band {
		padding: 52px 0;
	}

	.lgh-section-heading h1 {
		font-size: 34px;
	}

	.lgh-section-heading h2,
	.lgh-related h2 {
		font-size: 30px;
	}

	.lgh-bento {
		grid-template-columns: 1fr;
		grid-template-rows: 440px repeat(4, 230px);
	}

	.lgh-feature--lead {
		grid-row: auto;
	}

	.lgh-feature--lead .lgh-feature__content,
	.lgh-feature__content {
		padding: 22px;
	}

	.lgh-feature--lead h2 {
		font-size: 32px;
	}

	.lgh-feature h2 {
		font-size: 22px;
	}

	.lgh-latest-grid,
	.lgh-related__grid {
		grid-template-columns: 1fr;
	}

	.lgh-card--editor-side {
		grid-template-columns: 125px minmax(0, 1fr);
	}

	.lgh-card--editor-side .lgh-card__body {
		padding: 16px;
	}

	.lgh-card--editor-side .lgh-card__title {
		font-size: 18px;
	}
}

@media (max-width: 479px) {
	.lgh-topic-grid {
		grid-template-columns: 1fr;
	}

	.lgh-card--editor-side {
		display: block;
	}

	.lgh-card--editor-side .lgh-card__media {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 10;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lgh-premium *,
	.lgh-premium *::before,
	.lgh-premium *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.lgh-reveal {
		opacity: 1;
		transform: none;
	}
}
