.eco-section {
  color: var(--ink, #161616);
}
.eco-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}
.eco-header h3 {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
}
.eco-header p {
  margin: .5rem 0 0;
  color: var(--muted, #565656);
  font-size: 1rem;
  line-height: 1.5;
}
.eco-budget-header {
  margin-top: 2.5rem;
}
.eco-period {
  flex-shrink: 0;
  padding: .42rem .65rem;
  border-radius: .3rem;
  background: var(--accent, #eaeaea);
  color: var(--ink, #161616);
  font-size: .825rem;
  line-height: 1.4;
  white-space: nowrap;
}
.eco-market,
.eco-budget {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line, #dedede);
  border-radius: .75rem;
  background: #fff;
}
.eco-controls,
.eco-stats,
.eco-benchmarks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.eco-controls[hidden] {
  display: none;
}
.eco-field {
  display: grid;
  align-content: start;
  gap: .35rem;
  color: var(--ink, #161616);
  font-weight: 550;
  font-size: .9rem;
  line-height: 1.35;
}
.eco-field select,
.eco-field input {
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line, #dedede);
  border-radius: .38rem;
  background-color: #fff;
  color: var(--ink, #161616);
  font: inherit;
  font-size: max(1rem, 16px);
}
.eco-field select:focus-visible,
.eco-field input:focus-visible,
.eco-fuel summary:focus-visible {
  outline: 2px solid var(--green, #252525);
  outline-offset: 2px;
}
.eco-field input::placeholder {
  color: var(--muted, #565656);
  font-weight: 400;
  opacity: .9;
}
.eco-stats {
  margin-top: 1rem;
}
.eco-stats > div,
.eco-benchmarks > div {
  min-width: 0;
  padding: .85rem 1rem;
  border-radius: .45rem;
  background: var(--paper, #f2f2f2);
}
.eco-benchmarks {
  margin-bottom: 1rem;
}
.eco-stats span,
.eco-benchmarks span {
  display: block;
  font-size: .88rem;
}
.eco-stats strong,
.eco-benchmarks strong {
  display: block;
  margin: .22rem 0 .3rem;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.15;
}
.eco-stats small,
.eco-benchmarks small {
  font-family: system-ui, sans-serif;
  font-size: .75rem;
  line-height: 1.5;
}
.eco-stats p,
.eco-benchmarks p,
.eco-detail,
.eco-sources {
  margin: .3rem 0 0;
  color: var(--muted, #565656);
  font-size: .875rem;
  line-height: 1.5;
}
.eco-detail {
  margin-top: .65rem;
}
.eco-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .6rem;
  margin-top: .8rem;
}
.eco-section a {
  color: var(--green, #252525);
  text-underline-offset: 3px;
}
.eco-budget {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.eco-form {
  display: grid;
  gap: .75rem;
  margin: 0;
}
.eco-budget-result {
  display: grid;
  align-content: start;
  gap: .55rem;
  min-width: 0;
  min-height: 11rem;
  padding: 1rem;
  border-radius: .5rem;
  background: var(--green, #252525);
  color: #fff;
}
.eco-budget-result p {
  margin: 0 0 .2rem;
  color: inherit;
  font-size: .88rem;
  line-height: 1.45;
}
.eco-budget-result .eco-result-label {
  font-weight: 650;
}
.eco-result-value {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.8rem, 3.25vw, 2.7rem);
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.eco-result-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem .75rem;
  padding-top: .55rem;
  border-top: 1px solid #ffffff42;
  font-size: .88rem;
}
.eco-fuel {
  padding: .55rem .65rem;
  border: 1px solid var(--line, #dedede);
  border-radius: .35rem;
}
.eco-fuel summary {
  cursor: pointer;
  color: var(--green, #252525);
  font-weight: 550;
  font-size: .875rem;
}
.eco-fuel[open] summary {
  margin-bottom: .7rem;
}
.eco-budget-link {
  display: inline-flex;
  align-items: center;
  padding: .63rem .85rem;
  border: 1px solid var(--green, #252525);
  border-radius: .35rem;
  font-weight: 650;
}
.eco-floor {
  margin-top: .8rem;
}
@media (max-width: 720px) {
  .eco-budget {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 470px) {
  .eco-header {
    flex-wrap: wrap;
    gap: .65rem;
  }
  .eco-stats strong,
  .eco-benchmarks strong {
    font-size: 1.4rem;
  }
  .eco-stats strong small,
  .eco-benchmarks strong small {
    display: block;
  }
}
@media print {
  .eco-market, .eco-benchmarks, .eco-stats { break-inside: avoid; }
  .eco-budget { display: block; padding: 0; border: 0; }
  .eco-form { display: none; }
  .eco-budget-result { min-height: auto; color: #202020; border: 1px solid #dedede; background: #fff; }
  .eco-result-row { border-color: #dedede; }
}
.eco-dwellings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: .75rem;
  margin-top: .7rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line, #dedede);
  border-radius: .45rem;
  background: var(--paper, #f2f2f2);
}
.eco-dwellings span { display: block; font-size: .875rem; }
.eco-dwellings strong { display: block; margin-top: .2rem; font: 500 1.65rem var(--serif, Georgia, serif); }
.eco-dwellings p { margin: 0; color: var(--muted, #565656); font-size: .875rem; line-height: 1.5; }
@supports (grid-template-rows: subgrid) {
  .eco-stats > div, .eco-benchmarks > div {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .eco-stats strong, .eco-benchmarks strong { grid-row: 2; }
  .eco-stats p:first-of-type, .eco-benchmarks p:first-of-type { grid-row: 3; }
}
@media (min-width: 981px) {
  .eco-benchmarks-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 471px) and (max-width: 980px) {
  .eco-benchmarks-three > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 470px) {
  .eco-dwellings,
  .eco-benchmarks-three { grid-template-columns: 1fr; }
}
