/* KHS roof check. Buttons carry !important because the theme paints every button pink on hover. */
#khs-roof-check {
	scroll-margin-top: 140px;
}

#khs-roof-check > .khs-rc {
	flex: 1 1 100%;
	width: 100%;
}

#khs-roof-check.khs-rc-ready > :not(.khs-rc),
.khs-rc [hidden] {
	display: none !important;
}

.khs-rc {
	--rc-navy: #0c2340;
	--rc-red: #a40909;
	--rc-red-hover: #8a0707;
	--rc-tan: #e8b98a;
	--rc-copper: #b35c22;
	--rc-slate: #3e4c5e;
	--rc-slate-light: #eef2f6;
	--rc-body: #6b7280;
	--rc-border: #e5e7eb;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 30px 70px -35px rgba(12, 35, 64, 0.45);
	overflow: hidden;
	font-family: Manrope, sans-serif;
	color: var(--rc-navy);
	text-align: left;
}

.khs-rc-qs {
	padding: 40px 44px 44px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.khs-rc-step {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.khs-rc-step + .khs-rc-step {
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid var(--rc-border);
}

.khs-rc-n {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: 50%;
	background: var(--rc-navy);
	color: #fff;
	font: 800 15px Outfit, sans-serif;
	display: grid;
	place-items: center;
	transition: background 0.2s;
}

.khs-rc-step.is-done .khs-rc-n {
	background: var(--rc-copper);
}

.khs-rc-body {
	min-width: 0;
	flex: 1;
}

.khs-rc-h {
	margin: 0;
	font: 800 22px/1.2 Outfit, sans-serif;
	color: var(--rc-navy);
}

.khs-rc-hint {
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rc-body);
}

.khs-rc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.khs-rc button.khs-rc-chip {
	font: 700 14.5px Manrope, sans-serif !important;
	color: var(--rc-navy) !important;
	background: #fff !important;
	border: 1.5px solid var(--rc-border) !important;
	border-radius: 999px !important;
	padding: 10px 16px !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
}

.khs-rc button.khs-rc-chip:hover {
	border-color: var(--rc-slate) !important;
	background: var(--rc-slate-light) !important;
}

.khs-rc button.khs-rc-chip:focus-visible {
	outline: 3px solid rgba(179, 92, 34, 0.35) !important;
	outline-offset: 2px;
}

.khs-rc button.khs-rc-chip[aria-pressed="true"] {
	background: var(--rc-navy) !important;
	border-color: var(--rc-navy) !important;
	color: #fff !important;
}

.khs-rc-out {
	position: relative;
	background-color: var(--rc-navy);
	/* shingle courses: the roofing counterpart to the flooring calculator's tape ticks */
	background-image:
		repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 26px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 52px);
	color: #fff;
	padding: 40px 36px 36px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.khs-rc-eye {
	margin: 0;
	font: 700 12px Manrope, sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rc-tan);
}

.khs-rc-verdict {
	margin: 0;
	font: 800 30px/1.1 Outfit, sans-serif;
	color: #fff;
	text-wrap: balance;
}

.khs-rc-out.is-waiting .khs-rc-verdict {
	color: rgba(255, 255, 255, 0.55);
	font-size: 24px;
}

.khs-rc-progress {
	display: flex;
	gap: 6px;
}

.khs-rc-progress span {
	flex: 1;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	transition: background 0.25s;
}

.khs-rc-progress span.on {
	background: var(--rc-tan);
}

.khs-rc-gauge {
	margin-top: 4px;
}

.khs-rc-track {
	position: relative;
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #e5484d 100%);
}

.khs-rc-dot {
	position: absolute;
	top: 50%;
	left: 0;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--rc-navy);
	box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0, 0, 0, 0.35);
	transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.khs-rc-out.is-waiting .khs-rc-dot,
.khs-rc-out.is-storm .khs-rc-dot {
	opacity: 0;
}

.khs-rc-scale {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font: 700 11.5px Manrope, sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8fa3bc;
}

.khs-rc-why {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.khs-rc-why li {
	position: relative;
	padding-left: 24px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #dce5f0;
	margin: 0;
}

.khs-rc-why li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 12px;
	height: 3px;
	border-radius: 2px;
	background: var(--rc-tan);
}

.khs-rc-actions {
	margin-top: auto;
	padding-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.khs-rc a.khs-rc-cta,
.khs-rc a.khs-rc-more {
	display: block;
	text-align: center;
	text-decoration: none !important;
	border-radius: 10px;
	font: 700 16px Manrope, sans-serif;
	padding: 15px 20px;
	transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.khs-rc a.khs-rc-cta {
	background: var(--rc-red);
	color: #fff !important;
}

.khs-rc a.khs-rc-cta:hover {
	background: var(--rc-red-hover);
}

.khs-rc a.khs-rc-more {
	background: var(--rc-tan);
	color: var(--rc-navy) !important;
	font-size: 15px;
	padding: 12px 18px;
}

.khs-rc a.khs-rc-more:hover {
	background: #f2cda6;
}

.khs-rc-out.is-waiting .khs-rc-actions {
	opacity: 0.35;
	pointer-events: none;
}

.khs-rc-fine {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #8fa3bc;
}

.khs-rc-anim {
	animation: khs-rc-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes khs-rc-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 1024px) {
	.khs-rc {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
	.khs-rc-qs {
		padding: 32px 30px 36px;
	}
}

@media (max-width: 767px) {
	.khs-rc {
		grid-template-columns: 1fr;
		border-radius: 20px;
	}
	.khs-rc-qs {
		padding: 26px 20px 28px;
	}
	.khs-rc-step {
		gap: 12px;
	}
	.khs-rc-n {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}
	.khs-rc-h {
		font-size: 19px;
	}
	.khs-rc button.khs-rc-chip {
		font-size: 14px !important;
		padding: 9px 13px !important;
	}
	.khs-rc-out {
		padding: 28px 22px 26px;
	}
	.khs-rc-verdict {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.khs-rc *,
	.khs-rc-anim {
		animation: none !important;
		transition: none !important;
	}
}
