/*
 * NAHBS list pages — same look as the NAHBS Holding Page.
 *
 * Every rule is scoped under body.nahbs-sub-page, and every link colour is
 * set explicitly for each state, so neither the theme's own styles nor a
 * more general rule in this file can override it.
 */

body.nahbs-sub-page {
	margin: 0;
	background: #ffffff;
	color: #111111;
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.nahbs-sub-page .nh-site,
.nahbs-sub-page .nh-site * {
	box-sizing: border-box;
}
.nahbs-sub-page .nh-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.nahbs-sub-page .nh-main {
	flex-grow: 1;
}
.nahbs-sub-page a,
.nahbs-sub-page a:visited {
	color: #111111;
}
.nahbs-sub-page a:hover,
.nahbs-sub-page a:focus,
.nahbs-sub-page a:active {
	color: #a63010;
}

/* Header — logo and title link back to the home page */
.nahbs-sub-page .nh-header {
	background: #000000;
	padding: 14px 24px;
}
.nahbs-sub-page .nh-header .nh-header__home,
.nahbs-sub-page .nh-header .nh-header__home:visited,
.nahbs-sub-page .nh-header .nh-header__home:hover,
.nahbs-sub-page .nh-header .nh-header__home:focus,
.nahbs-sub-page .nh-header .nh-header__home:active {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	color: #ffffff;
	text-decoration: none;
}
.nahbs-sub-page .nh-header__logo {
	width: 44px;
	height: 41px;
	object-fit: contain;
	flex-shrink: 0;
}
.nahbs-sub-page .nh-header__title {
	font-family: 'League Gothic', Impact, sans-serif;
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #ffffff;
}

/* Page heading */
.nahbs-sub-page .nh-page-head {
	padding: 56px 24px 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}
.nahbs-sub-page .nh-page-head__rule {
	width: 72px;
	height: 5px;
	background: #a63010;
}
.nahbs-sub-page .nh-page-head__heading {
	margin: 0;
	font-family: 'League Gothic', Impact, sans-serif;
	font-weight: 400;
	font-size: clamp(36px, 6vw, 48px);
	line-height: 1.05;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #000000;
}
.nahbs-sub-page .nh-page-head__sub {
	margin: 0;
	max-width: 480px;
	font-size: 16px;
	line-height: 1.5;
	color: #5f5a53;
}

/* Year filter */
.nahbs-sub-page .nh-filters {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0 24px 28px;
	border-bottom: 1px solid #e2ded8;
}
.nahbs-sub-page .nh-filter {
	height: 40px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: transparent;
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #5f5a53;
	cursor: pointer;
}
.nahbs-sub-page .nh-filter:hover {
	color: #000000;
}
.nahbs-sub-page .nh-filter.is-active {
	font-weight: 700;
	color: #000000;
	border-bottom-color: #2c6b7d;
}
.nahbs-sub-page .nh-filter:focus-visible {
	outline: 3px solid #000000;
	outline-offset: 2px;
}

/* List: date + linked title, commentary box beneath */
.nahbs-sub-page .nh-list-wrap {
	padding: 0 24px 64px;
	display: flex;
	justify-content: center;
}
.nahbs-sub-page .nh-list {
	width: 100%;
	max-width: 640px;
	display: flex;
	flex-direction: column;
}
.nahbs-sub-page .nh-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 0;
	border-bottom: 1px solid #e2ded8;
}
.nahbs-sub-page .nh-item[hidden] {
	display: none;
}
.nahbs-sub-page .nh-item__row {
	display: flex;
	align-items: baseline;
	gap: 20px;
}
.nahbs-sub-page .nh-item__date {
	flex: 0 0 130px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #2c6b7d;
}
.nahbs-sub-page .nh-item__title,
.nahbs-sub-page .nh-item__title:visited {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #111111;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.nahbs-sub-page a.nh-item__title:hover,
.nahbs-sub-page a.nh-item__title:focus,
.nahbs-sub-page a.nh-item__title:active {
	color: #a63010;
	text-decoration: underline;
}
.nahbs-sub-page .nh-item__note {
	margin-left: 150px;
	width: 490px;
	max-width: 100%;
	padding: 14px 16px;
	background: #f3f1ed;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.6;
	color: #3a3a3a;
	overflow-wrap: anywhere;
}
.nahbs-sub-page .nh-list__empty {
	margin: 40px 0 0;
	font-size: 16px;
	color: #5f5a53;
	text-align: center;
}

/* Footer — matches the NAHBS Holding Page */
.nahbs-sub-page .nh-footer {
	background: #000000;
	padding: 28px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: center;
}
.nahbs-sub-page .nh-footer__logo {
	width: 32px;
	height: 30px;
	object-fit: contain;
}
.nahbs-sub-page .nh-footer__copy {
	font-size: 14px;
	color: #ffffff;
}
.nahbs-sub-page .nh-footer .nh-footer__link,
.nahbs-sub-page .nh-footer .nh-footer__link:visited,
.nahbs-sub-page .nh-footer .nh-footer__link:hover,
.nahbs-sub-page .nh-footer .nh-footer__link:focus,
.nahbs-sub-page .nh-footer .nh-footer__link:active {
	font-size: 14px;
	color: #ffffff;
}

@media (min-width: 640px) {
	.nahbs-sub-page .nh-header { padding: 18px 48px; }
	.nahbs-sub-page .nh-header__logo { width: 56px; height: 53px; }
	.nahbs-sub-page .nh-header__title { font-size: 30px; }
	.nahbs-sub-page .nh-footer { padding: 32px 48px; }
}

@media (max-width: 639px) {
	.nahbs-sub-page .nh-item__row {
		flex-direction: column;
		gap: 4px;
	}
	.nahbs-sub-page .nh-item__date {
		flex-basis: auto;
	}
	.nahbs-sub-page .nh-item__note {
		margin-left: 0;
		width: auto;
	}
}
