.ns-state-comparison-page {
	--ns-ink: #102f2a;
	--ns-muted: #5f716d;
	--ns-line: #dbe4e1;
	--ns-paper: #ffffff;
	--ns-wash: #f3f7f5;
	--ns-green: #0b6b57;
	--ns-green-dark: #075345;
	--ns-mint: #9edac7;
	--ns-blue: #3b6fb6;
	--ns-blue-soft: #d9e6f8;
	background: var(--ns-wash);
	color: var(--ns-ink);
}

.ns-state-comparison-page .site-content {
	background:
		linear-gradient(90deg, rgba(16, 47, 42, .035) 1px, transparent 1px) 0 0 / 44px 44px,
		var(--ns-wash);
}

.ns-state-comparison-page .content-wrapper {
	display: block;
	max-width: none;
}

.ns-state-comparison-page .ns-tool {
	width: 100%;
	min-width: 0;
	padding: 0;
	background: transparent;
	font-family: var(--wikipress-font-ui);
}

.ns-tool__shell {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
	padding: 22px 0 88px;
}

.ns-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 22px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #73837f;
}

.ns-breadcrumbs a {
	color: #536b65;
}

.ns-tool-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	min-height: 360px;
	overflow: hidden;
	padding: 61px 68px 58px;
	border-radius: 4px;
	background:
		radial-gradient(circle at 83% 32%, rgba(158, 218, 199, .15), transparent 24%),
		linear-gradient(120deg, #0d3c34 0%, #0a5748 100%);
	box-shadow: 0 18px 42px rgba(13, 60, 52, .14);
	color: #fff;
}

.ns-tool-hero::before,
.ns-tool-hero::after {
	position: absolute;
	content: '';
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 50%;
}

.ns-tool-hero::before {
	width: 330px;
	height: 330px;
	right: -86px;
	top: -146px;
}

.ns-tool-hero::after {
	width: 210px;
	height: 210px;
	right: 46px;
	bottom: -142px;
}

.ns-tool-hero__copy {
	position: relative;
	z-index: 1;
	max-width: 750px;
}

.ns-eyebrow,
.ns-section-label {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ns-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #b9e4d7;
}

.ns-eyebrow span {
	width: 28px;
	height: 1px;
	background: currentColor;
}

.ns-tool-hero h1 {
	max-width: 700px;
	margin: 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(46px, 6vw, 76px);
	font-weight: 400;
	line-height: .98;
	letter-spacing: -.048em;
	color: #fff;
}

.ns-tool-hero h1 em {
	color: #a9dfcf;
	font-weight: 400;
}

.ns-tool-hero__lede {
	max-width: 690px;
	margin: 25px 0 0;
	font-size: 17px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .82);
}

.ns-tool-hero__mark {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(185, 228, 215, .7);
}

.ns-tool-hero__mark svg {
	width: 220px;
	height: auto;
	stroke: currentColor;
	stroke-width: 1.5;
}

.ns-picker {
	position: relative;
	z-index: 3;
	margin: -1px 24px 0;
	padding: 27px 34px 32px;
	border: 1px solid var(--ns-line);
	border-top: 0;
	border-radius: 0 0 4px 4px;
	background: var(--ns-paper);
	box-shadow: 0 16px 36px rgba(18, 49, 43, .08);
}

.ns-picker__heading,
.ns-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.ns-section-label {
	color: var(--ns-green);
}

.ns-picker h2,
.ns-section-heading h2,
.ns-takeaway h2,
.ns-methodology h2 {
	margin: 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
	letter-spacing: -.025em;
	color: var(--ns-ink);
}

.ns-picker h2 {
	font-size: 27px;
}

.ns-picker__heading > p,
.ns-section-heading > p {
	margin: 0 0 3px;
	font-size: 12px;
	color: var(--ns-muted);
}

.ns-picker__controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
	align-items: end;
	gap: 20px;
	margin-top: 24px;
}

.ns-state-field {
	display: grid;
	gap: 8px;
}

.ns-state-field > span {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	color: #425c56;
}

.ns-state-field select {
	width: 100%;
	height: 56px;
	padding: 0 46px 0 17px;
	border: 1px solid #b8cac5;
	border-radius: 3px;
	background-color: #fff;
	font: 700 16px/1 var(--wikipress-font-ui);
	color: var(--ns-ink);
	cursor: pointer;
}

.ns-state-field select:hover {
	border-color: var(--ns-green);
}

.ns-state-field select:focus,
.ns-swap:focus,
.ns-button:focus {
	outline: 3px solid rgba(11, 107, 87, .2);
	outline-offset: 2px;
}

.ns-swap {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 5px;
	padding: 0;
	border: 1px solid var(--ns-line);
	border-radius: 50%;
	background: var(--ns-wash);
	color: var(--ns-green);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease;
}

.ns-swap:hover {
	transform: rotate(180deg);
	background: #e4f2ed;
}

.ns-swap svg,
.ns-button svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ns-notice {
	margin: 28px 0;
	padding: 14px;
	border-left: 3px solid #b55345;
	background: #fff4f1;
}

.ns-matchup {
	display: grid;
	grid-template-columns: 1fr 74px 1fr;
	align-items: center;
	margin: 64px 0 0;
	padding: 0 26px;
}

.ns-matchup__state {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ns-matchup__state--right {
	flex-direction: row-reverse;
	text-align: right;
}

.ns-state-badge {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border-radius: 50%;
	background: var(--ns-green);
	font-size: 16px;
	font-weight: 900;
	letter-spacing: .06em;
	color: #fff;
}

.ns-matchup__state--right .ns-state-badge {
	background: var(--ns-blue);
}

.ns-matchup__state div > span {
	display: block;
	margin-bottom: 2px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--ns-muted);
}

.ns-matchup__state strong {
	display: block;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(25px, 3vw, 36px);
	font-weight: 400;
	letter-spacing: -.025em;
}

.ns-matchup__vs {
	position: relative;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .12em;
	text-align: center;
	color: #6d7e79;
}

.ns-matchup__vs::before,
.ns-matchup__vs::after {
	position: absolute;
	left: 50%;
	width: 1px;
	height: 17px;
	content: '';
	background: var(--ns-line);
}

.ns-matchup__vs::before { bottom: 19px; }
.ns-matchup__vs::after { top: 19px; }

.ns-takeaway {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 22px;
	max-width: 920px;
	margin: 36px auto 0;
	padding: 29px 34px;
	border: 1px solid #c9ded7;
	background: #eaf5f1;
}

.ns-takeaway__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ns-green);
	font-size: 22px;
	color: #fff;
}

.ns-takeaway h2 {
	font-size: 25px;
}

.ns-takeaway #ns-summary {
	max-width: 770px;
	margin: 10px 0 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 16px;
	line-height: 1.7;
	color: #39544e;
}

.ns-metrics,
.ns-table-section,
.ns-methodology {
	margin-top: 82px;
}

.ns-section-heading h2,
.ns-methodology h2 {
	font-size: clamp(30px, 4vw, 42px);
}

.ns-metric-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 30px;
}

.ns-metric-card {
	display: flex;
	flex-direction: column;
	min-height: 276px;
	padding: 22px;
	border: 1px solid var(--ns-line);
	border-radius: 3px;
	background: var(--ns-paper);
	box-shadow: 0 4px 16px rgba(26, 53, 48, .035);
}

.ns-metric-card header {
	display: grid;
	grid-template-columns: 30px 1fr;
	gap: 10px;
	padding-bottom: 17px;
	border-bottom: 1px solid #e9efed;
}

.ns-metric-card__number {
	padding-top: 2px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .08em;
	color: var(--ns-green);
}

.ns-metric-card h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	color: var(--ns-ink);
}

.ns-metric-card header p {
	margin: 3px 0 0;
	font-size: 10px;
	line-height: 1.35;
	color: #788883;
}

.ns-metric-card__values {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 20px 0 14px;
}

.ns-metric-card__values > div:last-child {
	text-align: right;
}

.ns-metric-card__values span,
.ns-metric-card__values small {
	display: block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .06em;
	color: #71827d;
}

.ns-metric-card__values > div:first-child span { color: var(--ns-green); }
.ns-metric-card__values > div:last-child span { color: var(--ns-blue); }

.ns-metric-card__values strong {
	display: block;
	margin: 4px 0 1px;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -.025em;
	color: var(--ns-ink);
}

.ns-bars {
	display: grid;
	gap: 7px;
	margin-bottom: 18px;
}

.ns-bars > div {
	height: 6px;
	overflow: hidden;
	border-radius: 6px;
	background: #edf1f0;
}

.ns-bar {
	display: block;
	height: 100%;
	border-radius: inherit;
	transition: width .35s ease;
}

.ns-bar--left { background: var(--ns-green); }
.ns-bar--right { background: var(--ns-blue); }
.ns-bar.is-negative { background-image: repeating-linear-gradient(135deg, transparent, transparent 3px, rgba(255,255,255,.55) 3px, rgba(255,255,255,.55) 5px); }

.ns-metric-card footer {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 13px;
	border-top: 1px solid #edf1f0;
	font-size: 10px;
	color: #788883;
}

.ns-metric-card footer strong {
	font-size: 11px;
	color: var(--ns-ink);
}

.ns-section-heading--actions {
	align-items: flex-end;
}

.ns-actions {
	display: flex;
	gap: 9px;
}

.ns-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--ns-green);
	border-radius: 3px;
	background: var(--ns-green);
	font: 800 12px/1 var(--wikipress-font-ui);
	color: #fff;
	cursor: pointer;
}

.ns-button:hover { background: var(--ns-green-dark); }
.ns-button--ghost { background: #fff; color: var(--ns-green); }
.ns-button--ghost:hover { background: #eaf5f1; }
.ns-button svg { width: 16px; height: 16px; }

.ns-table-wrap {
	overflow-x: auto;
	margin-top: 28px;
	border: 1px solid var(--ns-line);
	background: #fff;
}

.ns-data-table {
	width: 100%;
	min-width: 720px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-family: var(--wikipress-font-ui);
}

.ns-data-table th,
.ns-data-table td {
	padding: 18px 20px;
	border: 0;
	border-bottom: 1px solid #e8eeec;
	text-align: right;
}

.ns-data-table thead th {
	padding-top: 13px;
	padding-bottom: 13px;
	background: var(--ns-ink);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
}

.ns-data-table th:first-child { text-align: left; }
.ns-data-table tbody tr:last-child th,
.ns-data-table tbody tr:last-child td { border-bottom: 0; }
.ns-data-table tbody tr:hover { background: #f7faf9; }

.ns-data-table tbody th strong,
.ns-data-table tbody th span,
.ns-data-table td small {
	display: block;
}

.ns-data-table tbody th strong { font-size: 13px; color: var(--ns-ink); }
.ns-data-table tbody th span,
.ns-data-table td small { margin-top: 2px; font-size: 10px; font-weight: 500; color: #788883; }
.ns-data-table td { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; color: var(--ns-ink); }
.ns-difference { display: inline-block; min-width: 66px; padding: 4px 7px; border-radius: 2px; background: #eaf5f1; font: 800 10px/1.2 var(--wikipress-font-ui); color: var(--ns-green); }

.ns-methodology {
	display: grid;
	grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
	gap: 70px;
	padding: 58px;
	border-top: 4px solid var(--ns-green);
	background: var(--ns-ink);
	color: #fff;
}

.ns-methodology .ns-section-label { color: var(--ns-mint); }
.ns-methodology h2 { color: #fff; }
.ns-methodology__intro > p:last-child { margin: 20px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 15px; line-height: 1.7; color: #b9c9c5; }
.ns-source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 36px; }
.ns-source-list article { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.ns-source-number { padding-top: 3px; font-size: 10px; font-weight: 900; letter-spacing: .1em; color: var(--ns-mint); }
.ns-source-list h3 { margin: 0; font-size: 13px; color: #fff; }
.ns-source-list p { margin: 7px 0 8px; font-size: 11px; line-height: 1.55; color: #a9bbb6; }
.ns-source-list a { font-size: 11px; font-weight: 800; color: var(--ns-mint); }
.ns-methodology__note { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .13); font-size: 10px; line-height: 1.6; color: #9db0ab; }

@media (max-width: 920px) {
	.ns-tool-hero { grid-template-columns: 1fr 170px; padding: 50px; }
	.ns-tool-hero__mark svg { width: 180px; }
	.ns-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ns-methodology { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
	.ns-tool__shell { width: min(100% - 28px, 1180px); padding-top: 14px; }
	.ns-breadcrumbs { margin-bottom: 14px; }
	.ns-tool-hero { display: block; min-height: 0; padding: 38px 25px 42px; }
	.ns-tool-hero h1 { font-size: clamp(41px, 13vw, 58px); }
	.ns-tool-hero__lede { font-size: 15px; }
	.ns-tool-hero__mark { display: none; }
	.ns-picker { margin: 0; padding: 25px 20px; }
	.ns-picker__heading,
	.ns-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
	.ns-picker__controls { grid-template-columns: 1fr 38px 1fr; gap: 7px; }
	.ns-state-field select { height: 52px; padding-left: 10px; padding-right: 26px; font-size: 14px; }
	.ns-swap { width: 38px; height: 38px; margin-bottom: 7px; }
	.ns-matchup { grid-template-columns: 1fr 38px 1fr; margin-top: 45px; padding: 0; }
	.ns-matchup__state { gap: 9px; }
	.ns-matchup__state > div { min-width: 0; }
	.ns-matchup__state--right { flex-direction: row-reverse; }
	.ns-state-badge { width: 40px; height: 40px; flex-basis: 40px; font-size: 12px; }
	.ns-matchup__state strong { font-size: clamp(16px, 4.8vw, 20px); line-height: 1.1; }
	.ns-matchup__state div > span { display: none; }
	.ns-takeaway { grid-template-columns: 1fr; margin-top: 25px; padding: 24px; }
	.ns-takeaway__icon { width: 38px; height: 38px; }
	.ns-metrics,
	.ns-table-section,
	.ns-methodology { margin-top: 60px; }
	.ns-metric-grid { grid-template-columns: 1fr; }
	.ns-metric-card { min-height: 258px; }
	.ns-section-heading--actions { align-items: flex-start; }
	.ns-actions { width: 100%; }
	.ns-button { flex: 1; }
	.ns-methodology { padding: 37px 24px; }
	.ns-source-list { grid-template-columns: 1fr; gap: 27px; }
}

@media (max-width: 480px) {
	.ns-picker__controls { grid-template-columns: 1fr; gap: 12px; }
	.ns-state-field select { padding-left: 14px; font-size: 15px; }
	.ns-swap { justify-self: center; margin: -2px 0; transform: rotate(90deg); }
	.ns-swap:hover { transform: rotate(270deg); }
}

@media (prefers-reduced-motion: reduce) {
	.ns-swap,
	.ns-bar { transition: none; }
}
