/**
 * MSPD Site Chrome — header and footer styles only.
 * Every rule is scoped to .mspd-chrome so page content is not restyled,
 * except the explicit hide of leftover inner-page footers.
 */

.mspd-chrome {
	--md-ink: #0b2239;
	--md-muted: #5f7586;
	--md-blue: #2563eb;
	--md-dark: #0b2239;
	--md-soft: #dbeafe;
	--md-line: #e2e8f0;
	--md-bg: #f8fafc;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--md-ink);
	line-height: 1.6;
	font-size: 15px;
	isolation: isolate;
	text-align: left;
}

/* Beat unscoped page resets such as `* { font-family: Inter }` on book-an-assessment. */
.mspd-chrome,
.mspd-chrome * {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	box-sizing: border-box;
}

.mspd-chrome a {
	color: inherit;
	text-decoration: none;
}

.mspd-chrome a:hover {
	text-decoration: underline;
}

/*
 * Elementor kit (post-7.css) sets `.elementor-kit-7 a { color:#FFFFFF;
 * font-size:14px; font-family:Poppins }` after this sheet loads, with
 * the same 0,1,1 specificity as `.mspd-chrome a`. These descendant
 * selectors outrank it so header and footer links stay readable on
 * the light chrome backgrounds.
 */
.mspd-chrome .md-navlinks a,
.mspd-chrome .md-mobile-menu a,
.mspd-chrome .md-footer a,
.mspd-chrome .md-footer li a,
.mspd-chrome .md-footer-bottom a,
.mspd-chrome .md-brand,
.mspd-chrome .md-topline a {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
}

.mspd-chrome .md-navlinks a,
.mspd-chrome .md-header .md-navlinks a {
	color: var(--md-ink);
}

.mspd-chrome .md-mobile-menu a,
.mspd-chrome .md-mobile-menu nav a {
	color: var(--md-ink);
}

.mspd-chrome .md-footer a,
.mspd-chrome .md-footer li a,
.mspd-chrome .md-footer-bottom a {
	color: #5f7586;
}

.mspd-chrome .md-footer a:hover,
.mspd-chrome .md-footer li a:hover,
.mspd-chrome .md-navlinks a:hover,
.mspd-chrome .md-mobile-menu a:hover {
	color: var(--md-ink);
}

.mspd-chrome a:focus-visible,
.mspd-chrome summary:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 5px;
}

.mspd-chrome h3,
.mspd-chrome p {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-weight: inherit;
}

.mspd-chrome p {
	color: var(--md-muted);
}

.mspd-chrome ul,
.mspd-chrome ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mspd-chrome .md-wrap {
	width: min(1180px, calc(100% - 64px));
	margin: 0 auto;
}

.mspd-chrome .md-skip {
	position: absolute;
	left: 10px;
	top: -80px;
	z-index: 100;
	background: #fff;
	padding: 10px 16px;
}

.mspd-chrome .md-skip:focus {
	top: 10px;
}

.mspd-chrome .md-topline {
	background: var(--md-dark);
	color: #dbeafe;
	font-size: 11px;
	letter-spacing: 0.4px;
	padding: 9px 0;
}

.mspd-chrome .md-topline .md-wrap {
	display: flex;
	justify-content: space-between;
	gap: 15px;
}

.mspd-chrome .md-topline a {
	color: #dbeafe;
}

.mspd-chrome .md-header {
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
	/* In document flow, not fixed or sticky — page content is not overlapped. */
	position: relative;
}

.mspd-chrome .md-nav {
	height: 88px;
	display: flex;
	align-items: center;
	gap: 30px;
}

.mspd-chrome .md-nav .md-brand,
.mspd-chrome .md-nav-actions,
.mspd-chrome .md-nav-actions .md-btn {
	flex-shrink: 0;
}

.mspd-chrome .md-brand {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -1.2px;
	line-height: 1.15;
	text-decoration: none;
	white-space: nowrap;
	color: var(--md-ink);
}

.mspd-chrome .md-brand b {
	color: var(--md-blue);
	font-weight: inherit;
}

.mspd-chrome .md-brand small {
	display: block;
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 2.6px;
	color: #64748b;
	margin-top: 5px;
}

.mspd-chrome nav.md-navlinks,
.mspd-chrome .md-navlinks {
	display: flex;
	gap: 26px;
	align-items: center;
	font-size: 13px;
	margin-left: auto;
	flex-shrink: 0;
	white-space: nowrap;
	color: var(--md-ink);
}

.mspd-chrome .md-nav-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.mspd-chrome .md-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 13px 21px;
	min-height: 47px;
	border-radius: 7px;
	border: 1px solid var(--md-blue);
	background: var(--md-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.4;
	transition: background 0.15s, transform 0.15s;
	text-decoration: none;
}

.mspd-chrome .md-btn:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
	text-decoration: none;
}

.mspd-chrome .md-btn-outline {
	background: transparent;
	color: var(--md-ink);
	border-color: #cbd5e1;
}

.mspd-chrome .md-btn-outline:hover {
	background: #eff6ff;
}

.mspd-chrome .md-btn-soft {
	background: var(--md-soft);
	border-color: var(--md-soft);
	color: var(--md-dark);
}

.mspd-chrome .md-btn-soft:hover {
	background: #bfdbfe;
}

.mspd-chrome .md-footer {
	background: var(--md-bg);
	border-top: 1px solid #e2e8f0;
	padding: 43px 0 24px;
	color: var(--md-ink);
	text-align: left;
}

.mspd-chrome .md-footer-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr 1fr;
	gap: 35px;
}

.mspd-chrome .md-footer p {
	font-size: 11px;
	line-height: 1.8;
	max-width: 220px;
	margin-top: 13px;
}

.mspd-chrome .md-footer h3 {
	font-size: 12px;
	letter-spacing: 0.6px;
	margin-bottom: 17px;
	font-weight: 700;
	color: var(--md-ink);
}

.mspd-chrome .md-footer li {
	margin-bottom: 9px;
	font-size: 11px;
	color: #5f7586;
}

.mspd-chrome .md-footer-bottom {
	border-top: 1px solid #dbe5ef;
	margin-top: 34px;
	padding-top: 20px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	color: #64748b;
	font-size: 10px;
}

/* Hidden on desktop; native <details> toggle on small screens. */
.mspd-chrome details.md-mobile-menu,
.mspd-chrome .md-mobile-menu {
	display: none;
	background: transparent;
	flex-shrink: 0;
}

.mspd-chrome .md-mobile-menu summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding-right: 30px;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.5;
	color: var(--md-ink);
}

.mspd-chrome .md-mobile-menu summary::-webkit-details-marker {
	display: none;
}

.mspd-chrome .md-mobile-menu summary::after {
	content: "+";
	position: absolute;
	right: 2px;
	top: 0;
	color: var(--md-blue);
	font-size: 19px;
	font-weight: 400;
}

.mspd-chrome .md-mobile-menu[open] summary::after {
	content: "−";
}

@media (max-width: 1000px) {
	.mspd-chrome .md-nav {
		gap: 18px;
	}

	.mspd-chrome .md-navlinks {
		gap: 17px;
	}

	.mspd-chrome .md-nav-actions .md-btn {
		padding: 11px 13px;
		font-size: 11px;
	}
}

@media (max-width: 760px) {
	.mspd-chrome .md-wrap {
		width: calc(100% - 36px);
	}

	.mspd-chrome .md-topline {
		font-size: 10px;
	}

	.mspd-chrome .md-topline .md-wrap > span:last-child {
		display: none;
	}

	.mspd-chrome .md-nav {
		height: auto;
		min-height: 79px;
		flex-wrap: wrap;
		gap: 14px;
		padding: 20px 0;
	}

	.mspd-chrome .md-brand {
		font-size: 25px;
	}

	.mspd-chrome nav.md-navlinks,
	.mspd-chrome .md-navlinks {
		display: none;
	}

	.mspd-chrome .md-nav-actions {
		margin-left: auto;
	}

	.mspd-chrome .md-nav-actions .md-btn-outline {
		display: none;
	}

	.mspd-chrome details.md-mobile-menu,
	.mspd-chrome .md-mobile-menu {
		display: block;
		padding: 0;
		border: 0;
		margin-left: auto;
	}

	.mspd-chrome .md-mobile-menu summary {
		font-size: 12px;
		padding: 9px 25px 9px 10px;
	}

	.mspd-chrome .md-mobile-menu[open] {
		width: 100%;
		order: 4;
	}

	.mspd-chrome .md-mobile-menu[open] summary {
		border-bottom: 1px solid #e2e8f0;
		padding-left: 0;
		margin-bottom: 12px;
	}

	.mspd-chrome .md-mobile-menu a {
		display: block;
		padding: 8px 0;
		font-size: 13px;
	}

	.mspd-chrome .md-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 29px 23px;
	}

	.mspd-chrome .md-footer-grid > div:first-child {
		grid-column: 1 / -1;
	}

	.mspd-chrome .md-footer-bottom {
		display: block;
	}

	.mspd-chrome .md-footer-bottom span {
		display: block;
		margin-top: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mspd-chrome .md-btn {
		transition: none;
	}

	.mspd-chrome .md-btn:hover {
		transform: none;
	}
}

/* Hide leftover inner-page footers (e.g. book-an-assessment) once the site footer is present. */
body:not(.home) footer.footer {
	display: none !important;
}

/*
 * Hello theme automatic page title, only used when the chrome is shown and
 * the page has no heading of its own. Long titles must wrap, not overflow.
 */
body:not(.home) header.page-header .entry-title {
	overflow-wrap: anywhere;
}

@media (max-width: 760px) {
	body:not(.home) header.page-header .entry-title {
		font-size: 2.2rem;
	}
}

/*
 * WPForms is often injected as a sibling of the page's content column
 * (e.g. form 503 on Contact). Elementor-flagged pages also skip Hello's
 * .site-main max-width, so the form would otherwise sit flush left at
 * full viewport width. Centre it in the main column on non-home pages.
 */
body:not(.home) .site-main .wpforms-container,
body:not(.home) main .wpforms-container,
body.page-id-386 .wpforms-container {
	/* Match .mspd-legal on Contact (max-width:1050px; padding:0 16px; margin auto)
	   so the form lines up with the content column above it. */
	max-width: 1050px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

body:not(.home) .site-main .wpforms-container .wpforms-field-label,
body:not(.home) .site-main .wpforms-container .wpforms-field-label-inline,
body:not(.home) .site-main .wpforms-container .wpforms-field-sublabel,
body.page-id-386 .wpforms-container .wpforms-field-label,
body.page-id-386 .wpforms-container .wpforms-field-label-inline,
body.page-id-386 .wpforms-container .wpforms-field-sublabel {
	color: #0b2239;
}

@media (max-width: 760px) {
	body:not(.home) .site-main .wpforms-container,
	body:not(.home) main .wpforms-container,
	body.page-id-386 .wpforms-container {
		padding-left: 18px;
		padding-right: 18px;
	}
}

/* v0.1.3: Book-an-assessment hero heading was dark on navy (Elementor kit h1 colour) */
body.page-id-197 .hero h1{color:#ffffff;}
