.blog .soloteche-blog-index { background: var(--wp--preset--color--background); }

.blog .soloteche-blog-hero > *,
.blog .soloteche-blog-featured > *,
.blog .soloteche-blog-all > * { margin-inline: 0 !important; }

.blog .soloteche-blog-hero h1,
.blog .soloteche-blog-hero p,
.blog .soloteche-blog-card :where(h2, h3, p),
.blog .soloteche-blog-card__body,
.blog .soloteche-blog-card__meta,
.blog .soloteche-blog-featured__side-header :where(h2, p),
.blog .soloteche-blog-all > h2 { margin: 0; }

.blog .soloteche-blog-hero h1 { width: 100%; max-width: 18ch !important; }
.blog .soloteche-blog-hero p { width: 100%; max-width: 66ch !important; }
.blog .soloteche-blog-hero h1 + p {
	margin-top: var(--wp--preset--spacing--space-3) !important;
}
.blog .soloteche-blog-hero { padding-bottom: 0 !important; }

.blog .soloteche-blog-featured {
	margin-top: var(--wp--preset--spacing--space-8) !important;
	padding-top: 0;
}

.blog .soloteche-blog-featured__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(320px, .85fr);
	gap: var(--wp--preset--spacing--space-4);
	align-items: stretch;
}

.blog .soloteche-blog-lead-query,
.blog .soloteche-blog-lead-query .wp-block-post-template,
.blog .soloteche-blog-lead-query .wp-block-post,
.blog .soloteche-blog-card--lead { height: 100%; }

.blog .soloteche-blog-lead-query .wp-block-post-template,
.blog .soloteche-blog-side-list,
.blog .soloteche-blog-all__grid {
	margin: 0;
	padding: 0;
	list-style: none;
}

.blog .soloteche-blog-card__media,
.blog .soloteche-blog-card__media a,
.blog .soloteche-blog-card__media img { display: block; width: 100%; }

.blog .soloteche-blog-card__media {
	overflow: hidden;
	margin: 0;
	background: var(--wp--preset--color--surface-alt);
}

.blog .soloteche-blog-card__media img { height: 100%; object-fit: cover; }

.blog .soloteche-blog-card__body > * {
	width: 100%;
	max-width: none !important;
	margin-inline: 0 !important;
}

.blog .soloteche-blog-card--lead { display: flex; flex-direction: column; }
.blog .soloteche-blog-card--lead .soloteche-blog-card__media { aspect-ratio: 16 / 9; }
.blog .soloteche-blog-card--lead .soloteche-blog-card__body { padding-top: var(--wp--preset--spacing--space-4); }
.blog .soloteche-blog-card--lead .wp-block-post-title { max-width: 21ch !important; }
.blog .soloteche-blog-card--lead .wp-block-post-excerpt { max-width: 66ch !important; }

.blog .soloteche-blog-featured__side {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	margin-block: 0 !important;
	border: 1px solid var(--wp--preset--color--border);
}

.blog .soloteche-blog-featured__side-header {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 120px;
}

.blog .soloteche-blog-featured__side-header > * {
	width: 100%;
	max-width: none !important;
	margin-inline: 0 !important;
}

.blog .soloteche-blog-featured__side-header p {
	color: color-mix(in srgb, var(--wp--preset--color--surface) 76%, transparent);
}

.blog .soloteche-blog-featured__side-header h2 + p {
	margin-top: var(--wp--preset--spacing--space-1) !important;
}

.blog .soloteche-blog-side-query {
	flex: 1;
	padding-inline: var(--wp--preset--spacing--space-4);
}

.blog .soloteche-blog-side-list {
	display: grid;
	height: 100%;
	grid-template-rows: repeat(3, minmax(0, 1fr));
}

.blog .soloteche-blog-side-list > li {
	min-width: 0;
	margin: 0;
	padding-block: var(--wp--preset--spacing--space-3);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.blog .soloteche-blog-side-list > li:last-child { border-bottom: 0; }

.blog .soloteche-blog-card--side {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: var(--wp--preset--spacing--space-3);
	align-items: center;
	height: 100%;
}

.blog .soloteche-blog-card--side .soloteche-blog-card__media { aspect-ratio: 4 / 3; }
.blog .soloteche-blog-card--side .wp-block-post-title { font-size: var(--wp--preset--font-size--xl) !important; }

.blog .soloteche-blog-card__meta,
.blog .soloteche-blog-card__meta a { color: var(--wp--preset--color--muted); }

.blog .soloteche-blog-card__meta a,
.blog .soloteche-blog-card .wp-block-post-title a { color: inherit; text-decoration: none; }
.blog .soloteche-blog-card .wp-block-post-excerpt__excerpt { line-height: 1.65; }

.blog .soloteche-blog-all {
	margin-top: var(--wp--preset--spacing--space-10) !important;
	padding-top: var(--wp--preset--spacing--space-4);
	border-top: 1px solid var(--wp--preset--color--border);
}

.blog .soloteche-blog-all__grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: var(--wp--preset--spacing--space-4) !important;
}

.blog .soloteche-blog-all__grid > li { min-width: 0; margin: 0; }
.blog .soloteche-blog-all__grid .soloteche-blog-card__body { padding-top: var(--wp--preset--spacing--space-3); }
.blog .soloteche-blog-all__grid .wp-block-post-title { font-size: var(--wp--preset--font-size--2-xl) !important; }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
	.blog .soloteche-blog-featured__side-header h2 {
		display: inline-block;
		color: transparent !important;
		background-image: linear-gradient(100deg,
			color-mix(in srgb, var(--wp--preset--color--surface) 84%, transparent) 0%,
			color-mix(in srgb, var(--wp--preset--color--surface) 84%, transparent) 41%,
			var(--wp--preset--color--surface) 50%,
			color-mix(in srgb, var(--wp--preset--color--surface) 84%, transparent) 59%,
			color-mix(in srgb, var(--wp--preset--color--surface) 84%, transparent) 100%);
		background-size: 320% 100%;
		background-position: 220% 0;
		background-clip: text;
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		animation: soloteche-blog-led-sweep 7s ease-in-out infinite;
	}
}

@keyframes soloteche-blog-led-sweep {
	0%, 12% { background-position: 220% 0; }
	68%, 100% { background-position: -220% 0; }
}

@media (width <= 900px) {
	.blog .soloteche-blog-featured,
	.blog .soloteche-blog-all { margin-top: var(--wp--preset--spacing--space-6) !important; }
	.blog .soloteche-blog-featured__layout { grid-template-columns: minmax(0, 1fr); }
	.blog .soloteche-blog-featured__side { height: auto; }
	.blog .soloteche-blog-side-list { grid-template-rows: none; }
	.blog .soloteche-blog-all__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (width <= 640px) {
	.blog .soloteche-blog-featured,
	.blog .soloteche-blog-all { margin-top: var(--wp--preset--spacing--space-6) !important; }
	.blog .soloteche-blog-hero h1 { font-size: var(--wp--preset--font-size--4-xl) !important; }
	.blog .soloteche-blog-card--lead .wp-block-post-title { font-size: var(--wp--preset--font-size--3-xl) !important; }
	.blog .soloteche-blog-featured__side-header { min-height: 104px; }
	.blog .soloteche-blog-side-query { padding-inline: var(--wp--preset--spacing--space-3); }
	.blog .soloteche-blog-card--side { grid-template-columns: 104px minmax(0, 1fr); }
	.blog .soloteche-blog-all__grid { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (prefers-reduced-motion: reduce) {
	.blog .soloteche-blog-featured__side-header h2 {
		color: var(--wp--preset--color--surface) !important;
		background: none !important;
		-webkit-text-fill-color: currentColor;
		animation: none !important;
	}
}
