/* VD Blog Tabs — matches the dark pillar-page sections and .vd-res card look */

.vd-blog-tabs {
	--vd-accent: #3F9B63;
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Tab pills */
.vd-blog-tablist {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* Kill any theme-injected bullets/numbers (markers or ::before pseudo-bullets). */
.vd-blog-tab::marker {
	content: none;
}

.vd-blog-tablist .vd-blog-tab::before {
	display: none;
	content: none;
}

.vd-blog-tab {
	list-style: none;
	padding: 8px 22px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
	user-select: none;
}

.vd-blog-tab:hover {
	filter: brightness(0.85);
}

.vd-blog-tab.is-active {
	background: var(--vd-accent);
	border-color: var(--vd-accent);
	color: #fff;
	font-weight: 700;
}

.vd-blog-tab:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Panel + grid */
.vd-blog-panel {
	min-height: 120px;
}

.vd-blog-panel:focus-visible {
	outline: 2px solid var(--vd-accent);
	outline-offset: 4px;
	border-radius: 8px;
}

.vd-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* Cards — mirror the existing .vd-res white card */
.vd-blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 6px 6px 20px 0 rgba(16, 24, 40, 0.06);
}

.vd-blog-card-img {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, #0c3b55, #22c0ca);
}

.vd-blog-card-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vd-blog-card-body {
	flex-grow: 1;
	padding: 20px 26px 0;
}

.vd-blog-card h3 {
	margin: 0 0 10px;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
	color: #072337;
}

.vd-blog-card h3 a {
	color: #072337;
	text-decoration: none;
}

.vd-blog-card p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

.vd-blog-card-link {
	display: inline-block;
	margin: 16px 26px 28px;
	font-weight: 600;
	color: var(--vd-accent);
	text-decoration: none;
}

.vd-blog-card-link:hover {
	text-decoration: underline;
}

/* States — self-contained chip so they read on dark OR light backgrounds */
.vd-blog-empty,
.vd-blog-error {
	text-align: center;
	padding: 28px 24px;
	font-size: 15px;
	line-height: 1.5;
	color: #334155;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid #e6e8ec;
	border-radius: 14px;
}

.vd-blog-error {
	color: #842029;
	background: #fdf0f1;
	border-color: #f3c6ca;
}

.vd-blog-retry {
	margin-left: 8px;
	padding: 6px 16px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--vd-accent);
	border: 0;
	border-radius: 16px;
	cursor: pointer;
}

.vd-blog-retry:hover {
	filter: brightness(0.92);
}

.vd-blog-retry:focus-visible {
	outline: 2px solid #072337;
	outline-offset: 2px;
}

/* Skeleton loading — same footprint as real cards to avoid layout shift */
.vd-blog-skel {
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 14px;
	overflow: hidden;
	padding-bottom: 22px;
}

.vd-blog-skel-img {
	aspect-ratio: 16 / 9;
	background: #dfe4ea;
}

.vd-blog-skel-line {
	height: 14px;
	margin: 18px 26px 0;
	border-radius: 6px;
	background: #dfe4ea;
}

.vd-blog-skel-line.short {
	width: 55%;
}

/* A sweeping highlight reads unmistakably as "loading" — far clearer than a
   faint opacity pulse on a near-white block. */
.vd-blog-skeleton .vd-blog-skel-img,
.vd-blog-skeleton .vd-blog-skel-line {
	background-image: linear-gradient(100deg, #dfe4ea 30%, #f4f7fb 50%, #dfe4ea 70%);
	background-size: 200% 100%;
	background-repeat: no-repeat;
	animation: vd-blog-shimmer 1.3s ease-in-out infinite;
}

@keyframes vd-blog-shimmer {
	0%   { background-position: 150% 0; }
	100% { background-position: -50% 0; }
}

/* Visually-hidden live region for screen-reader status announcements */
.vd-blog-sr-status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Responsive */
@media (max-width: 980px) {
	.vd-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.vd-blog-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vd-blog-tab {
		transition: none;
	}
	.vd-blog-skeleton .vd-blog-skel-img,
	.vd-blog-skeleton .vd-blog-skel-line {
		animation: none;
	}
}
