/* VELYON Theme — Latest Insights block (v2.7.0)
   Markup: blocks/latest-posts/render.php. Prefix vlp-. Tokens only (dark + light).
   Desktop: one big photo-led story on the left, a short list on the right. Phone: stacked, big story first. */

.vlp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.vlp-eyebrow { display: inline-block; margin-bottom: 8px; font-family: var(--velyon-font-heading); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--velyon-accent-deep); }
.vlp-title { margin: 0 0 6px; font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.vlp-sub { margin: 0; max-width: 58ch; color: var(--velyon-text-muted); font-size: 15px; }
.vlp-all { display: inline-flex; align-items: center; gap: 6px; flex: none; font-family: var(--velyon-font-heading); font-size: 14px; font-weight: 700; color: var(--velyon-accent-deep); }
.vlp-all:hover { text-decoration: underline; }
.vlp-all--foot { display: none; }

.vlp-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.vlp-grid--solo { grid-template-columns: minmax(0, 1fr); }

/* big story: photo fills the card, text sits on a dark fade */
.vlp-lead { position: relative; display: block; min-height: 400px; overflow: hidden; color: #fff; background: var(--velyon-surface-alt); border: 1px solid var(--velyon-border); border-radius: 24px; isolation: isolate; }
.vlp-lead-media, .vlp-lead-media img, .vlp-lead-media .vlp-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.vlp-lead-media img { object-fit: cover; transition: transform .5s ease; }
.vlp-lead:hover .vlp-lead-media img { transform: scale(1.04); }
.vlp-lead::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(4, 10, 6, .92) 0%, rgba(4, 10, 6, .62) 42%, rgba(4, 10, 6, 0) 75%); }
.vlp-lead-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px; }
.vlp-chip { padding: 4px 12px; font-family: var(--velyon-font-heading); font-size: 11.5px; font-weight: 700; color: #05170a; background: var(--velyon-accent); border-radius: 999px; }
.vlp-lead-title { margin: 0; max-width: 24ch; font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; line-height: 1.18; color: #fff; }
.vlp-lead-text { margin: 0; max-width: 56ch; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.vlp-lead .vlp-meta { color: rgba(255, 255, 255, .78); }

/* list */
.vlp-list { display: grid; gap: 12px; align-content: stretch; grid-auto-rows: 1fr; }
.vlp-item { display: flex; align-items: center; gap: 14px; padding: 12px; color: var(--velyon-text); background: var(--velyon-surface); border: 1px solid var(--velyon-border); border-radius: 18px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.vlp-item:hover, .vlp-item:focus-visible { transform: translateY(-3px); box-shadow: var(--velyon-shadow); border-color: var(--velyon-accent); outline: none; }
.vlp-item-media { position: relative; flex: none; width: 104px; height: 84px; overflow: hidden; border-radius: 12px; background: var(--velyon-surface-alt); }
.vlp-item-media img, .vlp-item-media .vlp-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vlp-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vlp-kicker { font-family: var(--velyon-font-heading); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--velyon-accent-deep); }
.vlp-item-title { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vlp-meta { font-size: 12.5px; color: var(--velyon-text-muted); }

/* branded gradients when a post has no picture */
.vlp-ph { display: block; }
.vlp-ph--0 { background: linear-gradient(135deg, #1d4ed8, #10b981 60%, #f59e0b); }
.vlp-ph--1 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.vlp-ph--2 { background: linear-gradient(135deg, #0ea5e9, #22c55e); }
.vlp-ph--3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

/* topics */
.vlp-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.vlp-topics-h { font-family: var(--velyon-font-heading); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--velyon-text-muted); }
.vlp-topics a { padding: 5px 14px; font-size: 13px; color: var(--velyon-text-muted); background: var(--velyon-surface); border: 1px solid var(--velyon-border); border-radius: 999px; }
.vlp-topics a:hover { color: var(--velyon-text); border-color: var(--velyon-accent); }

@media (max-width: 900px) {
	.vlp-head { align-items: flex-start; }
	.vlp-all--head { display: none; }
	.vlp-all--foot { display: flex; justify-content: center; margin-top: 18px; padding: 12px; border: 1px solid var(--velyon-border); border-radius: 999px; background: var(--velyon-surface); }
	.vlp-grid { grid-template-columns: minmax(0, 1fr); }
	.vlp-lead { min-height: 340px; }
	.vlp-lead-body { padding: 20px; }
	.vlp-list { grid-auto-rows: auto; }
	.vlp-item-media { width: 92px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
	.vlp-lead-media img, .vlp-item { transition: none; }
	.vlp-lead:hover .vlp-lead-media img, .vlp-item:hover { transform: none; }
}
