/* body {
	background-image: url('index-gray.jpg');
	background-position: center top;
	background-repeat: no-repeat;
} */

.news-tab {
	--tab-color: #374151;
	border: 1px solid var(--tab-color);
	border-bottom: 0;
	background: #ffffff;
	color: var(--tab-color);
	font-weight: 700;
	line-height: 1;
	padding: 0.9rem 1.5rem;
	width: 11rem;
	text-align: center;
	border-radius: 0.75rem 0.75rem 0 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.news-tab[data-theme="charcoal"] {
	--tab-color: #374151;
}

.news-tab[data-theme="red"] {
	--tab-color: #b91c1c;
}

.news-tab[data-theme="blue"] {
	--tab-color: #1d4ed8;
}

.news-tab[data-theme="green"] {
	--tab-color: #15803d;
}

.news-tab.is-active {
	background: var(--tab-color);
	color: #ffffff;
}

.news-tab:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 2px;
}

.hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.hero-slide.is-active {
	opacity: 1;
}

.desktop-dropdown {
	position: relative;
}

.desktop-dropdown-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 50%;
	transform: translateX(-50%);
	min-width: 20rem;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 0.75rem;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
	padding: 0.6rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease;
	z-index: 30;
}

.desktop-dropdown-menu a {
	display: block;
	padding: 0.6rem 0.75rem;
	border-radius: 0.5rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.4;
}

.desktop-dropdown-menu a:hover,
.desktop-dropdown-menu a:focus-visible {
	background: #eff6ff;
	color: #1d4ed8;
	outline: none;
}

.desktop-dropdown:hover .desktop-dropdown-menu,
.desktop-dropdown:focus-within .desktop-dropdown-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #ffffff;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1279px) {
	.site-header > .mx-auto.max-w-7xl {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 0 0.75rem;
		padding: 0.65rem 1rem !important;
	}

	.site-header > .mx-auto.max-w-7xl > .py-2 {
		grid-column: 1;
		padding-block: 0;
	}

	.site-header > .mx-auto.max-w-7xl > .flex.flex-col {
		display: contents !important;
	}

	.site-header > .mx-auto.max-w-7xl > .flex.flex-col > .flex.flex-wrap {
		grid-column: 2;
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-end;
		gap: 0.5rem;
	}

	.site-header > .mx-auto.max-w-7xl > .flex.flex-col > nav {
		display: none !important;
	}

	.site-header > .mx-auto.max-w-7xl img {
		width: min(14.5rem, 39vw);
	}

	.site-header > .mx-auto.max-w-7xl > .flex.flex-col > .flex.flex-wrap > p {
		gap: 0.3rem;
		font-size: clamp(0.68rem, 2.8vw, 0.95rem);
		white-space: nowrap;
	}

	.site-header > .mx-auto.max-w-7xl > .flex.flex-col > .flex.flex-wrap > p svg {
		width: 1.1rem;
		height: 1.1rem;
		flex: 0 0 auto;
	}

	.site-header #menu-toggle {
		position: relative;
		width: 2.75rem;
		height: 2.75rem;
		flex: 0 0 auto;
		margin-left: 0;
		padding: 0.65rem;
		transition: background-color 180ms ease, border-color 180ms ease;
	}

	.site-header #menu-toggle[aria-expanded="true"] {
		border-color: #1d4ed8;
		background: #eff6ff;
	}

	.site-header #menu-toggle svg {
		transition: opacity 180ms ease;
	}

	.site-header #menu-toggle[aria-expanded="true"] svg {
		opacity: 0;
	}

	.site-header #menu-toggle[aria-expanded="true"]::before,
	.site-header #menu-toggle[aria-expanded="true"]::after {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 1.25rem;
		height: 2px;
		border-radius: 9999px;
		background: currentColor;
		content: "";
	}

	.site-header #menu-toggle[aria-expanded="true"]::before {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	.site-header #menu-toggle[aria-expanded="true"]::after {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	#mobile-menu {
		position: sticky;
		top: 4.5rem;
		z-index: 49;
		max-height: calc(100vh - 4.5rem);
		overflow-y: auto;
		background: #fff;
	}

	#mobile-menu:not(.hidden) {
		display: block;
	}

	#mobile-menu nav {
		border-color: #e5e7eb;
		border-radius: 0 0 0.75rem 0.75rem;
		box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
	}

	#mobile-menu nav a {
		min-height: 2.75rem;
	}

	#mobile-menu nav a:last-child {
		border-bottom: 0;
	}
}

@media (max-width: 640px) {
	.site-header > .mx-auto.max-w-7xl > .flex.flex-col > .flex.flex-wrap > a {
		display: none;
	}

	#mobile-menu nav .mobile-contact-link {
		margin-top: 0.75rem;
		border: 0;
		border-radius: 9999px;
		background: #2563eb;
		color: #fff;
		text-align: center;
	}
}

@media (max-width: 380px) {
	.site-header > .mx-auto.max-w-7xl {
		gap: 0 0.4rem;
		padding-inline: 0.75rem !important;
	}

	.site-header > .mx-auto.max-w-7xl img {
		width: min(12rem, 38vw);
	}

	.site-header > .mx-auto.max-w-7xl > .flex.flex-col > .flex.flex-wrap {
		gap: 0.35rem;
	}

	.site-header > .mx-auto.max-w-7xl > .flex.flex-col > .flex.flex-wrap > p {
		font-size: 0.68rem;
	}
}

@media (max-width: 767px) {
	body {
		font-size: 16px;
		line-height: 1.75;
	}

	main {
		padding-block: 2rem !important;
	}

	main section,
	main > div {
		margin-bottom: 2rem !important;
	}

	main h1,
	.bg-gradient-to-r h1 {
		font-size: 1.5rem !important;
		line-height: 1.4;
	}

	main h2 {
		font-size: 1.3rem !important;
		line-height: 1.5;
	}

	main h3 {
		font-size: 1.1rem !important;
		line-height: 1.5;
	}

	main p {
		line-height: 1.8;
	}

	main .p-6,
	main .p-8 {
		padding: 1.1rem !important;
	}

	main .px-5,
	main .px-6 {
		padding-inline: 0.9rem !important;
	}

	main .py-10,
	main .py-14 {
		padding-block: 2rem !important;
	}

	main .mb-12 {
		margin-bottom: 2rem !important;
	}

	main .gap-10 {
		gap: 1.25rem !important;
	}

	main .gap-8 {
		gap: 1.5rem !important;
	}

	main table th,
	main table td {
		padding: 0.7rem !important;
		vertical-align: top;
	}

	main input,
	main select,
	main textarea,
	main button {
		font-size: 1rem;
	}

	.news-tab {
		width: auto;
		min-width: 7rem;
		padding: 0.85rem 0.9rem;
		font-size: 0.9rem;
	}

	#news-tabs {
		gap: 0.5rem;
		padding-bottom: 0.15rem;
		scrollbar-width: thin;
	}

	#wp-news-feed .news-item {
		padding: 0.9rem 0.8rem;
	}

	#wp-news-feed .news-item > div {
		column-gap: 0.75rem;
		row-gap: 0.55rem;
	}

	#wp-news-feed .news-item > div > a {
		font-size: 0.95rem;
		line-height: 1.65;
	}

	#wp-news-feed .news-item > a {
		width: 2.25rem;
		height: 2.25rem;
	}

	.hero-slide {
		border-radius: 0.5rem;
	}

	section.mx-auto.mt-20 {
		margin-top: 3rem !important;
	}

	section.mx-auto.mt-14 {
		margin-top: 2.5rem !important;
	}

	section.mx-auto.mt-10 {
		gap: 1.5rem !important;
		margin-top: 2rem !important;
		padding-inline: 1rem !important;
	}

	section.mx-auto h2 {
		font-size: 1.9rem !important;
		line-height: 1.4;
	}

	section.relative.mx-auto.mt-7 {
		margin-top: 1rem !important;
	}

	section.mt-24 {
		margin-top: 3rem !important;
		padding-top: 2rem !important;
	}

	footer .mx-auto.mt-14 {
		margin-top: 2rem !important;
		gap: 1.5rem;
		padding-bottom: 2.5rem !important;
	}
}