/* NORDHAUS Estimator — designed for the dark estimator section; falls back gracefully elsewhere */
.nordhaus-estimator {
	--e-bg: var(--nh-ink, #1F1D1A);
	--e-fg: var(--nh-bone, #F4F1EB);
	--e-muted: rgba(244,241,235,.6);
	--e-line: rgba(244,241,235,.16);
	--e-accent: var(--nh-clay, #B9A48C);
	--e-card: rgba(244,241,235,.04);
	--e-card-hover: rgba(244,241,235,.08);
	--e-display: var(--nh-font-display, Georgia, serif);
	--e-text: var(--nh-font-text, Inter, system-ui, sans-serif);
	color: var(--e-fg);
	font-family: var(--e-text);
}
.nhe-intro { color: var(--e-muted); max-width: 60ch; margin: 0 0 2.5rem; font-size: .95rem; }
.nhe-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 5rem); align-items: start; }

.nhe-group { border: 0; padding: 0; margin: 0 0 3rem; min-width: 0; }
.nhe-group legend { font-family: var(--e-display); font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 1.25rem; padding: 0; display: flex; align-items: baseline; gap: .9rem; }
.nhe-step { font-family: var(--e-text); font-size: .72rem; letter-spacing: .2em; color: var(--e-accent); }
.nhe-options { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nhe-options--extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.nhe-card { position: relative; display: block; cursor: pointer; border: 1px solid var(--e-line); background: var(--e-card); padding: 1.25rem 1.25rem 1.1rem; transition: border-color .3s, background .3s, transform .3s cubic-bezier(.22,1,.36,1); }
.nhe-card:hover { background: var(--e-card-hover); transform: translateY(-1px); }
.nhe-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.nhe-card input:focus-visible + .nhe-card__body { outline: 2px solid var(--e-accent); outline-offset: 6px; }
.nhe-card.is-selected { border-color: var(--e-fg); background: var(--e-card-hover); }
.nhe-card__body { display: grid; gap: .3rem; pointer-events: none; }
.nhe-card__name { font-family: var(--e-display); font-size: 1.35rem; line-height: 1.1; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.nhe-card__name::after { content: ''; width: 12px; height: 12px; border: 1px solid var(--e-line); border-radius: 50%; flex: none; transition: background .3s, border-color .3s; }
.nhe-card--check .nhe-card__name::after { border-radius: 2px; }
.nhe-card.is-selected .nhe-card__name::after { background: var(--e-accent); border-color: var(--e-accent); }
.nhe-card__detail { font-size: .82rem; color: var(--e-muted); line-height: 1.4; }
.nhe-card__price { margin-top: .6rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--e-accent); }

.nhe-summary { position: sticky; top: 6.5rem; }
.nhe-summary__inner { border: 1px solid var(--e-line); padding: clamp(1.5rem, 3vw, 2.5rem); background: rgba(244,241,235,.03); }
.nhe-summary__label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--e-accent); margin: 0 0 .5rem; }
.nhe-total { font-family: var(--e-display); font-size: clamp(2.6rem, 4.5vw, 4rem); line-height: 1; margin: 0 0 1.25rem; font-variant-numeric: tabular-nums; }
.nhe-breakdown { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 1px solid var(--e-line); }
.nhe-breakdown li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--e-line); font-size: .9rem; }
.nhe-breakdown li span:last-child { color: var(--e-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nhe-disclaimer { font-size: .74rem; line-height: 1.5; color: var(--e-muted); margin: 0 0 2rem; }

.nhe-form__title { font-family: var(--e-display); font-size: 1.4rem; margin: 0 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--e-line); }
.nhe-field { display: grid; gap: .35rem; margin-bottom: .9rem; }
.nhe-field label, .nhe-consent span { font-size: .78rem; letter-spacing: .04em; color: var(--e-muted); }
.nhe-field input, .nhe-field textarea {
	width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--e-line); color: var(--e-fg);
	font: inherit; font-size: 1rem; padding: .55rem 0; border-radius: 0; transition: border-color .3s;
}
.nhe-field input:focus, .nhe-field textarea:focus { outline: none; border-bottom-color: var(--e-accent); }
.nhe-field textarea { resize: vertical; min-height: 2.5rem; }
.nhe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nhe-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nhe-consent { display: flex; gap: .6rem; align-items: flex-start; margin: .5rem 0 1.25rem; cursor: pointer; }
.nhe-consent input { margin-top: .25rem; accent-color: var(--e-accent); }
.nhe-submit {
	width: 100%; padding: 1rem 1.5rem; border-radius: 999px; border: 1px solid var(--e-fg); background: var(--e-fg); color: var(--e-bg);
	font: inherit; font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
	transition: background .3s, color .3s, transform .3s cubic-bezier(.22,1,.36,1);
}
.nhe-submit:hover { background: var(--e-accent); border-color: var(--e-accent); transform: translateY(-1px); }
.nhe-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.nhe-status { margin: .9rem 0 0; font-size: .82rem; min-height: 1.2em; color: var(--e-muted); }
.nhe-status.is-error { color: #E2A8A0; }
.nhe-success { padding-top: 1.5rem; border-top: 1px solid var(--e-line); }
.nhe-success__title { font-family: var(--e-display); font-size: 1.6rem; margin: 0 0 .5rem; }
.nhe-success p:last-child { color: var(--e-muted); margin: 0; }

@media (max-width: 1000px) {
	.nhe-layout { grid-template-columns: 1fr; }
	.nhe-summary { position: static; }
	.nhe-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.nhe-options, .nhe-options--extras { grid-template-columns: 1fr; }
	.nhe-row { grid-template-columns: 1fr; gap: 0; }
	.nhe-summary__inner { padding: 1.4rem; }
}
