/* The /energia/ hub on the new design (G3 + the hub template, new shell): only what it adds to /design/novo.css and
   /energia/g3.css. hub.css, mercado.css and components.css load before novo.css for the instruments (the Mercado band,
   the small answer cards); here the ask bar, the map of questions, the four Simuladores cards, the Guias contents and
   the alert's options take the new look on paper. Rendered by src/energia/hub/html.ts and hub/pagina.ts. */

/* ── 1 · the hero: the question, the ask bar, the two ways in; beside it, the map ── */
.ghub .g2t { gap: 18px; }
.ghub .composer { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 620px; margin: 4px 0 0; padding: 8px 8px 8px 10px; border: 1.5px solid var(--tint-20); border-radius: var(--r-pill); background: #fff; box-shadow: 0 20px 50px rgba(41,18,16,.10); color: var(--ink); }
.ghub .composer:focus-within { outline: 2px solid var(--peach-ink); outline-offset: 2px; }
.ghub .composer__avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--peach); color: var(--ink-deep); }
.ghub .composer__avatar svg { width: 28px; height: 28px; }
.ghub .composer__input { flex: 1; min-width: 0; min-height: 48px; border: 0; padding: 0; background: none; font: 400 18px/1.2 var(--font-ui); color: var(--ink); }
.ghub .composer__input:focus { outline: none; }
.ghub .composer__input::placeholder { color: var(--ink-50); }
.ghub .composer__send { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ink-deep); color: #fff; cursor: pointer; }
.ghub .composer__send:focus-visible { outline: 2px solid var(--peach-ink); outline-offset: 2px; }
.ghub .fz-priv { margin: 0; font-size: 15px; color: var(--peach-ink); } .ghub .fz-priv[hidden] { display: none; }
.ghub .eh-atalhos2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; justify-content: flex-start; font-size: 15px; color: var(--ink-50); }
.ghub .eh-atalhos2 a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink-deep); text-decoration: underline; text-decoration-color: var(--peach); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ghub .gmeta { align-items: flex-start; line-height: 1.5; } .ghub .gmeta .dot { margin-top: 3px; }

/* the map: the catalogue's four groups, every question a chip */
.ghub .eh-grupos { width: auto; margin: 0; display: grid; grid-template-columns: 1fr; gap: 18px; padding: 26px 28px; text-align: left; }
.ghub .eh-grupo { gap: 10px; }
.ghub .eh-grupo__k { margin: 0; color: var(--ink-50); }
.ghub .eh-grupo__c { display: flex; flex-wrap: wrap; gap: 8px; }
.ghub .eh-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--tint-20); border-radius: var(--r-pill); background: #fff; color: var(--ink-deep); font: 500 14.5px/1.2 var(--font-ui); text-decoration: none; }
.ghub a.eh-chip:hover { border-color: var(--ink-deep); }
.ghub a.eh-chip:focus-visible { outline: 2px solid var(--peach-ink); outline-offset: 2px; }
.ghub .eh-chip--breve { border-style: dashed; color: var(--ink-50); }

/* ── 2 · Simuladores: four cards, the answer drawn small on top ── */
.g3hcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.g3hc { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--cream); border-radius: 24px; overflow: hidden; }
.g3hc__art { padding: 24px 24px 0; }
.g3hc__art .ui-card { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 16px 40px rgba(41,18,16,.08); display: grid; gap: 8px; }
.g3hc__f { padding: 20px 24px 24px; display: grid; gap: 6px; align-content: start; }
.g3hc .eh-q { margin: 0; font: 700 24px/1.2 var(--disp); color: var(--ink-deep); }
.g3hc .eh-q a { color: inherit; text-decoration: none; }
.g3hc .eh-q a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.g3hc:has(.eh-q a:focus-visible) { outline: 2px solid var(--peach-ink); outline-offset: 3px; }
.g3hc .eh-q a:focus-visible { outline: none; }
.g3hc__l { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-60); max-width: 52ch; }
.g3hc .eh-sub, .g3hc .eh-tipo { position: relative; z-index: 1; }
.g3hc .eh-sub { color: var(--ink-deep); font-weight: 600; text-underline-offset: 3px; }
.g3hc .eh-tipo { min-height: 32px; }
.g3hc .eh-n { font: 700 40px/1 var(--disp); color: var(--band-barato); letter-spacing: -.01em; }

/* ── 4 · Guias: the pull figure, then the contents as three cards ── */
.ghub .eh-pull { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px 40px; }
.ghub .eh-pull__n { font: 700 clamp(56px, 9vw, 120px)/.9 var(--disp); letter-spacing: -.02em; color: var(--ink-deep); }
.ghub .eh-pull figcaption { max-width: 44ch; font-size: 18px; line-height: 1.5; color: var(--ink-60); }
.ghub .eh-pull figcaption a { display: inline-block; padding-block: 8px; color: var(--ink-deep); font-weight: 600; text-underline-offset: 3px; }
.ghub .eh-toc { margin: 0; padding: 0; list-style: none; }
.ghub .eh-toc__i { position: relative; border-top: 0; padding: 24px; background: #fff; }
.ghub .eh-toc__n { color: var(--peach-ink); }
.ghub .eh-toc__i .eh-q { margin: 0; font: 700 22px/1.2 var(--disp); color: var(--ink-deep); }
.ghub .eh-toc__i .eh-q a { color: inherit; text-decoration: none; }
.ghub .eh-toc__i .eh-q a::after { content: ''; position: absolute; inset: 0; }
.ghub .eh-toc__i:has(.eh-q a:focus-visible) { outline: 2px solid var(--peach-ink); outline-offset: 3px; }
.ghub .eh-toc__i p { max-width: none; font-size: 16px; }
.ghub .eh-toc__ler { font: 500 12px/1 var(--font-doc); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-deep); }

/* ── 5 · the table's questions as links ── */
.ghub .g3tab th a { color: var(--ink-deep); text-underline-offset: 3px; display: inline-block; padding-block: 4px; }

/* ── the alert's options: the G3 ticks, not the old dark pills ── */
.ghub .g3opts .eh-opt { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font-size: 16px; cursor: default; }

@media (max-width: 960px) {
  .g3hcs { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ghub .eh-grupos { padding: 20px 18px; }
  .ghub .eh-chip { min-height: 44px; }
  .ghub .composer__input { font-size: 16px; }
  .ghub .eh-pull { grid-template-columns: 1fr; }
  .g3hc__art { padding: 18px 18px 0; } .g3hc__f { padding: 16px 18px 20px; }
  .g3hc .eh-tipo { min-height: 44px; }
}
@media (max-width: 760px) { .ghub .g3tab th a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; } }
