/**
 * Self-contained worksheet for the relocation estimator.
 * System fonts, neutral gray and blue, no host-theme matching.
 */

article.nhre {
	--nhre-ink: #1c2836;
	--nhre-muted: #3c4a5a;
	--nhre-canvas: #eef1f4;
	--nhre-paper: #ffffff;
	--nhre-line: #d5dbe3;
	--nhre-line-strong: #6d7b8a;
	--nhre-blue: #1d4e89;
	--nhre-blue-dark: #163e6e;
	--nhre-error: #8e1b1b;
	--nhre-warn-bg: #fff6e8;
	--nhre-warn-ink: #6d3b00;
	--nhre-warn-line: #e0c08a;
	box-sizing: border-box;
	max-width: 52rem;
	margin: 0 auto;
	padding: 1.25em 1em 2.75em;
	color: var(--nhre-ink);
	background: var(--nhre-canvas);
	border: 1px solid var(--nhre-line);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color-scheme: light;
}

article.nhre *,
article.nhre *::before,
article.nhre *::after {
	box-sizing: border-box;
}

article.nhre [hidden] {
	display: none !important;
}

article.nhre h2,
article.nhre h3,
article.nhre h4,
article.nhre p,
article.nhre ul,
article.nhre dl {
	margin-top: 0;
}

article.nhre h2 {
	margin-bottom: 0.65em;
	font-size: 1.5em;
	line-height: 1.25;
	font-weight: 700;
	color: var(--nhre-ink);
}

article.nhre h3 {
	margin-bottom: 0.5em;
	font-size: 1.3em;
	line-height: 1.3;
	font-weight: 700;
}

article.nhre h4 {
	margin: 1.25em 0 0.5em;
	font-size: 1.05em;
	line-height: 1.3;
	font-weight: 700;
}

article.nhre p {
	margin-bottom: 1em;
}

article.nhre a {
	color: var(--nhre-blue);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

article.nhre a:visited {
	color: var(--nhre-blue-dark);
}

article.nhre :focus {
	outline: 3px solid var(--nhre-blue);
	outline-offset: 2px;
}

article.nhre :focus:not(:focus-visible) {
	outline: none;
}

article.nhre legend:focus,
article.nhre #results-heading:focus {
	outline: 3px solid var(--nhre-blue);
	outline-offset: 2px;
}

article.nhre .nhre-lede,
article.nhre .nhre-section p {
	max-width: 68ch;
}

article.nhre .nhre-tool {
	margin-bottom: 2.5em;
}

article.nhre .nhre-progress {
	margin-bottom: 0.75em;
	color: var(--nhre-muted);
	font-weight: 700;
}

article.nhre .nhre-step {
	margin: 0 0 1em;
	padding: 1.15em 1em 1.25em;
	border: 1px solid var(--nhre-line);
	background: var(--nhre-paper);
	min-inline-size: 0;
}

article.nhre .nhre-step > * {
	clear: both;
}

article.nhre .nhre-step > legend {
	float: left;
	width: 100%;
	margin-bottom: 0.85em;
	padding: 0;
	font-size: 1.3em;
	font-weight: 700;
	line-height: 1.3;
}

article.nhre .nhre-field {
	margin: 0 0 1.15em;
}

article.nhre .nhre-field:last-child {
	margin-bottom: 0;
}

article.nhre .nhre-label-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25em 0.35em;
	margin-bottom: 0.35em;
}

article.nhre .nhre-label-line label,
article.nhre .nhre-assumption-group legend {
	font-weight: 700;
}

article.nhre .nhre-input,
article.nhre .nhre-select {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 2.75em;
	margin: 0;
	padding: 0.5em 0.75em;
	border: 1px solid var(--nhre-line-strong);
	border-radius: 2px;
	background: var(--nhre-paper);
	background-image: none;
	box-shadow: none;
	color: var(--nhre-ink);
	font: inherit;
	line-height: 1.3;
}

article.nhre .nhre-input[aria-invalid="true"],
article.nhre .nhre-select[aria-invalid="true"] {
	border-color: var(--nhre-error);
}

article.nhre .nhre-help,
article.nhre .nhre-default {
	margin: 0.35em 0 0;
	color: var(--nhre-muted);
	font-size: 0.9375em;
}

article.nhre .nhre-error {
	margin: 0.35em 0 0;
	color: var(--nhre-error);
	font-weight: 700;
}

article.nhre .nhre-warn {
	margin: 0.35em 0 0;
	padding: 0.55em 0.75em;
	border: 1px solid var(--nhre-warn-line);
	background: var(--nhre-warn-bg);
	color: var(--nhre-warn-ink);
}

article.nhre .nhre-choices {
	margin: 0;
	padding: 0;
	list-style: none;
}

article.nhre .nhre-choice {
	display: flex;
	align-items: center;
	gap: 0.75em;
	min-height: 2.75em;
	margin: 0 0 0.5em;
	padding: 0.35em 0.75em;
	border: 1px solid var(--nhre-line);
	background: var(--nhre-paper);
}

article.nhre .nhre-choice input {
	width: 1.25em;
	height: 1.25em;
	flex: 0 0 auto;
	accent-color: var(--nhre-blue);
}

article.nhre .nhre-choice label {
	flex: 1 1 auto;
	padding: 0.35em 0;
	cursor: pointer;
}

article.nhre .nhre-choice:has(input:checked) {
	border-color: var(--nhre-blue);
	box-shadow: inset 3px 0 0 var(--nhre-blue);
}

article.nhre .nhre-nav {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
	margin: 0 0 1em;
}

article.nhre .nhre-nav-forward {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

article.nhre .nhre-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.75em;
	margin: 0;
	padding: 0.5em 1em;
	border: 2px solid var(--nhre-blue);
	border-radius: 2px;
	background: var(--nhre-blue);
	background-image: none;
	box-shadow: none;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}

article.nhre .nhre-btn:hover {
	background: var(--nhre-blue-dark);
	border-color: var(--nhre-blue-dark);
	color: #ffffff;
}

article.nhre .nhre-btn-secondary {
	background: var(--nhre-paper);
	color: var(--nhre-blue);
}

article.nhre .nhre-btn-secondary:hover {
	background: #e7eef6;
	border-color: var(--nhre-blue);
	color: var(--nhre-blue-dark);
}

article.nhre .nhre-assumptions {
	margin-top: 0.5em;
	padding: 0.35em 1em 1.15em;
	border: 1px solid var(--nhre-line);
	background: var(--nhre-paper);
}

article.nhre .nhre-assumptions > summary,
article.nhre .nhre-recap > summary {
	padding: 0.65em 0;
	font-weight: 700;
	font-size: 1.15em;
	cursor: pointer;
}

article.nhre .nhre-assumptions > .nhre-btn {
	width: auto;
	margin: 0.25em 0 1em;
}

article.nhre .nhre-assumption-group {
	margin: 0 0 1.25em;
	padding: 0;
	border: 0;
	background: transparent;
	min-inline-size: 0;
}

article.nhre .nhre-assumption-group legend {
	float: none;
	width: auto;
	margin-bottom: 0.65em;
	padding: 0;
	font-size: 1.05em;
}

article.nhre .nhre-tip-host {
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

article.nhre .nhre-tip-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75em;
	height: 2.75em;
	min-width: 2.75em;
	min-height: 2.75em;
	padding: 0;
	border: 1px solid var(--nhre-line-strong);
	border-radius: 50%;
	background: var(--nhre-paper);
	background-image: none;
	box-shadow: none;
	color: var(--nhre-blue);
	font: inherit;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

article.nhre .nhre-tip-btn:hover {
	background: #e7eef6;
}

article.nhre .nhre-tip {
	position: absolute;
	z-index: 30;
	left: 0;
	top: calc(100% + 0.25em);
	width: 16rem;
	max-width: 70vw;
	padding: 0.75em 0.85em;
	background: var(--nhre-ink);
	color: #ffffff;
	font-size: 0.875em;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
}

article.nhre .nhre-tip-host.is-end .nhre-tip {
	left: auto;
	right: 0;
}

article.nhre .nhre-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

article.nhre #results {
	margin-top: 1.5em;
	padding: 1.15em 1em 1.25em;
	background: var(--nhre-paper);
	border: 1px solid var(--nhre-line);
}

article.nhre .nhre-kicker {
	margin: 0;
	color: var(--nhre-muted);
	font-weight: 700;
}

article.nhre .nhre-likely {
	margin: 0 0 0.2em;
	color: var(--nhre-blue);
	font-size: 2em;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

article.nhre .nhre-range,
article.nhre .nhre-sentence {
	max-width: 68ch;
}

article.nhre .nhre-figures {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.2em 1em;
	margin: 0 0 0.5em;
}

article.nhre .nhre-figures dt {
	margin: 0.75em 0 0;
	font-weight: 700;
}

article.nhre .nhre-figures dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

article.nhre .nhre-table-scroll {
	max-width: 100%;
	overflow-x: auto;
}

article.nhre .nhre-table {
	width: 100%;
	min-width: 40em;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

article.nhre .nhre-table caption {
	margin-bottom: 0.5em;
	text-align: left;
	font-weight: 700;
	caption-side: top;
}

article.nhre .nhre-table th,
article.nhre .nhre-table td {
	padding: 0.6em 0.5em;
	border-bottom: 1px solid var(--nhre-line);
	text-align: left;
	vertical-align: top;
}

article.nhre .nhre-table thead th {
	background: var(--nhre-canvas);
}

article.nhre .nhre-table tfoot th,
article.nhre .nhre-table tfoot td {
	font-weight: 700;
	background: var(--nhre-canvas);
}

article.nhre .nhre-num {
	text-align: right;
	white-space: nowrap;
}

article.nhre .nhre-share {
	display: flex;
	align-items: center;
	gap: 0.5em;
	white-space: nowrap;
}

article.nhre meter {
	width: 6em;
	height: 0.7em;
	accent-color: var(--nhre-blue);
}

article.nhre .nhre-zero-note,
article.nhre .nhre-row-detail {
	display: block;
	margin-top: 0.15em;
	color: var(--nhre-muted);
	font-size: 0.875em;
	font-weight: 400;
}

article.nhre .nhre-signals,
article.nhre .nhre-checks,
article.nhre .nhre-recap-list,
article.nhre .nhre-results-actions {
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

article.nhre .nhre-signals li {
	margin: 0 0 0.75em;
	padding-left: 0.85em;
	border-left: 3px solid var(--nhre-blue);
}

article.nhre .nhre-check {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
	min-height: 2.75em;
	margin: 0 0 0.5em;
}

article.nhre .nhre-check input {
	width: 1.25em;
	height: 1.25em;
	margin-top: 0.2em;
	flex: 0 0 auto;
	accent-color: var(--nhre-blue);
}

article.nhre .nhre-check label {
	padding-top: 0.15em;
	cursor: pointer;
}

article.nhre .nhre-net {
	margin: 0;
	font-size: 1.5em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}

article.nhre .nhre-compare {
	width: 100%;
	margin: 0 0 1.25em;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

article.nhre .nhre-compare caption {
	margin-bottom: 0.5em;
	text-align: left;
	font-weight: 700;
	caption-side: top;
}

article.nhre .nhre-compare th,
article.nhre .nhre-compare td {
	padding: 0.6em 0.5em;
	border-bottom: 1px solid var(--nhre-line);
	text-align: left;
	vertical-align: top;
}

article.nhre .nhre-compare thead th {
	background: var(--nhre-canvas);
}

article.nhre .nhre-compare tr.is-selected {
	background: #e7eef6;
}

article.nhre .nhre-spent-table {
	width: 100%;
	min-width: 36em;
	margin: 0 0 1.25em;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

article.nhre .nhre-spent-table caption {
	margin-bottom: 0.5em;
	text-align: left;
	font-weight: 700;
	caption-side: top;
}

article.nhre .nhre-spent-table th,
article.nhre .nhre-spent-table td {
	padding: 0.6em 0.5em;
	border-bottom: 1px solid var(--nhre-line);
	text-align: left;
	vertical-align: middle;
}

article.nhre .nhre-spent-table thead th,
article.nhre .nhre-spent-table tfoot th,
article.nhre .nhre-spent-table tfoot td {
	background: var(--nhre-canvas);
	font-weight: 700;
}

article.nhre .nhre-spent {
	min-width: 8em;
}

article.nhre label.nhre-check {
	font-weight: 400;
}

article.nhre .nhre-current {
	display: inline-block;
	margin-left: 0.5em;
	padding: 0.1em 0.4em;
	background: var(--nhre-blue);
	color: #fff;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.02em;
	vertical-align: middle;
}

article.nhre .nhre-results-actions {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 0.75em;
	margin-top: 1.25em;
	margin-bottom: 1em;
	padding: 0;
	list-style: none;
}

article.nhre #nhre-copy-status .nhre-input {
	margin-top: 0.5em;
}

article.nhre .nhre-results-actions .nhre-btn {
	width: 100%;
}

article.nhre .nhre-disclaimer {
	margin-top: 1.25em;
	padding-top: 1em;
	border-top: 1px solid var(--nhre-line);
}

article.nhre .nhre-disclaimer p {
	max-width: 68ch;
	margin-bottom: 0;
	font-size: 1em;
}

article.nhre .nhre-section {
	margin-top: 2.25em;
}

article.nhre .nhre-section section {
	margin-top: 1.35em;
}

article.nhre .nhre-faq h3 {
	font-size: 1.125em;
}

@media (min-width: 40em) {
	article.nhre {
		padding: 1.75em 1.5em 3em;
	}

	article.nhre .nhre-likely {
		font-size: 2.75em;
	}

	article.nhre .nhre-nav {
		flex-direction: row;
		align-items: center;
	}

	article.nhre .nhre-nav-forward {
		flex-direction: row;
		margin-left: auto;
	}

	article.nhre .nhre-btn {
		width: auto;
		min-width: 8em;
	}

	article.nhre .nhre-figures {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	}

	article.nhre .nhre-figures dt {
		margin-top: 0;
	}

	article.nhre .nhre-results-actions {
		flex-direction: row;
	}

	article.nhre .nhre-results-actions .nhre-btn {
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	article.nhre *,
	article.nhre *::before,
	article.nhre *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
