/**
 * Home "Keep exploring" closing banner (Figma Homepage / Mobile/Homepage).
 * Markup: template-parts/v2/sections/home-explore.php
 */
@layer sections {
	.lb-v2-explore {
		--lb-v2-explore-tone: #8e8f8b; /* matches the photo's left edge */
		position: relative;
		display: grid;
		/* Locked at 1440px and centered: wider screens get side gaps, the image never scales up. */
		max-width: var(--lb-v2-banner-max);
		margin-inline: auto;
		align-items: start;
		min-height: 30.0625rem; /* 481px — Round 2 Mobile/Homepage Keep Exploring frame */
		color: var(--lb-v2-color-white);
		background: var(--lb-v2-explore-tone);
		isolation: isolate;
	}

	/*
	 * Centered full-bleed background that keeps its proportions (object-fit, never stretched).
	 * Mobile image 390 × 343; desktop image 1440 × 748.
	 */
	.lb-v2-explore__media {
		position: absolute;
		inset: 0;
		z-index: -2;
		display: block;
	}

	.lb-v2-explore__media img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: top;
	}

	/* Round 2 mobile: flat #000 at 45% over the full-bleed photo. */
	.lb-v2-explore::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background: rgb(0 0 0 / 0.45);
	}

	.lb-v2-explore__content {
		display: grid;
		justify-items: start;
		align-self: start;
		gap: var(--lb-v2-cta-gap);
		max-width: 40rem; /* 640px — Round 2 desktop title with "at Legend." */
		padding-block: var(--lb-v2-section-space);
	}

	/* Figma Mobile/Homepage: 20px between eyebrow and title. */
	.lb-v2-explore .lb-v2-heading {
		gap: 1.25rem; /* 20px */
	}

	/* Prefer natural wraps over balance so the longer Round 2 title stays coherent. */
	.lb-v2-explore .lb-v2-heading__title {
		text-wrap: wrap;
	}

	/* Light CTA: pink underline at rest, white underline on hover (Figma). */
	.lb-v2-explore .lb-v2-link--light {
		border-bottom-color: var(--lb-v2-color-accent);
	}

	.lb-v2-explore .lb-v2-link--light:hover,
	.lb-v2-explore .lb-v2-link--light:focus-visible {
		color: var(--lb-v2-color-white);
		border-bottom-color: var(--lb-v2-color-white);
	}

	@media (min-width: 80rem) {
		.lb-v2-explore {
			align-items: center;
			min-height: 34.3125rem; /* 549px — matches Section.jpg / Figma frame */
		}

		/* Figma desktop: 16px between eyebrow and title here. */
		.lb-v2-explore .lb-v2-heading {
			gap: var(--lb-v2-space-4);
		}

		/* Keep the 40rem text column over a dark enough wash for WCAG (3:1 title / 4.5:1 eyebrow + link). */
		.lb-v2-explore::before {
			background: linear-gradient(to right, rgb(22 32 43 / 0.65), rgb(22 32 43 / 0.45) 50%, rgb(22 32 43 / 0.2) 65%, transparent 80%);
		}

		.lb-v2-explore__content {
			align-self: center;
		}
	}
}
