/* InspectionReady Home Tools · v1.0.1 */
.irh-tool {
	--irh-navy: #12305a;
	--irh-ink: #1f2933;
	--irh-muted: #52606d;
	--irh-bg: #f3f5f8;
	--irh-line: #d5dbe3;
	--irh-green: #1e8e3e;
	--irh-green-bg: #e8f5ec;
	--irh-red: #c62828;
	--irh-red-bg: #fdecec;
	--irh-amber: #8a5a00;
	--irh-amber-bg: #fff4e0;
	color: var(--irh-ink);
	font-size: 1rem;
	line-height: 1.55;
	margin: 1.5em 0 2em;
}
.irh-tool *,
.irh-tool *::before,
.irh-tool *::after { box-sizing: border-box; }

/* Intro */
.irh-fpc__intro {
	background: var(--irh-bg);
	border: 1px solid var(--irh-line);
	border-top: 4px solid var(--irh-navy);
	border-radius: 8px;
	padding: 18px 20px;
	margin-bottom: 20px;
}
.irh-fpc__eyebrow {
	margin: 0 0 6px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--irh-navy);
}
.irh-fpc__lead { margin: 0 0 8px; }
.irh-fpc__privacy { margin: 0 0 12px; font-size: .9rem; color: var(--irh-muted); }
.irh-fpc__progress { margin: 0 0 6px; font-weight: 600; font-size: .95rem; }
.irh-fpc__bar {
	height: 8px;
	background: #fff;
	border: 1px solid var(--irh-line);
	border-radius: 99px;
	overflow: hidden;
}
.irh-fpc__bar-fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--irh-navy);
	transition: width .25s ease;
}

/* Systems */
.irh-fpc__system { margin: 0 0 24px; }
.irh-tool .irh-fpc__system-title {
	font-size: 1.25rem;
	color: var(--irh-navy);
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--irh-navy);
}
.irh-tool .irh-fpc__items {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}
.irh-fpc__item {
	border: 1px solid var(--irh-line);
	border-left: 5px solid var(--irh-line);
	border-radius: 6px;
	padding: 14px 16px;
	margin: 0 0 10px;
	background: #fff;
}
.irh-fpc__item.is-ok { border-left-color: var(--irh-green); }
.irh-fpc__item.is-unsure { border-left-color: var(--irh-amber); }
.irh-fpc__item.is-issue { border-left-color: var(--irh-red); }

.irh-fpc__fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.irh-fpc__q {
	padding: 0;
	margin: 0 0 10px;
	font-weight: 600;
	float: left; /* lets the legend wrap like normal text */
	width: 100%;
}
.irh-fpc__choices {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.irh-fpc__choice {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	cursor: pointer;
	margin: 0;
}
.irh-fpc__choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.irh-fpc__choice span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	border: 2px solid var(--irh-line);
	border-radius: 6px;
	background: #fff;
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.2;
}
.irh-fpc__choice:hover span { border-color: var(--irh-navy); }
.irh-fpc__choice input:focus-visible + span {
	outline: 3px solid var(--irh-navy);
	outline-offset: 2px;
}
.irh-fpc__choice--ok input:checked + span { background: var(--irh-green-bg); border-color: var(--irh-green); color: #14632b; }
.irh-fpc__choice--unsure input:checked + span { background: var(--irh-amber-bg); border-color: var(--irh-amber); color: var(--irh-amber); }
.irh-fpc__choice--issue input:checked + span { background: var(--irh-red-bg); border-color: var(--irh-red); color: #9b1c1c; }
.irh-fpc__choice input:checked + span::before { content: "\2713\00a0"; }

.irh-fpc__details { margin-top: 10px; font-size: .95rem; }
.irh-fpc__details summary {
	cursor: pointer;
	color: var(--irh-navy);
	font-weight: 600;
	min-height: 32px;
}
.irh-fpc__details summary:focus-visible { outline: 3px solid var(--irh-navy); outline-offset: 2px; }
.irh-fpc__details p { margin: 8px 0 0; }
.irh-fpc__source { font-size: .85rem; color: var(--irh-muted); }
.irh-fpc__source a { color: var(--irh-navy); }

/* Actions */
.irh-fpc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 8px 0 20px;
}
.irh-fpc__btn {
	min-height: 48px;
	padding: 10px 20px;
	border: 2px solid var(--irh-navy);
	border-radius: 6px;
	background: #fff;
	color: var(--irh-navy);
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}
.irh-fpc__btn:hover { background: var(--irh-bg); }
.irh-fpc__btn:focus-visible { outline: 3px solid var(--irh-navy); outline-offset: 2px; }
.irh-fpc__btn--primary { background: var(--irh-navy); color: #fff; }
.irh-fpc__btn--primary:hover { background: #0c2342; }
.irh-fpc__btn--quiet { border-color: var(--irh-line); color: var(--irh-muted); }

/* Results */
.irh-fpc__results {
	border: 2px solid var(--irh-navy);
	border-radius: 8px;
	padding: 18px 20px;
	margin-bottom: 20px;
	background: #fff;
}
.irh-fpc__results:focus { outline: none; }
.irh-fpc__results:focus-visible { outline: 3px solid var(--irh-navy); outline-offset: 2px; }
.irh-tool .irh-fpc__results-title { margin: 0 0 10px; color: var(--irh-navy); font-size: 1.25rem; }
.irh-tool .irh-fpc__todo-title { margin: 20px 0 8px; font-size: 1.05rem; color: var(--irh-navy); }
.irh-fpc__results-open { margin: 0 0 10px; color: var(--irh-muted); font-size: .95rem; }
.irh-fpc__table-wrap { overflow-x: auto; }
.irh-fpc__summary { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.irh-fpc__summary th,
.irh-fpc__summary td { padding: 8px 10px; border-bottom: 1px solid var(--irh-line); text-align: left; }
.irh-fpc__summary thead th { background: var(--irh-bg); font-size: .85rem; }
.irh-fpc__badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: .8rem;
	font-weight: 700;
	white-space: nowrap;
}
.irh-fpc__badge--ok { background: var(--irh-green-bg); color: #14632b; }
.irh-fpc__badge--unsure { background: var(--irh-amber-bg); color: var(--irh-amber); }
.irh-fpc__badge--issue { background: var(--irh-red-bg); color: #9b1c1c; }
.irh-tool .irh-fpc__todo { margin: 0; padding-left: 1.4em; }
.irh-fpc__todo li { margin: 0 0 12px; }
.irh-fpc__todo-fix { display: block; margin-top: 4px; color: var(--irh-muted); }
.irh-fpc__allclear { margin: 14px 0 0; font-weight: 600; color: #14632b; }
.irh-tool .irh-fpc__docs { margin: 0; padding-left: 1.2em; }

.irh-fpc__note { font-size: .875rem; color: var(--irh-muted); margin: 0; }
.irh-fpc__noscript { font-weight: 600; }
.irh-fpc__printurl { display: none; }

@media (max-width: 480px) {
	.irh-fpc__intro,
	.irh-fpc__results { padding: 14px; }
	.irh-fpc__item { padding: 12px; }
	.irh-fpc__choices { gap: 6px; }
	.irh-fpc__choice { flex: 1 1 auto; }
	.irh-fpc__choice span { width: 100%; justify-content: center; padding: 8px 10px; }
	.irh-fpc__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.irh-fpc__bar-fill { transition: none; }
}

/* Print: only the tool, with every answer and the site URL. */
@media print {
	html.irh-printing body * { visibility: hidden; }
	html.irh-printing .irh-fpc,
	html.irh-printing .irh-fpc * { visibility: visible; }
	html.irh-printing .irh-fpc { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
	.irh-fpc__actions,
	.irh-fpc__bar,
	.irh-fpc__privacy { display: none !important; }
	.irh-fpc__details[open] summary,
	.irh-fpc__details summary { display: none; }
	.irh-fpc__item,
	.irh-fpc__results { break-inside: avoid; }
	.irh-fpc__choice span { border-width: 1px; min-height: 0; padding: 2px 8px; }
	.irh-fpc__choice input:not(:checked) + span::before { content: "\2610\00a0"; }
	.irh-fpc__choice input:checked + span::before { content: "\2611\00a0"; }
	.irh-fpc__printurl { display: block; font-size: .85rem; margin-top: 8px; }
	.irh-fpc__results[hidden] { display: none; }
}
