/* The Simuladores pages on the new design (G3 guide template): /energia/fixo-ou-indexado/ and /energia/solar/ —
   only what they add to /design/novo.css and /energia/g3.css: the unit field, the go button, the bars drawn to scale,
   the explanation cards, the readouts, the alert's options. Rendered by src/energia/simuladores/fixo-html.ts and
   solar-html.ts (shared parts: simuladores/g3.ts). */
.in--u { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; min-height: 44px; box-sizing: border-box; }
.in--u input { width: 7ch; border: 0; padding: 0; background: transparent; font: 400 16px/1.2 var(--font-ui); color: var(--ink); text-align: right; }
.in--u input:focus { outline: none; } .in--u:focus-within { outline: 2px solid var(--peach-ink); outline-offset: 2px; }
.in--u span { color: var(--ink-50); font-size: 15px; }
.g3go { margin-top: 14px; width: 100%; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: var(--ink-deep); color: #fff; font: 600 16px/1.2 var(--font-ui); cursor: pointer; }
.g3go:focus-visible { outline: 2px solid var(--peach-ink); outline-offset: 3px; }
.gsim .verd [data-r="verdito"] { font: 700 26px/1.1 var(--disp); }
.gsim .verd a { color: var(--ink-deep); font-weight: 600; text-underline-offset: 3px; display: inline-block; padding-block: 8px; }
.gsim .tool .hint a { color: var(--ink); }

/* the cheapest of each type, drawn to scale */
.g3bars { background: #fff; border: 1px solid var(--tint-10); border-radius: 22px; padding: 24px; display: grid; gap: 18px; }
.g3bars__h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.g3b .ep-grupos { display: grid; gap: 20px; }
.g3b .ep-grupo { display: grid; gap: 8px; }
.g3b .ep-grupo > span { font: 500 12px/1.3 var(--font-doc); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-50); }
.g3b .ep-grupo > div { display: grid; gap: 8px; }
.g3b .ep-barra { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-60); }
.g3b .ep-barra i { height: 14px; border-radius: var(--r-pill); background: var(--tint-10); overflow: hidden; }
.g3b .ep-barra i::before { content: ''; display: block; height: 100%; width: var(--w); border-radius: var(--r-pill); background: var(--ink-deep); }
.g3b .ep-barra--idx i::before { background: var(--peach-ink); }
.g3b .ep-barra b { font: 700 17px/1.2 var(--disp); color: var(--ink-deep); white-space: nowrap; min-width: 6.5em; text-align: right; }
.gsim .b2 .two > div:first-child { gap: 16px; }
.best .eh-n small, .best__p small { font: 400 15px/1 var(--font-ui); color: var(--ink-50); margin-left: 6px; }

.g3b .ep-omip { margin: 4px 0 0; display: grid; }
.g3b .ep-omip > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--tint-20); }
.g3b .ep-omip dt { font: 500 12px/1.3 var(--font-doc); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-50); }
.g3b .ep-omip dd { margin: 0; font: 600 16px var(--font-doc); color: var(--ink); } .g3b .ep-omip dd small { margin-left: 4px; font: 400 12px var(--font-doc); color: var(--ink-50); }


/* ── solar: the file way in, the year's readout, the day drawn, the three explanations ── */
.g3rot { font-size: 16px; color: var(--ink-deep); }
.g3fich { display: flex; align-items: center; gap: 10px; margin-top: 0; text-align: left; min-height: 52px; }
.g3fich .ep-ficheiro { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g3b .ep-remover { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; font: 400 15px var(--font-ui); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.g3b .ep-sub { margin-top: 4px; border-top: 0; padding-bottom: 0; }
.g3ano { margin-top: 14px; }
.g3ano__h { margin: 0; display: flex; justify-content: space-between; gap: 12px; }
.figure-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--tint-10); }
.figure-row__label, .verd .figure-row__label { font-size: 15px; color: var(--ink-60); }
.figure-row__value, .verd .figure-row__value { font: 700 18px/1.2 var(--disp); color: var(--ink-deep); white-space: nowrap; }
.verd .ep-txt, .best .ep-txt { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-60); }
.g3b .ep-sol { margin: 0; padding: 24px; border-radius: 22px; background: var(--cream); display: grid; gap: 8px; }
.g3b .ep-dia-sol { display: block; width: 100%; height: 200px; }
.g3b .ep-sol-p { fill: var(--peach-pale); } .g3b .ep-sol-a { fill: var(--band-barato); }
.g3b .ep-sol-c { stroke: var(--ink-deep); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.g3b .ep-sol .eh-dia__eixo { display: flex; justify-content: space-between; font: 500 12px/1 var(--font-doc); color: var(--ink-50); }
.g3b .ep-leg { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink); }
.g3b .ep-leg li { display: inline-flex; align-items: center; gap: 8px; }
.g3b .ep-leg i { width: 12px; height: 12px; border-radius: var(--r-pill); }
.g3b .ep-sw-p { background: var(--peach-pale); border: 1px solid var(--peach); } .g3b .ep-sw-a { background: var(--band-barato); }
.g3b .ep-sw-c { height: 3px !important; border-radius: 0 !important; background: var(--ink-deep); }
.g3b .ep-claro { display: block; margin-top: 6px; font: 500 12px/1.3 var(--font-doc); letter-spacing: .03em; color: var(--ink-50); }
.gsolar .b3 .g3exp { background: #fff; }
.g3b .ep-fonte { max-width: 65ch; }

@media (max-width: 640px) {
  .g3bars { padding: 18px 16px; }
  .g3b .ep-barra { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .g3b .ep-barra i { grid-column: 1 / -1; grid-row: 2; }
}

/* QA 2026-10-29 · E9: a result the inputs no longer match goes grey until «Fazer a conta» runs again */
[data-velho] { opacity: .45; transition: opacity .15s; }
