/*
 * Finance Clean — "Landing – Listicle" (templates/landing-listicle.php +
 * Elementor widgets). Loaded only on listicle landing pages.
 */

.listicle-page {
	--l-blue: #2563eb;
	--l-green: #16a34a;
	--l-green-dark: #15803d;
	--l-amber: #f59e0b;
	--l-text: #111827;
	--l-body: #1f2937;
	--l-muted: #4b5563;
	--l-faint: #6b7280;
	--l-line: #e5e7eb;
	--l-soft: #f9fafb;
	--l-badge-bg: #fee2e2;
	--l-badge-fg: #b91c1c;
	--l-shadow: 0 2px 8px rgba(0,0,0,.05);
	--kit-widget-spacing: 0px;
	display: block;
	background: var(--surface);
	color: var(--l-body);
}

[data-theme="dark"] .listicle-page {
	--l-blue: #60a5fa;
	--l-green: #16a34a;
	--l-green-dark: #15803d;
	--l-text: var(--text);
	--l-body: #cbd5e1;
	--l-muted: var(--muted);
	--l-faint: #7b8794;
	--l-line: var(--border);
	--l-soft: rgba(255,255,255,.04);
	--l-badge-bg: rgba(248,113,113,.15);
	--l-badge-fg: #fca5a5;
	--l-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* Elementor wrappers: spacing comes from this stylesheet, not the kit. */
.listicle-page .elementor-widget:not(:last-child) { margin-block-end: 0; }
.listicle-page .elementor-section.elementor-section-boxed > .elementor-container { max-width: none; }
.listicle-page .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0; }
.listicle-page .e-con { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 0; --content-width: 100%; }

.listicle-page .lp-wrap {
	width: min(100% - 32px, 680px);
	margin: 0 auto;
	padding: 32px 0 48px;
	font-size: 18px;
	line-height: 1.6;
}

.listicle-page h1,
.listicle-page h2 { color: var(--l-text); }

.listicle-page h1 {
	margin: 14px 0 16px;
	font-size: clamp(28px, 5vw, 38px);
	line-height: 1.2;
	letter-spacing: -.02em;
}

.listicle-page p { margin: 0 0 16px; }

.listicle-page strong { color: var(--l-text); }

.listicle-page .lp-badge {
	display: inline-block;
	padding: 4px 10px;
	background: var(--l-badge-bg);
	color: var(--l-badge-fg);
	border-radius: 99px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .3px;
}

.listicle-page .lp-lead { font-size: 20px; }

.listicle-page .lp-question { margin-bottom: 0; }

/* Picker */
.listicle-page .lp-pick {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 20px 0;
}

.listicle-page .lp-pick a {
	display: block;
	padding: 14px 10px;
	color: var(--l-blue);
	border: 2px solid var(--l-blue);
	border-radius: 10px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	transition: background .18s ease, color .18s ease;
}

.listicle-page .lp-pick a:hover,
.listicle-page .lp-pick a:focus-visible {
	background: var(--l-blue);
	color: #fff;
}

/* Cards */
.listicle-page .lp-card {
	margin: 22px 0;
	padding: 18px 18px 20px;
	background: var(--surface);
	border: 1px solid var(--l-line);
	border-radius: 12px;
	box-shadow: var(--l-shadow);
}

.listicle-page .lp-card--highlight { border: 2px solid var(--l-green); }

.listicle-page .lp-card h2 {
	margin: 6px 0 8px;
	font-size: 22px;
	line-height: 1.3;
}

.listicle-page .lp-card p:last-of-type { margin-bottom: 12px; }

.listicle-page .lp-meta {
	margin-bottom: 8px;
	color: var(--l-muted);
	font-size: 14px;
}

.listicle-page .lp-meta b { color: var(--l-text); }

.listicle-page .lp-num {
	color: var(--l-blue);
	font-weight: 800;
}

.listicle-page .lp-lock {
	margin: 10px 0 14px;
	padding: 10px 12px;
	background: var(--l-soft);
	border-left: 4px solid var(--l-amber);
	font-size: 16px;
}

.listicle-page .lp-btn {
	display: block;
	padding: 14px;
	background: var(--l-green);
	color: #fff;
	border-radius: 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	transition: background .18s ease, transform .18s ease;
}

.listicle-page .lp-btn:hover,
.listicle-page .lp-btn:focus-visible {
	background: var(--l-green-dark);
	color: #fff;
	transform: translateY(-1px);
}

.listicle-page .lp-btn:focus-visible,
.listicle-page .lp-pick a:focus-visible { outline: 2px solid var(--l-blue); outline-offset: 3px; }

/* Ads: keep them clearly apart from buttons (AdX policy). */
.listicle-page .ad { margin: 32px auto; }

.listicle-page .ad--placeholder .ad__slot {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	padding: 12px;
	background: var(--l-soft);
	color: var(--l-muted);
	border: 1px dashed var(--l-line);
	border-radius: 10px;
	font-size: 13px;
}

.listicle-page .lp-small {
	margin-top: 24px;
	color: var(--l-faint);
	font-size: 13px;
}

@media (max-width: 480px) {
	.listicle-page .lp-pick { grid-template-columns: 1fr; }
}
