/* The comparator family on the new design (group B: empresas, tarifa regulada, critérios, E-REDES, tarifa social):
   only what they add to /design/novo.css and /energia/g3.css. components.css and energia.css load before novo.css for
   the comparator's own parts (the band, the inputs, the ranking, the lead form, the offer card); here they take the new
   look: the pair «inputs + answer» as /energia/comparar/ (CV1), the band as the answer card (no longer sticky), each
   section as a G3 band. Rendered by src/energia/render.ts paginaG3Cmp. */
.gcmp { font: 400 16px/1.5 var(--font-ui); color: var(--ink); --ink-60: rgba(41, 18, 16, 0.72); }

/* ── 1 · the pair: inputs on the left, the answer card on the right ── */
.g3cmp__pi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.g3cmp__l { display: grid; gap: 20px; min-width: 0; }
.g3cmp__h .g2t { gap: 20px; }
.gcmp .ehero__h1 { margin: 0; font: 700 clamp(38px, 4.4vw, 60px)/1.04 var(--disp); letter-spacing: -.02em; color: var(--ink-deep); text-wrap: balance; }
.gcmp .ehero__lede { margin: 0; max-width: 60ch; }
.gcmp .gmeta { align-items: flex-start; line-height: 1.5; } .gcmp .gmeta .dot { margin-top: 3px; }
.g3cmp__topo { display: grid; gap: 12px; max-width: 65ch; }
.g3cmp__topo > * { margin: 0; }
.gcmp .ehero__resposta { padding: 18px 20px; border-radius: 18px; background: var(--peach-pale); font-size: 17px; line-height: 1.5; color: var(--ink-deep); }
.gcmp .ehero__veredicto { font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--ink-deep); }
.gcmp .ehero__veredicto--ja { padding: 16px 18px; border-radius: 18px; background: #fff; }
.gcmp .ereg__ja { justify-self: start; margin: 0; padding: 0 20px; border: 1.5px solid var(--ink-deep); background: transparent; color: var(--ink-deep); font: 600 15px/1.2 var(--font-ui); }
.gcmp .ereg__ja[aria-pressed="true"] { background: var(--ink-deep); color: #fff; }

/* the inputs as the tool card */
.gcmp .eperfil.tool { padding: 24px 26px; gap: 0; }
.gcmp .eperfil__row { border-top-color: var(--tint-10); padding: 12px 0; }
.gcmp .eperfil__k { font-weight: 500; color: var(--ink-deep); }
.gcmp .eseg { border-color: var(--tint-20); }
.gcmp .eseg__o, .gcmp .echip__face, .gcmp .eopt__face { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; }
.gcmp .echip__face { padding: 0 14px; border-color: var(--tint-20); background: #fff; font-size: 14.5px; }
.gcmp .eperfil__sel { min-height: 40px; border-color: var(--tint-20); background: #fff; font-size: 15px; }
.gcmp .eperfil__mes input { min-height: 40px; border-color: var(--tint-20); background: #fff; font-size: 15px; }
.gcmp .eperfil__range { min-height: 32px; }
.gcmp .eperfil__eco { font-size: 14px; line-height: 1.5; }
.gcmp .eperfil__up { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--ink-deep); background: transparent; font-weight: 600; color: var(--ink-deep); }
.gcmp .eperfil__up--quiet { min-height: 44px; border: 0; font-weight: 400; color: var(--ink-60); }
.gcmp .eperfil select:focus-visible, .gcmp .eperfil input:focus-visible, .gcmp .eperfil a:focus-visible, .gcmp .eseg__o:focus-visible { outline: 2px solid var(--peach-ink); outline-offset: 2px; }

/* the answer card: the old band, in place, not sticky */
.g3cmp__ans { display: grid; gap: 12px; min-width: 0; position: sticky; top: 96px; }
.gcmp .eband { position: static; background: #fff; border-radius: 28px; padding: 26px 28px; box-shadow: 0 30px 70px rgba(41,18,16,.10); }
.gcmp .eband__in { max-width: none; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.gcmp .eband__eyebrow { font-size: 12px; letter-spacing: .07em; color: var(--ink-50); }
.gcmp .eband__lead { margin: 8px 0 6px; }
.gcmp .eband__preco { font: 700 48px/1 var(--disp); letter-spacing: -.01em; color: var(--ink-deep); }
.gcmp .eband__lead small { font-size: 15px; color: var(--ink-50); }
.gcmp .eband__quem { white-space: normal; font-size: 15px; color: var(--ink-60); }
.gcmp .eband__salta, .gcmp .eband__com { font-size: 14.5px; line-height: 1.45; }
.gcmp .eband__poupa { font-size: 14.5px; padding: 4px 12px; }
.gcmp .eband__cta { min-height: 52px; margin-top: 14px; font: 600 16px/1.2 var(--font-ui); }
.gcmp .eband__cta:focus-visible { outline: 2px solid var(--peach-ink); outline-offset: 3px; }
.gcmp .eband__sub { font-size: 14px; line-height: 1.45; }
.gcmp .eband__chart { padding-top: 6px; border-top: 1px solid var(--tint-10); }
.gcmp .echart { max-height: 170px; }
.gcmp .etrust { font-size: 12.5px; line-height: 1.5; }
.gcmp .etrust a, .gcmp .etrust__btn { display: inline-flex; align-items: center; min-height: 32px; }
.gcmp .epartilha { margin: 0; font-size: 15px; }

/* ── the sections: each a G3 band, the old section element inside (energia.js redraws it in place) ── */
.gcmp .ebody__main { display: block; }
.g3cmp__b .esec, .gcmp .ebody__main > .esec { background: transparent; box-shadow: none; border-radius: 0; padding: 0; margin: 0; max-width: 920px; display: grid; gap: 14px; scroll-margin-top: 96px; }
.gcmp .ebody__main > .esec { max-width: 1180px; margin: 0 auto; padding: 40px clamp(18px, 4vw, 40px) 0; }
.gcmp .ebody__main > .erecibo { border: 0; }
.gcmp .esec > * { margin: 0; }
.gcmp .esec__eyebrow { font: 500 12px/1 var(--font-doc); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-50); }
.gcmp .esec__h { margin-top: -4px; font: 700 clamp(28px, 2.8vw, 40px)/1.1 var(--disp); letter-spacing: -.015em; color: var(--ink-deep); text-wrap: balance; }
.gcmp .esec__h3 { margin-top: 14px; font: 700 22px/1.2 var(--disp); color: var(--ink-deep); }
.gcmp .esec__nota { font-size: 15px; line-height: 1.5; color: var(--ink-60); max-width: 65ch; }
.gcmp .esec p { max-width: 65ch; font-size: 17px; line-height: 1.6; }
.gcmp .esec .esec__nota { font-size: 15px; }
.gcmp .esec__vazio { padding: 16px 18px; border-radius: 16px; }

/* the ranking, as the G3 offer list */
.gcmp .erank { border-radius: 20px; overflow: hidden; border: 1px solid var(--tint-10); background: #fff; }
.gcmp .erow { padding: 16px 20px; border-top: 1px solid var(--tint-10); gap: 4px 12px; grid-template-columns: 28px minmax(0, 1fr) auto; }
.gcmp .erow:first-child { border-top: 0; }
.gcmp .erow__n { font: 600 14px/1.4 var(--font-doc); color: var(--ink-50); }
.gcmp .erow__com { font-weight: 600; color: var(--ink-deep); }
.gcmp .erow__p { font: 700 19px/1.2 var(--disp); color: var(--ink-deep); }
.gcmp .erow__m { font-size: 13.5px; }
.gcmp .erow--regulada { margin: 0; border-radius: 0; padding: 16px 20px; border-top: 1px solid var(--tint-10); }
.gcmp .erow__links a { display: inline-flex; align-items: center; min-height: 32px; }
.gcmp .etag { font-size: 12.5px; padding: 2px 9px; }
.gcmp .epills { gap: 8px; margin: 0; }
.gcmp .epill { min-height: 40px; padding: 0 14px; border-color: var(--tint-20); background: #fff; font-size: 14px; }
.gcmp .etiles { margin: 0; gap: 12px; }
.gcmp .etile { background: #fff; border: 1px solid var(--tint-10); border-radius: 18px; padding: 16px 18px; gap: 4px; }
.gcmp .b3 .etile { border-color: transparent; }
.gcmp .etile__v { font: 700 26px/1.1 var(--disp); color: var(--ink-deep); }
.gcmp .etile__k, .gcmp .etile__s { font-size: 13px; }
.gcmp .elist { padding-left: 20px; display: grid; gap: 6px; font-size: 16.5px; line-height: 1.55; max-width: 65ch; }
.gcmp .elist li { margin: 0; }
.gcmp .ecoms { columns: 3 220px; column-gap: 32px; }
.gcmp .ecoms li { border-top-color: var(--tint-10); padding: 8px 0; font-size: 15px; }
.gcmp .ecoms a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-deep); text-underline-offset: 3px; }
.gcmp .epassos { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; max-width: 65ch; }
.gcmp .epassos li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; margin: 0; padding: 0 0 18px; position: relative; font-size: 17px; line-height: 1.5; color: var(--ink-deep); }
.gcmp .epassos li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--azul); color: var(--azul-ink); border: 2px solid var(--azul-ink); box-sizing: border-box; display: grid; place-items: center; font: 700 18px/1 var(--disp); }
.gcmp .epassos li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px; width: 2px; background: var(--azul-ink); opacity: .35; }
.gcmp .edrop { border: 1.5px dashed var(--tint-20); border-radius: 22px; padding: 32px 20px; background: #fff; max-width: 720px; }
.gcmp .edrop__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font-weight: 600; }
.gcmp .edrop__aviso { font-size: 13.5px; }
.gcmp .emais > summary { display: flex; align-items: center; min-height: 44px; }
.gcmp .esec a:not(.epill):not(.door) { color: var(--ink-deep); text-underline-offset: 3px; }
.gcmp .esec a:focus-visible, .gcmp .esec button:focus-visible, .gcmp .esec summary:focus-visible { outline: 2px solid var(--peach-ink); outline-offset: 2px; }

/* the regulated gas section's bars (gas/g3.ts reguladaGasG3) */
.gcmp .ep-grupos { display: grid; gap: 18px; }
.gcmp .ep-grupo { display: grid; gap: 8px; }
.gcmp .ep-grupo > span { font: 500 12px/1.3 var(--font-doc); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-50); }
.gcmp .ep-barra { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-60); }
.gcmp .ep-barra i { height: 12px; border-radius: var(--r-pill); background: var(--tint-10); overflow: hidden; }
.gcmp .ep-barra i::before { content: ''; display: block; height: 100%; width: var(--w); border-radius: var(--r-pill); background: var(--ink-deep); }
.gcmp .ep-barra--idx i::before { background: var(--peach-ink); }
.gcmp .ep-barra b { font: 700 17px/1.2 var(--disp); color: var(--ink-deep); white-space: nowrap; min-width: 6em; text-align: right; }
.g3rg .best { align-content: start; }
.g3rgav { max-width: 720px; }
.g3rgav h3 { margin: 0; font: 700 26px/1.15 var(--disp); color: var(--ink-deep); }
.g3rgav .pontos2 { margin: 0; }
.gcmp .g3rgav .mail input { background: var(--cream); } .gcmp .g3rgav .mail button { background: var(--ink-deep); color: #fff; }

/* the source line's «Reportar um erro» */
.gcmp .hfonte .etrust__btn { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

@media (max-width: 960px) {
  .g3cmp__pi { grid-template-columns: minmax(0, 1fr); }
  .g3cmp__ans { position: static; }
}
@media (max-width: 760px) {
  .gcmp { font-size: 16px; }
  .gcmp .eband { padding: 16px 18px; border-radius: 22px; }
  .gcmp .eband__preco { font-size: 34px; }
  .gcmp .eperfil.tool { padding: 18px 16px; }
  .gcmp .erow { padding: 14px 14px; grid-template-columns: 22px minmax(0, 1fr) auto; }
  .gcmp .erow--regulada { padding: 14px; }
  .gcmp .erow__p { font-size: 17px; }
  .gcmp .eseg__o, .gcmp .echip__face, .gcmp .eopt__face, .gcmp .epill { min-height: 44px; }
  .gcmp .ecoms a, .gcmp .erow__links a, .gcmp .etrust a, .gcmp .etrust__btn { min-height: 44px; }
  .gcmp .hfonte .etrust__btn { padding-block: 12px; }
  .gcmp .ebody__main > .esec { padding-top: 32px; }
}
.gcmp .epill[aria-pressed="true"] { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
@media (max-width: 760px) { .gcmp .eperfil__range { min-height: 44px; } }

/* a tool page (tarifa social): the tool as the hero's card; its bridge line opens the pair */
.gcmp .eferr { max-width: none; margin: 0; background: #fff; border-radius: 28px; padding: 26px 28px; box-shadow: 0 30px 70px rgba(41,18,16,.10); display: grid; gap: 6px; }
.gcmp .eferr .esec__h { font-size: 26px; }
.gcmp .eferr__q > legend { font-weight: 500; color: var(--ink-deep); }
.gcmp .eferr__num input { min-height: 40px; border-color: var(--tint-20); background: #fff; font-size: 15px; }
.gcmp .eferr__saida { border-radius: 18px; padding: 18px 20px; }
.gcmp .eferr__resposta { font: 700 22px/1.25 var(--disp); color: var(--ink-deep); }
.gcmp .eferr__dica { border-radius: 18px; padding: 16px 18px; }
.gcmp .eferr__ponte { max-width: 65ch; margin: 0; font: 700 clamp(22px, 2vw, 28px)/1.25 var(--disp); color: var(--ink-deep); }
.g3cmp__par .g3s { gap: 28px; }
@media (max-width: 760px) { .gcmp .eferr { padding: 18px 16px; } .gcmp .eferr__num input { min-height: 44px; } }

/* ── group C: a supplier page (/energia/precos/<slug>/) — the supplier's logo above the h1, its prices as a card ── */
.g3cmp__marca { margin: 0; }
.gcmp .lg { flex: none; width: 72px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--tint-10); overflow: hidden; }
.gcmp .lg img { max-width: 58px; max-height: 26px; width: auto; height: auto; object-fit: contain; display: block; }
.gcmp .lg.escuro { background: var(--ink-deep); box-shadow: none; }
.gcmp .lg.ini { font: 600 15px/1 var(--font-ui); color: var(--ink-deep); box-shadow: none; }
.gcmp .efor { margin: 0; padding: 18px 20px; border-radius: 22px; background: #fff; box-shadow: none; display: grid; gap: 6px; }
.gcmp .efor > * { margin: 0; }
.gcmp .efor__h { font-weight: 600; color: var(--ink-deep); }
.gcmp .efor__precos { font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; color: var(--ink-deep); }
.gcmp .efor__nota { font-size: 14px; line-height: 1.5; color: var(--ink-60); }
.gcmp .efor .esec__eyebrow { margin-top: 8px; }
.gcmp .efor .etile { background: var(--cream); border-color: transparent; }
.gcmp .erow__precos { font-size: 13.5px; color: var(--ink-60); }
@media (max-width: 760px) { .gcmp .efor { padding: 16px; } .gcmp .lg { width: 64px; height: 40px; } .gcmp .lg img { max-width: 50px; max-height: 22px; } }
.g3cmp__marca ~ .ehero__h1 { font-size: clamp(32px, 3.4vw, 46px); }
.gcmp .efor .etiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.gcmp .efor .etile__v { font-size: 22px; }

/* QA 2026-10-29 · E8: the old comparator widget on the CV1 controls (as /energia/comparar/): segmented tracks instead of
   loose chips, pill selects with the chevron, full-width buttons. CSS only — every id and name energia.js reads stays. */
.gcmp .eperfil .eseg { display: flex; width: 100%; box-sizing: border-box; padding: 4px; gap: 4px; border: 0; border-radius: var(--r-pill); background: var(--tint-10); }
.gcmp .eperfil .eseg__o { flex: 1; border: 0; border-radius: var(--r-pill); background: transparent; font: 500 14px/1 var(--font-ui); color: var(--ink-60); text-decoration: none; }
.gcmp .eperfil .eseg__o--on { background: var(--ink-deep); color: #fff; }
.gcmp .eperfil .echips, .gcmp .eperfil .eopts { display: flex; flex-wrap: nowrap; width: 100%; box-sizing: border-box; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--tint-10); }
.gcmp .eperfil .eopts { width: auto; }
.gcmp .eperfil .echip, .gcmp .eperfil .eopt { flex: 1; display: flex; min-width: 0; }
.gcmp .eperfil .echip__face, .gcmp .eperfil .eopt__face { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: var(--r-pill); background: transparent; font: 500 14px/1.1 var(--font-ui); color: var(--ink-60); text-align: center; white-space: nowrap; }
.gcmp .eperfil .echip__in:checked + .echip__face, .gcmp .eperfil .echip__in:checked + .eopt__face { background: var(--ink-deep); color: #fff; }
.gcmp .eperfil .eperfil__sel { min-width: 0; min-height: 44px; padding: 9px 34px 9px 14px; border-radius: var(--r-pill); appearance: none; -webkit-appearance: none; text-align: left;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23291210' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.gcmp .eperfil__range { accent-color: var(--ink-deep); width: 100%; }
.gcmp .eperfil__up, .gcmp .eband__cta { width: 100%; box-sizing: border-box; border-radius: var(--r-pill); }
@media (max-width: 420px) { .gcmp .eperfil .echip__face { font-size: 13px; padding: 0 6px; } }
.gcmp .eperfil .echips { flex-wrap: wrap; border-radius: 22px; }
.gcmp .eperfil .echip { flex: 1 1 auto; }
.gcmp .eperfil .eopts { flex: none; min-width: 216px; }
.gcmp .eperfil .eopt__face { padding: 0 14px; }
