/* ==========================================================================
   Spencer 2026 redesign (v2) — shared base + components
   Loaded only on v2 templates (body.sr-v2). Everything is scoped to
   .sr-v2 #main so legacy style.css rules (global h1–h6, .container, .btn…)
   cannot leak in, and these rules cannot leak out.
   ========================================================================== */

.sr-v2 {
	--navy: #183667;
	--deep: #142940;
	--ink: #182d45;
	--blue: #034693;
	--orange: #e4a040;
	--paper: #f7f6f3;
	--white: #fff;
	--muted: #596573;
	--line: #d7dce1;
	--soft: #eaece9;
	--container: 1280px;
	--reading: 700px;
	--radius: 3px;
	--font: "Avenir Next LT", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
	background: var(--white);
}

html:has(body.sr-v2) {
	scroll-behavior: smooth;
	scroll-padding-top: 40px;
}

.sr-v2 #main {
	display: block;
	color: var(--ink);
	font: 16px/1.65 var(--font);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

.sr-v2 #main *,
.sr-v2 #main *::before,
.sr-v2 #main *::after {
	box-sizing: border-box;
}

/* Reset legacy element styles inside v2 main */
.sr-v2 #main :is(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	font-family: inherit;
	font-weight:400;
	letter-spacing: -.034em;
	line-height: 1.13;
	color: inherit;
}

.sr-v2 #main :is(p, blockquote, figure) {
	margin: 0;
}

.sr-v2 #main a {
	color: inherit;
	text-underline-offset: .23em;
	transition: none;
}

.sr-v2 #main a:hover {
	text-decoration-color: var(--orange);
}

.sr-v2 #main :is(button, input, select, textarea) {
	font: inherit;
}

.sr-v2 #main button {
	cursor: pointer;
}

.sr-v2 #main :is(a, button, input, select, summary):focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
}

.sr-v2 #main img {
	display: block;
	max-width: 100%;
	height: auto;
}

.sr-v2 #main svg {
	display: block;
	flex: none;
}

.sr-v2 #main [hidden] {
	display: none !important;
}

/* Layout */
.sr-v2 #main .container {
	width: 100%;
	max-width: var(--container);
	padding: 0 48px;
	margin: 0 auto;
}

.sr-v2 #main .container::after {
	content: none;
}

/* Components */
.sr-v2 #main .eyebrow {
	font-size: 10px;
	line-height: 1.5;
	letter-spacing: .165em;
	text-transform: uppercase;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--muted);
}

.sr-v2 #main .eyebrow::before {
	content: "";
	background: var(--orange);
	height: 2px;
	width: 24px;
	flex: none;
}

.sr-v2 #main .eyebrow.light {
	color: #d4dfeb;
}

.sr-v2 #main .label {
	font-size: 10px;
	line-height: 1.5;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 650;
	color: var(--muted);
}

.sr-v2 #main .button {
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	gap: 26px;
	min-height: 49px;
	padding: 12px 19px;
	font-size: 13px;
	line-height: 1.5;
	text-decoration: none;
	color: #fff;
	background: var(--navy);
	border: 1px solid var(--navy);
	border-radius: var(--radius);
	font-weight: 600;
	transition: background .2s, border-color .2s;
}

.sr-v2 #main .button:hover {
	background: #102849;
	border-color: #102849;
	text-decoration: none;
}

.sr-v2 #main .button.orange {
	color: var(--deep);
	background: var(--orange);
	border-color: var(--orange);
}

.sr-v2 #main .button.orange:hover {
	background: #efb663;
}

.sr-v2 #main .text-link {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.5;
	min-height: 40px;
	color: var(--navy);
}

.sr-v2 #main .text-link span {
	border-bottom: 1px solid #9aabc1;
	padding-bottom: 2px;
}

.sr-v2 #main .text-link:hover span {
	border-color: var(--navy);
}

.sr-v2 #main .breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	font-size: 12px;
	color: var(--muted);
}

.sr-v2 #main .breadcrumb a {
	text-decoration: none;
	border-bottom: 1px solid #aeb9c5;
}

.sr-v2 #main .breadcrumb svg {
	width: 12px;
	height: 12px;
	color: #9aa7b4;
}

.sr-v2 #main .breadcrumb [aria-current="page"] {
	color: var(--navy);
	font-weight: 600;
}

.sr-v2 .reading-progress {
	position: fixed;
	left: 0;
	top: 0;
	height: 3px;
	width: 0;
	background: var(--orange);
	z-index: 100;
	pointer-events: none;
	transition: width .08s linear;
}

@media (max-width: 900px) {
	.sr-v2 #main .container {
		padding: 0 30px;
	}
}

@media (max-width: 700px) {
	.sr-v2 #main .container {
		padding: 0 23px;
	}
}

@media (max-width: 390px) {
	.sr-v2 #main .container {
		padding: 0 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html:has(body.sr-v2) {
		scroll-behavior: auto;
	}

	.sr-v2 #main *,
	.sr-v2 #main *::before,
	.sr-v2 #main *::after {
		animation: none !important;
		transition: none !important;
	}
}
