:root {
	--ps-bg: #ffffff;
	--ps-text: #0f172a;
	--ps-muted: #6b7280;
	--ps-border: rgba(15, 23, 42, 0.10);
	--ps-shadow: 0 12px 40px rgba(2, 6, 23, 0.08);
	--ps-accent: #ef4444;
}

.ps-post-selector {
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
		"Segoe UI Emoji";
	color: var(--ps-text);
	background: transparent;
}

.ps-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 10px 16px 24px;
}

.ps-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.ps-title {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	letter-spacing: -0.02em;
}

.ps-viewall {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #4A5565;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;

    text-decoration: none !important;
}

.ps-viewall:hover {
	color: rgba(15, 23, 42, 0.90);
	text-decoration: none !important;
}

.ps-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ps-card {
	border-radius: 10px;
	background: var(--ps-bg);
	border: 1px solid var(--ps-border);
	box-shadow: var(--ps-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ps-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none !important;
}

.ps-card__link:hover,
.ps-card__link:focus,
.ps-card__link:active,
.ps-card__link:visited {
	text-decoration: none !important;
}

.ps-card__media {
	position: relative;
	flex: 0 0 auto;
	height: 200px; /* uniform image height */
	overflow: hidden;
}

.ps-card__img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.ps-card__img--placeholder {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.02));
}

.ps-card__body {
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 8px;
}

.ps-card__kicker {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ps-accent);
	margin-bottom: 6px;
}

.ps-card__title {
	margin: 0 0 8px;
	font-family: 'Inter', sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.ps-card__excerpt {
	margin: 0 0 12px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(15, 23, 42, 0.72);
}

.ps-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: rgba(15, 23, 42, 0.62);
	margin-top: auto; /* pin meta to the bottom */
}

.ps-card__dot {
	color: rgba(15, 23, 42, 0.42);
}

.ps-card__read-time {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: rgba(15, 23, 42, 0.62);
}

.ps-empty {
	grid-column: 1 / -1;
	border-radius: 12px;
	border: 1px dashed rgba(15, 23, 42, 0.18);
	padding: 18px;
	background: rgba(15, 23, 42, 0.02);
}

.ps-empty__title {
	font-size: 14px;
	font-weight: 900;
}

.ps-empty__hint {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	color: rgba(15, 23, 42, 0.62);
}

@media (max-width: 900px) {
	.ps-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ps-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.ps-card__img {
		height: 200px;
	}
}
