:root {
	--uh-primary: #c81919;
	--uh-primary-dark: #9f1414;
	--uh-text: #171717;
	--uh-muted: #555555;
	--uh-border: #d8d8d8;
	--uh-soft: #f5f5f5;
	--uh-white: #ffffff;
	--uh-focus: #111111;
	--uh-max: 920px;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--uh-white);
	color: var(--uh-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 18px;
	line-height: 1.55;
	letter-spacing: 0;
}

a {
	color: var(--uh-primary);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--uh-primary-dark);
}

img,
iframe,
video {
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	letter-spacing: 0;
}

button,
a,
input,
select,
textarea {
	outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 4px solid var(--uh-focus);
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 20;
	background: var(--uh-primary);
	color: var(--uh-white);
	padding: 12px 16px;
	font-weight: 800;
}

.skip-link:focus {
	top: 12px;
}

.site-header {
	border-bottom: 1px solid var(--uh-border);
	background: var(--uh-white);
}

.site-header__inner,
.site-footer__inner,
.site-main {
	width: min(100%, var(--uh-max));
	margin: 0 auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 16px;
}

.site-branding {
	flex: 0 0 auto;
	min-width: 0;
}

.site-title {
	display: inline-block;
	color: var(--uh-text);
	font-size: 22px;
	font-weight: 900;
	text-decoration: none;
}

.custom-logo {
	display: block;
	max-width: 210px;
	max-height: 62px;
}

.site-navigation {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: visible;
}

.menu-toggle,
.menu-backdrop {
	display: none;
}

.primary-menu,
.footer-menu {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu {
	justify-content: flex-end;
	flex-wrap: nowrap;
	white-space: nowrap;
}

.primary-menu a,
.footer-menu a {
	display: inline-block;
	padding: 9px 10px;
	border-radius: 6px;
	color: var(--uh-text);
	font-size: 18px;
	font-weight: 750;
	text-decoration: none;
}

.primary-menu a:hover,
.footer-menu a:hover {
	background: var(--uh-soft);
	color: var(--uh-primary);
}

.site-main {
	padding: 14px 16px 44px;
}

h1,
h2,
h3 {
	line-height: 1.2;
	margin: 0 0 16px;
	font-weight: 900;
	color: var(--uh-text);
	letter-spacing: 0;
}

h1 {
	font-size: 30px;
}

h2 {
	font-size: 26px;
	margin-top: 32px;
}

h3 {
	font-size: 22px;
	margin-top: 24px;
}

p {
	margin: 0 0 18px;
}

ul,
ol {
	padding-left: 24px;
}

li + li {
	margin-top: 8px;
}

.uh-calculator-first {
	padding-top: 0;
}

.uh-calculator-first h1 {
	margin-bottom: 14px;
}

.uh-calculator-form {
	display: grid;
	gap: 14px;
	max-width: 640px;
}

.uh-field {
	display: grid;
	gap: 0;
}

.uh-field[hidden] {
	display: none;
}

.uh-field-label {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	background: var(--uh-primary);
	color: var(--uh-white);
	border-radius: 6px 6px 0 0;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.25;
}

.uh-input-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
}

.uh-input-wrap input,
.uh-input-wrap select {
	width: 100%;
	min-height: 60px;
	padding: 12px 48px 12px 12px;
	border: 2px solid var(--uh-border);
	border-top: 0;
	border-radius: 0 0 6px 6px;
	background: var(--uh-white);
	color: var(--uh-text);
	font-size: 20px;
	font-weight: 750;
}

.uh-input-wrap select {
	appearance: auto;
	padding-right: 12px;
}

.uh-input-wrap input[aria-invalid="true"],
.uh-input-wrap select[aria-invalid="true"] {
	border-color: var(--uh-primary);
	box-shadow: inset 0 0 0 2px var(--uh-primary);
}

.uh-field-unit {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--uh-muted);
	font-size: 20px;
	font-weight: 850;
	pointer-events: none;
}

.uh-submit,
.uh-button-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	width: 100%;
	max-width: 640px;
	padding: 14px 18px;
	border: 0;
	border-radius: 6px;
	background: var(--uh-primary);
	color: var(--uh-white);
	font-size: 20px;
	font-weight: 950;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.uh-submit:hover,
.uh-button-link:hover {
	background: var(--uh-primary-dark);
	color: var(--uh-white);
}

.uh-button-link--inline {
	width: auto;
	max-width: 100%;
}

.uh-form-errors,
.uh-alert {
	padding: 14px 16px;
	border: 3px solid var(--uh-primary);
	border-radius: 6px;
	background: #fff7f7;
	color: var(--uh-text);
	font-weight: 750;
}

.uh-form-errors ul,
.uh-alert ul {
	margin-bottom: 0;
}

.uh-after-calculator {
	margin-top: 34px;
	border-top: 4px solid var(--uh-primary);
	padding-top: 24px;
}

.uh-seo-article,
.uh-faq,
.uh-related-calculators,
.uh-result-summary,
.uh-calculator-note,
.uh-calculation-info,
.uh-calculator-author-note,
.uh-home-section,
.uh-trust-strip,
.entry,
.not-found,
.no-results {
	margin-top: 24px;
}

.uh-faq-item {
	padding: 16px 0;
	border-bottom: 1px solid var(--uh-border);
}

.uh-faq-item h3 {
	margin-top: 0;
}

.uh-related-calculators ul,
.uh-trust-strip ul {
	list-style: none;
	padding: 0;
}

.uh-related-calculators a,
.uh-calc-link {
	display: block;
	padding: 16px;
	border: 2px solid var(--uh-border);
	border-radius: 6px;
	background: var(--uh-white);
	color: var(--uh-text);
	font-weight: 900;
	text-decoration: none;
}

.uh-related-calculators a:hover,
.uh-calc-link:hover {
	border-color: var(--uh-primary);
	color: var(--uh-primary);
}

.uh-link-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.uh-front-intro {
	margin-bottom: 18px;
}

.uh-front-intro p {
	max-width: 760px;
	font-size: 20px;
	font-weight: 650;
}

.uh-home-category-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.uh-home-category {
	padding: 16px;
	border: 2px solid var(--uh-border);
	border-radius: 6px;
	background: var(--uh-white);
}

.uh-home-category h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 22px;
}

.uh-home-category ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.uh-home-category a {
	font-weight: 850;
	color: var(--uh-text);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.uh-home-category a:hover {
	color: var(--uh-primary);
}

.uh-calculator-note {
	padding: 16px;
	border-left: 4px solid var(--uh-primary);
	border-radius: 6px;
	background: var(--uh-soft);
}

.uh-calculator-note h2 {
	margin-top: 0;
	font-size: 24px;
}

.uh-calculator-note p {
	margin-bottom: 0;
	font-weight: 700;
}

.uh-calculation-info,
.uh-calculator-author-note {
	padding: 16px;
	border: 2px solid var(--uh-border);
	border-radius: 6px;
	background: var(--uh-white);
}

.uh-calculation-info h2,
.uh-calculator-author-note h2 {
	margin-top: 0;
}

.uh-calculation-info__item + .uh-calculation-info__item {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--uh-border);
}

.uh-calculation-info__item h3 {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 22px;
}

.uh-calculation-info__item p,
.uh-calculation-info__item ul,
.uh-calculator-author-note ul {
	margin-bottom: 0;
}

.uh-calculator-author-note ul {
	display: grid;
	gap: 8px;
	padding-left: 0;
	list-style: none;
}

.uh-calculation-note {
	padding: 14px;
	border-left: 4px solid var(--uh-primary);
	background: var(--uh-soft);
}

.uh-calculation-note h2 {
	margin-bottom: 10px;
	font-size: 22px;
}

.uh-calculation-note p {
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 650;
	line-height: 1.45;
}

.uh-calculation-note p:last-child {
	margin-bottom: 0;
}

.uh-calculation-formula {
	padding: 10px 12px;
	border: 1px solid var(--uh-border);
	border-radius: 6px;
	background: var(--uh-white);
}

.uh-trust-strip li {
	padding: 12px 0;
	border-bottom: 1px solid var(--uh-border);
	font-weight: 750;
}

.uh-result-box {
	max-width: 720px;
	padding: 18px;
	border: 3px solid var(--uh-primary);
	border-radius: 6px;
}

.uh-result-box h2 {
	display: inline-block;
	margin: 0 0 12px;
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--uh-primary);
	color: var(--uh-white);
	font-size: 22px;
}

.uh-result-value {
	margin: 0 0 18px;
	font-size: 34px;
	font-weight: 950;
	line-height: 1.15;
	color: var(--uh-primary);
}

.uh-result-list {
	display: grid;
	gap: 10px;
	margin: 0 0 18px;
}

.uh-result-list div {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3px;
	padding: 12px;
	border: 1px solid var(--uh-border);
	border-radius: 6px;
}

.uh-result-list dt {
	font-weight: 850;
	color: var(--uh-muted);
}

.uh-result-list dd {
	margin: 0;
	font-weight: 900;
}

.uh-formula {
	margin-bottom: 0;
	font-weight: 700;
}

.uh-ad-slot {
	max-width: 720px;
	min-height: 90px;
	margin: 18px 0;
	padding: 12px;
	border: 2px dashed var(--uh-border);
	border-radius: 6px;
	overflow: hidden;
}

.entry-meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	color: var(--uh-muted);
	font-weight: 750;
}

.entry-summary-card {
	padding: 18px 0;
	border-bottom: 1px solid var(--uh-border);
}

.entry-summary-card h2 {
	margin-top: 0;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 4px;
	padding: 8px 12px;
	border: 1px solid var(--uh-border);
	border-radius: 6px;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--uh-primary);
	color: var(--uh-white);
	border-color: var(--uh-primary);
}

.search-form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.search-field {
	min-height: 56px;
	flex: 1 1 260px;
	padding: 10px 12px;
	border: 2px solid var(--uh-border);
	border-radius: 6px;
	font-size: 20px;
}

.search-submit {
	min-height: 56px;
	padding: 10px 18px;
	border: 0;
	border-radius: 6px;
	background: var(--uh-primary);
	color: var(--uh-white);
	font-size: 20px;
	font-weight: 900;
}

.site-footer {
	border-top: 1px solid var(--uh-border);
	background: var(--uh-soft);
}

.site-footer__inner {
	padding: 22px 16px;
}

.site-footer p {
	margin-bottom: 12px;
	font-weight: 750;
}

.site-owner-note,
.uh-owner-note {
	color: var(--uh-muted);
	font-size: 18px;
	font-weight: 750;
}

.uh-footer-policy-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.uh-footer-policy-links a {
	display: inline-block;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--uh-text);
	font-size: 18px;
	font-weight: 750;
	text-decoration: none;
}

.uh-footer-policy-links a:hover {
	background: var(--uh-white);
	color: var(--uh-primary);
}

.uh-info-page h2:first-child {
	margin-top: 0;
}

@media (min-width: 760px) {
	body {
		font-size: 20px;
	}

	.site-main {
		padding-top: 20px;
	}

	h1 {
		font-size: 42px;
	}

	h2 {
		font-size: 32px;
	}

	h3 {
		font-size: 24px;
	}

	.uh-link-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.uh-home-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.uh-result-value {
		font-size: 42px;
	}

	.uh-result-list div {
		grid-template-columns: minmax(180px, 1fr) 1.4fr;
		align-items: center;
	}
}

@media (max-width: 700px) {
	.site-header__inner {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 12px;
	}

	.site-branding {
		margin-bottom: 0;
	}

	.site-title {
		font-size: 20px;
	}

	.menu-toggle {
		position: relative;
		z-index: 45;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 48px;
		padding: 8px 12px;
		border: 2px solid var(--uh-primary);
		border-radius: 6px;
		background: var(--uh-primary);
		color: var(--uh-white);
		font-size: 18px;
		font-weight: 900;
		cursor: pointer;
	}

	.menu-toggle__lines,
	.menu-toggle__lines::before,
	.menu-toggle__lines::after {
		display: block;
		width: 24px;
		height: 3px;
		border-radius: 3px;
		background: currentColor;
		content: "";
	}

	.menu-toggle__lines {
		position: relative;
	}

	.menu-toggle__lines::before,
	.menu-toggle__lines::after {
		position: absolute;
		left: 0;
	}

	.menu-toggle__lines::before {
		top: -8px;
	}

	.menu-toggle__lines::after {
		top: 8px;
	}

	.uh-menu-open .menu-toggle {
		position: fixed;
		top: 10px;
		right: 12px;
	}

	.site-navigation {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 40;
		width: min(86vw, 360px);
		height: 100vh;
		padding: 76px 16px 18px;
		background: var(--uh-white);
		box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
		overflow-y: auto;
		transform: translateX(105%);
		transition: transform 160ms ease;
	}

	.site-navigation.is-open {
		transform: translateX(0);
	}

	.menu-backdrop {
		position: fixed;
		inset: 0;
		z-index: 35;
		display: block;
		background: rgba(0, 0, 0, 0.38);
	}

	.menu-backdrop[hidden] {
		display: none;
	}

	.primary-menu {
		display: grid;
		justify-content: flex-start;
		width: 100%;
		gap: 10px;
		white-space: normal;
	}

	.primary-menu a {
		display: block;
		align-items: center;
		min-height: 54px;
		padding: 13px 12px;
		border: 2px solid var(--uh-border);
		border-radius: 6px;
		background: var(--uh-white);
		font-size: 20px;
		font-weight: 900;
	}

	.site-main {
		padding-left: 12px;
		padding-right: 12px;
	}

	.uh-result-value {
		font-size: 30px;
	}
}
