/*
 * NAHBS Home Page — home, Register and sign-up pages. The header, menu
 * bar and footer are in chrome.css. Scoped under body.nahbs-home-site.
 *
 * Colours: black #000, ink #111/#222, rust #a63010, teal #2c6b7d,
 * sand #f3f1ed, rule #e2ded8, grey text #5f5a53.
 */

/* Shared small pieces: rust rule, teal kicker line */
.nahbs-home-site .nh-rule {
	width: 72px;
	height: 5px;
	background: #a63010;
}
.nahbs-home-site .nh-kicker,
.nahbs-home-site a.nh-kicker:visited {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #2c6b7d;
	text-decoration: none;
}
.nahbs-home-site a.nh-kicker:hover,
.nahbs-home-site a.nh-kicker:focus,
.nahbs-home-site a.nh-kicker:active {
	color: #a63010;
	text-decoration: underline;
}

/* ---- Hero slider (unchanged from the Holding Page) -------------------- */

.nahbs-home-site .nh-slider {
	position: relative;
	width: 100%;
	max-width: 1600px;
	aspect-ratio: 1600 / 1000;
	margin: 0 auto;
	background: #000000;
	overflow: hidden;
}
.nahbs-home-site .nh-slider__track {
	position: absolute;
	inset: 0;
}
.nahbs-home-site .nh-slide {
	position: absolute;
	inset: 0;
	background: #2b2b2b center center / cover no-repeat;
	opacity: 0;
	transition: opacity 0.6s ease;
}
.nahbs-home-site .nh-slide.is-active {
	opacity: 1;
}
.nahbs-home-site .nh-slider__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
	padding: 20px;
	pointer-events: none;
}
.nahbs-home-site .nh-slider__line1 {
	font-family: 'League Gothic', Impact, sans-serif;
	font-size: clamp(36px, 9vw, 120px);
	line-height: 0.95;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #ffffff;
}
.nahbs-home-site .nh-slider__line2 {
	font-family: 'League Gothic', Impact, sans-serif;
	font-size: clamp(28px, 7vw, 90px);
	line-height: 1;
	letter-spacing: 2px;
	color: #ffffff;
}
.nahbs-home-site .nh-slider__line3 {
	margin-top: clamp(6px, 1.5vw, 20px);
	font-weight: 700;
	font-size: clamp(12px, 1.6vw, 22px);
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #ffffff;
}
.nahbs-home-site .nh-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.nahbs-home-site .nh-slider__arrow--prev { left: 16px; }
.nahbs-home-site .nh-slider__arrow--next { right: 16px; }
.nahbs-home-site .nh-slider__dots {
	position: absolute;
	left: 0;
	bottom: 14px;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 4px;
}
.nahbs-home-site .nh-dot {
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nahbs-home-site .nh-dot::after {
	content: '';
	width: 9px;
	height: 9px;
	border-radius: 5px;
	border: 1.5px solid #ffffff;
	background: transparent;
	display: block;
}
.nahbs-home-site .nh-dot.is-active::after {
	background: #ffffff;
}

/* ---- Home page columns ------------------------------------------------ */

/*
 * Narrow screens, one column: announcement, posts, Register, Partners.
 * 860px and up: posts at left; announcement and Register at right
 * (Partners below Register when shown).
 * 1200px and up with Partners shown: three columns.
 */
.nahbs-home-site .nh-home {
	padding: 40px 20px 64px;
}
.nahbs-home-site .nh-home__grid {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"announce"
		"posts"
		"register"
		"partners";
	row-gap: 40px;
}
.nahbs-home-site .nh-home__announce { grid-area: announce; }
.nahbs-home-site .nh-home__posts { grid-area: posts; min-width: 0; }
.nahbs-home-site .nh-home__register { grid-area: register; }
.nahbs-home-site .nh-home__partners { grid-area: partners; }

/* Announcement */
.nahbs-home-site .nh-announce-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.nahbs-home-site .nh-announce-box .nh-rule {
	width: 56px;
}
.nahbs-home-site .nh-announce-box .nh-kicker {
	font-size: 12px;
}
.nahbs-home-site .nh-announce-box__heading {
	margin: 0;
	font-family: 'League Gothic', Impact, sans-serif;
	font-weight: 400;
	font-size: 34px;
	line-height: 1.05;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #000000;
}
.nahbs-home-site .nh-announce-box__body {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: #222222;
}

/* Post cards: picture at left, then date · author, headline, teaser, tags */
.nahbs-home-site .nh-cards {
	display: flex;
	flex-direction: column;
	border-top: 1px solid #e2ded8;
}
.nahbs-home-site .nh-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid #e2ded8;
}
.nahbs-home-site .nh-card__thumb {
	flex: 0 0 120px;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 4px;
	background: #000000;
}
.nahbs-home-site .nh-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.nahbs-home-site .nh-card__thumb:hover .nh-card__img {
	transform: scale(1.03);
}
.nahbs-home-site .nh-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.nahbs-home-site .nh-card__logo img {
	width: 36%;
	height: auto;
}
.nahbs-home-site .nh-card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.nahbs-home-site .nh-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #2c6b7d;
}
.nahbs-home-site .nh-card__sep {
	color: #9c968d;
}
.nahbs-home-site .nh-card__title {
	margin: 0;
	font-family: 'League Gothic', Impact, sans-serif;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
.nahbs-home-site .nh-card__title a,
.nahbs-home-site .nh-card__title a:visited {
	color: #000000;
	text-decoration: none;
}
.nahbs-home-site .nh-card__title a:hover,
.nahbs-home-site .nh-card__title a:focus,
.nahbs-home-site .nh-card__title a:active {
	color: #a63010;
}
.nahbs-home-site .nh-card__teaser {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #3a3a3a;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nahbs-home-site .nh-card__tags {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.nahbs-home-site .nh-card__tags li {
	margin: 0;
	padding: 0;
}
.nahbs-home-site .nh-card__tags a,
.nahbs-home-site .nh-card__tags a:visited {
	display: inline-block;
	padding: 3px 8px;
	border: 1px solid #e2ded8;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #5f5a53;
	text-decoration: none;
}
.nahbs-home-site .nh-card__tags a:hover,
.nahbs-home-site .nh-card__tags a:focus,
.nahbs-home-site .nh-card__tags a:active {
	border-color: #a63010;
	color: #a63010;
}
.nahbs-home-site .nh-home__more {
	margin: 24px 0 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.nahbs-home-site .nh-home__more a,
.nahbs-home-site .nh-home__more a:visited {
	color: #a63010;
	text-decoration: none;
}
.nahbs-home-site .nh-home__more a:hover,
.nahbs-home-site .nh-home__more a:focus,
.nahbs-home-site .nh-home__more a:active {
	color: #000000;
	text-decoration: underline;
}
.nahbs-home-site .nh-home__empty {
	margin: 0;
	color: #5f5a53;
}

/* Register links: sand panel, one row per form */
.nahbs-home-site .nh-reg__heading {
	margin: 0 0 14px;
	font-family: 'League Gothic', Impact, sans-serif;
	font-weight: 400;
	font-size: 30px;
	line-height: 1.05;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #000000;
}
.nahbs-home-site .nh-reg__heading a,
.nahbs-home-site .nh-reg__heading a:visited {
	color: #000000;
	text-decoration: none;
}
.nahbs-home-site .nh-reg__heading a:hover,
.nahbs-home-site .nh-reg__heading a:focus,
.nahbs-home-site .nh-reg__heading a:active {
	color: #a63010;
}
.nahbs-home-site .nh-reg__list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #f3f1ed;
	border-radius: 6px;
	border-top: 4px solid #a63010;
	overflow: hidden;
}
.nahbs-home-site .nh-reg__list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e2ded8;
}
.nahbs-home-site .nh-reg__list li:last-child {
	border-bottom: 0;
}
.nahbs-home-site .nh-reg__link,
.nahbs-home-site .nh-reg__link:visited {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	color: #111111;
	text-decoration: none;
}
.nahbs-home-site .nh-reg__link:hover,
.nahbs-home-site .nh-reg__link:focus,
.nahbs-home-site .nh-reg__link:active {
	background: #ebe7e0;
	color: #111111;
}
.nahbs-home-site .nh-reg__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.nahbs-home-site .nh-reg__name {
	font-size: 16px;
	font-weight: 700;
	color: #000000;
}
.nahbs-home-site .nh-reg__blurb {
	font-size: 14px;
	line-height: 1.45;
	color: #5f5a53;
}
.nahbs-home-site .nh-reg__arrow {
	flex-shrink: 0;
	color: #a63010;
	transition: transform 0.2s ease;
}
.nahbs-home-site .nh-reg__link:hover .nh-reg__arrow,
.nahbs-home-site .nh-reg__link:focus .nh-reg__arrow {
	transform: translateX(3px);
}

/* Partners & Sponsors */
.nahbs-home-site .nh-partners__heading {
	margin: 0 0 10px;
	font-family: 'League Gothic', Impact, sans-serif;
	font-weight: 400;
	font-size: 26px;
	line-height: 1.05;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #000000;
}
.nahbs-home-site .nh-partners__list + .nh-partners__heading {
	margin-top: 28px;
}
.nahbs-home-site .nh-partners__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #e2ded8;
}
.nahbs-home-site .nh-partner {
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid #e2ded8;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nahbs-home-site .nh-partner__link,
.nahbs-home-site .nh-partner__link:visited {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	color: #000000;
	text-decoration: none;
}
.nahbs-home-site .nh-partner__link:hover,
.nahbs-home-site .nh-partner__link:focus,
.nahbs-home-site .nh-partner__link:active {
	color: #a63010;
}
.nahbs-home-site .nh-partner__logo {
	display: block;
	width: auto;
	max-width: 160px;
	max-height: 72px;
	height: auto;
}
.nahbs-home-site .nh-partner__name {
	font-size: 15px;
	font-weight: 700;
}
.nahbs-home-site .nh-partner__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #5f5a53;
}

@media (min-width: 640px) {
	.nahbs-home-site .nh-home { padding: 56px 32px 80px; }
	.nahbs-home-site .nh-card { gap: 24px; padding: 24px 0; }
	.nahbs-home-site .nh-card__thumb { flex-basis: 240px; }
	.nahbs-home-site .nh-card__title { font-size: 28px; }
	.nahbs-home-site .nh-card__meta { font-size: 12px; }
	.nahbs-home-site .nh-card__teaser { font-size: 15px; }
}

@media (min-width: 860px) {
	.nahbs-home-site .nh-home__grid {
		grid-template-columns: minmax(0, 1fr) 320px;
		grid-template-rows: auto auto 1fr;
		grid-template-areas:
			"posts announce"
			"posts register"
			"posts partners";
		column-gap: 48px;
		row-gap: 0;
	}
	.nahbs-home-site .nh-home__announce {
		padding-bottom: 32px;
		margin-bottom: 32px;
		border-bottom: 1px solid #e2ded8;
	}
	.nahbs-home-site .nh-home__partners {
		margin-top: 40px;
	}
	.nahbs-home-site .nh-cards {
		border-top: 0;
	}
	.nahbs-home-site .nh-card:first-child {
		padding-top: 0;
	}
}

@media (min-width: 1100px) {
	.nahbs-home-site .nh-home__grid {
		grid-template-columns: minmax(0, 1fr) 340px;
		column-gap: 56px;
	}
}

@media (min-width: 1200px) {
	.nahbs-home-site .nh-home__grid--partners {
		grid-template-columns: 200px minmax(0, 1fr) 320px;
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"partners posts announce"
			"partners posts register";
		column-gap: 48px;
	}
	.nahbs-home-site .nh-home__grid--partners .nh-home__partners {
		margin-top: 0;
	}
}

/* ---- Register page and sign-up pages ---------------------------------- */

.nahbs-home-site .nh-page-head {
	padding: 56px 24px 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}
.nahbs-home-site .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-home-site .nh-page-head__sub {
	margin: 0;
	max-width: 480px;
	font-size: 16px;
	line-height: 1.5;
	color: #5f5a53;
}
.nahbs-home-site .nh-register-wrap {
	padding: 0 24px 72px;
	display: flex;
	justify-content: center;
}
.nahbs-home-site .nh-reg__list--page {
	width: 100%;
	max-width: 560px;
}
.nahbs-home-site .nh-reg__list--page .nh-reg__link {
	padding: 22px 24px;
}
.nahbs-home-site .nh-reg__list--page .nh-reg__name {
	font-size: 18px;
}
.nahbs-home-site .nh-reg__list--page .nh-reg__blurb {
	font-size: 15px;
}

/* Form card (same fields and buttons as the Holding Page) */
.nahbs-home-site .nh-signup {
	background: #f3f1ed;
	padding: 48px 20px 72px;
	display: flex;
	justify-content: center;
}
.nahbs-home-site .nh-signup__inner {
	width: 100%;
	max-width: 720px;
}
.nahbs-home-site .nh-formcard {
	background: #ffffff;
	border-radius: 6px;
	border-top: 4px solid #2c6b7d;
	padding: 28px 20px 36px;
}
.nahbs-home-site .nh-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.nahbs-home-site .nh-form__intro {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: #222222;
	font-weight: 700;
}
.nahbs-home-site .nh-form__subline {
	margin: -12px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: #222222;
}
.nahbs-home-site .nh-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px 24px;
}
.nahbs-home-site .nh-field {
	flex-direction: column;
	gap: 6px;
}
.nahbs-home-site .nh-field[hidden] {
	display: none;
}
.nahbs-home-site .nh-field:not([hidden]) {
	display: flex;
}
.nahbs-home-site .nh-field label {
	font-size: 14px;
	font-weight: 600;
	color: #222222;
}
.nahbs-home-site .nh-field input,
.nahbs-home-site .nh-field select,
.nahbs-home-site .nh-field textarea {
	height: 46px;
	border: 1px solid #8a857e;
	border-radius: 4px;
	padding: 0 14px;
	font-family: Montserrat, Helvetica, sans-serif;
	font-size: 16px;
	background: #ffffff;
	color: #111111;
	width: 100%;
}
.nahbs-home-site .nh-field textarea {
	height: auto;
	padding: 10px 14px;
	resize: vertical;
}
.nahbs-home-site .nh-field input:focus,
.nahbs-home-site .nh-field select:focus,
.nahbs-home-site .nh-field textarea:focus {
	outline: 3px solid #000000;
	outline-offset: 1px;
}
.nahbs-home-site .nh-checkbox-group {
	padding: 6px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.nahbs-home-site .nh-checkbox {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.nahbs-home-site .nh-checkbox input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: #a63010;
}
.nahbs-home-site .nh-checkbox label {
	font-size: 15px;
	line-height: 1.55;
	color: #222222;
}
body.nahbs-home-site.nahbs-form-page--press .nh-checkbox label {
	font-weight: 700;
}
.nahbs-home-site .nh-form__note,
.nahbs-home-site .nh-form__required {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #5f5a53;
}
.nahbs-home-site .nh-form__msg {
	font-size: 14px;
	min-height: 20px;
}
.nahbs-home-site .nh-form__msg.is-success { color: #1a6b3c; }
.nahbs-home-site .nh-form__msg.is-error { color: #a63010; }
.nahbs-home-site .nh-btn {
	align-self: flex-start;
	height: 52px;
	padding: 0 36px;
	border: 0;
	border-radius: 4px;
	background: #a63010;
	color: #ffffff;
	font-family: Montserrat, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}
.nahbs-home-site .nh-btn:disabled {
	background: #9c968d;
	cursor: not-allowed;
}
.nahbs-home-site .nh-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

@media (min-width: 640px) {
	.nahbs-home-site .nh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nahbs-home-site .nh-field--wide { grid-column: 1 / -1; }
	.nahbs-home-site .nh-formcard { padding: 36px 32px 44px; }
}

@media (max-width: 639px) {
	/* Date above author, rather than a dot left dangling at a line end */
	.nahbs-home-site .nh-card__meta { flex-direction: column; gap: 2px; }
	.nahbs-home-site .nh-card__sep { display: none; }
}
