:root {
	--webst-posts-bg: #ffffff;
	--webst-posts-surface: #ffffff;
	--webst-posts-surface-soft: #f7f8fa;
	--webst-posts-border: #d7dde6;
	--webst-posts-text: #10233d;
	--webst-posts-muted: #55657c;
	--webst-posts-accent: #8f3b16;
	--webst-posts-accent-dark: #702c0f;
	--webst-posts-pill-bg: #f1f4f8;
	--webst-posts-pill-text: #41546c;
	--webst-posts-category-bg: #eef3f7;
	--webst-posts-category-text: #214765;
}

.webst-posts-archive,
.webst-posts-single {
	max-width: 1220px;
	margin: 0 auto;
	padding: 28px 20px 56px;
}

.webst-posts-archive-header,
.webst-posts-single-card {
	position: relative;
}

.webst-posts-archive-header {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--webst-posts-border);
}

.webst-posts-kicker {
	margin: 0 0 10px;
	color: var(--webst-posts-accent-dark);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.webst-posts-archive-title,
.webst-posts-single-title {
	margin: 0;
	color: var(--webst-posts-text);
	line-height: 1.05;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
}

.webst-posts-archive-title {
	font-size: clamp(2rem, 4vw, 3.1rem);
}

.webst-posts-archive-description {
	margin-top: 12px;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--webst-posts-muted);
	max-width: 760px;
}

.webst-posts-archive-description p:last-child {
	margin-bottom: 0;
}

.webst-posts-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.webst-posts-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.webst-posts-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--webst-posts-border);
	border-radius: 18px;
	background: var(--webst-posts-surface);
}

.webst-posts-card-media {
	display: block;
	height: 230px;
	background: #edf1f5;
}

.webst-posts-card-image,
.webst-posts-single-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.webst-posts-card-placeholder,
.webst-posts-single-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--webst-posts-text);
	font-size: 1rem;
	font-weight: 600;
}

.webst-posts-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 18px 20px;
}

.webst-posts-card-categories,
.webst-posts-card-tags,
.webst-posts-single-categories,
.webst-posts-single-tags,
.webst-posts-term-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.webst-posts-card-categories {
	margin-bottom: 10px;
}

.webst-posts-card-meta,
.webst-posts-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	color: var(--webst-posts-muted);
	font-size: 0.94rem;
}

.webst-posts-card-meta {
	margin-bottom: 14px;
}

.webst-posts-card-meta span,
.webst-posts-single-meta span {
	position: relative;
}

.webst-posts-card-meta span:not(:last-child)::after,
.webst-posts-single-meta span:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-left: 16px;
	border-radius: 999px;
	background: rgba(92, 103, 121, 0.5);
	vertical-align: middle;
}

.webst-posts-card-title {
	margin: 0 0 12px;
	font-size: 1.35rem;
	line-height: 1.15;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
}

.webst-posts-card-title a {
	color: var(--webst-posts-text);
	text-decoration: none;
}

.webst-posts-card-title a:hover,
.webst-posts-card-title a:focus-visible,
.webst-posts-readmore:hover,
.webst-posts-readmore:focus-visible,
.webst-posts-backlink:hover,
.webst-posts-backlink:focus-visible {
	color: var(--webst-posts-accent-dark);
}

.webst-posts-card-excerpt {
	flex: 1;
	color: #2d3f57;
	line-height: 1.75;
}

.webst-posts-card-excerpt p:last-child {
	margin-bottom: 0;
}

.webst-posts-card-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	padding-top: 14px;
}

.webst-posts-readmore,
.webst-posts-backlink {
	color: var(--webst-posts-accent);
	font-weight: 600;
	text-decoration: none;
}

.webst-posts-backlink::before {
	content: "<";
	margin-right: 8px;
}

.webst-posts-term-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.webst-posts-category-pill {
    background: #7f1100;
    color: #ffffff;
}

.webst-posts-tag-pill {
    background: #7f1100;
    color: #ffffff;
}

.webst-posts-pagination {
	margin-top: 28px;
}

.webst-posts-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.webst-posts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 10px 14px;
	border: 1px solid var(--webst-posts-border);
	border-radius: 999px;
	background: var(--webst-posts-surface);
	color: var(--webst-posts-text);
	text-decoration: none;
}

.webst-posts-pagination .page-numbers.current {
	background: #f7f1ed;
	border-color: #ead6c7;
	color: var(--webst-posts-accent);
}

.webst-posts-empty-state {
	padding: 36px;
	border: 1px solid var(--webst-posts-border);
	border-radius: 18px;
	background: var(--webst-posts-surface);
	color: var(--webst-posts-text);
}

.webst-posts-empty-state h2 {
	margin-top: 0;
}

.webst-posts-single-card {
	display: grid;
	gap: 20px;
}

.webst-posts-single-topbar {
	display: flex;
	align-items: center;
}

.webst-posts-single-hero {
	display: grid;
	grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.webst-posts-single-cover {
	overflow: hidden;
	border-radius: 22px;
	background: #edf1f5;
}

.webst-posts-single-image,
.webst-posts-single-placeholder {
	aspect-ratio: 1 / 1;
}

.webst-posts-single-summary {
	display: grid;
	gap: 12px;
	align-content: start;
}

.webst-posts-single-title {
	font-size: clamp(2.2rem, 4.2vw, 4rem);
}

.webst-posts-single-body {
	display: block;
	margin-top: 8px;
}

.webst-posts-single-content {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #1e293b;
	font-size: 1rem;
	line-height: 1.8;
}

.webst-posts-single-content > :first-child {
	margin-top: 0;
}

.webst-posts-single-content > :last-child {
	margin-bottom: 0;
}

.webst-posts-related-header h2 {
	margin: 0 0 14px;
	color: var(--webst-posts-text);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 600;
}

.webst-posts-page-links {
	margin-top: 24px;
	font-weight: 700;
}

.webst-posts-related {
	display: grid;
	gap: 16px;
	padding-top: 8px;
	border-top: 1px solid var(--webst-posts-border);
}

.webst-posts-card--related .webst-posts-card-title {
	font-size: 1.22rem;
}

@media (max-width: 960px) {
	.webst-posts-grid,
	.webst-posts-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.webst-posts-single-hero,
	.webst-posts-single-body {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.webst-posts-archive,
	.webst-posts-single {
		padding-inline: 16px;
	}

	.webst-posts-archive-header,
	.webst-posts-single-hero {
		padding: 20px;
	}

	.webst-posts-card-body {
		padding: 18px;
	}

	.webst-posts-card-footer {
		align-items: flex-start;
		justify-content: flex-start;
	}

	.webst-posts-card-media {
		height: 210px;
	}

	.webst-posts-grid,
	.webst-posts-related-grid {
		grid-template-columns: 1fr;
	}
}
