/* Simulator Home Lab: the same frame as Calculator rapid and Auditor
   (static/home-lab-3/app.css) — brand blue, grey page with a white card,
   one header pattern with numbered pill steps. Partner pages keep their own
   accent (body.is-partner is not targeted). Content of the steps unchanged. */
body.lc-simulator {
  --brand: #1d4ed8;
  --brand-strong: #1e40af;
  --brand-soft: #e9efff;
  --navy: #0b1526;
  --navy-soft: #eef2f7;
  --ink: #0b1526;
  --muted: #677487;
  --line: #e4e9f0;
  --soft: #f5f7fa;
  --page-bg: #f5f7fa;
  background: var(--page-bg);
}

/* ------------------------------------------------------------- header */
body.lc-simulator .ed-header {
  height: auto;
  min-height: 56px;
  padding: 10px max(16px, calc((100vw - 1160px) / 2 + 16px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}
body.lc-simulator .ed-brand { gap: 10px; font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
body.lc-simulator .ed-brand small { display: none; }
body.lc-simulator .ed-mark {
  width: 34px; height: 34px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 13px; letter-spacing: .02em; font-weight: 700;
}
body.lc-simulator .ed-progress { justify-content: center; }
body.lc-simulator .ed-progress-current { display: none; }
body.lc-simulator .ed-progress-history { gap: 4px; justify-content: center; }
body.lc-simulator .ed-progress-history button {
  min-height: 0; gap: 8px; padding: 10px 12px; border-radius: 999px;
  color: var(--muted); font-weight: 600; background: transparent;
}
body.lc-simulator .ed-progress-history button span { font-size: 14px; font-weight: 600; }
body.lc-simulator .ed-progress-history button b {
  width: 24px; height: 24px; border: 1.5px solid currentColor; background: transparent;
  color: inherit; font-size: 12px; font-weight: 700;
}
body.lc-simulator .ed-progress-history button.is-reached { color: var(--brand); }
body.lc-simulator .ed-progress-history button.is-reached b { border-color: currentColor; background: transparent; color: inherit; }
body.lc-simulator .ed-progress-history button.is-reached:hover { background: var(--navy-soft); color: var(--brand-strong); }
body.lc-simulator .ed-progress-history button.is-current { background: var(--navy-soft); color: var(--ink); }
body.lc-simulator .ed-progress-history button.is-current b { border-color: var(--brand); background: var(--brand); color: #fff; }
body.lc-simulator .ed-progress-history button:disabled { opacity: .45; }
body.lc-simulator .ed-header-actions { gap: 8px; }
body.lc-simulator .ed-new-house,
body.lc-simulator .ed-account-save,
body.lc-simulator .ed-account-open {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600;
}

/* ------------------------------------------- summary strip (results) */
/* The strip shows engine results; before the base data is confirmed they
   would be results of the example values, so it stays hidden until then. */
body.lc-simulator:has(#edHouseValuesConfirmed:not(:checked)) .ed-baseline-bar:not(.ed-manual-live-bar) { display: none !important; }
body.lc-simulator .ed-baseline-bar { top: 57px; background: color-mix(in srgb, #fff 92%, transparent); border-bottom: 1px solid var(--line); }

/* ------------------------------------------------- page and its card */
body.lc-simulator .ed-shell { background: var(--page-bg); padding: 20px 16px 40px; }
body.lc-simulator .ed-page.is-active > .ed-form-page,
body.lc-simulator .ed-page.is-active > .ed-copy,
body.lc-simulator .ed-page.is-active > .ed-run-card,
body.lc-simulator .ed-page.is-active > .ed-report {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(11, 21, 38, .04), 0 18px 40px -28px rgba(11, 21, 38, .28);
  padding: clamp(18px, 3vw, 36px);
}
body.lc-simulator .ed-page { padding-top: 8px; }
body.lc-simulator .ed-eyebrow { color: var(--brand); }
body.lc-simulator .ed-page-title { color: var(--ink); }

/* ---------------------------------------------------------- phones */
@media (max-width: 720px) {
  body.lc-simulator .ed-header { padding: 8px 12px; gap: 8px; }
  body.lc-simulator .ed-brand > span:last-child { display: none; }
  body.lc-simulator .ed-progress-history button { padding: 8px 6px; gap: 6px; }
  body.lc-simulator .ed-progress-history button:not(.is-current) span { display: none; }
  body.lc-simulator .ed-progress-history button.is-current span { display: inline; font-size: 13px; }
  body.lc-simulator .ed-new-house { padding: 6px 12px; font-size: 13px; }
  body.lc-simulator .ed-shell { padding: 12px 10px 28px; }
  body.lc-simulator .ed-page.is-active > .ed-form-page,
  body.lc-simulator .ed-page.is-active > .ed-copy,
  body.lc-simulator .ed-page.is-active > .ed-run-card,
  body.lc-simulator .ed-page.is-active > .ed-report { border-radius: 18px; padding: 18px 14px; }
}
/* With "Salvează draft" next to "Casă nouă" six labelled steps no longer
   fit: only the current step keeps its label (same as the Auditor on
   narrower screens). */
body.lc-simulator .ed-progress { min-width: 0; overflow: hidden; }
@media (max-width: 1560px) {
  body.lc-simulator .ed-progress-history button:not(.is-current) span { display: none; }
}
@media (max-width: 920px) and (min-width: 721px) {
  body.lc-simulator .ed-progress-history button:not(.is-current) span { display: none; }
}
/* ---------------------------------------- one project across the tools */
body.lc-simulator.lc-sim-gated .ed-page[data-page="house"] .ed-form-page > :not(.lc-sim-gate) { display: none !important; }
body.lc-simulator.lc-sim-gated .ed-page[data-page="house"] > :not(.ed-form-page) { display: none !important; }
body.lc-simulator .lc-sim-gate { display: grid; gap: 12px; max-width: 720px; }
body.lc-simulator .lc-sim-gate h3 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
body.lc-simulator .lc-sim-gate p { margin: 0; color: #3a4658; font-size: 16px; line-height: 1.55; }
body.lc-simulator .lc-sim-gate .ed-eyebrow { color: var(--brand); }
body.lc-simulator .lc-sim-gate small { color: var(--muted); font-size: 13px; }
body.lc-simulator .lc-sim-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
body.lc-simulator .lc-sim-gate-actions .ed-primary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 700; }
body.lc-simulator .lc-sim-gate-actions .ed-secondary { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
body.lc-simulator [data-handoff-locked] { opacity: .72; pointer-events: none; }
body.lc-simulator [data-handoff-locked] input, body.lc-simulator [data-handoff-locked] select { background: var(--soft); }
body.lc-simulator .ed-handoff-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); font-size: 14px; line-height: 1.5; }
body.lc-simulator .ed-handoff-note a { color: var(--brand); font-weight: 650; white-space: nowrap; }
body.lc-simulator .ed-next-step { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; }
body.lc-simulator .ed-next-step:hover { border-color: var(--brand); }
body.lc-simulator .ed-next-step span { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 750; }
body.lc-simulator .ed-next-step small { color: var(--muted); font-size: 13px; line-height: 1.45; }

body.lc-simulator .ed-handoff-compare { max-width: 1192px; margin: 0 auto 12px; padding: 12px 16px; border: 1px solid #f1d9a6; border-radius: 14px; background: #fff8e8; color: var(--ink); font-size: 14px; line-height: 1.5; }
body.lc-simulator .ed-handoff-compare.is-same { border-color: #bfe3cc; background: #f1faf4; }
body.lc-simulator .ed-handoff-compare p { margin: 0; }
body.lc-simulator .ed-handoff-compare small { display: block; margin-top: 2px; color: #3a4658; font-size: 13px; }
body.lc-simulator .ed-handoff-compare .ed-link { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--brand); font-weight: 650; cursor: pointer; }

@media print {
  body.lc-simulator .ed-next-step, body.lc-simulator .ed-handoff-note, body.lc-simulator .ed-handoff-compare { display: none !important; }
  body.lc-simulator, body.lc-simulator .ed-shell { background: #fff; }
  body.lc-simulator .ed-page.is-active > * { box-shadow: none; border: 0; padding: 0; }
}

/* ======================================================================
   Same visual language as Calculator rapid and Auditor (home-lab-3 and
   auditor/app.css): blue pill actions, label-above fields with bordered
   controls, white section cards, the calculators' footer. Partner pages
   (body.is-partner) keep their own look.
   ====================================================================== */
body.lc-simulator {
  --cta: var(--brand);
  --cta-strong: var(--brand-strong);
  --navy: #0b1526;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
body.lc-simulator .ed-progress-history button.is-reached b { border-color: currentColor; background: transparent; color: inherit; }

/* The step sits on the grey page, like the other two calculators. */
body.lc-simulator .ed-page[data-page] { background: transparent; }

/* Actions: one blue pill forward, a quiet pill back. */
body.lc-simulator .ed-primary,
body.lc-simulator .ed-page[data-page] .ed-actions .ed-primary {
  min-height: 50px; padding: 0 24px; border: 1px solid var(--brand); border-radius: 999px;
  background: var(--brand); color: #fff; font: 650 15.5px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0; text-transform: none; box-shadow: none;
}
body.lc-simulator .ed-primary:hover,
body.lc-simulator .ed-page[data-page] .ed-actions .ed-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); box-shadow: none; }
body.lc-simulator .ed-back,
body.lc-simulator .ed-page[data-page] .ed-actions .ed-back {
  min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font: 600 14.5px/1.2 Inter, system-ui, sans-serif; letter-spacing: 0;
}
body.lc-simulator .ed-back:hover { background: var(--soft); }

/* Headings of a step: the same scale as "Spune-ne despre casă" / "Proiect". */
body.lc-simulator .ed-page[data-page] .ed-form-page > h2,
body.lc-simulator .ed-page[data-page] .ed-copy > h2 {
  font-family: Inter, system-ui, sans-serif; font-size: clamp(24px, 2.4vw, 30px); font-weight: 750;
  letter-spacing: -.02em; line-height: 1.15; color: var(--ink);
}
body.lc-simulator .ed-page[data-page] .ed-form-page > .ed-hint { color: #3a4658; font-size: 15px; line-height: 1.5; max-width: 72ch; }
body.lc-simulator .ed-page[data-page] .ed-eyebrow { color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .12em; }

/* Fields: label above, bordered control (the Auditor's field). */
body.lc-simulator .ed-page[data-page] .ed-field {
  gap: 6px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
body.lc-simulator .ed-page[data-page] .ed-field:focus-within { border: 0; box-shadow: none; }
body.lc-simulator .ed-page[data-page] .ed-field > span {
  color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none;
}
body.lc-simulator .ed-page[data-page] .ed-field > span small { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
body.lc-simulator .ed-page[data-page] .ed-field > div,
body.lc-simulator .ed-page[data-page] .ed-field > select,
body.lc-simulator .ed-page[data-page] .ed-field > input {
  box-sizing: border-box; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
body.lc-simulator .ed-page[data-page] .ed-field > div:focus-within,
body.lc-simulator .ed-page[data-page] .ed-field > select:focus,
body.lc-simulator .ed-page[data-page] .ed-field > input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); outline: none;
}
body.lc-simulator .ed-page[data-page] .ed-field input,
body.lc-simulator .ed-page[data-page] .ed-field select {
  color: var(--ink); font-size: 15px; font-weight: 500;
}
body.lc-simulator .ed-page[data-page] .ed-field > div > input,
body.lc-simulator .ed-page[data-page] .ed-field > div > select { min-height: 42px; }
body.lc-simulator .ed-page[data-page] .ed-field em { color: var(--muted); font-size: 12.5px; }
body.lc-simulator .ed-page[data-page] .ed-field .ed-field-help { color: var(--muted); font-size: 12px; line-height: 1.4; }
body.lc-simulator .ed-page[data-page] .ed-grid { gap: 16px 18px; }

/* Section cards: white with a line, as the Auditor's sections. */
body.lc-simulator .ed-page[data-page] .ed-domain-card,
body.lc-simulator .ed-page[data-page] .ed-subsection.ed-domain-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: none;
}
body.lc-simulator .ed-page[data-page] .ed-domain-card .ed-field { background: transparent; }

/* The calculators' footer (home-lab-3/app.css .hl3-footer). */
body.lc-simulator .hl3-footer { border-top: 1px solid var(--line); margin-top: 8px; background: var(--page-bg); }
body.lc-simulator .hl3-footer-inner { max-width: 1160px; margin: 0 auto; padding: 18px 16px 100px; display: grid; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
body.lc-simulator .hl3-footer-inner p { margin: 0; }
body.lc-simulator .hl3-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
body.lc-simulator .hl3-footer a,
body.lc-simulator .hl3-footer button { color: var(--muted); font: inherit; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
@media print { body.lc-simulator .hl3-footer nav { display: none; } }

/* Map of the location: a reference, not the whole page. */
body.lc-simulator .ed-page[data-page="house"] .ed-location-map-svg { max-height: 460px; }

/* Every step card has the same width. */
body.lc-simulator .ed-page.is-active > .ed-form-page,
body.lc-simulator .ed-page.is-active > .ed-copy,
body.lc-simulator .ed-page.is-active > .ed-run-card,
body.lc-simulator .ed-page.is-active > .ed-report { box-sizing: border-box; width: min(1180px, 100%); max-width: 1180px; }

/* Result strip: values that do not run into each other. */
@media (min-width: 921px) {
  body.lc-simulator .ed-baseline-inner { gap: 16px; }
  body.lc-simulator .ed-baseline-energy-group { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  body.lc-simulator .ed-baseline-energy-item { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 0; }
  body.lc-simulator .ed-baseline-energy-item abbr { font-size: 11px; color: var(--muted); }
  body.lc-simulator .ed-baseline-energy-item strong { font-size: 13.5px; justify-self: auto; color: var(--ink); }
}
@media (min-width: 921px) {
  body.lc-simulator .ed-baseline-energy-group { flex-wrap: nowrap; }
  body.lc-simulator #edBaselineStatus, body.lc-simulator #edManualLiveStatus { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
}
body.lc-simulator .ed-goal-actions { flex-wrap: wrap; gap: 10px; }
body.lc-simulator .ed-goal-actions .ed-goal-run { flex: 1 1 auto; white-space: nowrap; justify-content: center; }

/* Phones: steps on their own row under the logo, as in the Auditor. */
@media (max-width: 720px) {
  body.lc-simulator .ed-header {
    height: auto; overflow: visible; padding: 8px 12px; row-gap: 6px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand . actions" "steps steps steps";
  }
  body.lc-simulator .ed-brand { grid-area: brand; }
  body.lc-simulator .ed-header-actions { grid-area: actions; }
  body.lc-simulator .ed-progress { grid-area: steps; max-width: none; justify-content: center; overflow: visible; }
  body.lc-simulator .ed-progress-history { justify-content: center; overflow: visible; flex-wrap: nowrap; }
  body.lc-simulator .ed-progress-history button { padding: 6px 7px; }
  /* The result strip scrolls with the page under a two-row header. */
  body.lc-simulator .ed-baseline-bar { position: static; top: auto; }
}
body.lc-simulator .ed-progress-history button.is-current b { border-color: var(--brand); background: var(--brand); color: #fff; }

/* ------------------------------------------------------------- TEO
   The colours, shapes and spacing of the rest of the site (orange stays in
   the TEO symbol only). One column, read like a page: the house, what you
   want, the money, the plan in steps, the next steps. */
body.lc-teo .lc-tool-intro h1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.lc-teo .lc-tool-intro h1 .lc-tool-tile { --lc-tool-size: 48px; }
body.lc-teo .lc-tool-intro h1 small { font-size: .5em; font-weight: 650; color: var(--muted); letter-spacing: 0; }
body.lc-teo .lc-tool-intro a { color: var(--brand); font-weight: 600; }
body.lc-teo .ed-goal-page .ed-form-page.ed-goal-control-center { width: min(860px, calc(100vw - 32px)); grid-template-columns: minmax(0, 1fr); gap: 16px; }
body.lc-teo .ed-goal-teo-column { gap: 16px; }
/* Out of the page: the technical requirement gauges, the search counters and
   the long robustness note (the plan already says what matters). */
body.lc-teo .ed-nzeb-status-panel,
body.lc-teo .ed-teo-steps,
body.lc-teo .ed-teo-stats,
body.lc-teo .ed-teo-stats-note,
body.lc-teo #edTeoWhy { display: none !important; }
body.lc-teo .ed-teo-control-panel > header { margin-bottom: 0; }
