:root {
	--qsi-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--qsi-font-heading: var(--qsi-font-sans);
	--qsi-navy: #102235;
	--qsi-navy-2: #1d3954;
	--qsi-yellow: #ffec56;
	--qsi-teal: #287fae;
	--qsi-ink: #172635;
	--qsi-muted: #5e7184;
	--qsi-surface: #f4f7f9;
	--qsi-line: #d8e1ea;
	--qsi-white: #ffffff;
	--qsi-shadow: 0 24px 70px rgba(16, 34, 53, 0.12);
	--qsi-radius: 20px;
	--qsi-radius-small: 10px;
	--qsi-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
	scroll-behavior: smooth;
}

body,
html {
	font-family: var(--qsi-font-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body .content h1,
body .content h2,
body .content h3,
body .content h4,
body .content h5,
body .content h6 {
	font-family: var(--qsi-font-heading);
	font-style: normal;
	text-rendering: optimizeLegibility;
}

body {
	background: var(--qsi-white);
}

::selection {
	background: var(--qsi-yellow);
	color: var(--qsi-navy);
}

#hero {
	background-attachment: scroll;
}

body > .content > nav[aria-label="Primary"] {
	align-items: center;
	background: transparent;
	display: flex;
	font-family: inherit;
	font-size: 13px;
	font-weight: 650;
	gap: 5px;
	height: 72px;
	justify-content: flex-end;
	left: auto;
	letter-spacing: -0.01em;
	margin: 0;
	padding: 0;
	position: fixed;
	right: max(22px, calc((100vw - 1200px) / 2));
	top: 0;
	width: auto;
	z-index: 220;
}

body > .content > nav[aria-label="Primary"] a {
	align-items: center;
	border: 0;
	border-radius: 999px;
	box-sizing: border-box;
	color: rgba(255, 255, 255, 0.78);
	display: inline-flex;
	height: 38px;
	line-height: 1;
	margin: 0;
	min-height: 38px;
	padding: 0 14px;
	text-shadow: none;
	transition: color 180ms ease, background-color 180ms ease;
}

body > .content > nav[aria-label="Primary"] a:hover,
body > .content > nav[aria-label="Primary"] a:focus-visible {
	background: rgba(255, 255, 255, 0.09);
	color: #fff;
}

body > .content > nav[aria-label="Primary"] a.selected,
body > .content > nav[aria-label="Primary"] a[aria-current="page"] {
	background: rgba(255, 255, 255, 0.11);
	border: 0;
	color: #fff !important;
}

body > .content > nav[aria-label="Primary"] a.nav-support {
	background: var(--qsi-yellow);
	color: var(--qsi-navy) !important;
	margin-left: 4px;
}

body > .content > nav[aria-label="Primary"] a.nav-support:hover,
body > .content > nav[aria-label="Primary"] a.nav-support:focus-visible {
	background: #fff7a8;
}

#header {
	align-items: center;
	-webkit-backdrop-filter: blur(20px) saturate(145%);
	backdrop-filter: blur(20px) saturate(145%);
	background: rgba(10, 31, 48, 0.9);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 30px rgba(4, 18, 29, 0.12);
	box-sizing: border-box;
	display: flex;
	height: 72px;
	position: fixed;
	top: 0;
	z-index: 200;
}

#header > a {
	display: inline-flex;
	margin-left: max(22px, calc((100vw - 1200px) / 2));
}

#header img,
#header #logo {
	height: auto !important;
	margin: 0;
	width: 164px;
}

#submenu.site-subnav {
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	background: rgba(16, 34, 53, 0.9);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: none;
	height: 44px;
	padding-left: max(18px, calc((100vw - 1200px) / 2));
	padding-right: max(18px, calc((100vw - 1200px) / 2));
	position: fixed;
	top: 72px;
	z-index: 190;
}

#submenu.site-subnav a {
	border: 0;
	color: rgba(255, 255, 255, 0.7);
	font-family: inherit;
	font-size: 12px;
	font-weight: 650;
	height: 44px;
	letter-spacing: 0;
	padding: 0 13px;
	position: relative;
	text-shadow: none;
}

#submenu.site-subnav a::after {
	background: var(--qsi-yellow);
	bottom: 0;
	content: "";
	height: 2px;
	left: 13px;
	position: absolute;
	right: 13px;
	transform: scaleX(0);
	transition: transform 180ms ease;
}

#submenu.site-subnav a:hover,
#submenu.site-subnav a:focus-visible,
#submenu.site-subnav a[aria-current="page"] {
	border: 0;
	color: #fff;
}

#submenu.site-subnav a:hover::after,
#submenu.site-subnav a:focus-visible::after,
#submenu.site-subnav a[aria-current="page"]::after {
	transform: scaleX(1);
}

#submenu.site-subnav ~ #hero {
	padding-top: 150px !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--qsi-yellow);
	outline-offset: 3px;
}

footer {
	background-color: var(--qsi-navy);
	background-image: linear-gradient(105deg, rgba(16, 34, 53, 0.97), rgba(16, 34, 53, 0.86)), url('/images/logos/quad-state-internet-blue-swoosh-background.png');
	background-position: center;
	background-size: cover;
	border-top: 0;
	box-sizing: border-box;
	color: rgba(255, 255, 255, 0.72);
	display: grid;
	gap: 32px 70px;
	grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(150px, 0.7fr));
	padding: 70px max(24px, calc((100vw - 1200px) / 2)) 34px;
}

footer::before {
	background: var(--qsi-yellow);
	content: "";
	grid-column: 1 / -1;
	height: 3px;
	margin-bottom: 12px;
	width: 42px;
}

footer div {
	font-family: inherit;
	font-size: 13px;
	line-height: 1.6;
}

.footer-brand img {
	margin: 0 0 20px;
	width: 180px;
}

.footer-brand > a {
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}

.footer-tagline {
	color: rgba(255, 255, 255, 0.64);
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 20px;
	max-width: 380px;
}

.footer-heading {
	color: var(--qsi-yellow);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.12em;
	margin: 2px 0 16px;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.78);
	display: block;
	margin: 8px 0;
	text-decoration: none;
	transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: #fff;
	transform: translateX(2px);
}

.footer-legal {
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
	grid-column: 1 / -1;
	line-height: 1.65;
	margin-top: 22px;
	padding-top: 22px;
}

.footer-legal a {
	color: rgba(255, 255, 255, 0.72);
	display: inline;
	margin: 0;
}

@media only screen and (max-width: 820px) {
	body > .content > nav[aria-label="Primary"] {
		height: 68px !important;
		right: 12px;
	}

	body > .content > nav[aria-label="Primary"] a {
		font-size: 12px;
		height: 36px;
		min-height: 36px;
		padding: 0 10px;
	}

	body > .content > nav[aria-label="Primary"] a.nav-support {
		display: none;
	}

	#header {
		height: 68px;
		justify-content: flex-start;
	}

	#header > a {
		margin-left: 14px;
	}

	#header img,
	#header #logo {
		width: 128px;
	}

	#submenu.site-subnav {
		height: 42px;
		padding: 0 8px;
		top: 68px;
	}

	#submenu.site-subnav a {
		font-size: 11px;
		height: 42px;
		padding: 0 10px;
	}

	#submenu.site-subnav ~ #hero {
		padding-top: 132px !important;
	}

	footer {
		gap: 36px 28px;
		grid-template-columns: 1.3fr 1fr 1fr;
		padding-top: 52px;
	}
}

@media only screen and (max-width: 560px) {
	body > .content > nav[aria-label="Primary"] a {
		padding: 0 7px;
	}

	#header img,
	#header #logo {
		width: 112px;
	}

	footer {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 48px 20px 28px;
	}

	.footer-brand,
	.footer-legal {
		grid-column: 1 / -1;
	}
}

@media only screen and (max-width: 390px) {
	body > .content > nav[aria-label="Primary"] a {
		font-size: 11px;
		padding: 0 5px;
	}

	#header img,
	#header #logo {
		width: 104px;
	}
}

@media only screen and (max-width: 340px) {
	body > .content > nav[aria-label="Primary"] a {
		font-size: 10px;
		padding: 0 3px;
	}

	#header img,
	#header #logo {
		width: 92px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
