
.ere-page{background:#0d1b2a;color:#fff}.ere-hero{padding:65px 0 38px}.ere-hero h1{font-size:clamp(36px,5vw,65px);letter-spacing:-2px;line-height:1.13;max-width:940px}.ere-hero p{max-width:760px;color:#c5d3db}.ere-policy-note{background:#183327;border:1px solid #43775d;border-radius:12px;padding:20px 24px;margin:20px 0 30px}.ere-policy-note strong{color:#a4f3ba}.ere-policy-note a,.ere-small a{color:#99eba9;text-decoration:underline}.ere-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start;margin-bottom:55px}.ere-card{background:#152638;border:1px solid #314456;border-radius:15px;padding:30px}.ere-card h2{font-size:25px;letter-spacing:-.6px;margin:0 0 22px}.ere-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ere-form label{display:grid;gap:7px;color:#e1eaf0;font-size:14px;font-weight:650}.ere-form input,.ere-form select{background:#0d1b2a;border:1px solid #62788a;border-radius:7px;color:#fff;font:inherit;padding:12px;width:100%;min-width:0}.ere-form input:focus,.ere-form select:focus{outline:2px solid #89d99c;outline-offset:2px}.ere-form input:invalid{border-color:#efa08e}.ere-span{grid-column:1/-1}.ere-field-help{font-size:12px;color:#abc1ce;font-weight:400}.ere-tip{font-size:13px;color:#bbcbd5}.ere-small{font-size:13px;color:#b7cad5;line-height:1.7}.ere-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:20px}.ere-guide{padding:20px 0 75px}.ere-guide h2{font-size:32px}.ere-guide h3{font-size:21px;margin-top:30px}.ere-guide p{max-width:920px;color:#cedbe3}.ere-guide a:not(.button){color:#8be9a0;text-decoration:underline}.ere-error{color:#ffb8a9;min-height:18px}.ere-page .header .desktop-nav a[aria-current=page]{color:#8de9a0}@media(max-width:900px){.ere-layout{grid-template-columns:1fr}}@media(max-width:600px){.ere-form{grid-template-columns:1fr}.ere-card{padding:20px}.ere-hero{padding-top:45px}.ere-hero h1{letter-spacing:-1px}.ere-page main.wrap{width:calc(100% - 36px)}}

.ere-flow {
  --flow-columns: minmax(0,1fr) 34px minmax(0,1fr) 34px minmax(0,1fr) 34px minmax(0,1fr);
  margin:18px 0 34px;
  padding:clamp(14px,3vw,28px);
  background:#142939;
  border:1px solid #315365;
  border-radius:14px;
}
.ere-flow h2 { font-size:25px; }
.ere-flow-top,.ere-flow-grid { display:grid; grid-template-columns:var(--flow-columns); }
.ere-flow-top { margin-bottom:30px; }
.ere-flow-node {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:0;
  padding:12px 6px;
  text-align:center;
  overflow-wrap:anywhere;
  background:#0c1e2e;
  border:1px solid #426074;
  border-radius:10px;
}
.ere-flow-node svg {
  width:30px;
  height:30px;
  fill:none;
  stroke:#a4f3ba;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ere-flow-node > strong { font-size:clamp(16px,1.8vw,20px); }
.ere-flow-node small { color:#dbe8ef; font-size:15px; line-height:1.3; }
.ere-flow-node [data-output] {
  color:#a4f3ba;
  font-size:clamp(19px,2.2vw,25px);
  font-weight:750;
  font-variant-numeric:tabular-nums;
}
.ere-flow-solar {
  position:relative;
  grid-column:3;
  align-self:end;
  border-color:#a78c4e;
  background:#30291d;
}
.ere-flow-solar svg { stroke:#ffd387; }
.ere-flow-comparison {
  grid-column:4/-1;
  margin-left:12px;
  padding:12px 16px;
  background:#183327;
  border:1px solid #43775d;
  border-radius:10px;
}
.ere-flow-comparison h3 { margin:0 0 6px; font-size:15px; }
.ere-flow-figures { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ere-flow-figures span { display:block; font-size:12px; color:#c5d3db; }
.ere-flow-figures strong {
  display:block;
  font-size:clamp(22px,3.6vw,42px);
  line-height:1.1;
  letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.ere-flow-figures > :last-child strong { color:#a4f3ba; }
.ere-flow-grid-link { display:grid; align-content:center; gap:12px; }
.ere-flow-line,.ere-flow-solar::after {
  --flow-color:#a4f3ba;
  --flow-angle:90deg;
  --flow-x:8px;
  --flow-y:0px;
  position:relative;
  align-self:center;
  display:block;
  width:100%;
  height:3px;
  background-image:repeating-linear-gradient(var(--flow-angle),var(--flow-color) 0 4px,transparent 4px 8px);
  animation:ere-energy-flow .6s linear infinite;
}
.ere-flow-line::after,.ere-flow-solar::before {
  content:"";
  position:absolute;
  right:0;
  top:-3px;
  width:0;
  height:0;
  border:4px solid transparent;
  border-left-color:var(--flow-color);
}
.ere-flow-export-line { --flow-color:#ffb68d; transform:rotate(180deg); }
.ere-flow-solar::after {
  content:"";
  position:absolute;
  --flow-color:#ffd387;
  --flow-angle:180deg;
  --flow-x:0px;
  --flow-y:8px;
  left:calc(50% - 1px);
  top:100%;
  width:3px;
  height:28px;
}
.ere-flow-solar::before {
  --flow-color:#ffd387;
  z-index:1;
  top:calc(100% + 23px);
  left:calc(50% - 3.5px);
  transform:rotate(90deg);
}
.ere-flow-no-solar .ere-flow-solar,.ere-flow-no-import .ere-flow-import-line,
.ere-flow-no-export .ere-flow-export-line,.ere-flow-no-charging :is(.ere-flow-home-line,.ere-flow-car-line) {
  opacity:.35;
  animation:none;
}
.ere-flow-no-solar .ere-flow-solar::after { animation:none; }
@keyframes ere-energy-flow { to { background-position:var(--flow-x) var(--flow-y); } }
@media(max-width:620px) {
  .ere-flow { --flow-columns:minmax(0,1fr) 14px minmax(0,1fr) 14px minmax(0,1fr) 14px minmax(0,1fr); }
  .ere-flow-grid { grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr); row-gap:15px; }
  .ere-flow-grid-link { grid-area:1 / 2; }
  .ere-flow-grid > .ere-flow-home-line {
    grid-area:2 / 3;
    justify-self:center;
    width:24px;
    margin:-3px 0;
    transform:rotate(90deg);
  }
  .ere-flow-mid { grid-area:3 / 3; }
  .ere-flow-car-line { grid-area:3 / 2; transform:rotate(180deg); }
  .ere-flow-car { grid-area:3 / 1; }
  .ere-flow-top { grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr); }
  .ere-flow-comparison { grid-area:1 / 1 / 2 / -1; margin:0 0 12px; padding:9px; }
  .ere-flow-solar { grid-area:2 / 3; margin:0; }
  .ere-flow-solar::after { left:calc(50% - 1px); }
  .ere-flow-solar::before { left:calc(50% - 3.5px); }
  .ere-flow-node svg { width:23px; height:23px; }
  .ere-flow-figures { gap:7px; }
}
@media(prefers-reduced-motion:reduce) {
  .ere-flow-line,.ere-flow-solar::after { animation:none; }
}

.ere-rule{margin-bottom:22px}
.ere-rule h3{margin:0;font-size:19px}
.ere-rule p{margin:4px 0 10px;color:#c5d3db;font-size:14px}
.ere-rule-values{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin-bottom:7px}
.ere-rule-values strong{font-size:24px}
.ere-rule-values span{color:#a4f3ba;font-size:28px;font-weight:700;overflow-wrap:anywhere}
.ere-bar{height:12px;overflow:hidden;border-radius:6px;background:#0d1b2a}
.ere-bar span{display:block;width:0;height:100%;background:#a5b9b1}
#ere-new-bar{background:#62d485}
.ere-impact{background:var(--navy);border:1px solid var(--line);border-inline-start:3px solid var(--green);border-radius:10px;padding:14px 16px;margin-bottom:18px}
.ere-impact-share{margin:0 0 6px;color:#a4f3ba;font-size:18px}
.ere-impact-warning{background:#30251d;border-color:#8a613e;border-inline-start-color:#f5ad64}
.ere-impact-warning .ere-impact-share,.ere-impact-warning [data-output="difference"]{color:#ffd2a5}
.ere-impact-explanation{margin:10px 0 0}
.ere-impact [data-output="difference"]{font-size:24px;overflow-wrap:anywhere}
.ere-impact dl,.ere-breakdown{margin:0}
.ere-impact dl div,.ere-breakdown div{display:flex;justify-content:space-between;gap:8px 12px;padding:4px 0}
.ere-impact dd,.ere-breakdown dd{margin:0;text-align:right}
.ere-breakdown div:last-child{border-top:1px solid #3d5060;padding-top:8px;margin-top:4px}

.ere-presets { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ere-presets > span { width:100%; color:#c5d3db; font-size:13px; }
.ere-presets button {
  padding:7px 11px;
  min-height:44px;
  border:1px solid #62788a;
  border-radius:8px;
  background:#0d1b2a;
  color:#e1eaf0;
  font:inherit;
  font-size:15px;
  font-weight:650;
  cursor:pointer;
}
.ere-presets button[aria-pressed="true"] { background:#a4f3ba; border-color:#a4f3ba; color:#0d1b2a; }
.ere-presets button:focus-visible { outline:2px solid #a4f3ba; outline-offset:2px; }
.ere-slider-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.ere-slider-heading > span { font-size:16px; line-height:1.4; }
.ere-slider-heading output { flex:none; font-size:clamp(19px,2.2vw,24px); font-weight:750; color:#a4f3ba; font-variant-numeric:tabular-nums; }
.ere-form input[type="range"] {
  appearance:none;
  border:0;
  margin:0;
  padding:0;
  height:44px;
  background:transparent;
  cursor:pointer;
}
.ere-form input[type="range"]::-webkit-slider-runnable-track {
  height:6px;
  border-radius:8px;
  background:linear-gradient(to right,#62d485 var(--ere-range-fill,0%),#536b7d var(--ere-range-fill,0%));
}
.ere-form input[type="range"]::-webkit-slider-thumb {
  appearance:none;
  width:22px;
  height:22px;
  margin-top:-8px;
  border:2px solid #a4f3ba;
  border-radius:50%;
  background:#247648;
}
.ere-form input[type="range"]::-moz-range-track { height:6px; border-radius:8px; background:#536b7d; }
.ere-form input[type="range"]::-moz-range-progress { height:6px; border-radius:8px; background:#62d485; }
.ere-form input[type="range"]::-moz-range-thumb { width:18px; height:18px; border:2px solid #a4f3ba; border-radius:50%; background:#247648; }
@media(max-width:600px) {
  .ere-presets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ere-presets > span { grid-column:1/-1; }
  .ere-slider { gap:4px; }
}

.ere-mobile-totals { display:none; }
.ere-flow > summary,.ere-outcome > summary { font-size:25px; font-weight:700; margin-bottom:16px; cursor:pointer; }
.ere-options > summary { cursor:pointer; font-weight:650; margin-bottom:8px; }
@media(max-width:620px) {
  .ere-page .ere-hero { padding:24px 0 12px; }
  .ere-page .ere-hero h1 { font-size:clamp(24px,6vw,32px); margin:4px 0; }
  .ere-page .ere-hero p { margin:4px 0; }
  .ere-page .ere-policy-note { margin:8px 0; padding:8px 12px; font-size:13px; line-height:1.35; }
  .ere-page .ere-policy-note p { margin:4px 0; }
  .ere-page .ere-flow { margin:8px 0; padding:0 12px; }
  .ere-page .ere-layout { gap:8px; margin-bottom:16px; }
  .ere-page .ere-card { padding:12px; }
  .ere-page .ere-card h2 { font-size:19px; margin:0 0 8px; }
  .ere-flow > summary,.ere-outcome > summary { font-size:16px; margin:0; }
  .ere-flow > summary,.ere-options > summary { min-height:44px; align-content:center; }
  .ere-flow[open] > summary,.ere-outcome[open] > summary { margin-bottom:10px; }
  .ere-page .ere-form { gap:7px; }
  .ere-page .ere-slider { gap:0; }
  .ere-slider-heading > span { font-size:14px; line-height:1.25; }
  .ere-slider-heading output { font-size:18px; white-space:nowrap; }
  .ere-slider > .ere-field-help {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
  }
  .ere-presets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
  .ere-presets button { padding:3px 5px; font-size:13px; line-height:1.15; }
  .ere-mobile-totals {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
    margin:0;
  }
  .ere-mobile-totals > div { padding:7px 5px; border-radius:8px; background:#0d1b2a; }
  .ere-mobile-totals dt { color:#c5d3db; font-size:12px; line-height:1.2; }
  .ere-mobile-totals dd { margin:4px 0 0; font-size:clamp(16px,4.4vw,21px); font-weight:750; line-height:1.15; overflow-wrap:anywhere; }
  .ere-mobile-totals > :nth-child(2) dd { color:#a4f3ba; }
  .ere-mobile-totals > :last-child dd { color:#ffd2a5; }
  .ere-options > summary { margin:0; font-size:14px; }
  .ere-page .ere-tip { margin:4px 0; line-height:1.3; }
  .ere-error:empty { display:none; }
}

.ere-step-inputs { display:contents; }
.ere-step-results,.ere-step-nav { display:none; }
@media(max-width:620px) {
  .ere-step-results,.ere-step-nav { grid-column:1/-1; }
  .ere-show-results .ere-step-inputs { display:none; }
  .ere-show-results .ere-step-results { display:block; }
  .ere-step-results h3 { margin:0 0 8px; font-size:16px; }
  #ere-step-input,#ere-step-result { scroll-margin-top:100px; }
  .ere-step-nav { display:flex; justify-content:flex-end; margin-top:4px; }
  .ere-step-nav button {
    min-height:44px;
    border:1px solid #a4f3ba;
    border-radius:8px;
    padding:6px 16px;
    background:#a4f3ba;
    color:#0d1b2a;
    font:inherit;
    font-weight:700;
    cursor:pointer;
  }
  .ere-step-nav #ere-step-back { display:none; }
  .ere-show-results .ere-step-nav { justify-content:flex-start; }
  .ere-show-results .ere-step-nav #ere-step-back { display:block; background:#0d1b2a; color:#a4f3ba; }
  .ere-show-results .ere-step-nav #ere-step-next { display:none; }
}
