/**
 * News and Articles: the posts page (templates/home.html) and single articles
 * (templates/single.html). Builds on the design system: boxless hairline rows,
 * the .csat-prose reading column, one accent.
 */

/* ---- Listing (posts page) ------------------------------------------ */
.csat-articles__list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 860px;
}
.csat-articles__list > li { margin: 0; padding: 0; }
.csat-article-row {
	padding-block: clamp(28px, 4vw, 44px);
	border-top: 1px solid var(--csat-border);
}
.csat-articles__list > li:first-child .csat-article-row { border-top: 0; padding-top: 0; }
.csat-articles__list > li:last-child .csat-article-row { padding-bottom: 0; }
.csat-article-row__date,
.csat-article__date {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	color: var(--csat-muted);
	margin: 0 0 12px;
}
.csat-page .csat-article-row__title {
	font-family: var(--csat-font);
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--csat-navy);
	margin: 0 0 12px;
}
.csat-page .csat-article-row__title a { color: inherit; text-decoration: none; transition: color .2s ease; }
.csat-page .csat-article-row__title a:hover { color: var(--csat-blue); }
.csat-article-row__excerpt .wp-block-post-excerpt__excerpt {
	max-width: 70ch;
	margin: 0;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--csat-text);
}
.csat-article-row__excerpt .wp-block-post-excerpt__more-text { margin: 16px 0 0; }
.csat-article-row__excerpt .wp-block-post-excerpt__more-link,
.csat-article__back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.2px;
	color: var(--csat-blue);
	text-decoration: none;
}
.csat-article-row__excerpt .wp-block-post-excerpt__more-link::after {
	content: "\2192";
	transition: transform .2s ease;
}
.csat-article-row__excerpt .wp-block-post-excerpt__more-link:hover::after { transform: translateX(6px); }
.csat-articles__empty { text-align: center; color: var(--csat-text); margin: 0; }

/* Pagination: only rendered when there is more than one page. */
.csat-articles__pagination {
	margin-top: clamp(36px, 5vw, 56px);
	padding-top: 28px;
	border-top: 1px solid var(--csat-border);
	max-width: 860px;
	margin-inline: auto;
	gap: 18px;
	font-size: 14px;
	font-weight: 700;
}
.csat-articles__pagination a { color: var(--csat-navy); text-decoration: none; }
.csat-articles__pagination a:hover { color: var(--csat-blue); }
.csat-articles__pagination .page-numbers { padding: 4px 6px; }
.csat-articles__pagination .page-numbers.current { color: var(--csat-blue); }

/* ---- Single article ------------------------------------------------ */
.csat-page.csat-article .csat-h1 {
	/* Headline step (the split-hero H1 size), not the uppercase display size. */
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.2;
	margin-bottom: 16px;
}
.csat-article__head .csat-intro { max-width: 900px; }
.csat-article__date { margin: 0; }
.csat-eyebrow a { color: inherit; text-decoration: none; }
.csat-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The post-content block wraps the article's blocks in one element, so the
   reading column's spacing rule is repeated one level down. */
.csat-page .csat-prose .wp-block-post-content > * + * { margin-top: 20px; }
.csat-page .csat-prose .wp-block-post-content > h2:first-child { margin-top: 0; }
.csat-page .csat-prose .wp-block-post-content > ul,
.csat-page .csat-prose .wp-block-post-content > ol { margin-top: 12px; }
.csat-page .csat-prose figure { margin: 32px 0; }
.csat-page .csat-prose img { display: block; max-width: 100%; height: auto; border-radius: var(--csat-radius-card); }
.csat-page .csat-prose figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--csat-muted); }
.csat-page .csat-prose blockquote {
	margin: 28px 0;
	padding-left: 22px;
	border-left: 1px solid var(--csat-border);
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--csat-navy-2);
}

.csat-article__foot {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--csat-border);
}
.csat-article__back { margin: 0; }
.csat-article__back a::before {
	content: "\2190";
	transition: transform .2s ease;
}
.csat-article__back a:hover::before { transform: translateX(-6px); }
