/* =============================================================
   New in the Directory — front page box (replaces Case Studies)
   Real vd_link data: logo + name + category/origin + views + rating
   ============================================================= */

.vd-newlinks-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
	padding: 0 24px;
}

.vd-newlink {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: 14px;
}

.vd-newlink-logo {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--vd-card);
	border: 1px solid var(--vd-border);
}

.vd-newlink-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vd-newlink-logo-ph {
	font-size: 18px;
	font-weight: 800;
	color: var(--vd-primary);
}

.vd-newlink-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.vd-newlink-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
}

.vd-newlink-top b {
	font-size: 14px;
	font-weight: 700;
	color: var(--vd-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vd-newlink-views {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--vd-text-3);
}

.vd-newlink-meta {
	font-size: 12.5px;
	color: var(--vd-text-3);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Product-category tags (same palette as the detail page badges). */
.vd-newlink-tags {
	display: flex;
	gap: 5px;
	min-width: 0;
	overflow: hidden;
}

.vd-newlink-tag {
	flex: none;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	padding: 3px 9px;
	border-radius: 999px;
}

.vd-newlink-tag.vd-tag-ice {
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
}

.vd-newlink-rate {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #f59e0b;
}

.vd-newlink-rate b {
	color: var(--vd-text-2);
}

/* Submit-a-business CTA at the bottom of the box. */
.vd-newlinks-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 16px 24px 22px;
	padding: 11px 18px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--vd-primary);
	background: var(--vd-primary-soft);
	border: 1.5px dashed var(--vd-primary-border);
	border-radius: 999px;
	transition: filter .2s;
}

.vd-newlinks-cta:hover {
	filter: brightness(0.97);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
	.vd-newlinks-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	/* minmax(0, 1fr): the category pills are flex:none, so a plain 1fr
	   track would grow to their combined width and overflow the page. */
	.vd-newlinks-grid {
		grid-template-columns: minmax(0, 1fr);
		padding: 0 16px;
	}

	.vd-newlinks-cta {
		margin: 14px 16px 18px;
	}
}
