/* results.css — Unit 17: results render inside the results card (bg handled by #results-card
   in index.html). Unit 36.2: the card is LIGHT (white, slate-200 border, soft shadow like the
   upgrade cards): big number emerald-700, slate text steps from --ec-* tokens, slate-200 row
   dividers, amber battery box, slate-50 net-cost panels. Unit 36.1: "Possible extras"
   (Unit 46: the breakdown chips under the headline are gone). Also the @media print rules
   (black-on-white summary, chrome hidden). */

/* --- Hero (inside the light card; the card itself is the panel) --- */

.hero { margin: 0; color: var(--ec-slate-700); }

/* Unit 39.3: .hero-label (ALL-CAPS total label) is gone — the intro lines live in
   results-extras.css (.ec-hl-intro / .ec-hl-rules). */


.hero-zone { margin: 0.5rem 0 0; font-size: 0.9375rem; line-height: 1.4; color: var(--ec-slate-600); }

.hero-compare { margin: 0.5rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ec-slate-600); }

.hero-compare span { font-variant-numeric: tabular-nums; }

#banner-diff {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ec-slate-700);
  font-variant-numeric: tabular-nums;
}

.banner-note { margin: 0.375rem 0 0; font-size: 0.75rem; line-height: 1.4; color: var(--ec-slate-500); }

/* --- Unit 26/36.1: drop boxes — amber-50 bg, amber-300 border, dark text (light card) --- */

.drop-banner {
  margin: 1.25rem 0 0;
  padding: 0.875rem 1rem;
  background: var(--ec-amber-50);
  border: 2px solid var(--ec-amber-300);
  border-radius: 0.75rem;
  color: var(--ec-slate-800);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.drop-banner p { margin: 0; }

.drop-banner p + p { margin-top: 0.25rem; }

.drop-banner-title { font-weight: 700; }

.drop-banner strong { color: var(--ec-amber-800); font-variant-numeric: tabular-nums; }

/* --- Unit 36.1: "Possible extras" section (Unit 46: the hero breakdown line is gone) --- */

.extras-section { margin-top: 1.5rem; }

.extras-heading {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--ec-slate-500);
}

.scheme-info {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin-top: 0.125rem;
  color: var(--ec-slate-400);
}

.battery-box { margin-top: 0.5rem; }

/* --- Scheme items: itemized list with check-circle, slate-200 dividers --- */

.scheme-grid { display: grid; gap: 0; grid-template-columns: 1fr; margin-top: 1.5rem; }

.scheme-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--ec-slate-200);
  border-radius: 0;
  box-shadow: none;
}

.scheme-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin-top: 0.125rem;
  color: var(--ec-emerald-600);
}

.scheme-icon { width: 20px; height: 20px; }

.scheme-name { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ec-slate-900); }

.scheme-amount {
  margin: 0.25rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ec-slate-900);
  font-variant-numeric: tabular-nums;
}

.scheme-condition { margin: 0.375rem 0 0; font-size: 0.8125rem; line-height: 1.55; color: var(--ec-slate-600); }

.scheme-source { margin: 0.25rem 0 0; font-size: 0.75rem; line-height: 1.4; color: var(--ec-slate-500); }

.scheme-source a { color: var(--ec-accent); text-decoration: underline; }

.scheme-empty { margin: 1.5rem 0 0; font-size: 0.9375rem; color: var(--ec-slate-500); }

/* --- Badges/pills: soft tints on white --- */

.badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-open { background: var(--ec-emerald-50); color: var(--ec-accent); }
.badge-loan { background: var(--ec-slate-100); color: var(--ec-slate-700); }
.badge-income { background: var(--ec-amber-50); color: var(--ec-amber-800); }
.badge-provider { background: var(--ec-amber-50); color: var(--ec-amber-800); }
.badge-closed { background: var(--ec-slate-100); color: var(--ec-slate-600); }

/* --- Cost sections: slate-50 panels with slate-200 borders --- */

.cost-flow { display: grid; gap: 0.75rem; margin-top: 1.5rem; }

.cost-section {
  padding: 1rem;
  background: var(--ec-slate-50);
  border: 1px solid var(--ec-slate-200);
  border-radius: 0.75rem;
}

.cost-section h2 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  line-height: 1.4;
  color: var(--ec-slate-500);
}

.net-cost {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ec-slate-900);
  font-variant-numeric: tabular-nums;
}

#payback { margin: 0; font-weight: 600; color: var(--ec-slate-900); font-variant-numeric: tabular-nums; }

.cost-list { margin: 0.25rem 0 0; padding-left: 1rem; color: var(--ec-slate-700); }

.cost-list li { margin: 0.375rem 0; font-variant-numeric: tabular-nums; }

/* Unit 68: provenance note on an install line whose band is DERIVED from a published scheme cap (cost.js
   INS_UPGRADE_NOTE) — the site's existing small-note style (0.75rem + slate-500, the same tokens .results-
   note uses, AA on the card in light and dark), so it reads as a footnote, not as another price. */
.cost-item-note { font-size: 0.75rem; color: var(--ec-slate-500); }

.results-note { margin: 0.5rem 0 0; font-size: 0.75rem; line-height: 1.4; color: var(--ec-slate-500); }

/* "Do this first" — short numbered lines, emerald number chips. */
#do-first { margin: 0.25rem 0 0; padding: 0; list-style: none; counter-reset: do-first; color: var(--ec-slate-700); }

#do-first li { display: flex; gap: 0.5rem; align-items: baseline; margin: 0.5rem 0; }

#do-first li::before {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 999px;
  background: var(--ec-emerald-50);
  color: var(--ec-accent);
  font-size: 0.75rem;
  font-weight: 600;
  content: counter(do-first);
  counter-increment: do-first;
}

/* Unit 37.4: one method line at the bottom of the results — link on screen, full URL in print. */

/* --- Unit 33 step 5: no-open-rebate line, renter note, share msg, sticky mobile total bar --- */

.no-open-note { margin: 1rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--ec-slate-600); }
.no-open-note a { color: var(--ec-accent); text-decoration: underline; }

.renter-note { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ec-slate-200); }
.renter-note-btn { background: none; border: 0; padding: 0; color: var(--ec-accent); font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.renter-note-body { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.55; color: var(--ec-slate-600); }
.renter-note-body p { margin: 0.375rem 0 0; }
.renter-note-body a { color: var(--ec-accent); text-decoration: underline; }

.share-msg { display: block; margin-top: 0.375rem; font-size: 0.75rem; line-height: 1.4; color: var(--ec-accent); text-align: center; }

/* Sticky total bar (Unit 36.2: white bar, emerald number): shown only <768px and only with
   .ec-visible (JS toggles it). */
#sticky-total { display: none; }
#sticky-total .num { color: var(--ec-accent); font-weight: 700; }
#sticky-total a { color: var(--ec-accent); text-decoration: underline; white-space: nowrap; }
/* Unit 41.5: "See my estimate" button + fold ("See the full breakdown") in the results card. */
#sticky-total span { flex: 1 1 auto; min-width: 0; }
#sticky-estimate { appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ec-accent); font: inherit; font-weight: 600; text-decoration: underline; white-space: nowrap; }
body.ec-bar-typing #sticky-total { display: none !important; }
.ec-fold { margin-top: 1.25rem; border-top: 1px solid var(--ec-slate-200); }
.ec-fold > summary { padding: 0.75rem 0 0.25rem; font-weight: 600; cursor: pointer; }

@media (max-width: 767px) {
  #sticky-total.ec-visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    min-height: 44px;
    padding: 0.5rem 1rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--ec-card);
    border-top: 1px solid var(--ec-slate-200);
    color: var(--ec-slate-800);
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  }
  body.ec-bar-on { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* --- Print: black-on-white summary; page chrome hidden --- */
