/* Small layout fixes so the rebuilt Core pages match the classic NSM master. */

/* Header: faded house sits flush on the blue menu, same on every page */
.nsm-desktop-chrome {
	margin: 0;
	padding: 0;
}

.premenuHeader {
	display: flex;
	align-items: stretch;
	height: 171px;
	min-height: 171px;
	max-height: 171px;
	margin: 0;
	padding: 0 0 0 3%;
	overflow: hidden;
	background-size: cover;
	background-position: top left;
	background-repeat: no-repeat;
}

.nsm-header-logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding-right: 1rem;
}

.nsm-header-logo img {
	height: 150px;
	width: auto;
	display: block;
}

.nsm-header-right {
	flex: 1 1 auto;
	min-width: 0;
	background-repeat: no-repeat;
	background-position: right bottom;
	background-size: auto 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	padding: 0.65rem 1rem 0.2rem 1rem;
}

.nsm-header-fb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nsm-header-fb a {
	color: #0599fe;
	text-decoration: none;
}

.nsm-header-fb img {
	width: 35px;
	height: auto;
	display: block;
}

.nsm-header-taglines {
	text-align: right;
	color: #ffffff;
	text-transform: uppercase;
}

.nsm-header-tagline {
	font-size: 1.5rem;
	line-height: 1.15;
	margin-bottom: 0.15rem;
}

.nsm-header-call {
	font-size: 1rem;
	text-transform: none;
	line-height: 1.2;
}

.nsm-header-call em {
	font-style: italic;
	font-weight: bold;
}

.nsm-header-call a {
	color: #00ffff;
	text-decoration: none;
}

#maincontent {
	min-height: 400px;
}

#sitebottom {
	background-image: linear-gradient(to bottom, #0356fc 0%, #0593fe 100%);
}

#sitebottom a,
#sitebottom a:visited {
	color: #fff;
	text-decoration: none;
}

#sitebottom a:hover {
	color: #fff;
	text-decoration: underline;
}

.nsm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
}

.nsm-gallery-card {
	display: block;
	color: #ffffff;
	text-decoration: none;
}

.nsm-gallery-card:hover {
	color: #6dcff6;
	text-decoration: none;
}

.nsm-gallery-card img,
.nsm-gallery-photo img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid #ffffff;
}

.nsm-gallery-photo img {
	height: 180px;
}

.nsm-gallery-name {
	display: block;
	margin-top: 0.5rem;
	font-weight: bold;
}

.hero-button-link {
	display: inline-block;
	text-decoration: none;
}

/* Desktop menu: centered cluster in a container, like live NSM */
.nsm-desktop-nav {
	max-height: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	font-size: small;
	letter-spacing: 0.1em;
	overflow: hidden;
	background-image: linear-gradient(to right, #0593fe 0%, #0356fc 100%);
	border: 0;
}

.navbar-nav-desktop {
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0 !important;
	margin: 0 !important;
}

.navbar-nav-desktop .nav-item {
	flex: 1 1 auto;
	text-align: center;
	white-space: nowrap;
}

.navbar-nav-desktop .nav-link {
	white-space: nowrap !important;
	padding: 0.5rem 0.25rem !important;
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.1em;
}

.navbar-nav-desktop .nav-link,
.navbar-light .navbar-nav-desktop .nav-link {
	color: #ffffff !important;
	text-transform: uppercase;
}

.navbar-nav-desktop .nav-link.nsm-nav-visualizer,
.nsm-mobile-nav .nav-link.nsm-nav-visualizer {
	color: #00ffff !important;
	font-weight: bold;
}

.nsm-mobile-nav {
	z-index: 2;
	background-image: linear-gradient(to right, #0593fe 0%, #0356fc 100%);
}

.nsm-mobile-nav .nav-link {
	color: #ffffff !important;
	text-transform: uppercase;
}

.nsm-mobile-nav .navbar-toggler {
	color: #00ffff;
	border-color: #00ffff;
}

.nsm-mobile-nav .navbar-toggler span {
	display: block;
	background-color: #00ffff;
	height: 2px;
	width: 25px;
	margin-top: 6px;
	margin-bottom: 4px;
}
