@charset "utf-8";

/* News list & article (home, list page, detail) */

body.page-topnav {
	--news-grid-columns: 7.5rem 8.5rem minmax(0, 1fr);
	--news-grid-gap: 1.25rem;
	--news-row-padding: 0.875rem 1.25rem;
}

body.page-topnav .news-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--site-accent-cream);
}

body.page-topnav .news-title {
	margin: 0;
	font-size: var(--site-font-sm);
	line-height: 1.5;
}

body.page-topnav .news-title a {
	color: var(--site-link-classic);
	text-decoration: underline;
}

body.page-topnav .news-title a:hover {
	color: var(--site-link-classic-hover);
	text-decoration: none;
}

body.page-topnav .news-item--empty p {
	margin: 0;
	font-size: var(--site-font-sm);
	color: #666;
}

/* Column layout (home What's New + Archives) */

body.page-topnav .archives-list-header,
body.page-topnav .news-list--archive .news-item--archive {
	display: grid;
	grid-template-columns: var(--news-grid-columns);
	column-gap: var(--news-grid-gap);
	align-items: center;
}

body.page-topnav .archives-list-header {
	margin: 0;
	padding: var(--news-row-padding);
	font-size: var(--site-font-xs);
	font-weight: bold;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--site-accent-cream-soft);
	border-bottom: 1px solid var(--site-accent-cream);
}

body.page-topnav .news-list--archive {
	border-top: none;
}

body.page-topnav .news-list--archive .news-item--archive {
	row-gap: 0;
	column-gap: var(--news-grid-gap);
	padding: var(--news-row-padding);
	border-bottom: 1px solid var(--site-accent-cream);
}

body.page-topnav .news-list--archive .news-item--archive:last-child {
	border-bottom: none;
}

body.page-topnav .news-list--archive .news-item--archive time,
body.page-topnav .news-list--archive .news-item--archive .news-body {
	flex: none;
	min-width: 0;
}

body.page-topnav .news-item--archive .news-col-date {
	font-size: var(--site-font-sm);
	color: #666;
	line-height: 1.4;
	white-space: nowrap;
}

body.page-topnav .archives-list-header .news-col-category,
body.page-topnav .news-item--archive .news-col-category {
	justify-self: start;
	text-align: left;
}

body.page-topnav .news-item--archive .news-col-category {
	display: inline-block;
	justify-self: start;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	color: #0d6b4d;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

body.page-topnav .news-item--archive .news-category--empty {
	color: #999;
	font-weight: normal;
	text-transform: none;
	letter-spacing: 0;
}

body.page-topnav .archives-list-header .news-col-title,
body.page-topnav .news-item--archive .news-col-title {
	justify-self: start;
	text-align: left;
}

body.page-topnav .news-item--archive .news-col-title {
	min-width: 0;
}

body.page-topnav .news-item--archive .news-title {
	margin: 0;
	font-size: var(--site-font-md);
	line-height: 1.5;
	text-align: left;
}

body.page-topnav .news-list--archive .news-item--archive:hover {
	background: #f7faf8;
}

body.page-topnav .news-item--archive .news-title a {
	text-decoration: none;
	font-weight: 500;
}

body.page-topnav .news-item--archive .news-title a:hover {
	text-decoration: underline;
}

body.page-news .news-filters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 1rem 1.25rem;
	background: var(--site-cream, #f4f6f5);
	border-bottom: 1px solid var(--site-border, #dde5e1);
}

body.page-news .news-filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

body.page-news .archives-list-header {
	background: #f7faf8;
	color: var(--site-text-muted, #5c6b64);
}

body.page-home .home-news-panel {
	border: 1px solid var(--site-border, #dde5e1);
	border-radius: var(--site-radius, 0.625rem);
	box-shadow: var(--site-shadow-sm);
	overflow: hidden;
}

/* Archives page */

body.page-news .archives-lead {
	margin: 0 0 16px;
	font-size: var(--site-font-md);
	line-height: 1.6;
	color: #333;
}

body.page-news .archives-panel {
	margin: 0;
	background: #fff;
	border: 1px solid var(--site-border, #dde5e1);
	border-radius: var(--site-radius, 0.625rem);
	box-shadow: var(--site-shadow-sm);
	overflow: hidden;
}

body.page-news .news-filter-label {
	margin: 0;
	font-size: var(--site-font-sm);
	font-weight: bold;
	color: #333;
}

body.page-news .news-filters .form-select {
	width: 100%;
	max-width: none;
	font-size: var(--site-font-sm);
	border-color: #D5CEA8;
	background-color: #fff;
}

body.page-news .news-item--empty {
	display: block;
	padding: 20px;
	text-align: center;
}

body.page-news .news-back {
	margin: 20px 0 0;
	font-size: var(--site-font-sm);
}

body.page-news .news-article-meta {
	margin: 0 0 8px;
	font-size: var(--site-font-sm);
	color: #666;
}

body.page-news .news-article-photo {
	margin: 20px;
	max-width: 100%;
}

body.page-news .news-article-photo img {
	display: block;
	width: auto;
	max-width: min(100%, 640px);
	height: auto;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius);
	box-shadow: var(--site-shadow-sm);
	box-sizing: border-box;
}

body.page-news .news-article-photo[hidden] {
	display: none;
}

body.page-news .news-article-meta .news-category {
	margin-right: 8px;
}

body.page-news .news-article-body p {
	font-size: var(--site-font-sm);
	line-height: 1.7;
}

@media screen and (max-width: 767.98px) {
	body.page-news .news-filters {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 16px;
	}

	body.page-topnav .archives-list-header {
		display: none;
	}

	body.page-topnav .news-list--archive .news-item--archive {
		grid-template-columns: 1fr;
		row-gap: 6px;
		align-items: start;
		padding: 14px 16px;
	}

	body.page-topnav .news-item--archive .news-col-date {
		font-weight: 600;
		color: #333;
	}

	body.page-topnav .news-item--archive .news-col-category {
		font-size: var(--site-font-xs);
	}

	body.page-topnav .news-item--archive .news-col-category::before {
		content: "Category: ";
		font-weight: normal;
		color: #666;
		text-transform: none;
		letter-spacing: 0;
	}
}
