/* NaCSBA Self Build Hub - front end styles, scoped to .nacsba-hub */

.nacsba-hub {
	--nh-brand: #123E4B;
	--nh-gold: #b29146;
	--nh-text: #1f2a30;
	--nh-text-2: #5a6b72;
	--nh-border: #e2e6e8;
	--nh-bg: #ffffff;
	--nh-radius-lg: 10px;
	--nh-radius-md: 6px;
	font-family: inherit;
	color: var(--nh-text);
	box-sizing: border-box;
}
.nacsba-hub *,
.nacsba-hub *::before,
.nacsba-hub *::after {
	box-sizing: border-box;
}

/* Tabs */
.nacsba-hub .nh-tabs {
	display: flex;
	gap: 0;
	margin: 0 0 1.75rem;
	border-bottom: 1px solid var(--nh-border);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.nacsba-hub .nh-tabs::-webkit-scrollbar {
	display: none;
}
.nacsba-hub .nh-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 400;
	color: var(--nh-text-2);
	cursor: pointer;
	margin-bottom: -1px;
	white-space: nowrap;
	font-family: inherit;
	line-height: 1.4;
}
.nacsba-hub .nh-tab.is-active {
	color: var(--nh-brand);
	border-bottom-color: var(--nh-brand);
	font-weight: 500;
}
.nacsba-hub .nh-tab:hover:not(.is-active) {
	color: var(--nh-text);
}

/* Card grid */
.nacsba-hub .nh-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin: 0 0 2rem;
}
@media (max-width: 900px) {
	.nacsba-hub .nh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.nacsba-hub .nh-grid {
		grid-template-columns: 1fr;
	}
}

.nacsba-hub .nh-card {
	background: var(--nh-bg);
	border: 1px solid var(--nh-border);
	border-radius: var(--nh-radius-lg);
	border-top: 3px solid #cccccc;
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
}
.nacsba-hub a.nh-card {
	cursor: pointer;
	transition: box-shadow .15s ease, transform .15s ease;
}
.nacsba-hub a.nh-card:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}
.nacsba-hub .nh-card.is-hidden {
	display: none;
}
.nacsba-hub .nh-cat-label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.nacsba-hub .nh-card-title {
	font-size: 14px;
	font-weight: 500;
	color: var(--nh-text);
	line-height: 1.35;
}
.nacsba-hub .nh-card-desc {
	font-size: 12px;
	color: var(--nh-text-2);
	line-height: 1.5;
}
