/* ============================================================ *
 *  Self & System — Blog Index ("Dear Leader") widget
 * ============================================================ */
.ss-blog {
	font-family: "Lexend", "Helvetica Neue", Arial, sans-serif;
	color: #410b36;
}
.ss-blog *,
.ss-blog *::before,
.ss-blog *::after { box-sizing: border-box; }

.ss-blog a { color: inherit; }

/* ---- Tag pills (shared) ------------------------------------ */
.ss-blog__tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 0 0 4px;
}
.ss-blog__tag {
	background: #f4eaeb;
	color: #410b36;
	font-size: 12px;
	line-height: 1.24;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
}

.ss-blog__date {
	font-size: 16px;
	line-height: 1.24;
	margin: 6px 0 10px;
}

.ss-blog__excerpt {
	font-size: 16px;
	line-height: 1.42;
	margin: 12px 0 22px;
}

/* ---- Speech-bubble CTA (Read more) ------------------------- */
.ss-blog__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #e57b25;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	padding: 14px 22px;
	border-radius: 10px;
	text-decoration: none;
	transition: filter .15s ease;
}
.ss-blog__cta:hover { filter: brightness(1.05); color: #fff; }
.ss-blog__cta-arrow { display: block; flex: 0 0 auto; }
.ss-blog__cta .chat-bit {
	position: absolute;
	bottom: -9px;
	left: 22px;
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-top: 12px solid #e57b25;
}

/* ============================================================ *
 *  FEATURED POST
 * ============================================================ */
.ss-blog__featured {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	align-items: center;
	margin-bottom: 80px;
}
.ss-blog__featured-media {
	grid-column: 5 / 13;
	grid-row: 1;
}
.ss-blog__featured-media img,
.ss-blog__featured-img {
	width: 100%;
	height: 620px;
	object-fit: cover;
	display: block;
	border-radius: 2px;
}
.ss-blog__featured-card {
	grid-column: 1 / 8;
	grid-row: 1;
	z-index: 2;
	align-self: center;
	background: #410b36;
	color: #fff;
	padding: 44px 44px 52px;
	border-radius: 2px;
}
.ss-blog__featured-card .ss-blog__date,
.ss-blog__featured-card .ss-blog__excerpt { color: #fff; }
.ss-blog__featured-title {
	font-size: 54px;
	line-height: 1.05;
	font-weight: 700;
	margin: 0 0 18px;
}
.ss-blog__featured-title a { color: #fff; text-decoration: none; }
.ss-blog__featured-card .ss-blog__excerpt {
	max-width: 520px;
	margin-bottom: 26px;
}

/* ============================================================ *
 *  GRID
 * ============================================================ */
.ss-blog__grid {
	display: grid;
	gap: 46px 30px;
}
.ss-blog__cols-4 { grid-template-columns: repeat(4, 1fr); }
.ss-blog__cols-3 { grid-template-columns: repeat(3, 1fr); }
.ss-blog__cols-2 { grid-template-columns: repeat(2, 1fr); }

.ss-blog__card { display: flex; flex-direction: column; }
.ss-blog__card-media { display: block; margin-bottom: 18px; }
.ss-blog__card-img,
.ss-blog__card-media img {
	width: 100%;
	aspect-ratio: 326 / 238;
	object-fit: cover;
	display: block;
	border-radius: 2px;
}
.ss-blog__card-img--placeholder { background: #eadfe1; }

.ss-blog__title {
	font-size: 24px;
	line-height: 1.24;
	font-weight: 700;
	margin: 0 0 10px;
}
.ss-blog__title a { text-decoration: none; }
.ss-blog__card .ss-blog__excerpt {
	flex: 1 1 auto;
}
.ss-blog__card .ss-blog__cta { align-self: flex-start; }

.ss-blog__empty {
	font-size: 20px;
	text-align: center;
	padding: 60px 0;
}

/* ---- Load more --------------------------------------------- */
.ss-blog__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 56px;
}
.ss-blog__more {
	font-family: inherit;
	background: #f4eaeb;
	color: #410b36;
	border: 0;
	font-size: 16px;
	line-height: 1.24;
	padding: 11px 24px;
	border-radius: 6px;
	cursor: pointer;
	transition: filter .15s ease;
}
.ss-blog__more:hover { filter: brightness(0.96); }
.ss-blog__more:disabled { opacity: .6; cursor: default; }
.ss-blog__more[hidden] { display: none; }

/* ============================================================ *
 *  RESPONSIVE
 * ============================================================ */
@media (max-width: 1024px) {
	.ss-blog__featured { display: block; margin-bottom: 56px; }
	.ss-blog__featured-media img,
	.ss-blog__featured-img { height: auto; aspect-ratio: 16 / 10; }
	.ss-blog__featured-card {
		margin: -40px 0 0; /* overlap the photo but keep side edges aligned with it */
		padding: 44px 32px 32px; /* extra top padding so the title clears the photo */
		border-radius: 8px 8px 2px 2px;
	}
	.ss-blog__featured-title { font-size: 38px; margin-bottom: 14px; }
	.ss-blog__cols-4,
	.ss-blog__cols-3 { grid-template-columns: repeat(2, 1fr); }
	.ss-blog__grid { gap: 40px 24px; }
}

@media (max-width: 767px) {
	.ss-blog__featured-card { margin: -28px 0 0; padding: 40px 22px 30px; }
	.ss-blog__featured-title { font-size: 28px; line-height: 1.12; }
	.ss-blog__cols-4,
	.ss-blog__cols-3,
	.ss-blog__cols-2 { grid-template-columns: 1fr; }
	.ss-blog__grid { gap: 40px; }
}
