/*
Theme Name: Astra Child
Description: Astra child theme preserving the site's Salient-era navigation, sidebars, and member pages.
Author: Site Customizations
Template: astra
Version: 1.0.0
Text Domain: sandj-astra-child
*/

:root {
	--sandj-accent: #126191;
	--sandj-deep: #2d4351;
	--sandj-border: #dce3e7;
	--sandj-muted: #5b6870;
}

.ast-container {
	max-width: 1425px;
}

a {
	color: var(--sandj-accent);
}

a:hover,
a:focus {
	color: var(--sandj-deep);
}

.ast-primary-header-bar {
	border-bottom: 1px solid var(--sandj-border);
}

.ast-builder-menu .main-header-menu .menu-item > .menu-link {
	color: var(--sandj-deep);
	font-weight: 600;
}

.sandj-page-shell {
	padding-top: 40px;
	padding-bottom: 56px;
}

.sandj-page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 42px;
	align-items: start;
}

.sandj-page-layout--left {
	grid-template-columns: 300px minmax(0, 1fr);
}

.sandj-entry-title {
	margin: 0 0 28px;
	color: var(--sandj-deep);
}

.sandj-members-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.sandj-member-group h2,
.sandj-member-directory h2 {
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--sandj-accent);
	color: var(--sandj-deep);
	font-size: 1.35rem;
}

.sandj-member-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sandj-member-list li {
	margin: 0 0 9px;
}

.sandj-member-directory {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 30px;
}

.sandj-member-card {
	padding-bottom: 18px;
	border-bottom: 1px solid var(--sandj-border);
}

.sandj-member-card h2 {
	margin-bottom: 8px;
	border: 0;
	padding: 0;
	font-size: 1.1rem;
}

.sandj-member-card p {
	margin: 4px 0;
}

.sandj-members-sidebar,
.sandj-page-sidebar {
	min-width: 0;
}

.sandj-login-notice {
	padding: 22px;
	border-left: 4px solid var(--sandj-accent);
	background: #f3f6f7;
}

.sandj-footer-widgets {
	padding: 30px 0;
	background: var(--sandj-deep);
	color: #fff;
}

.sandj-footer-widgets .ast-container {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.sandj-footer-widgets a,
.sandj-footer-widgets .widget-title {
	color: #fff;
}

@media (max-width: 921px) {
	.sandj-page-layout,
	.sandj-page-layout--left {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	.sandj-footer-widgets .ast-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.sandj-members-grid,
	.sandj-member-directory,
	.sandj-footer-widgets .ast-container {
		grid-template-columns: minmax(0, 1fr);
	}
}

.sandj-site-header {
	position: relative;
	z-index: 20;
	background: #000;
	color: #f5f5f5;
}

.sandj-header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	width: 100%;
	max-width: 1128px;
	min-height: 110px;
	margin: 0 auto;
	padding: 10px 24px;
	box-sizing: border-box;
}

.sandj-brand {
	display: inline-flex;
	flex: 0 0 210px;
	align-items: center;
}

.sandj-brand img {
	display: block;
	width: 210px;
	max-height: 96px;
	object-fit: contain;
}

.sandj-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.sandj-header-actions {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	order: 3;
	margin-left: 16px;
}

.sandj-primary-nav {
	order: 2;
	margin-left: auto;
}

.sandj-primary-menu,
.sandj-primary-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sandj-primary-menu {
	display: flex;
	align-items: center;
	gap: 20px;
}

.sandj-primary-menu .menu-item {
	position: relative;
}

.sandj-primary-menu a {
	display: block;
	padding: 12px 0;
	color: #f5f5f5;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.sandj-primary-menu a:hover,
.sandj-primary-menu a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.sandj-primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: -14px;
	z-index: 30;
	min-width: 210px;
	padding: 7px 14px;
	background: #111;
}

.sandj-primary-menu .menu-item:hover > .sub-menu,
.sandj-primary-menu .menu-item:focus-within > .sub-menu {
	display: block;
}

.sandj-primary-menu .sub-menu a {
	padding: 9px 0;
}

.sandj-menu-toggle,
.sandj-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #f5f5f5;
	cursor: pointer;
}

.sandj-search-toggle {
	width: 48px;
	margin-left: 8px;
	border-left: 1px solid #777;
}

.sandj-menu-toggle {
	display: none;
}

.sandj-search-icon {
	position: relative;
	display: block;
	width: 14px;
	height: 14px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
}

.sandj-search-icon::after {
	position: absolute;
	right: -5px;
	bottom: -3px;
	width: 6px;
	height: 1.5px;
	background: currentColor;
	content: '';
	transform: rotate(45deg);
	transform-origin: left center;
}

.sandj-search-form {
	position: absolute;
	top: calc(100% + 15px);
	right: 0;
	z-index: 40;
	display: flex;
	gap: 8px;
	width: min(360px, calc(100vw - 32px));
	padding: 12px;
	background: #111;
}

.sandj-search-form[hidden],
.sandj-primary-nav[hidden] {
	display: none !important;
}

.sandj-search-form input[type="search"] {
	min-width: 0;
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #777;
	border-radius: 0;
}

.sandj-search-form button {
	padding: 8px 12px;
	border: 1px solid #fff;
	border-radius: 0;
	background: #000;
	color: #fff;
}

.sandj-site-header button:focus-visible,
.sandj-site-header a:focus-visible,
.sandj-search-form input:focus-visible {
	outline: 2px solid #83c8eb;
	outline-offset: 3px;
}

body.home .site-content > .ast-container {
	width: 100%;
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

#primary.sandj-home-content {
	width: 100%;
	max-width: 1128px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	color: #68757f;
	font-size: 14px;
	line-height: 1.75;
}

.sandj-home-content .vc_row:not(.vc_inner) {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: 0;
	padding-left: 0;
	box-sizing: border-box;
}

.sandj-home-content h1 {
	margin: 0 0 20px;
	color: var(--sandj-accent);
	font-size: 16px !important;
	font-weight: 600;
	line-height: 1.5;
}

.sandj-home-content h2,
.sandj-home-content h3 {
	color: #bd422b;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.sandj-home-content p {
	margin-bottom: 18px;
}

.sandj-slider {
	position: relative;
	width: min(100%, 775px);
	aspect-ratio: 1.62;
	min-height: 260px;
	max-height: 560px;
	margin: 0 auto 28px;
	overflow: hidden;
	background: #111;
}

.sandj-slider-track,
.sandj-slide {
	position: absolute;
	inset: 0;
}

.sandj-slide {
	display: none;
	margin: 0;
}

.sandj-slide.is-current {
	display: block;
}

.sandj-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sandj-slider-controls {
	position: absolute;
	right: 18px;
	bottom: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sandj-slider-controls button {
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 0;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	cursor: pointer;
}

.sandj-slider-controls button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.sandj-slider-controls .sandj-slide-previous,
.sandj-slider-controls .sandj-slide-next {
	width: 40px;
	padding: 0;
	font-size: 27px;
	line-height: 1;
}

@media (max-width: 1000px) {
	#primary.sandj-home-content {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0 18px;
	}

	.sandj-header-inner {
		flex-wrap: wrap;
		gap: 12px 20px;
	}

	.sandj-header-actions {
		order: 2;
		margin-left: auto;
	}

	.sandj-primary-nav {
		order: 3;
		width: 100%;
		margin: 0;
	}

	.sandj-primary-menu {
		justify-content: center;
		gap: 16px;
	}
}

@media (max-width: 760px) {
	.sandj-header-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0 12px;
		min-height: 82px;
		padding: 10px 18px;
	}

	.sandj-brand {
		grid-column: 1;
		grid-row: 1;
		max-width: 190px;
	}

	.sandj-brand img {
		width: 180px;
		max-height: 68px;
	}

	.sandj-header-actions {
		grid-column: 2;
		grid-row: 1;
		gap: 6px;
	}

	.sandj-menu-toggle {
		display: inline-flex;
	}

	.sandj-menu-toggle-icon,
	.sandj-menu-toggle-icon::before,
	.sandj-menu-toggle-icon::after {
		position: absolute;
		width: 19px;
		height: 2px;
		background: currentColor;
		content: '';
	}

	.sandj-menu-toggle-icon {
		position: relative;
	}

	.sandj-menu-toggle-icon::before {
		top: -6px;
		left: 0;
	}

	.sandj-menu-toggle-icon::after {
		top: 6px;
		left: 0;
	}

	.sandj-primary-nav {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		margin: 0;
		padding-top: 8px;
	}

	.sandj-primary-nav[hidden] {
		display: none !important;
	}

	.sandj-primary-nav:not([hidden]) {
		display: block;
	}

	.sandj-primary-menu {
		display: block;
	}

	.sandj-primary-menu > .menu-item {
		border-top: 1px solid #333;
	}

	.sandj-primary-menu a {
		padding: 13px 4px;
		font-size: 13px;
	}

	.sandj-primary-menu .sub-menu {
		position: static;
		padding: 0 0 6px 16px;
	}

	.sandj-primary-menu .menu-item:focus-within > .sub-menu {
		display: block;
	}

	.sandj-home-content {
		padding-right: 18px;
		padding-left: 18px;
	}

	.sandj-slider {
		min-height: 240px;
		aspect-ratio: 4 / 3;
	}

	.sandj-slider-controls {
		right: 10px;
		bottom: 10px;
	}
}