/**
 * DeskPicko NEW Editorial Homepage Prototype — Phase 2E Popular Comparisons.
 *
 * Namespace: `dp2-popular-comparisons-`, a sibling of `dp2-editors-picks-`
 * (Phase 2C) and `dp2-finder-` (Phase 2B). Fully isolated from those,
 * from the Phase 1H Category Module (`dp-` prefix), and from the
 * existing production dark-theme site.
 *
 * WIDTH STANDARD (per the Phase 2C convention documented in
 * dp2-editors-picks.css): no independent max-width/margin:auto here
 * either. This section fills whatever Elementor column it's placed
 * in — including a half-width column beside Recently Updated on
 * desktop, per the Phase 2E homepage layout — rather than assuming
 * a specific width itself.
 *
 * This is a compact editorial list, not a card grid: mobile-first
 * base rules already match the desktop layout (single-column list of
 * rows) — there is no desktop-only rearrangement breakpoint here,
 * unlike the Category Module / Editor's Picks feature+supporting
 * layouts.
 */

.dp2-popular-comparisons {
	--dp2-ink: #14181c;
	--dp2-ink-soft: #4b5563;
	--dp2-teal: #0f766e;
	--dp2-line: #e5e7eb;

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

.dp2-popular-comparisons *,
.dp2-popular-comparisons *::before,
.dp2-popular-comparisons *::after {
	box-sizing: inherit;
}

/* ---------------------------------------------------------------
   Intro: heading + description on the left, CTA on the right
   --------------------------------------------------------------- */

.dp2-popular-comparisons-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin-bottom: 1.25rem;
}

.dp2-popular-comparisons-intro-text {
	min-width: 0;
}

.dp2-popular-comparisons-heading {
	margin: 0 0 0.35rem;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.25;
}

.dp2-popular-comparisons-description {
	margin: 0;
	max-width: 48ch;
	color: var(--dp2-ink-soft);
	font-size: 0.9rem;
	line-height: 1.5;
}

.dp2-popular-comparisons-cta {
	flex: none;
	color: var(--dp2-teal);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	padding-top: 0.2rem;
}

.dp2-popular-comparisons-cta:hover,
.dp2-popular-comparisons-cta:focus-visible {
	text-decoration: underline;
}

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

/* ---------------------------------------------------------------
   Compact row list
   --------------------------------------------------------------- */

.dp2-popular-comparisons-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.dp2-popular-comparisons-item {
	border-top: 1px solid var(--dp2-line);
}

.dp2-popular-comparisons-item:last-child {
	border-bottom: 1px solid var(--dp2-line);
}

.dp2-popular-comparisons-link {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-height: 44px;
	padding: 0.75rem 0;
	color: inherit;
	text-decoration: none;
}

.dp2-popular-comparisons-link:focus-visible {
	outline: 2px solid var(--dp2-teal);
	outline-offset: 2px;
}

.dp2-popular-comparisons-media {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--dp2-line);
}

.dp2-popular-comparisons-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dp2-popular-comparisons-text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.dp2-popular-comparisons-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}

.dp2-popular-comparisons-link:hover .dp2-popular-comparisons-title,
.dp2-popular-comparisons-link:focus-visible .dp2-popular-comparisons-title {
	text-decoration: underline;
}

.dp2-popular-comparisons-date {
	font-size: 0.8rem;
	color: var(--dp2-ink-soft);
}
