/*
 * Design 9, Rose newsroom (src/lib/designs.ts). DSA rose (ns3.css) with
 * Newsroom's home page (ns8.css): the red header, then the caucus name as a red
 * banner, then the three latest posts (src/components/LatestPosts.astro) before
 * the letter. Public Sans for text, Archivo for the logo, menu and headings.
 * Red #b0101f carries white text at 7.1:1.
 */

html body { font-family: 'Public Sans', Arial, sans-serif; font-size: 18px; color: #222222; background-color: #ffffff; }
#wrapper { background: #ffffff; }
body.full-width-off #wrapper-content { max-width: none; }
p, .paragraph { line-height: 1.6; }
a { color: #a00e1c; }

/* Header */
#header-wrap { background: #b0101f; }
#header { background: transparent; }
body.collapse #header { box-shadow: none; }
#logo .wsite-logo, #logo .wsite-logo a { font-family: 'Archivo', Arial, sans-serif; font-weight: 800; font-size: 1.4em; color: #ffffff; letter-spacing: 0.02em; }
#header .nav li a { font-family: 'Archivo', Arial, sans-serif; font-weight: 500; font-size: 0.75em; color: #ffffff; }
#header .nav li.active > a, #header .nav li a:hover, #header .nav li a:focus { color: #ffffff !important; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
#nav .wsite-menu { border-color: #e5c4c8; }
#nav .wsite-menu li a { color: #222222 !important; }
#nav .wsite-menu li a:hover, #nav .wsite-menu li a:focus { color: #a00e1c !important; }
#nav-trigger { color: #ffffff; }
#header-wrap :focus-visible { outline-color: #ffffff !important; }
/* The dropdowns are white, so their focus outline goes back to dark. */
#header-wrap #nav .wsite-menu :focus-visible { outline-color: #131916 !important; }
#navmobile { background: #fbeaec; }
#navmobile a { color: #222222; }

/* Home: LatestPosts carries the page's h1 (the caucus name), shown as a banner that
   continues the header's red, then the latest posts. */
.latest-posts { border-bottom: 1px solid #e5c4c8; }
.latest-posts .container { padding-top: 0; padding-bottom: 28px; }
.latest-posts-title {
	margin: -1px 0 21px; padding: 1.05em 0 1.2em; color: #ffffff;
	/* Full-width band without widening the page: the border image paints 100vmax past each side. */
	border-image: linear-gradient(#b0101f, #b0101f) fill 0 / 0 / 0 100vmax;
	font: 800 clamp(1.8em, 4vw, 2.8em)/1.1 'Archivo', Arial, sans-serif; text-wrap: balance;
}
.latest-posts-heading {
	font: 800 0.74em/1.3 'Archivo', Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.12em; color: #b0101f; 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: 3px solid #b0101f; padding-top: 12px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.latest-post-title { margin: 0; font: 800 1.15em/1.2 'Archivo', Arial, sans-serif; text-wrap: balance; }
.latest-post-title a { color: #111111; text-decoration: none; }
.latest-post-title a:hover { color: #a00e1c; text-decoration: underline; }
.latest-post-date, .latest-post-comments { font-size: 0.8em; color: #595959; 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'; }

/* The banner names the caucus right below the header, so the home page drops the logo.
   display: none also takes its link out of the tab order; the menu's Home link stays. */
body.home-page #logo { display: none; }

/* Content */
.wsite-body-section .container { max-width: calc(66ch + 100px); }
.wsite-content-title, .blog-title { font-family: 'Archivo', Arial, sans-serif; font-weight: 800; font-size: 1.5em; line-height: 1.2; color: #111111; text-wrap: balance; }
.content-heading { font-family: 'Archivo', Arial, sans-serif; color: #111111; }
.wsite-button, .blog-button {
	font-family: 'Archivo', Arial, sans-serif; font-weight: 800 !important; font-size: 0.8em !important;
	letter-spacing: 0.08em; background: #b0101f !important; color: #ffffff !important; padding: 15px 28px !important;
}
.wsite-button:hover, .blog-button:hover, .wsite-button-highlight:hover, .comment-form .blog-button:hover { background: #7f0b16 !important; }
.wsite-button-highlight { background: #b0101f !important; color: #ffffff !important; }
.paragraph li::marker { color: #b0101f; }

/* Blog */
.blog-date, .comment-date, .comment-note { color: #595959; }
.blog-post-separator { border-bottom-color: #e5c4c8; }
.comment { border-left-color: #b0101f; }
hr.styled-hr { border-top-color: #e5c4c8; }

/* Footer */
#footer-wrap { background: #1c1c1c; color: #d9d9d9; border-top: 0; }
#footer-wrap a { color: #ffffff; }
.footer-social .wsite-social-item { color: #d9d9d9 !important; }
.footer-social .wsite-social-item:hover { color: #ffffff !important; }
#footer-wrap :focus-visible { outline-color: #ffffff !important; }

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

/* 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; }
}
