/**
 * DeskPicko NEW Editorial Homepage Prototype — Phase 3A Homepage Lead
 * Composition Engine. Phase 3A.2 revision — "Editorial Story
 * Constellation" premium frontend presentation.
 *
 * Namespace: `dp2-homepage-lead-`, isolated from every other dp2-
 * module (Finder, Editor's Picks, Popular Comparisons, Recently
 * Updated) and from the Phase 1H Category Module (`dp-` prefix).
 *
 * WIDTH STANDARD (per the Phase 2C convention, matched by Editor's
 * Picks and the Category Module): no independent max-width/
 * margin:auto here — this section fills whatever Elementor container
 * it's placed in, with 1rem horizontal padding. It deliberately does
 * NOT copy the Finder's narrower centered-card width — the Finder is
 * a documented exception, this Hero is a primary homepage section
 * like Editor's Picks/Category Module.
 *
 * Deliberately NOT a decorative hero: no background illustration, no
 * floating trust badges, no stats row — per the brief, every visible
 * element must come from real post data (image, meta, title,
 * excerpt, date, CTA) or from the brief's own specified static
 * editorial copy (eyebrow/headline/intro). This plugin's existing
 * convention (see Popular Comparisons/Recently Updated) is to never
 * render content that isn't backed by actual data.
 *
 * COMPOSITION STRATEGY — CSS Grid, not flex two-siblings-plus-center:
 * the PHP markup order is Focus, then the four supporting stories in
 * a fixed sequence (left_upper, left_lower, right_upper, right_lower)
 * — this single order is also exactly the brief's required mobile
 * reading order (Focus before Supporting 1-4). At the desktop
 * breakpoint, named `grid-area`s reflow those same five elements into
 * the "two side columns flanking a large center" composition, so
 * there is no flex `order` tug-of-war between breakpoints and no
 * duplicate markup.
 *
 * Mobile-first: base rules stack every element in one column, in
 * document order. The grid-template-areas composition only applies
 * at the desktop breakpoint.
 */

.dp2-homepage-lead {
	--dp2-ink: #14181c;
	--dp2-ink-soft: #5b6470;
	--dp2-ink-faint: #8b93a0;
	--dp2-teal: #0f766e;
	--dp2-line: #e5e7eb;
	--dp2-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;

	box-sizing: border-box;
	color: var(--dp2-ink);
	font-family: inherit;
	padding: 2.5rem 1rem;
}

.dp2-homepage-lead *,
.dp2-homepage-lead *::before,
.dp2-homepage-lead *::after {
	box-sizing: inherit;
}

/* ---------------------------------------------------------------
   Editorial masthead — eyebrow / headline / short intro
   --------------------------------------------------------------- */

.dp2-homepage-lead-intro {
	max-width: 46rem;
	margin: 0 0 2.25rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid var(--dp2-line);
}

.dp2-homepage-lead-eyebrow {
	margin: 0 0 0.6rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--dp2-teal);
}

.dp2-homepage-lead-headline {
	margin: 0 0 0.6rem;
	font-family: var(--dp2-serif);
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--dp2-ink);
}

.dp2-homepage-lead-lede {
	margin: 0;
	max-width: 52ch;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--dp2-ink-soft);
}

/* ---------------------------------------------------------------
   Grid — mobile base: single column, source order
   (focus, then the four supporting stories)
   --------------------------------------------------------------- */

.dp2-homepage-lead-grid {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ---------------------------------------------------------------
   Focus card (dominant center feature)
   --------------------------------------------------------------- */

.dp2-homepage-lead-focus {
	display: flex;
	flex-direction: column;
	margin-bottom: 2rem;
}

.dp2-homepage-lead-focus-media-link {
	display: block;
}

.dp2-homepage-lead-focus-media {
	display: block;
	width: 100%;
	background: var(--dp2-line);
}

.dp2-homepage-lead-focus-media img {
	width: 100%;
	height: auto;
	display: block;
}

.dp2-homepage-lead-focus-body {
	padding: 1.35rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dp2-homepage-lead-focus-title {
	margin: 0;
	font-family: var(--dp2-serif);
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.2;
}

.dp2-homepage-lead-focus-title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	transition: background-size 0.15s ease;
}

.dp2-homepage-lead-focus-title a:hover,
.dp2-homepage-lead-focus-title a:focus-visible {
	background-size: 100% 1px;
}

.dp2-homepage-lead-focus-excerpt {
	margin: 0;
	max-width: 62ch;
	color: var(--dp2-ink-soft);
	font-size: 1rem;
	line-height: 1.65;
}

.dp2-homepage-lead-focus-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	margin-top: 0.4rem;
}

.dp2-homepage-lead-date {
	font-size: 0.85rem;
	color: var(--dp2-ink-faint);
}

.dp2-homepage-lead-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--dp2-ink);
	/* !important: narrowly scoped to this one CTA selector only —
	   a theme/Elementor global link-color rule was outranking the
	   plain declaration on the live site, rendering the text dark
	   on the dark background. See 2.11.3 changelog. */
	color: #fff !important;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	padding: 0.75rem 1.35rem;
	border-radius: 999px;
}

.dp2-homepage-lead-cta:hover,
.dp2-homepage-lead-cta:focus-visible {
	background: var(--dp2-teal);
}

.dp2-homepage-lead-cta:focus-visible {
	outline: 2px solid var(--dp2-teal);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Supporting stories — compact editorial rows, index-numbered
   --------------------------------------------------------------- */

.dp2-homepage-lead-support {
	border-top: 1px solid var(--dp2-line);
}

.dp2-homepage-lead-support:last-child {
	border-bottom: 1px solid var(--dp2-line);
}

.dp2-homepage-lead-support-link {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-height: 44px;
	padding: 0.9rem 0;
	color: inherit;
	text-decoration: none;
}

.dp2-homepage-lead-support-link:focus-visible {
	outline: 2px solid var(--dp2-teal);
	outline-offset: 2px;
}

.dp2-homepage-lead-support-index {
	flex: none;
	width: 1.6rem;
	font-family: var(--dp2-serif);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	color: var(--dp2-ink-faint);
}

.dp2-homepage-lead-support-media {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--dp2-line);
}

.dp2-homepage-lead-support-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dp2-homepage-lead-support-body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
	flex: 1 1 auto;
}

.dp2-homepage-lead-support-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}

.dp2-homepage-lead-support-link:hover .dp2-homepage-lead-support-title,
.dp2-homepage-lead-support-link:focus-visible .dp2-homepage-lead-support-title {
	text-decoration: underline;
}

.dp2-homepage-lead-support-arrow {
	flex: none;
	color: var(--dp2-teal);
	font-size: 1.05rem;
}

/* ---------------------------------------------------------------
   Meta line — plain editorial overline shared by focus + supporting
   cards (Category, Content Type). No pill/badge styling — restrained
   uppercase text per the brief's visual-language direction.
   --------------------------------------------------------------- */

.dp2-homepage-lead-meta {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--dp2-teal);
}

.dp2-homepage-lead-meta-dot {
	color: var(--dp2-ink-faint);
	font-weight: 400;
}

/* ---------------------------------------------------------------
   Desktop: Editorial Story Constellation — large focus center,
   two supporting stories stacked on each side, via named grid areas.
   --------------------------------------------------------------- */

@media (min-width: 900px) {

	.dp2-homepage-lead-intro {
		margin-bottom: 3rem;
		padding-bottom: 2rem;
	}

	.dp2-homepage-lead-headline {
		font-size: 2.35rem;
	}

	.dp2-homepage-lead-lede {
		font-size: 1.05rem;
	}

	.dp2-homepage-lead-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
		grid-template-rows: 1fr 1fr;
		grid-template-areas:
			'left_upper  focus right_upper'
			'left_lower  focus right_lower';
		column-gap: 3rem;
	}

	.dp2-homepage-lead-focus {
		grid-area: focus;
		margin-bottom: 0;
		padding: 0 2.5rem;
		border-left: 1px solid var(--dp2-line);
		border-right: 1px solid var(--dp2-line);
	}

	.dp2-homepage-lead-focus-title {
		font-size: 2.1rem;
	}

	.dp2-homepage-lead-slot-left_upper {
		grid-area: left_upper;
		align-self: start;
	}

	.dp2-homepage-lead-slot-left_lower {
		grid-area: left_lower;
		align-self: end;
	}

	.dp2-homepage-lead-slot-right_upper {
		grid-area: right_upper;
		align-self: start;
	}

	.dp2-homepage-lead-slot-right_lower {
		grid-area: right_lower;
		align-self: end;
	}

	.dp2-homepage-lead-support {
		border-top: none;
	}

	.dp2-homepage-lead-support:last-child {
		border-bottom: none;
	}

	.dp2-homepage-lead-support-link {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.65rem;
		padding: 0;
		min-height: 0;
	}

	.dp2-homepage-lead-support-index {
		width: auto;
		font-size: 0.8rem;
	}

	.dp2-homepage-lead-support-media {
		width: 100%;
		height: 140px;
		border-radius: 3px;
	}

	.dp2-homepage-lead-support-title {
		font-size: 1rem;
	}

	.dp2-homepage-lead-support-arrow {
		display: none;
	}
}
