:root {
	--col-font-family: system-ui, sans-serif;
	--col-ink: #222;
	--col-muted: #555;
	--col-border: #ccc;
	--col-accent: #245699;
	--col-table-head-background: #f2f2f2;
	--col-table-head-ink: var(--col-ink);
	color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
	margin: 0;
	font-family: var(--col-font-family);
	font-size: 16px;
	line-height: 1.5;
	color: var(--col-ink);
	background: transparent;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--col-accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--col-ink); outline-offset: 3px; }
h2, h3, p { margin: 0; }
h2, h3 { line-height: 1.25; }
h2 { font-size: 26px; }
h3 { margin-bottom: 16px; font-size: 22px; }
.calculator {
	width: 100%;
	max-width: 828px;
	margin: 0 auto;
	padding: 24px 20px;
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.field { min-width: 0; }
label { display: block; margin-bottom: 8px; }
input, select {
	width: 100%;
	min-height: 44px;
	padding: 8px;
	border: 1px solid var(--col-border);
	border-radius: 4px;
	background: #fff;
	color: var(--col-ink);
	font-size: 16px;
}
select { text-overflow: ellipsis; }
button {
	min-height: 44px;
	margin-top: 24px;
	padding: 12px 24px;
	border: 0;
	border-radius: 4px;
	background: var(--col-accent);
	color: #fff;
	font-weight: 700;
}
button:hover:not(:disabled) { background: var(--col-ink); }
button:disabled, fieldset:disabled { cursor: wait; opacity: 0.65; }
.error-message {
	margin-top: 18px;
	padding: 14px;
	border-left: 4px solid #a62424;
	background: #fff0ef;
	color: #822020;
}
.retry-button { margin-top: 12px; }
.results {
	margin-top: 36px;
	border-top: 1px solid var(--col-border);
	padding-top: 36px;
	scroll-margin-top: 16px;
}
.results > h2 { margin-bottom: 28px; }
#results-heading:focus { outline: none; }
.salary-result, .category-section, .detail-report { margin-top: 28px; }
.detail-report > summary { min-height: 44px; padding: 8px 0; cursor: pointer; }
.detail-report > summary h3 { display: inline; margin: 0; }
#comparable-salary { overflow-wrap: anywhere; }
.section-note, .methodology { color: var(--col-muted); font-size: 14px; }
.methodology { margin-top: 24px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--col-border); vertical-align: top; }
thead th { background: var(--col-table-head-background); color: var(--col-table-head-ink); font-weight: 700; }
th:first-child { text-align: left; }
.detail-report th:first-child { min-width: 170px; }
th:not(:first-child), td { text-align: right; }
.detail-report th:not(:first-child), .detail-report td { min-width: 120px; }
tbody th { font-weight: 400; }
.category-table { table-layout: fixed; }
.category-table th { width: 65%; }
.category-table th, .category-table td { overflow-wrap: anywhere; }
.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;
}

@media (max-width: 740px) {
	.calculator { padding: 16px 20px; }
	.form-grid { gap: 16px; }
	.calculate-button { width: 100%; }
}
