/*
 * Blog: article list (blog/blogarticle/bloglist.php) and article page (articletext.php).
 * Load after legacy.css; uses the colour tokens from base.css.
 */

.blog-meta { display: block; color: var(--muted); font-size: 13px; }

/* ---------- list ---------- */

.blog-list { max-width: 760px; margin: 0 auto; }
.blog-list__title { margin: 8px 0 20px; }

.blog-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 18px 20px;
	margin-bottom: 14px;
}
.blog-card__title { margin: 0 0 4px; font-size: 20px; line-height: 1.3; }
.blog-card__title a { color: var(--text); }
.blog-card__title a:hover, .blog-card__title a:focus { color: var(--accent); text-decoration: none; }
.blog-card__excerpt { margin-top: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.blog-card__excerpt img { max-width: 100%; height: auto; }
.blog-card__more { display: inline-block; margin-top: 8px; font-weight: 600; }

.blog-pager { text-align: center; }

/* ---------- article page ---------- */

.blog-back { display: inline-block; margin: 8px 0 12px; font-size: 14px; }

.blog-article { margin-bottom: 28px; }
.blog-article__title { margin: 0 0 6px; font-size: 30px; line-height: 1.25; font-weight: 600; }
.blog-article__body {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	font-size: 17px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}
.blog-article__body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.blog-article__body h2, .blog-article__body h3 { margin-top: 1.4em; line-height: 1.3; }

.blog-side {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 16px 18px;
	margin-bottom: 20px;
}
.blog-side__title {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
}
.blog-side__list { list-style: none; margin: 0; padding: 0; }
.blog-side__list li + li { border-top: 1px solid var(--border); }
.blog-side__item {
	display: block;
	padding: 10px 10px 10px 12px;
	margin: 0 -10px 0 -12px;
	border-left: 3px solid transparent;
	color: var(--text);
}
a.blog-side__item:hover, a.blog-side__item:focus { background: var(--surface-2); color: var(--accent); text-decoration: none; }
.blog-side__item.is-current { border-left-color: var(--accent); background: var(--accent-soft); }
.blog-side__name { display: block; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.blog-side__item .blog-meta { margin-top: 2px; font-size: 12px; }
.blog-side__all { display: inline-block; margin-top: 10px; font-weight: 600; }

/* wide screens: the sidebar stays in view while the article scrolls */
@media (min-width: 1200px) {
	.blog-layout { display: flex; align-items: flex-start; }
	.blog-layout::before, .blog-layout::after { display: none; }
	.blog-layout > .blog-aside { position: sticky; top: 16px; }
}
