/* Blog: overview rows (home.php, archive.php) and the article page (single.php).
   Rows follow the .split grid: title and excerpt left, date and arrow in the right column. */
.blog-list { padding-bottom: var(--sp-section); }

.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--line);
}
.post-row {
	position: relative;
	border-top: 1px solid var(--line);
}
.post-row .split {
	padding-block: clamp(28px, 3vw, 44px);
	align-items: start;
}
.post-row-title {
	font-size: clamp(26px, 2.6vw, 38px);
	line-height: 1.08;
	max-width: 22em;
}
.post-row-title a { text-decoration: none; }
/* The whole row is the link. */
.post-row-title a::after { content: ""; position: absolute; inset: 0; }
.post-row-title a:focus-visible { outline: none; }
.post-row:has(a:focus-visible) { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.post-row-excerpt {
	margin-top: 14px;
	max-width: 40em;
	color: var(--ink-soft);
}
.post-row-side {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 0.35em;
}
.post-row-date { color: var(--ink-soft); font-size: var(--fs-small); }
.post-row .arrow { background: var(--green); color: var(--beige); transition: transform .2s; }
.post-row:hover .arrow { transform: translateX(3px); }
.post-row:hover .post-row-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }

/* Pagination: round buttons in the system's pill shape. */
.blog-pagination { margin-top: var(--sp-block); }
.blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.blog-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--line);
	text-decoration: none;
	font-weight: 400;
	font-size: var(--fs-small);
	transition: border-color .2s;
}
.blog-pagination a.page-numbers:hover { border-color: var(--green); }
.blog-pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: var(--beige); }
.blog-pagination .page-numbers.dots { border-color: transparent; padding: 0 4px; min-width: 0; }

/* Empty overview. */
.post-empty {
	display: grid;
	gap: 28px;
	justify-items: start;
	padding-top: 8px;
	border-top: 1px solid var(--line);
	padding-block: clamp(32px, 4vw, 56px) 0;
}
.post-empty-line {
	font-family: var(--serif);
	font-size: var(--fs-h3);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

/* Article. */
.article-body { padding-bottom: 0; }
.article-back { margin-top: var(--sp-block); }

/* Related articles under the article: same rows as the overview. */
.related { padding-top: var(--sp-section); padding-bottom: var(--sp-section); }
.related .t-h3 { margin-bottom: clamp(20px, 2.4vw, 32px); }
.related .post-row-title { font-size: clamp(22px, 2.2vw, 30px); }
.related .post-list { border-bottom: 0; }
.blog .blog-list { padding-bottom: var(--sp-section); }

@media (max-width: 900px) {
	.post-row .split { row-gap: 16px; }
	.post-row-side { padding-top: 0; }
}

/* Post meta line: the separator trails the previous part, so a wrapped line never starts with it. */
.page-head .page-meta { gap: 4px 0; }
.page-head .page-meta > * { white-space: nowrap; }
.page-head .page-meta > * + *::before { content: none; }
.page-head .page-meta > :not(:last-child)::after { content: "·"; margin: 0 14px; }
