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

/* Single blog post */
.nahbs-sub-page .nh-post {
	padding: 56px 24px 64px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.nahbs-sub-page .nh-post__head {
	width: 100%;
	max-width: 680px;
	margin: 0 0 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}
.nahbs-sub-page .nh-post__date {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #2c6b7d;
}
.nahbs-sub-page .nh-post__title {
	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-post__content {
	width: 100%;
	max-width: 680px;
	font-size: 17px;
	line-height: 1.7;
	color: #222222;
	overflow-wrap: break-word;
}
.nahbs-sub-page .nh-post__content > * {
	margin-top: 0;
	margin-bottom: 1.2em;
}
.nahbs-sub-page .nh-post__content h2 {
	margin: 1.6em 0 0.5em;
	font-family: 'League Gothic', Impact, sans-serif;
	font-weight: 400;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #000000;
}
.nahbs-sub-page .nh-post__content h3 {
	margin: 1.4em 0 0.4em;
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	color: #000000;
}
.nahbs-sub-page .nh-post__content h4,
.nahbs-sub-page .nh-post__content h5,
.nahbs-sub-page .nh-post__content h6 {
	margin: 1.3em 0 0.4em;
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.4;
	color: #000000;
}
.nahbs-sub-page .nh-post__content a:not(.wp-element-button),
.nahbs-sub-page .nh-post__content a:not(.wp-element-button):visited {
	color: #2c6b7d;
	text-decoration: underline;
}
.nahbs-sub-page .nh-post__content a:not(.wp-element-button):hover,
.nahbs-sub-page .nh-post__content a:not(.wp-element-button):focus,
.nahbs-sub-page .nh-post__content a:not(.wp-element-button):active {
	color: #a63010;
}
.nahbs-sub-page .nh-post__content img {
	max-width: 100%;
	height: auto;
}
.nahbs-sub-page .nh-post__content figure {
	margin: 1.6em 0;
}
.nahbs-sub-page .nh-post__content figcaption {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #5f5a53;
	text-align: left;
}
.nahbs-sub-page .nh-post__content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid #a63010;
	font-style: italic;
	color: #3a3a3a;
}
.nahbs-sub-page .nh-post__content ul,
.nahbs-sub-page .nh-post__content ol {
	padding-left: 1.4em;
}
.nahbs-sub-page .nh-post__content hr {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid #e2ded8;
}
.nahbs-sub-page .nh-post__back {
	width: 100%;
	max-width: 680px;
	margin: 40px 0 0;
	padding-top: 24px;
	border-top: 1px solid #e2ded8;
	font-size: 15px;
	font-weight: 600;
}
.nahbs-sub-page .nh-post__back a,
.nahbs-sub-page .nh-post__back a:visited {
	color: #111111;
	text-decoration: none;
}
.nahbs-sub-page .nh-post__back a:hover,
.nahbs-sub-page .nh-post__back a:focus,
.nahbs-sub-page .nh-post__back a:active {
	color: #a63010;
	text-decoration: underline;
}
