/*
Theme Name: Storm Data Solutions
Theme URI: https://www.sds-us.net
Author: Modern Agile Systems
Author URI: https://modernagilesystems.com
Description: Custom theme for Storm Data Solutions, a service-disabled veteran-owned IT solutions provider. Built to Section 508 / WCAG 2.1 AA, with a visitor accessibility tool, built-in SEO (meta tags, Open Graph, schema.org), government contracting data fields, Elementor support and no third-party requests.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stormdata
Tags: accessibility-ready, custom-logo, custom-menu, featured-images, translation-ready, one-column
*/

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
	font-family: "Public Sans";
	src: url("assets/fonts/public-sans-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Montserrat";
	src: url("assets/fonts/montserrat-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	/* From the logo: charcoal #445358 and cyan #22ABE2. The darker charcoal and
	   the deep blue are derived from them so text meets WCAG AA contrast. */
	--charcoal: #27333A;
	--charcoal-deep: #1D272C;
	--logo-charcoal: #445358;
	--blue: #0B6E99;
	--blue-dark: #08506F;
	--cyan: #22ABE2;
	--cloud: #EFF4F6;
	--line: #CDD7DC;
	--field-line: #5F7078;
	--ink: #1D272C;
	--slate: #4A5A61;
	--white: #FFFFFF;
	--on-dark: #FFFFFF;
	--on-dark-muted: #C7D3D9;
	--error: #B3261E;
	--success: #1B6B3A;

	--font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Montserrat", "Public Sans", "Segoe UI", Arial, sans-serif;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
	--step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
	--step-4: clamp(2.25rem, 1.5rem + 3.6vw, 4rem);

	--gutter: clamp(1rem, 4vw, 2rem);
	--section: clamp(3.5rem, 8vw, 6.5rem);
	--radius: 4px;
	--container: 77.5rem;
}

/* ---------- Base (zero-specificity so page builders can override) ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	overflow-wrap: break-word;
}

:where(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
:where(h1) { font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.02em; }
:where(h2) { font-size: var(--step-3); }
:where(h3) { font-size: var(--step-2); }
:where(h4) { font-size: var(--step-1); }
:where(p, ul, ol, dl, figure, blockquote, table, pre) { margin: 0 0 1.25em; }
:where(a) { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
:where(a:hover) { color: var(--blue-dark); text-decoration-thickness: 0.14em; }
:where(img, svg, video) { max-width: 100%; height: auto; }
:where(img) { display: block; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(table) { width: 100%; border-collapse: collapse; }
:where(th, td) { padding: 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
:where(blockquote) { margin-left: 0; padding-left: 1.25rem; border-left: 4px solid var(--cyan); }
:where(hr) { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Focus: two-tone ring that stays visible on light and dark backgrounds. */
:focus-visible {
	outline: 3px solid var(--cyan);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--ink);
	border-radius: 2px;
}
#main:focus { outline: none; box-shadow: none; }

/* ---------- Utilities ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	top: -100px; left: 0.5rem;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--cyan);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
	border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; color: var(--ink); }

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(46rem + 2 * var(--gutter)); }

.icon { flex: none; }

.admin-hint {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border: 2px dashed var(--field-line);
	background: var(--white);
	color: var(--ink);
	font-size: var(--step--1);
}

/* ---------- Buttons ---------- */
.button,
.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.625rem 1.375rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button--primary, .entry-content .wp-block-button__link { background: var(--blue); color: var(--white); }
.button--primary:hover, .entry-content .wp-block-button__link:hover { background: var(--blue-dark); color: var(--white); }
.button--accent { background: var(--cyan); color: var(--charcoal-deep); }
.button--accent:hover { background: var(--white); color: var(--ink); }
.button--ghost { border-color: var(--on-dark); color: var(--on-dark); background: transparent; }
.button--ghost:hover { background: var(--on-dark); color: var(--charcoal); }
.button--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.button--outline:hover { background: var(--blue); color: var(--white); }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: var(--charcoal-deep); color: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.button--small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem 1rem; }

/* ---------- Utility bar ---------- */
.utility-bar {
	background: var(--charcoal-deep);
	color: var(--on-dark);
	font-size: var(--step--1);
}
.utility-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 1.5rem;
	padding-block: 0.5rem;
}
.utility-bar__status { margin: 0; font-weight: 600; }
.utility-bar__status::before {
	content: "";
	display: inline-block;
	width: 0.5rem; height: 0.5rem;
	margin-right: 0.5rem;
	background: var(--cyan);
	border-radius: 50%;
	vertical-align: 0.05em;
}
.utility-bar__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.utility-bar a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 1.75rem; color: var(--on-dark); text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 5rem; }
.site-branding { flex: 0 1 auto; min-width: 0; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; height: 3.25rem; max-width: 100%; }
.nav-toggle {
	display: none;
	flex: none;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.375rem 0.75rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	font-weight: 700;
	cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.nav-toggle__open { display: inline-flex; }

.site-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 1.5rem; }
.site-nav .menu { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav .menu a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	color: var(--ink);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border-radius: var(--radius);
}
.site-nav .menu a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 0.4em; text-decoration-thickness: 2px; }
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current-menu-ancestor > a,
.site-nav .menu .current_page_item > a { color: var(--blue); box-shadow: inset 0 -3px 0 var(--cyan); border-radius: 0; }
.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem; height: 2.75rem;
	margin-left: -0.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	z-index: 60;
	min-width: 17rem;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--cyan);
	box-shadow: 0 14px 28px rgba(39, 51, 58, 0.16);
}
.site-nav .sub-menu a { display: flex; width: 100%; font-weight: 500; }
.site-nav li.is-open > .sub-menu { display: block; }
@media (hover: hover) and (min-width: 68.75em) {
	.site-nav .menu > li:hover > .sub-menu { display: block; }
}

.site-nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.header-search { display: flex; align-items: center; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--white); }
.header-search input {
	width: 7.5rem;
	min-height: 2.625rem;
	padding: 0.25rem 0.625rem;
	border: 0;
	background: transparent;
	font-size: 0.9375rem;
	border-radius: var(--radius);
}
.header-search input::placeholder { color: var(--slate); opacity: 1; }
.header-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.625rem; height: 2.625rem;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

@media (max-width: 68.74em) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem var(--gutter) 1.5rem;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 18px 30px rgba(39, 51, 58, 0.18);
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line); }
	.site-nav .menu a { flex: 1; min-height: 3rem; padding-inline: 0; }
	.submenu-toggle { width: 3rem; height: 3rem; margin: 0; }
	.site-nav .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 0.5rem 1rem; border: 0; box-shadow: none; }
	.site-nav__actions { flex-direction: column; align-items: stretch; }
	.header-search input { flex: 1; width: auto; min-height: 3rem; }
	.header-search button { width: 3rem; height: 3rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--cloud { background: var(--cloud); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--dark a { color: var(--on-dark); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin: 0; color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; max-width: none; }
.section__head--row h2 { margin: 0; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	background-color: var(--charcoal);
	background-image: linear-gradient(90deg, var(--charcoal) 0%, rgba(39, 51, 58, 0.92) 40%, rgba(39, 51, 58, 0.35) 100%), url("assets/img/rings.svg");
	background-size: cover;
	background-position: center right;
	color: var(--on-dark);
}
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	align-items: end;
	gap: clamp(2rem, 5vw, 5rem);
	padding-block: clamp(3.5rem, 9vw, 7.5rem);
}
.hero__title { margin-bottom: 0.4em; max-width: 14em; color: var(--on-dark); }
.hero__text { max-width: 36em; margin-bottom: 2rem; color: var(--on-dark-muted); font-size: var(--step-1); line-height: 1.5; }

.data-plate {
	padding: 1.5rem;
	background: rgba(29, 39, 44, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-top: 4px solid var(--cyan);
}
.data-plate__title { margin-bottom: 0.75rem; font-size: 1rem; letter-spacing: 0; color: var(--on-dark); }
.data-plate dl { margin: 0 0 1rem; }
.data-plate dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding: 0.625rem 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.data-plate dt { color: var(--on-dark-muted); font-size: var(--step--1); }
.data-plate dd { margin: 0; font-weight: 700; font-size: 0.9375rem; text-align: right; }
.data-plate__link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; color: var(--cyan); font-weight: 700; }
.data-plate__link:hover { color: var(--white); }

@media (max-width: 56em) {
	.hero { background-image: linear-gradient(180deg, rgba(39, 51, 58, 0.94), rgba(39, 51, 58, 0.88)), url("assets/img/rings.svg"); }
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Feature lists ---------- */
.feature-list, .job-list, .post-grid, .partner-list, .process-list, .check-list, .capability-strip ul, .link-list, .contact-list, .social-list {
	margin: 0; padding: 0; list-style: none;
}
.feature-list { display: grid; gap: 2.25rem 2rem; }
.feature-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; }
.feature-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-list li { display: flex; flex-direction: column; padding-top: 1.25rem; border-top: 3px solid var(--cyan); }
.feature-list__title { font-size: var(--step-1); }
.feature-list p { color: var(--slate); }
.feature-list p:last-child { margin-bottom: 0; }
.feature-list__link { margin-top: auto; padding-top: 0.25rem; font-weight: 700; }
.feature-list p + .feature-list__link { margin-top: auto; }
.section--dark .feature-list p { color: var(--on-dark-muted); }
.section__action { margin: 2.5rem 0 0; }
@media (max-width: 62em) { .feature-list--3, .feature-list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40em) { .feature-list--2, .feature-list--3, .feature-list--4 { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* ---------- Solutions ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.solution { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); scroll-margin-top: 1.5rem; }
.solution__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem; height: 3.25rem;
	margin-bottom: 1.25rem;
	background: var(--charcoal);
	color: var(--cyan);
	border-radius: var(--radius);
}
.solution__title { margin-bottom: 0.2em; }
.solution__tagline { margin-bottom: 0.75rem; color: var(--blue); font-weight: 700; }
.solution > p:last-child { margin-bottom: 0; }
.solution__link { margin-top: auto; font-weight: 700; }
.check-list { margin-bottom: 1.5rem; }
.check-list li { position: relative; padding: 0.3rem 0 0.3rem 1.75rem; }
.check-list li::before {
	content: "";
	position: absolute;
	left: 0.2rem; top: 0.72em;
	width: 0.85rem; height: 0.45rem;
	border-left: 3px solid var(--blue);
	border-bottom: 3px solid var(--blue);
	transform: rotate(-45deg);
}
.capability-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 2rem; margin-top: 2rem; }
.capability-strip__label { margin: 0; font-weight: 700; }
.capability-strip ul { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.capability-strip li { padding: 0.375rem 0.875rem; background: var(--white); border: 1px solid var(--field-line); border-radius: 999px; font-size: 0.9375rem; font-weight: 600; }
@media (max-width: 48em) { .solution-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Why SDS ---------- */
.why__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.why__intro p { color: var(--on-dark-muted); font-size: var(--step-1); line-height: 1.5; margin-bottom: 2rem; }
.why__item { padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.why__item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.why__item h3 { font-size: var(--step-1); color: var(--cyan); }
.why__item ul { margin: 0; padding-left: 1.25rem; }
.why__item li { padding: 0.15rem 0; }
@media (max-width: 56em) { .why__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.process-list li { position: relative; padding-top: 4rem; counter-increment: step; }
.process-list li::before {
	content: counter(step);
	position: absolute;
	top: 0; left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem; height: 2.75rem;
	background: var(--charcoal);
	color: var(--white);
	border-radius: 50%;
	font-family: var(--font-display);
	font-weight: 700;
}
.process-list li::after {
	content: "";
	position: absolute;
	top: 1.3125rem; left: 3.5rem; right: -0.75rem;
	height: 2px;
	background: var(--line);
}
.process-list li:last-child::after { display: none; }
.process-list h3 { font-size: var(--step-1); }
.process-list p { margin: 0; color: var(--slate); }
@media (max-width: 62em) {
	.process-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.process-list li { padding: 0 0 2rem 4rem; }
	.process-list li::after { top: 3rem; bottom: 0.25rem; left: 1.3125rem; right: auto; width: 2px; height: auto; }
}

/* ---------- Contracts and company data ---------- */
.contracts__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contracts__intro p { color: var(--slate); margin-bottom: 1.75rem; }
.company-data { margin: 0; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--charcoal); }
.company-data > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0.25rem 1.5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.company-data > div:first-child { border-top: 0; }
.company-data dt { grid-column: 1; color: var(--slate); font-weight: 600; }
.company-data dd { grid-column: 2; margin: 0; font-weight: 700; }
.company-data--compact { background: transparent; border: 0; }
.company-data--compact > div { display: block; padding: 0 0 0.75rem; border: 0; }
.company-data--compact dt { color: var(--on-dark-muted); font-size: var(--step--1); font-weight: 400; }
.company-data--compact dd { font-weight: 600; }
@media (max-width: 56em) { .contracts__inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30em) { .company-data > div { display: block; } }

/* ---------- Partners ---------- */
.partner-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1px; padding: 1px; }
.partner-list li { display: flex; align-items: center; justify-content: center; min-height: 6.5rem; padding: 1rem; background: var(--white); outline: 1px solid var(--line); font-weight: 700; text-align: center; }
.partner-list img { max-height: 3.5rem; width: auto; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.post-card { padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.post-card__image { margin-bottom: 1rem; }
.post-card__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__title { font-size: var(--step-1); }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--blue); text-decoration: underline; }
.post-card p:last-child { margin: 0; color: var(--slate); }
.post-meta { margin-bottom: 0.5rem; color: var(--slate); font-size: var(--step--1); }
.post-image { margin-bottom: 2rem; }
@media (max-width: 56em) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

.pagination, .post-navigation, .comments-navigation { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; }
.pagination .nav-links { justify-content: flex-start; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0.25rem 0.75rem; border: 1px solid var(--field-line); border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.page-numbers.current { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.nav-label { display: block; color: var(--slate); font-size: var(--step--1); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cyan); color: var(--ink); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta-band h2 { margin-bottom: 0.25em; }
.cta-band p { margin: 0; max-width: 38em; font-size: var(--step-1); line-height: 1.45; }
.cta-band__mail { color: var(--ink); font-weight: 700; }
.cta-band__mail:hover { color: var(--ink); }

/* ---------- Inner page header ---------- */
.page-header { background: var(--charcoal); color: var(--on-dark); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-title { margin: 0; font-size: var(--step-4); color: var(--on-dark); max-width: 18em; }
.page-intro { margin: 1rem 0 0; max-width: 42em; color: var(--on-dark-muted); font-size: var(--step-1); line-height: 1.5; }
.page-header .post-meta { margin: 1rem 0 0; color: var(--on-dark-muted); }
.breadcrumbs { margin-bottom: 1.25rem; font-size: var(--step--1); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin: 0 0.6rem; color: var(--on-dark-muted); }
.breadcrumbs a { color: var(--on-dark); }
.breadcrumbs [aria-current] { color: var(--on-dark-muted); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.split h2 { font-size: var(--step-2); }
@media (max-width: 48em) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Content from the editor ---------- */
.entry-content > * { max-width: 46rem; }
.entry-content > .alignwide { max-width: 62rem; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.75em; font-size: var(--step-2); }
.entry-content h3 { margin-top: 1.5em; font-size: var(--step-1); }
.entry-content li { margin-bottom: 0.4em; }
.entry-content img { height: auto; }
.entry-content figcaption { margin-top: 0.5rem; color: var(--slate); font-size: var(--step--1); }
.link-list { margin-top: 2rem; }
.link-list li { border-top: 1px solid var(--line); }
.link-list a { display: block; padding: 0.875rem 0; font-weight: 700; }
.site-main--builder { overflow-x: clip; }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-layout h2 { font-size: var(--step-2); }
.contact-layout__sub { margin-top: 2.5rem; }
@media (max-width: 56em) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
@media (max-width: 36em) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { margin-bottom: 1.25rem; }
.field label, .search-form label, .comment-form label { display: block; margin-bottom: 0.375rem; font-weight: 700; }
.req { color: var(--slate); font-weight: 400; }
.field-hint, .form-required-note { margin: 0 0 0.5rem; color: var(--slate); font-size: var(--step--1); }
.field input, .field select, .field textarea,
.search-form input[type="search"],
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	display: block;
	width: 100%;
	min-height: 3rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--field-line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	font-size: 1rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field.has-error input, .field.has-error textarea { border: 2px solid var(--error); }
.field-error { margin: 0.375rem 0 0; color: var(--error); font-weight: 700; }
.field-error::before { content: "Error: "; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-left: 6px solid; background: var(--cloud); }
.form-notice h2 { margin-bottom: 0.25rem; font-size: var(--step-1); }
.form-notice p, .form-notice ul { margin: 0; }
.form-notice--error { border-color: var(--error); }
.form-notice--success { border-color: var(--success); }
.search-form__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-form__row input { flex: 1 1 14rem; }
.search-again { max-width: 36rem; margin-bottom: 2.5rem; }

.contact-list li { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.3rem 0; }
.contact-list .icon { margin-top: 0.3em; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.comment-form input[type="submit"] { min-height: 3rem; padding: 0.625rem 1.375rem; border: 0; border-radius: var(--radius); background: var(--blue); color: var(--white); font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); color: var(--on-dark); font-size: 1rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--cyan); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: 2.5rem 2rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer__logo { margin-bottom: 1.25rem; }
.site-footer__logo img { width: auto; height: 3.5rem; }
.site-footer__about p { max-width: 26rem; color: var(--on-dark-muted); }
.footer-heading { margin-bottom: 0.875rem; font-size: 1rem; letter-spacing: 0; color: var(--cyan); }
.site-footer__col ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col li a { display: inline-block; padding: 0.375rem 0; }
.social-list { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: 0.5rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.22); padding-block: 1.5rem; font-size: var(--step--1); color: var(--on-dark-muted); }
.site-footer__eeo { max-width: 60rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__legal a { display: inline-block; padding: 0.25rem 0; }
@media (max-width: 62em) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36em) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Request form ---------- */
.container--form { max-width: calc(46rem + 2 * var(--gutter)); }
.request-form__intro { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
.field input[type="file"] { padding: 0.5rem; }

/* ---------- Careers ---------- */
.job-list { border-top: 1px solid var(--line); }
.job-list__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.job-list__title { margin-bottom: 0.5rem; font-size: var(--step-1); }
.job-list__title a { color: var(--ink); text-decoration: none; }
.job-list__title a:hover { color: var(--blue); text-decoration: underline; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; margin: 0; }
.job-meta > div { display: flex; gap: 0.4rem; }
.job-meta dt { color: var(--slate); }
.job-meta dt::after { content: ":"; }
.job-meta dd { margin: 0; font-weight: 600; }
.page-header .job-meta { margin-top: 1.25rem; }
.page-header .job-meta dt { color: var(--on-dark-muted); }
.empty-state { padding: 2rem; border: 1px solid var(--line); border-left: 6px solid var(--cyan); background: var(--cloud); }
.empty-state p { margin: 0; font-size: var(--step-1); font-weight: 600; }
.careers__eeo { margin: 1.5rem 0 0; color: var(--slate); font-size: var(--step--1); }
.job-layout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.job-layout__apply { padding: clamp(1.25rem, 3vw, 2rem); background: var(--cloud); border-top: 4px solid var(--cyan); }
.job-layout__apply h2 { font-size: var(--step-2); }
@media (max-width: 62em) { .job-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Elementor ---------- */
.elementor-widget-text-editor h2 { margin-top: 1.75em; font-size: var(--step-2); }
.elementor-widget-text-editor h3 { margin-top: 1.5em; font-size: var(--step-1); }
.elementor-widget-text-editor li { margin-bottom: 0.4em; }

/* ---------- Accessibility tool ---------- */
.a11y-tool { position: fixed; bottom: 1rem; z-index: 900; font-family: var(--font-body); }
.a11y-tool--left { left: 1rem; }
.a11y-tool--right { right: 1rem; }
.a11y-tool__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem; height: 3.25rem;
	border: 2px solid var(--white);
	border-radius: 50%;
	background: var(--blue);
	color: var(--white);
	box-shadow: 0 4px 14px rgba(29, 39, 44, 0.4);
	cursor: pointer;
}
.a11y-tool__button:hover { background: var(--blue-dark); }
.a11y-tool__panel {
	position: absolute;
	bottom: calc(100% + 0.75rem);
	width: min(20rem, calc(100vw - 2rem));
	max-height: calc(100vh - 6.5rem);
	overflow-y: auto;
	padding: 1rem;
	background: var(--white);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px rgba(29, 39, 44, 0.35);
	font-size: 1rem;
	line-height: 1.4;
}
.a11y-tool--left .a11y-tool__panel { left: 0; }
.a11y-tool--right .a11y-tool__panel { right: 0; }
.a11y-tool__panel[hidden] { display: none; }
.a11y-tool__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.a11y-tool__head h2 { margin: 0; font-size: 1.125rem; letter-spacing: 0; }
.a11y-tool__close { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.a11y-tool__size { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.a11y-tool__size > span:first-child { flex: 1; }
.a11y-tool__size output { min-width: 3.25rem; text-align: center; font-weight: 400; }
.a11y-tool__size button, .a11y-tool__list button, .a11y-tool__reset {
	min-height: 2.75rem;
	border: 1px solid var(--field-line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	font-weight: 600;
	cursor: pointer;
}
.a11y-tool__size button { min-width: 2.75rem; }
.a11y-tool__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 0.75rem; padding: 0; list-style: none; }
.a11y-tool__list button { width: 100%; padding: 0.375rem 0.5rem; font-size: 0.9375rem; line-height: 1.2; }
.a11y-tool__list button[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.a11y-tool__list button[aria-pressed="true"]::before { content: "\2713\00a0"; }
.a11y-tool__size button:hover, .a11y-tool__list button:hover, .a11y-tool__reset:hover { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.a11y-tool__reset { width: 100%; }
.a11y-tool__link { margin: 0.75rem 0 0; font-size: 0.9375rem; }

/* Visitor preferences set by the tool */
html[data-a11y-text="1"] { font-size: 112.5%; }
html[data-a11y-text="2"] { font-size: 125%; }
html[data-a11y-text="3"] { font-size: 150%; }

html.a11y-grayscale { --f-gray: grayscale(1); }
html.a11y-invert { --f-inv: invert(1) hue-rotate(180deg); background: #fff; }
html.a11y-grayscale, html.a11y-invert { filter: var(--f-gray,) var(--f-inv,); }
/* Keep photos and already-dark areas the right way round in dark mode. */
html.a11y-invert :is(img, video, iframe, .hero, .section--dark, .page-header, .site-footer, .utility-bar, .solution__icon) { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert :is(.hero, .section--dark, .page-header, .site-footer, .utility-bar) :is(img, video, iframe) { filter: none; }

html.a11y-contrast {
	--ink: #000000;
	--slate: #000000;
	--blue: #00308F;
	--blue-dark: #001B52;
	--line: #000000;
	--field-line: #000000;
	--cloud: #FFFFFF;
	--charcoal: #000000;
	--charcoal-deep: #000000;
	--logo-charcoal: #000000;
	--cyan: #5CD0FF;
	--on-dark-muted: #FFFFFF;
	--error: #8B0000;
}
html.a11y-contrast .hero { background-image: none; }
html.a11y-contrast .section--cloud { border-block: 2px solid #000; }
html.a11y-contrast .data-plate { background: #000; border-color: #fff; }
html.a11y-contrast a:not(.button):not(.site-title):not(.custom-logo-link) { text-decoration: underline; }
html.a11y-contrast .elementor :is(p, li, h1, h2, h3, h4, h5, h6, span, label, td, th) { text-shadow: none; }

html.a11y-underline a:not(.button) { text-decoration: underline !important; }

html.a11y-readable body,
html.a11y-readable body :is(h1, h2, h3, h4, h5, h6, p, a, li, span, dt, dd, label, input, select, textarea, button, td, th, blockquote, figcaption) {
	font-family: Verdana, Tahoma, Arial, sans-serif !important;
	letter-spacing: 0 !important;
}

html.a11y-spacing body :is(p, li, dd, dt, label, td, th, blockquote, figcaption, a, span) {
	line-height: 1.8 !important;
	letter-spacing: 0.12em !important;
	word-spacing: 0.16em !important;
}
html.a11y-spacing body p { margin-bottom: 2em !important; }
html.a11y-spacing body :is(h1, h2, h3, h4, h5, h6) { line-height: 1.5 !important; letter-spacing: 0.06em !important; }

html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
	scroll-behavior: auto !important;
}

html.a11y-cursor, html.a11y-cursor * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11h-7l4 8-3 1.500-4-8.200L4 19z' fill='%23000' stroke='%23fff' stroke-width='1.500'/%3E%3C/svg%3E") 8 4, auto !important;
}

/* ---------- Motion, contrast and print preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
@media (forced-colors: active) {
	.button, .a11y-tool__button, .solution__icon { border: 2px solid ButtonText; }
	.check-list li::before { border-color: CanvasText; }
}
@media print {
	.utility-bar, .site-nav, .nav-toggle, .a11y-tool, .cta-band, .skip-link { display: none !important; }
	.hero, .page-header, .section--dark, .site-footer { background: none !important; color: #000 !important; }
	.hero__title, .page-title, .hero__text, .page-intro { color: #000 !important; }
	a { color: #000; }
}
