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

.irh-pt__card {
	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);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Head */
.irh-pt__head { display: flex; flex-direction: column; gap: 8px; }
.irh-pt__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pt-muted);
}
.irh-pt__privacy { font-size: 14px; color: var(--pt-muted); }
.irh-pt__summary {
	margin-top: 6px;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--pt-bg);
	font-size: 15px;
	font-weight: 500;
	min-height: 52px; /* reserved: the text changes, the box does not move */
}
.irh-pt__summary[data-tone="ok"] { background: var(--pt-pass-bg); color: #14632b; }
.irh-pt__summary[data-tone="soon"] { background: var(--pt-warn-bg); color: var(--pt-warn); }
.irh-pt__summary[data-tone="expired"] { background: var(--pt-fail-bg); color: var(--pt-fail); }

/* Documents */
.irh-pt .irh-pt__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}
@container (min-width: 720px) {
	.irh-pt .irh-pt__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.irh-pt .irh-pt__list--custom:empty { display: none; }
.irh-pt .irh-pt__doc {
	margin: 0;
	padding: 18px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-left: 5px solid #d2d2d7;
}
.irh-pt__doc[data-state="ok"] { border-left-color: var(--pt-pass); }
.irh-pt__doc[data-state="soon"],
.irh-pt__doc[data-state="needs"] { border-left-color: #c26a00; }
.irh-pt__doc[data-state="expired"],
.irh-pt__doc[data-state="error"] { border-left-color: var(--pt-fail); }

.irh-pt__doc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.irh-pt__doc-name { min-width: 0; }
.irh-pt__doc-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.irh-pt__doc-sub { font-size: 13px; color: var(--pt-muted); margin-top: 2px !important; }
.irh-pt__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(--pt-blue-soft);
	color: var(--pt-blue-dark);
}
.irh-pt__status {
	flex: none;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	background: var(--pt-bg);
	color: var(--pt-muted);
}
.irh-pt__doc[data-state="ok"] .irh-pt__status { background: var(--pt-pass-bg); color: #14632b; }
.irh-pt__doc[data-state="soon"] .irh-pt__status,
.irh-pt__doc[data-state="needs"] .irh-pt__status { background: var(--pt-warn-bg); color: var(--pt-warn); }
.irh-pt__doc[data-state="expired"] .irh-pt__status,
.irh-pt__doc[data-state="error"] .irh-pt__status { background: var(--pt-fail-bg); color: var(--pt-fail); }

.irh-pt__rule { font-size: 14px; color: var(--pt-body); line-height: 1.5; }
.irh-pt__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.irh-pt__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.irh-pt__field--grow { flex: 1 1 auto; }
.irh-pt__label { font-size: 13px; font-weight: 600; color: #424245; }
.irh-pt__optional { font-weight: 400; color: var(--pt-muted); }
.irh-pt .irh-pt__input {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 12px;
	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(--pt-ink);
	transition: box-shadow .15s ease;
}
.irh-pt .irh-pt__input:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .32); }
.irh-pt .irh-pt__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--pt-blue); }
.irh-pt .irh-pt__input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--pt-fail); }
.irh-pt__out { font-size: 14px; font-weight: 500; color: var(--pt-ink); min-height: 1.5em; }
.irh-pt__doc[data-state="expired"] .irh-pt__out,
.irh-pt__doc[data-state="error"] .irh-pt__out { color: var(--pt-fail); }
.irh-pt__doc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; }
.irh-pt__src { font-size: 12.5px; color: var(--pt-muted); }
.irh-pt__src a { color: var(--pt-blue-dark); }

/* Extra documents */
.irh-pt__extra { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.irh-pt__extra-title { font-size: 16px; font-weight: 600; }
.irh-pt__extra-text { font-size: 14px; color: var(--pt-body); }
.irh-pt__extra .irh-pt__btn--quiet { align-self: flex-start; }

/* Buttons */
.irh-pt__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--pt-line); }
.irh-pt .irh-pt__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-pt .irh-pt__btn:active { transform: scale(.97); }
.irh-pt .irh-pt__btn:focus-visible { outline: 3px solid var(--pt-blue); outline-offset: 2px; }
.irh-pt .irh-pt__btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.irh-pt .irh-pt__btn--primary { background: var(--pt-ink); color: #fff; }
.irh-pt .irh-pt__btn--primary:hover:not([disabled]) { background: #000; color: #fff; }
.irh-pt .irh-pt__btn--quiet { background: transparent; color: var(--pt-muted); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.irh-pt .irh-pt__btn--quiet:hover { background: var(--pt-bg); color: var(--pt-ink); }
.irh-pt .irh-pt__btn--link { background: var(--pt-blue-soft); color: var(--pt-blue-dark); padding: 0 16px; font-size: 14px; min-height: 40px; }
.irh-pt .irh-pt__btn--link:hover:not([disabled]) { background: #dbe9fb; color: var(--pt-blue-dark); }
.irh-pt .irh-pt__btn--small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.irh-pt [hidden] { display: none !important; }

.irh-pt__note { font-size: 13px; color: var(--pt-muted); }
.irh-pt__noscript { font-weight: 600; margin-top: 12px !important; }
.irh-pt__printurl { display: none; }

@media (max-width: 480px) {
	.irh-pt__card { padding: 20px; border-radius: 22px; gap: 16px; }
	.irh-pt .irh-pt__doc { padding: 16px; }
	.irh-pt__actions .irh-pt__btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.irh-pt .irh-pt__btn,
	.irh-pt .irh-pt__input { transition: none; }
}

/* Print: only the tool, with the dates and the site URL. */
@media print {
	html.irh-printing-pt body * { visibility: hidden; }
	html.irh-printing-pt .irh-pt,
	html.irh-printing-pt .irh-pt * { visibility: visible; }
	html.irh-printing-pt .irh-pt { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
	.irh-pt__card { box-shadow: none; border: 1px solid #ccc; border-radius: 8px; }
	.irh-pt__actions,
	.irh-pt__privacy,
	.irh-pt__doc-foot .irh-pt__btn,
	.irh-pt__extra .irh-pt__btn { display: none !important; }
	.irh-pt .irh-pt__doc { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; border-left-width: 5px; }
	.irh-pt__printurl { display: block; font-size: 12px; }
}

/* The site styles every paragraph and list item in page content
   (body.page:not(.home) .entry-content p, li). These rules are stronger,
   so the tracker keeps its own sizes and spacing inside any theme. */
body .entry-content .irh-pt.irh-pt.irh-pt p,
body .entry-content .irh-pt.irh-pt.irh-pt li { margin: 0; font-size: inherit; line-height: 1.5; color: inherit; }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__eyebrow { font-size: 12px; color: var(--pt-muted); }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__privacy { font-size: 14px; color: var(--pt-muted); }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__summary-text { font-size: 15px; }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__doc { font-size: 16px; padding: 18px; }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__doc-title { font-size: 16px; line-height: 1.3; }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__doc-sub { font-size: 13px; color: var(--pt-muted); margin-top: 2px; }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__rule { font-size: 14px; color: var(--pt-body); }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__out { font-size: 14px; }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__src { font-size: 12.5px; color: var(--pt-muted); }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__extra-title { font-size: 16px; }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__extra-text { font-size: 14px; color: var(--pt-body); }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__note { font-size: 13px; color: var(--pt-muted); }
body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__printurl { font-size: 12px; }
@media (max-width: 480px) {
	body .entry-content .irh-pt.irh-pt.irh-pt .irh-pt__doc { padding: 16px; }
}
