/* InspectionReady Home · Roof Insurability Checker · v1.1.0 */
.irh-rl {
	--rl-ink: var(--irh-ink, #1d1d1f);
	--rl-body: var(--irh-body, #333336);
	--rl-muted: var(--irh-muted, #6e6e73);
	--rl-bg: var(--irh-bg, #f5f5f7);
	--rl-line: var(--irh-line, #ececf0);
	--rl-blue: var(--irh-blue, #0a66d0);
	--rl-blue-dark: var(--irh-blue-dark, #08529f);
	--rl-blue-soft: var(--irh-blue-soft, #eaf2fd);
	--rl-pass: var(--irh-pass, #1a7f37);
	--rl-pass-bg: var(--irh-pass-bg, #e9f6ec);
	--rl-warn: var(--irh-warn, #a04d00);
	--rl-warn-bg: var(--irh-warn-bg, #fff4e5);
	--rl-fail: var(--irh-fail, #b42318);
	container-type: inline-size;
	color: var(--rl-ink);
	font-size: 16px;
	line-height: 1.55;
	margin: 1.5em 0 2em;
}
.irh-rl *,
.irh-rl *::before,
.irh-rl *::after { box-sizing: border-box; }

.irh-rl__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04), 0 20px 50px rgba(0, 0, 0, .07);
	overflow: hidden;
}
@container (min-width: 720px) {
	.irh-rl__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
	.irh-rl__result { border-left: 1px solid var(--rl-line); border-top: 0 !important; }
}

/* Form */
.irh-rl__form {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}
.irh-rl p { margin: 0; }
.irh-rl__eyebrow,
.irh-rl__result-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--rl-muted);
}
.irh-rl__privacy { font-size: 14px; color: var(--rl-muted); margin-top: -10px !important; }
.irh-rl__row {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 12px;
}
.irh-rl__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.irh-rl__label { font-size: 14px; font-weight: 600; color: #424245; }
.irh-rl__optional { font-weight: 400; color: var(--rl-muted); }
.irh-rl .irh-rl__input {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 14px;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
	font: inherit;
	font-size: 16px; /* no zoom on iOS */
	font-weight: 500;
	color: var(--rl-ink);
	transition: box-shadow .15s ease;
}
.irh-rl select.irh-rl__input { padding-right: 36px; }
.irh-rl .irh-rl__input:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .32); }
.irh-rl .irh-rl__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--rl-blue); }
.irh-rl .irh-rl__input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--rl-fail); }
.irh-rl__hint {
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--rl-bg);
	font-size: 14px;
	line-height: 1.5;
	color: #424245;
}
.irh-rl__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.irh-rl .irh-rl__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
	text-decoration: none;
}
.irh-rl .irh-rl__btn:active { transform: scale(.97); }
.irh-rl .irh-rl__btn:focus-visible { outline: 3px solid var(--rl-blue); outline-offset: 2px; }
.irh-rl .irh-rl__btn--primary { background: var(--rl-ink); color: #fff; }
.irh-rl .irh-rl__btn--primary:hover { background: #000; color: #fff; }
.irh-rl .irh-rl__btn--quiet { background: transparent; color: var(--rl-muted); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.irh-rl .irh-rl__btn--quiet:hover { background: var(--rl-bg); color: var(--rl-ink); }
.irh-rl .irh-rl__btn--link {
	min-height: 44px;
	padding: 0 18px;
	background: var(--rl-blue-soft);
	color: var(--rl-blue-dark);
}
.irh-rl .irh-rl__btn--link:hover { background: #dbe9fb; color: var(--rl-blue-dark); }

/* Result */
.irh-rl__result {
	padding: 28px;
	background: #fbfbfd;
	border-top: 1px solid var(--rl-line);
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-height: 320px; /* reserve space: no layout shift when the result appears */
}
.irh-rl__result:focus { outline: none; }
.irh-rl__empty { color: var(--rl-muted); font-size: 15px; }
.irh-rl__error { color: var(--rl-fail); font-weight: 600; }
.irh-rl__noscript { font-weight: 600; }

.irh-rl__summary { display: flex; align-items: center; gap: 20px; }
.irh-rl__ring { position: relative; width: 124px; height: 124px; flex: none; }
.irh-rl__ring svg { width: 100%; height: 100%; display: block; }
.irh-rl__ring-track { fill: none; stroke: #e8e8ed; stroke-width: 14; }
.irh-rl__ring-fill {
	fill: none;
	stroke: var(--rl-blue);
	stroke-width: 14;
	stroke-linecap: round;
	transform: rotate(-90deg);
	transform-origin: 70px 70px;
	transition: stroke-dashoffset .5s cubic-bezier(.2, .8, .2, 1);
}
.irh-rl__ring.is-warn .irh-rl__ring-fill { stroke: #c26a00; }
.irh-rl__ring-text {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.irh-rl__age { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.irh-rl__age-unit { font-size: 12px; color: var(--rl-muted); margin-top: 4px; }
.irh-rl__head { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.irh-rl__headline { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.irh-rl__life { font-size: 14px; color: var(--rl-body); }
.irh-rl__small { font-size: 13px; color: var(--rl-muted); }

.irh-rl .irh-rl__rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.irh-rl__rule {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.irh-rl__icon {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	background: var(--rl-blue-soft);
	color: var(--rl-blue);
}
.irh-rl__rule.is-ok .irh-rl__icon { background: var(--rl-pass-bg); color: var(--rl-pass); }
.irh-rl__rule.is-warn .irh-rl__icon { background: var(--rl-warn-bg); color: var(--rl-warn); }
.irh-rl__rule-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.irh-rl__rule-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.irh-rl__tag {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	vertical-align: 2px;
	background: var(--rl-blue-soft);
	color: var(--rl-blue-dark);
}
.irh-rl__tag--ok { background: var(--rl-pass-bg); color: #14632b; }
.irh-rl__tag--warn { background: var(--rl-warn-bg); color: var(--rl-warn); }
.irh-rl__rule-text { font-size: 14px; color: var(--rl-body); line-height: 1.5; }
.irh-rl__src { font-size: 12.5px; color: var(--rl-muted); }
.irh-rl__src a { color: var(--rl-blue-dark); }

.irh-rl__steps-title { font-size: 15px; font-weight: 600; }
.irh-rl .irh-rl__steps { margin: -8px 0 0; padding-left: 1.3em; font-size: 14px; color: var(--rl-body); }
.irh-rl .irh-rl__steps li { margin: 0 0 6px; }
.irh-rl__steps a { color: var(--rl-blue-dark); font-weight: 600; }
.irh-rl__reminder { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.irh-rl__note { font-size: 13px; color: var(--rl-muted); margin: 14px 4px 0 !important; }
.irh-rl__printurl { display: none; }

@media (max-width: 480px) {
	.irh-rl__form,
	.irh-rl__result { padding: 20px; }
	.irh-rl__grid { border-radius: 22px; }
	.irh-rl__row { grid-template-columns: minmax(0, 1fr); }
	.irh-rl__summary { gap: 14px; }
	.irh-rl__ring { width: 104px; height: 104px; }
	.irh-rl__age { font-size: 30px; }
	.irh-rl__headline { font-size: 19px; }
	.irh-rl .irh-rl__btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.irh-rl__ring-fill,
	.irh-rl .irh-rl__btn,
	.irh-rl .irh-rl__input { transition: none; }
}

/* Print: only the tool, with the result and the site URL. */
@media print {
	html.irh-printing-rl body * { visibility: hidden; }
	html.irh-printing-rl .irh-rl,
	html.irh-printing-rl .irh-rl * { visibility: visible; }
	html.irh-printing-rl .irh-rl { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
	.irh-rl__grid { box-shadow: none; border: 1px solid #ccc; border-radius: 8px; }
	.irh-rl__actions,
	.irh-rl__privacy,
	.irh-rl__reminder { display: none !important; }
	.irh-rl__result { min-height: 0; background: #fff; }
	.irh-rl__rule { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
	.irh-rl__printurl { display: block; font-size: 12px; margin-top: 8px !important; }
}
