/*
 * Blog listing and the stage categories, from the Claude Design board
 * "Blog listing, all guides" (2026-11-21), value for value
 * (template-parts/blog-listing.php). Classes vfb-. The guide card rules
 * (.vfb-card, .vfb-image, .vfb-meta) are repeated in t-article.css for the
 * article's "More from" row; keep the two copies the same.
 */

.vfb-topbar, .vfb-tools, .vfb-newest, .vfb-listing { font-family: Manrope, system-ui, sans-serif; color: #0D0F1E; }
.vfb-tools *, .vfb-newest *, .vfb-listing * { box-sizing: border-box; }
.vfb-tools a:hover, .vfb-newest a:hover, .vfb-listing a:hover { color: inherit; }

/* The board's dark top, where it differs from the shared one (banner.php). */
body.vf .vfi-top .vfi-eyebrow { margin-bottom: 20px; }
body.vf .vfi-top__lede { max-width: 460px; }

/* The bar under the dark top: the route's gradient, or the stage's progress. */
.vfb-topbar { background: #0D0F1E; }
.vfb-topbar > div { height: 4px; }

/* ── Filter row and search ─────────────────────────────────────────────── */
.vfb-tools { border-bottom: 1px solid #E6E4F5; background: #FFFFFF; }
.vfb-tools__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 28px; }
.vfb-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.vfb-filter a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border: 1px solid var(--vfb-line, #CFCCE6); border-radius: 999px; background: #FFFFFF;
	color: var(--vfb-ink, #0D0F1E); font-size: 15px; font-weight: 700; text-decoration: none;
}
.vfb-filter .vfb-filter__all { padding: 0 20px; }
.vfb-filter__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vfb-dot); }
.vfb-filter a:hover { border-color: var(--vfb-dot, #0D0F1E); color: var(--vfb-ink, #0D0F1E); }
.vfb-filter a[aria-current="page"] { border-color: var(--vfb-dot, #0D0F1E); background: var(--vfb-dot, #0D0F1E); color: #FFFFFF; }
.vfb-filter a[aria-current="page"]:hover { color: #FFFFFF; }
.vfb-filter a[aria-current="page"] .vfb-filter__dot { background: #FFFFFF; }

.vfb-search { display: flex; gap: 8px; flex: 0 1 380px; }
.vfb-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vfb-search__field {
	flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 10px;
	border: 1px solid #CFCCE6; background: #FFFFFF; color: #0D0F1E; font: 500 15px Manrope, sans-serif;
}
.vfb-search__button {
	min-height: 46px; padding: 0 18px; border-radius: 10px; border: 0; background: #0D0F1E; color: #FFFFFF;
	font: 700 15px Manrope, sans-serif; cursor: pointer;
}
.vfb-search__button:hover { background: #4F47D6; }

/* ── Newest guide ──────────────────────────────────────────────────────── */
.vfb-newest { background: #FFFFFF; }
.vfb-newest__in { padding-top: 64px; padding-bottom: 80px; }
.vfb-eyebrow { margin: 0 0 20px; color: #4F47D6; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.vfb-feature {
	display: flex; flex-wrap: wrap; overflow: hidden; border: 1px solid #E6E4F5; border-radius: 18px;
	background: #FFFFFF; color: #0D0F1E; text-decoration: none; transition: box-shadow .2s ease;
}
.vfb-feature:hover { box-shadow: 0 18px 40px -22px rgba(13, 15, 30, .35); }
.vfb-feature .vfb-image { flex: 1 1 420px; height: auto; min-height: 340px; }
.vfb-feature__body { flex: 999 1 420px; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px; }
.vfb-feature__body .vfb-meta { flex-wrap: wrap; }
.vfb-feature__title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.18; font-weight: 800; letter-spacing: -.025em; }
.vfb-feature__excerpt { color: #4A4C63; font-size: 18px; line-height: 1.6; }
.vfb-feature__more { color: #4F47D6; font-size: 15px; font-weight: 700; }

/* ── All guides ────────────────────────────────────────────────────────── */
.vfb-listing { border-top: 1px solid #E6E4F5; background: #F4F3FF; }
.vfb-listing__in { padding-top: 88px; padding-bottom: 96px; }
body.vf .vfb-h2 { margin: 0 0 32px; color: #0D0F1E; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.vfb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.vfb-empty { margin: 0; color: #4A4C63; font-size: 18px; line-height: 1.6; }
.vfb-listing .vef-pagination { margin-top: 48px; }

/* ── Guide card (also in t-article.css) ────────────────────────────────── */
.vfb-card {
	display: flex; flex-direction: column; overflow: hidden; border: 1px solid #E6E4F5; border-radius: 18px;
	background: #FFFFFF; color: #0D0F1E; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease;
}
.vfb-card:hover { box-shadow: 0 18px 40px -22px rgba(13, 15, 30, .35); transform: translateY(-3px); color: #0D0F1E; }
.vfb-image {
	position: relative; display: flex; align-items: center; justify-content: center; height: 200px; overflow: hidden;
	border-bottom: 4px solid var(--vfb-bar, #6C63FF); background: #0D0F1E;
}
.vfb-image__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vfb-image__mark { display: block; width: 64px; height: 64px; object-fit: contain; }
.vfb-image__mark--lg { width: 96px; height: 96px; }
.vfb-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.vfb-meta { display: flex; align-items: center; gap: 10px; }
.vfb-meta__stage { color: var(--vfb-ink, #4F47D6); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.vfb-meta__date { color: #5F6178; font-size: 13px; }
.vfb-card__title { font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; }
.vfb-card__excerpt { flex: 1 1 auto; color: #4A4C63; font-size: 16px; line-height: 1.6; }
.vfb-card__more { color: #4F47D6; font-size: 15px; font-weight: 700; }

@media (max-width: 600px) {
	.vfb-search { flex-basis: 100%; }
	.vfb-feature .vfb-image { min-height: 240px; }
	.vfb-feature__body { padding: 28px; }
	.vfb-newest__in { padding-top: 48px; padding-bottom: 56px; }
	.vfb-listing__in { padding-top: 64px; padding-bottom: 72px; }
	body.vf .vfb-h2 { font-size: 30px; }
}

/* A topic page's link up to its stage page, under the headline. */
.vfi-top__meta .vfb-stage-link { color: #A9A3FF; font-size: 16px; font-weight: 700; text-decoration: none; }
.vfi-top__meta .vfb-stage-link:hover { color: #FFFFFF; }
