/* Lighthouse Attic Ventilation Calculator — scoped */
.lh-avc {
	--lh-avc-bg: #f8fafc;
	--lh-avc-border: #e2e8f0;
	--lh-avc-text: #0f172a;
	--lh-avc-muted: #475569;
	--lh-avc-accent: #0d9488;
	--lh-avc-accent-hover: #0f766e;
	--lh-avc-warn-bg: #fffbeb;
	--lh-avc-warn-border: #f59e0b;
	--lh-avc-ok-bg: #ecfdf5;
	--lh-avc-ok-border: #10b981;
	--lh-avc-radius: 8px;
	box-sizing: border-box;
	color: var(--lh-avc-text);
	font-size: 1rem;
	line-height: 1.5;
	max-width: 42rem;
	margin: 0 auto 2rem;
}

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

.lh-avc__title {
	font-size: clamp(1.35rem, 4vw, 1.75rem);
	font-weight: 700;
	margin: 0 0 1rem;
	line-height: 1.25;
}

.lh-avc__intro {
	margin-bottom: 1.5rem;
	color: var(--lh-avc-muted);
	font-size: 0.95rem;
}

.lh-avc__intro p {
	margin: 0 0 0.75rem;
}

.lh-avc__form {
	background: var(--lh-avc-bg);
	border: 1px solid var(--lh-avc-border);
	border-radius: var(--lh-avc-radius);
	padding: 1.25rem 1.25rem 1.5rem;
}

.lh-avc__fieldset {
	border: 0;
	margin: 0 0 1.25rem;
	padding: 0;
	min-width: 0;
}

.lh-avc__legend {
	font-weight: 600;
	padding: 0;
	margin-bottom: 0.35rem;
	display: block;
	width: 100%;
}

.lh-avc__field {
	margin-bottom: 1.25rem;
}

.lh-avc__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.lh-avc__help {
	font-size: 0.875rem;
	color: var(--lh-avc-muted);
	margin: 0 0 0.5rem;
}

.lh-avc__input,
.lh-avc__select {
	width: 100%;
	max-width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--lh-avc-border);
	border-radius: 6px;
	font: inherit;
	background: #fff;
}

.lh-avc__input:focus,
.lh-avc__select:focus {
	outline: 2px solid var(--lh-avc-accent);
	outline-offset: 2px;
	border-color: var(--lh-avc-accent);
}

.lh-avc__ridge-can {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

@media (min-width: 36rem) {
	.lh-avc__ridge-can {
		grid-template-columns: 1fr 1fr;
	}
}

.lh-avc__checks {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.lh-avc__check {
	font-weight: 400;
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.lh-avc__check input {
	margin-top: 0.25rem;
	flex-shrink: 0;
}

.lh-avc__submit,
.lh-avc__pdf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.75rem 1.25rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--lh-avc-accent);
	border: none;
	border-radius: var(--lh-avc-radius);
	cursor: pointer;
	transition: background 0.15s ease;
}

.lh-avc__submit:hover:not(:disabled),
.lh-avc__pdf:hover {
	background: var(--lh-avc-accent-hover);
}

.lh-avc__submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.lh-avc__results {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--lh-avc-border);
}

.lh-avc__results-heading {
	font-size: 1.25rem;
	margin: 0 0 0.35rem;
}

.lh-avc__results-sub {
	color: var(--lh-avc-muted);
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
}

.lh-avc__callouts {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.lh-avc__callout {
	padding: 0.85rem 1rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: var(--lh-avc-radius);
	font-size: 0.9rem;
}

.lh-avc__status {
	padding: 1rem 1.1rem;
	border-radius: var(--lh-avc-radius);
	margin-bottom: 1.25rem;
	font-weight: 500;
}

.lh-avc__status--ok {
	background: var(--lh-avc-ok-bg);
	border: 1px solid var(--lh-avc-ok-border);
}

.lh-avc__status--warn {
	background: var(--lh-avc-warn-bg);
	border: 1px solid var(--lh-avc-warn-border);
}

.lh-avc__status-emoji {
	margin-right: 0.35rem;
}

.lh-avc__outputs {
	margin: 0 0 1.25rem;
	display: grid;
	gap: 0.75rem;
}

.lh-avc__output-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem 1rem;
	align-items: baseline;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--lh-avc-border);
}

.lh-avc__output-row dt {
	margin: 0;
	font-weight: 600;
	font-size: 0.9rem;
}

.lh-avc__output-row dd {
	margin: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.lh-avc__recommendation {
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

.lh-avc__recommendation ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.lh-avc__recommendation p {
	margin: 0 0 0.65rem;
}

.lh-avc__disclaimer {
	display: block;
	font-size: 0.85rem;
	color: var(--lh-avc-muted);
	line-height: 1.45;
	margin-bottom: 1.25rem;
	padding: 1rem;
	background: var(--lh-avc-bg);
	border-radius: var(--lh-avc-radius);
	border: 1px solid var(--lh-avc-border);
}

.lh-avc__disclaimer-label {
	display: block;
	color: var(--lh-avc-text);
	margin-bottom: 0.35rem;
}

.lh-avc__pdf {
	background: #334155;
	margin-top: 0;
}

.lh-avc__pdf:hover:not(:disabled) {
	background: #1e293b;
}

.lh-avc__pdf:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.lh-avc__backlink {
	font-size: 0.9rem;
	color: var(--lh-avc-muted);
	margin: 1.25rem 0 0;
	line-height: 1.5;
}

.lh-avc__backlink a {
	color: var(--lh-avc-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lh-avc__backlink a:hover {
	color: var(--lh-avc-accent-hover);
}

/* Supporting SEO content (below calculator) */
.lh-avc__seo {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--lh-avc-border);
	max-width: 100%;
}

.lh-avc__seo-title {
	font-size: clamp(1.2rem, 3vw, 1.5rem);
	font-weight: 700;
	margin: 0 0 1.25rem;
	line-height: 1.3;
}

.lh-avc__seo-section {
	margin-bottom: 2rem;
}

.lh-avc__seo-section h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	line-height: 1.35;
}

.lh-avc__seo-section p {
	margin: 0 0 0.75rem;
	color: var(--lh-avc-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.lh-avc__seo-section p:last-child {
	margin-bottom: 0;
}

.lh-avc__seo-section p a {
	color: var(--lh-avc-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lh-avc__seo-section p a:hover {
	color: var(--lh-avc-accent-hover);
}

.lh-avc__seo-list {
	margin: 0;
	padding-left: 1.35rem;
	color: var(--lh-avc-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.lh-avc__seo-list li {
	margin-bottom: 0.65rem;
}

.lh-avc__seo-list a {
	color: var(--lh-avc-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lh-avc__seo-list a:hover {
	color: var(--lh-avc-accent-hover);
}

.lh-avc__faq-q {
	font-size: 1rem;
	font-weight: 600;
	margin: 1.25rem 0 0.4rem;
	color: var(--lh-avc-text);
}

.lh-avc__faq-item:first-child .lh-avc__faq-q {
	margin-top: 0;
}

.lh-avc__faq-a {
	margin: 0 0 0.5rem;
	color: var(--lh-avc-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.lh-avc__faq-a a {
	color: var(--lh-avc-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lh-avc__faq-a a:hover {
	color: var(--lh-avc-accent-hover);
}
