/*
 * Design 8, Newsroom (src/lib/designs.ts). Loaded after main_style.css and
 * site.css. A front page: a centred masthead, and on the home page the three
 * latest posts (src/components/LatestPosts.astro) before the letter. Libre
 * Franklin throughout, near-black on white, red section labels.
 */

html body { font-family: 'Libre Franklin', Arial, sans-serif; font-size: 17px; color: #1c1c1c; background-color: #ffffff; }
#wrapper { background: #ffffff; }
p, .paragraph { line-height: 1.6; }
a { color: #1c1c1c; text-decoration-color: #9b1020; text-underline-offset: 2px; }

/* Header: a centred masthead with the menu underneath, at every width. */
#header-wrap { background: #ffffff; }
#header { border-bottom: 4px double #1c1c1c; }
@media (min-width: 768px) {
	#header-wrap, #header, body.collapse #header { height: auto !important; }
	#header { display: block; padding-top: 18px !important; padding-bottom: 6px !important; }
	#logo, #header-right { display: block; text-align: center; width: 100% !important; max-width: 100% !important; padding: 0; }
}
#logo .wsite-logo, #logo .wsite-logo a { font: 800 2.3em/1.1 'Libre Franklin', Arial, sans-serif; letter-spacing: -0.01em; color: #1c1c1c; }
.nav li a { font-weight: 600; font-size: 0.72em; letter-spacing: 0.1em; color: #1c1c1c; padding: 8px 12px; }
.nav li.active > a { color: #9b1020 !important; }
.nav li a:hover, .nav li a:focus { color: #9b1020 !important; }
#nav-trigger { color: #1c1c1c; }

/* Home: the page's h1 (the caucus name) as the masthead's tagline, then the latest posts. */
.latest-posts { border-bottom: 1px solid #d9d9d9; }
.latest-posts .container { padding-top: 14px; padding-bottom: 28px; }
.latest-posts-title { margin: 0 0 28px; padding-bottom: 12px; border-bottom: 1px solid #d9d9d9; text-align: center; font: 400 0.9em/1.4 'Libre Franklin', Arial, sans-serif; color: #5c5c5c; }
.latest-posts-heading {
	font: 700 0.74em/1.3 'Libre Franklin', Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.12em; color: #9b1020; margin: 0 0 14px;
}
.latest-posts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 28px; }
.latest-post { border-top: 1px solid #1c1c1c; padding-top: 12px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.latest-post-title { margin: 0; font: 800 1.15em/1.2 'Libre Franklin', Arial, sans-serif; text-wrap: balance; }
.latest-post-title a { text-decoration: none; }
.latest-post-title a:hover { text-decoration: underline; }
.latest-post-date, .latest-post-comments { font-size: 0.8em; color: #5c5c5c; font-variant-numeric: tabular-nums; }
.latest-post-excerpt { margin: 0; font-size: 0.92em; line-height: 1.5; }
.latest-posts-more { margin: 18px 0 0; font-weight: 700; font-size: 0.85em; }
.latest-posts-more a::after { content: ' \2192'; }

/* Content */
.wsite-body-section .container { max-width: calc(66ch + 100px); }
.wsite-content-title, .blog-title { font: 800 1.5em/1.2 'Libre Franklin', Arial, sans-serif; color: #1c1c1c; text-wrap: balance; }
.content-heading { color: #1c1c1c; }
.wsite-button, .blog-button {
	font-family: 'Libre Franklin', Arial, sans-serif; font-size: 0.78em !important; letter-spacing: 0.08em;
	background: #1c1c1c !important; color: #ffffff !important; padding: 13px 24px !important;
}
.wsite-button-highlight { background: #1c1c1c !important; color: #ffffff !important; }
.wsite-button:hover, .blog-button:hover, .wsite-button-highlight:hover, .comment-form .blog-button:hover { background: #9b1020 !important; }

/* Blog */
.blog-date, .comment-date, .comment-note { color: #5c5c5c; font-size: 0.85em; font-variant-numeric: tabular-nums; }
.blog-post-separator, hr.styled-hr { border-color: #d9d9d9; }
.comment { border-left-color: #9b1020; }
.comments-heading, .comments-subheading, .comment-author { color: #1c1c1c; }

/* Footer */
#footer-wrap { border-top: 4px double #1c1c1c; color: #5c5c5c; font-size: 0.85em; }
.footer-links a { color: #1c1c1c; }

@media (max-width: 767px) {
	html body { font-size: 16px; }
	#logo .wsite-logo, #logo .wsite-logo a { font-size: 1.3em; }
}

/* The theme's 1px corner shows as a seam against coloured header bands. */
#header { border-radius: 0; }
/* The theme caps the logo at 300px, which wraps larger logos; keep it on one line where the menu sits beside it. */
@media (min-width: 1061px) {
	#logo { max-width: none; white-space: nowrap; }
}
