/* ==========================================================================
   Ajudo, editoria Emergência (/emergencia/, plano v2 de 08/11/2026)

   Hub, guias e montador do kit no visual v2 do main.css (painéis, fichas,
   capas 3D, trilho). A cor da editoria vem do .ed-emergencia (--ed = laranja
   de sinalização, a cor da Defesa Civil). A assinatura visual é "luz no
   escuro": fundo de apagão (--breu) com a luz quente da lanterna (--sinal-vivo).

   Regras que valem aqui:
   - Ferramenta = web app (Bruno, 08/11): o número que muda fica visível junto
     do campo (painel preso no desktop, resumo preso no celular).
   - Hover de card = o padrão do Ajudo (vem do .ficha do main.css).
   - Herói sem overflow:hidden (a decoração mora no .emg-hero-bg).
   ========================================================================== */

.ed-emergencia {
  --breu: #0f131c;
  --breu-2: #171c29;
  --breu-3: #232a3c;
  --luz: rgba(255, 122, 47, 0.38);
}

/* Botão laranja da editoria (texto branco passa AA sobre o --sinal) */
.emg-btn-sinal { background: var(--sinal); border-color: var(--sinal); color: #fff; }
.emg-btn-sinal:hover { box-shadow: 3px 3px 0 var(--ink); }
.emg-btn-sinal .ico { transition: transform 0.15s ease; }
.emg-btn-sinal:hover .ico { transform: translateX(3px); }

/* ==========================================================================
   HUB
   ========================================================================== */

.emg-hero { position: relative; isolation: isolate; color: #e6e9f2; padding-block: 46px 64px; }
.emg-hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(52% 78% at 86% 14%, var(--luz), transparent 62%),
    radial-gradient(30% 46% at 66% 100%, rgba(255, 122, 47, 0.14), transparent 70%),
    radial-gradient(42% 60% at 0% 0%, rgba(124, 132, 255, 0.13), transparent 70%),
    linear-gradient(180deg, #171c29 0%, var(--breu) 100%);
}
/* Fita de sinalização no pé do herói */
.emg-hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: repeating-linear-gradient(-45deg, var(--sinal-vivo) 0 14px, #1b2130 14px 28px);
}
.emg-hero-in { align-items: center; }
.emg-hero .kicker { color: var(--sinal-vivo); }
.emg-hero h1 { color: #fff; }
.emg-hero h1 em { color: var(--sinal-vivo); }
.emg-hero .deck { color: #c2c8d8; }
.emg-hero .hub-stats { border-top-color: rgba(255, 255, 255, 0.13); }
.emg-hero .hub-stats div { max-width: 15ch; color: #a9b1c6; line-height: 1.35; }
.emg-hero .hub-stats b { color: #fff; }

/* Miniatura do kit (o montador na primeira dobra) */
.emg-hk {
  position: relative; display: grid; gap: 16px; padding: 22px 22px 18px;
  background: #fff; color: var(--ink); border-radius: var(--r-xl);
  box-shadow: 6px 6px 0 var(--sinal-vivo), 0 30px 60px -24px rgba(0, 0, 0, 0.65);
}
.emg-hk-topo { display: flex; align-items: center; gap: 14px; }
.emg-hk-3d { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(150deg, var(--sinal-tint), #fff); box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.14); }
.emg-hk-3d img { width: 42px; height: 42px; filter: drop-shadow(0 6px 8px rgba(17, 21, 58, 0.25)); }
.emg-hk-tit { font: 850 1.35rem/1.1 var(--f-tit); letter-spacing: -0.025em; }
.emg-hk-sub { margin-top: 3px; font-size: 0.88rem; color: var(--ink-3); }
.emg-hk-campo { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.emg-hk-campo > label, .emg-hk-campo > legend { float: left; font-weight: 700; font-size: 0.95rem; }
fieldset.emg-hk-campo { display: grid; grid-template-columns: auto minmax(0, 1fr); }
fieldset.emg-hk-campo .kit-seg { margin-left: auto; width: min(100%, 236px); }
.emg-hk-res {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  padding: 14px 12px; border-radius: 16px; background: var(--sinal-tint);
}
.emg-hk-res p { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.emg-hk-res b { display: inline-block; font: 900 1.65rem/1 var(--f-tit); letter-spacing: -0.04em; color: var(--sinal); font-variant-numeric: tabular-nums; border-radius: 6px; }
.emg-hk-res span { margin-top: 5px; font-size: 0.74rem; font-weight: 600; color: var(--ink-2); line-height: 1.2; }
.emg-hk .btn { min-height: 50px; font-size: 1rem; }
.emg-hk-nota { font-size: 0.78rem; color: var(--ink-3); text-align: center; }

/* Grade de guias do hub */
.emg-grade { --cols: 3; }
.emg-ficha .ficha-desc { color: var(--ink-3); }
.emg-mais { margin-top: 16px; }
.emg-mais a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sinal); text-decoration: none; }
.emg-mais a:hover { text-decoration: underline; text-underline-offset: 3px; }
.emg-mais .ico { font-size: 0.85em; transition: transform 0.15s ease; }
.emg-mais a:hover .ico { transform: translateX(3px); }

/* Como os guias são feitos */
.emg-metodo-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.emg-metodo-lista li { padding: 16px 18px; background: #fff; border: 1px solid var(--line-v2); border-radius: var(--r-lg); font-size: 0.94rem; line-height: 1.55; color: var(--ink-2); }
.emg-metodo-lista b { display: block; margin-bottom: 3px; font: 800 1rem/1.25 var(--f-tit); color: var(--ink); }

/* ==========================================================================
   Telefones (hub, guias {{fones}})
   ========================================================================== */

.emg-fones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.emg-fone {
  position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 16px 16px 15px; background: #fff; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-v2); border-radius: var(--r-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.emg-fone:hover { transform: translate(-3px, -3px); border-color: var(--ink); box-shadow: var(--pop), var(--sombra); }
.emg-fone-3d { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; }
.emg-fone-3d img { width: 100%; height: 100%; filter: drop-shadow(0 5px 6px rgba(17, 21, 58, 0.22)); transition: transform 0.25s ease; }
.emg-fone:hover .emg-fone-3d img { transform: rotate(-8deg) scale(1.08); }
.emg-fone b { font: 900 2.2rem/1 var(--f-tit); letter-spacing: -0.045em; color: var(--sinal); font-variant-numeric: tabular-nums; }
.emg-fone-quem { margin-top: 6px; font: 800 1rem/1.2 var(--f-tit); }
.emg-fone small { font-size: 0.8rem; line-height: 1.35; color: var(--ink-3); }
.emg-fones-sms {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 16px;
  border-radius: var(--r-lg); background: var(--breu); color: #dfe3ee; font-size: 0.94rem;
}
.emg-fones-sms .ico { flex: none; font-size: 1.15rem; color: var(--sinal-vivo); }
.emg-fones-sms b { color: #fff; }
.emg-fones-sms a { margin-left: 6px; color: var(--sinal-vivo); font-weight: 700; text-underline-offset: 3px; }
.prosa .emg-fones { margin-block: 1.2em; }
.prosa .emg-fone { text-decoration: none; }
.prosa .emg-fones-sms a { color: var(--sinal-vivo); }

/* ==========================================================================
   Guias (template-emergencia-guia.php) e o texto do kit
   ========================================================================== */

.emg-kicker { margin-top: 18px; }
.emg-artigo > .crumb + .emg-kicker { display: flex; }
.emg-artigo > h1 { margin-top: 10px; }
.emg-resposta { background: var(--sinal-tint); }
.emg-kit-texto .artigo > .resposta:first-child { margin-top: 0; }
.emg-resposta .resposta-rot { color: var(--sinal); }
.emg-resposta .resposta-txt p { font-size: 1.1rem; }
.emg-resposta .resposta-txt p + p { margin-top: 8px; }
.resposta-img.capa3d > img { height: 66% !important; }

/* Passos numerados */
.prosa ol.emg-passos { list-style: none; padding-left: 0; counter-reset: passo; display: grid; gap: 12px; }
.prosa ol.emg-passos > li {
  position: relative; margin: 0; padding: 14px 16px 14px 62px; counter-increment: passo;
  background: var(--bg-2); border-radius: var(--r-lg); font-size: 1.02rem; line-height: 1.6;
}
.prosa ol.emg-passos > li::before {
  content: counter(passo); position: absolute; left: 14px; top: 13px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sinal); color: #fff; font: 900 1rem/1 var(--f-tit);
}
.prosa ol.emg-passos > li strong:first-child { display: block; color: var(--ink); }

/* Lista com marcador de "ok" (mochila, kit). Bolinha, não caixa: não pode
   parecer caixa de marcar, porque não é clicável (regra do clicável, 28/10). */
.prosa ul.emg-lista { list-style: none; padding-left: 0; display: grid; gap: 9px; }
.prosa ul.emg-lista > li { position: relative; margin: 0; padding: 0 0 0 32px; }
.prosa ul.emg-lista > li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 21px; height: 21px; border-radius: 50%;
  background: var(--sinal-tint); box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.18);
}
.prosa ul.emg-lista > li::after {
  content: ""; position: absolute; left: 8px; top: calc(0.3em + 5px); width: 5px; height: 9px;
  border: solid var(--sinal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* Avisos e dicas */
.prosa .emg-aviso, .prosa .emg-dica {
  position: relative; margin-block: 1.4em; padding: 16px 18px 16px 56px; border-radius: var(--r-lg);
  font-size: 1.02rem; line-height: 1.6;
}
.prosa .emg-aviso { background: #fff4ec; border: 1.5px solid rgba(194, 65, 12, 0.35); }
.prosa .emg-dica { background: var(--bg-2); border: 1.5px solid var(--line-v2); }
.prosa .emg-aviso::before, .prosa .emg-dica::before {
  position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font: 900 0.95rem/1 var(--f-tit); color: #fff;
}
.prosa .emg-aviso::before { content: "!"; background: var(--sinal); }
.prosa .emg-dica::before { content: "i"; background: var(--ink); font-family: Georgia, serif; font-style: italic; }
.prosa .emg-aviso > :first-child, .prosa .emg-dica > :first-child { margin-top: 0; }
.prosa .emg-aviso strong:first-child, .prosa .emg-dica strong:first-child { color: var(--ink); }

/* Tabela (rola de lado no celular) */
.prosa .emg-tabela { margin-block: 1.3em; overflow-x: auto; border: 1px solid var(--line-v2); border-radius: var(--r-lg); }
.prosa .emg-tabela table { min-width: 460px; }
.prosa .emg-tabela th:first-child, .prosa .emg-tabela td:first-child { padding-left: 16px; }
.prosa .emg-tabela td { font-size: 0.95rem; }
.prosa .emg-tabela tr:last-child td { border-bottom: 0; }
.prosa .emg-tabela td b { color: var(--sinal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prosa .emg-tabela caption { caption-side: bottom; padding: 10px 16px; font-size: 0.82rem; color: var(--ink-3); text-align: left; }

/* Antes, durante e depois (três colunas que viram uma no celular) */
.prosa .emg-fases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 1.3em; }
.prosa .emg-fase { padding: 16px 16px 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-v2); font-size: 0.95rem; line-height: 1.5; }
.prosa .emg-fase h3 { margin: 0 0 8px; font-size: 1rem; color: var(--sinal); text-transform: uppercase; letter-spacing: 0.06em; }
.prosa .emg-fase ul { padding-left: 18px; }
.prosa .emg-fase li { margin-top: 5px; }

/* Cards de produto ({{produtos:...}}) */
.emg-produtos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 1.4em 0.6em; }
.prosa .emg-produtos { font-size: 1rem; }
.emg-produto { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--line-v2); border-radius: var(--r-lg); }
.emg-produto-topo { display: flex; align-items: center; gap: 14px; }
.emg-produto .ico3d { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(150deg, var(--sinal-tint), #fff); }
.emg-produto .kicker { font-size: 0.64rem; }
.prosa .emg-produto h3 { margin: 4px 0 0; font-size: 1.12rem; line-height: 1.2; }
.prosa .emg-produto p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.prosa ul.emg-produto-olhar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.prosa ul.emg-produto-olhar li {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 10px; border-radius: 999px;
  background: var(--bg-2); font-size: 0.8rem; font-weight: 600; color: var(--ink-2); line-height: 1.2;
}
.emg-produto-olhar .ico { font-size: 0.7rem; color: var(--sinal); }
.emg-produto-pe { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-v2); }
.emg-preco { display: flex; flex-direction: column; }
.emg-preco small { font-size: 0.72rem; font-weight: 600; color: var(--ink-3); }
.emg-preco b { font: 850 1.08rem/1.2 var(--f-tit); letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.prosa a.emg-btn-loja, a.emg-btn-loja { background: #fff; color: var(--ink); border-color: var(--ink); text-decoration: none; }
a.emg-btn-loja:hover { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--sinal-vivo); }
.prosa .emg-afiliado-nota, .emg-afiliado-nota { margin-top: 0.4em; font-size: 0.8rem; line-height: 1.5; color: var(--ink-3); }

/* Chamada para o montador ({{kit}} e trilho) */
.emg-kitcta {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  margin-block: 1.6em; padding: 20px 22px; border-radius: var(--r-xl); color: #e6e9f2;
  background: radial-gradient(60% 120% at 0% 0%, var(--luz), transparent 65%), linear-gradient(160deg, var(--breu-3), var(--breu) 80%);
}
.emg-kitcta-3d img { width: 76px; height: 76px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.45)); transform: rotate(-8deg); }
.emg-kitcta .kicker { color: var(--sinal-vivo); font-size: 0.66rem; }
.emg-kitcta-tit { margin-top: 5px; font: 850 1.3rem/1.15 var(--f-tit); letter-spacing: -0.025em; color: #fff; }
.prosa .emg-kitcta-sub, .emg-kitcta-sub { margin-top: 5px; font-size: 0.93rem; line-height: 1.5; color: #b9c0d3; }
.prosa .emg-kitcta a.btn { color: #fff; text-decoration: none; }
.emg-kitcta .btn:hover { box-shadow: 3px 3px 0 #fff; }
.emg-kitcta-trilho { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 20px; }
.emg-kitcta-trilho .emg-kitcta-3d { position: absolute; right: 10px; top: 8px; z-index: -1; opacity: 0.95; }
.emg-kitcta-trilho .emg-kitcta-txt { padding-right: 70px; }
.emg-kitcta-trilho .btn { width: 100%; }

/* Fontes, "Veja também" e seções do fim do artigo */
.emg-secao { margin-top: 52px; }
.emg-secao > h2 { margin: 0 0 18px; }
.emg-fontes { margin-top: 44px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--bg-2); }
.emg-fontes h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.emg-fontes h2 .ico { color: var(--sinal); }
.emg-fontes ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.emg-fontes li::marker { color: var(--sinal); }
.emg-fontes a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.emg-fontes a:hover { text-decoration-color: currentColor; }
.emg-fontes-nota { margin-top: 10px; font-size: 0.8rem; color: var(--ink-3); }
.emg-grade-2 { --cols: 2; gap: 12px; }
.emg-veja .ficha-img { width: 88px; }

/* Trilho: lista de guias com capa 3D */
.emg-guias-painel .lidos-tit { background: linear-gradient(90deg, var(--sinal-tint), #fff7f1); }
.emg-guias-painel .lidos-tit .ico { color: var(--sinal); }
.lido-img.capa3d > img { height: 70% !important; }

/* ==========================================================================
   MONTADOR DO KIT
   ========================================================================== */

.emg-kit-cab { padding-top: 26px; max-width: 860px; }
.emg-kit-cab h1 { margin-top: 14px; font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); }
.emg-kit-cab .deck { margin-top: 12px; max-width: 62ch; }

.kit-app { container: kit / inline-size; margin-top: 24px; }
.kit-grade { display: flex; flex-direction: column; gap: 14px; }
.kit-painel { display: contents; }

/* Resumo: os números que mudam */
.kit-resumo {
  position: sticky; top: calc(var(--topo-h) + 8px); z-index: 6;
  display: grid; gap: 10px; padding: 14px 16px 13px; color: #e6e9f2; border-radius: var(--r-lg);
  background: radial-gradient(80% 140% at 100% 0%, var(--luz), transparent 62%), linear-gradient(160deg, var(--breu-3), var(--breu) 85%);
  box-shadow: 0 14px 28px -16px rgba(13, 17, 23, 0.7);
}
.kit-resumo-rot { font-size: 0.78rem; font-weight: 600; color: #aab2c7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kit-stat { display: flex; flex-direction: column; min-width: 0; }
.kit-stat strong {
  align-self: flex-start; font: 900 clamp(1.4rem, 1rem + 2.2cqi, 2.1rem)/1 var(--f-tit); letter-spacing: -0.04em;
  color: #fff; font-variant-numeric: tabular-nums; border-radius: 6px;
}
.kit-stat:first-child strong { color: var(--sinal-vivo); }
.kit-stat span { margin-top: 5px; font-size: 0.74rem; font-weight: 600; color: #b9c0d3; line-height: 1.2; }
.kit-progresso { display: flex; align-items: center; gap: 10px; }
.kit-progresso p { font-size: 0.78rem; color: #c7cddc; white-space: nowrap; }
.kit-progresso strong { color: #fff; font-variant-numeric: tabular-nums; }
.kit-barra { flex: 1; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.kit-barra span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--sinal-vivo), #ffb067); transition: width 0.3s ease; }
.kit-app.is-completo .kit-barra span { background: linear-gradient(90deg, var(--verde-vivo), #7ff0b8); }

/* Campos */
.kit-form { display: grid; gap: 16px; padding: 16px 18px 18px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sombra); }
.kit-campo { min-width: 0; margin: 0; padding: 0; border: 0; }
.kit-campo legend { margin-bottom: 6px; padding: 0; font: 800 0.7rem/1.1 var(--f-tit); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.kit-pessoa { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line-v2); }
.kit-pessoa:last-child { border-bottom: 0; }
.kit-pessoa-3d img { width: 28px; height: 28px; }
.kit-pessoa label { font-size: 0.95rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.kit-pessoa label small { display: block; font-size: 0.74rem; font-weight: 500; color: var(--ink-3); }
.kit-stepper { flex: none; display: flex; align-items: center; gap: 2px; }
.kit-step {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: 700 1.15rem/1 var(--f-txt);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.kit-step:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.kit-step:active { transform: scale(0.9); }
.kit-step:focus-visible { outline: 3px solid var(--sinal-vivo); outline-offset: 2px; }
.kit-stepper input[type="number"] {
  width: 2.2em; padding: 4px 0; text-align: center; border: 0; background: transparent;
  font: 850 1.2rem/1 var(--f-tit); color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.kit-stepper input[type="number"]::-webkit-outer-spin-button,
.kit-stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kit-stepper input[type="number"]:focus { outline: 2px solid var(--sinal-vivo); outline-offset: 2px; border-radius: 6px; }

/* Controle segmentado (dias, moradia) e chips (riscos) */
.kit-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-3); }
.kit-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.kit-pill { position: relative; min-width: 0; cursor: pointer; }
.kit-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kit-pill span {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 12px;
  border-radius: 999px; font-size: 0.86rem; font-weight: 700; color: var(--ink-2); text-align: center; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.kit-pill-3d { width: 18px; height: 18px; }
.kit-seg .kit-pill span { padding: 0 8px; }
.kit-seg .kit-pill:hover span { color: var(--ink); }
.kit-seg .kit-pill input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17, 21, 58, 0.12), 0 4px 10px -4px rgba(17, 21, 58, 0.25); }
.kit-chips .kit-pill span { border: 1.5px solid var(--line-2); background: #fff; }
.kit-chips .kit-pill:hover span { border-color: var(--ink); color: var(--ink); }
.kit-chips .kit-pill input:checked + span { border-color: var(--sinal); background: var(--sinal-tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--sinal); }
.kit-pill input:focus-visible + span { outline: 3px solid var(--sinal-vivo); outline-offset: 2px; }

/* Lista */
.kit-res { container: kitres / inline-size; min-width: 0; padding: 20px 22px 22px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sombra); }
.kit-res-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.kit-res-titulo { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.025em; }
.kit-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-acao {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink);
  font: 700 0.84rem/1 var(--f-txt); text-decoration: none; white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.kit-acao:hover { border-color: var(--ink); }
.kit-acao .ico { font-size: 0.95rem; }
.kit-acao-zap { background: #0e8540; border-color: #0e8540; color: #fff; }
.kit-acao-zap:hover { background: #0b7037; border-color: #0b7037; }
.kit-acao.is-ok { border-color: var(--verde); color: var(--verde); }

.kit-grupo { margin-top: 22px; }
.kit-grupo-tit { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 1.08rem; letter-spacing: -0.015em; }
.kit-grupo-3d { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(150deg, var(--sinal-tint), #fff); box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.12); }
.kit-grupo-3d img { width: 26px; height: 26px; }
.kit-grupo-conta { margin-left: auto; padding: 4px 9px; border-radius: 999px; background: var(--bg-2); font: 700 0.74rem/1 var(--f-txt); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kit-grupo.is-completo .kit-grupo-conta { background: var(--verde-tint); color: var(--verde); }
.kit-lista { margin: 0; padding: 0; list-style: none; }
.kit-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 3px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line-v2); }
.kit-grupo-tit + .kit-lista .kit-item:first-child { border-top: 0; }
.kit-check { grid-column: 1 / 3; grid-row: 1; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.kit-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kit-caixa {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px;
  border: 2px solid var(--line-2); border-radius: 7px; background: #fff; color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.kit-caixa .ico { width: 13px; height: 13px; opacity: 0; transition: opacity 0.15s ease; }
.kit-check:hover .kit-caixa { border-color: var(--sinal); }
.kit-check input:checked + .kit-caixa { background: var(--sinal); border-color: var(--sinal); transform: scale(1.06); }
.kit-check input:checked + .kit-caixa .ico { opacity: 1; }
.kit-check input:focus-visible + .kit-caixa { outline: 3px solid var(--sinal-vivo); outline-offset: 2px; }
.kit-nome { font-weight: 700; line-height: 1.35; color: var(--ink); }
.kit-qtd {
  grid-column: 2; grid-row: 2; justify-self: start; padding: 2px 9px; border-radius: 999px;
  background: var(--sinal-tint); color: var(--sinal); font-size: 0.86rem; font-weight: 800; line-height: 1.45; font-variant-numeric: tabular-nums;
}
.kit-qtd:empty { display: none; }
.kit-porque { grid-column: 2; grid-row: 3; margin-top: 3px; font-size: 0.87rem; line-height: 1.5; color: var(--ink-3); }
.kit-item-acoes { grid-column: 3; grid-row: 1 / 4; align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.kit-guia { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--sinal); text-decoration: none; white-space: nowrap; }
.kit-guia:hover { text-decoration: underline; text-underline-offset: 3px; }
.kit-guia .ico { font-size: 0.85em; }
.kit-comprar {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 0.82rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.kit-comprar .ico { width: 0.95em; height: 0.95em; }
.kit-comprar:hover { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--sinal-vivo); }
.kit-comprar:focus-visible, .kit-guia:focus-visible { outline: 3px solid var(--sinal-vivo); outline-offset: 2px; }
.kit-item.is-tem .kit-nome { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.kit-item.is-tem .kit-qtd, .kit-item.is-tem .kit-porque { opacity: 0.55; }
.kit-afiliado { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-v2); font-size: 0.78rem; line-height: 1.55; color: var(--ink-3); }

/* O que mudou: o número pula e a quantidade acende por um instante */
@keyframes emg-pulo { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes emg-acende { 0% { background: #ffc79f; } 100% { background: var(--sinal-tint); } }
.is-mudou { animation: emg-pulo 0.35s ease-out; }
.kit-qtd.is-mudou { animation: emg-acende 0.9s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .is-mudou, .kit-qtd.is-mudou { animation: none; }
}

/* Lista estreita: os botões descem para baixo do texto */
@container kitres (max-width: 520px) {
  .kit-res-topo { align-items: flex-start; }
  .kit-item { grid-template-columns: 26px minmax(0, 1fr); }
  .kit-item-acoes { grid-column: 2; grid-row: 4; flex-direction: row; align-items: center; gap: 14px; margin-top: 8px; }
}

/* Largo: painel preso à esquerda, lista à direita */
@container kit (min-width: 860px) {
  .kit-grade { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
  .kit-painel {
    display: block; position: sticky; top: calc(var(--topo-h) + 16px);
    /* Folga embaixo para o botão fixo "Ganhe dinheiro", no canto esquerdo do desktop. */
    max-height: calc(100vh - var(--topo-h) - 110px); overflow: auto; overscroll-behavior: contain;
    border-radius: var(--r-xl); background: #fff; box-shadow: var(--sombra);
    scrollbar-width: thin;
  }
  .kit-resumo { position: static; padding: 18px 20px 16px; border-radius: 0; box-shadow: none; }
  .kit-form { border-radius: 0; box-shadow: none; padding: 18px 20px 20px; }
}

/* O texto embaixo da ferramenta */
.emg-kit-texto { padding-top: 36px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1100px) {
  .emg-grade { --cols: 2; }
  .emg-fones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .emg-hero-in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .emg-hero h1 { max-width: 14ch; }
  .emg-hk { max-width: 520px; }
  .emg-produtos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .emg-metodo-lista { grid-template-columns: minmax(0, 1fr); }
  .prosa .emg-fases { grid-template-columns: minmax(0, 1fr); }
  .emg-kitcta { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
  .emg-kitcta-3d { position: absolute; right: 12px; top: 10px; z-index: -1; }
  .emg-kitcta-txt { padding-right: 72px; }
  .emg-kitcta .btn { width: 100%; }
  .emg-grade-2 { --cols: 1; }
}
@media (max-width: 640px) {
  /* No celular o montador sobe para a primeira tela: sem os números decorativos e com o texto menor. */
  .emg-hero { padding-block: 24px 40px; }
  .emg-hero .hub-stats { display: none; }
  .emg-hero .deck { margin-top: 12px; font-size: 1rem; }
  .emg-hero-in { gap: 22px; }
  .emg-hk { padding: 18px 16px 16px; box-shadow: 4px 4px 0 var(--sinal-vivo), 0 24px 48px -24px rgba(0, 0, 0, 0.65); }
  .emg-hk-res b { font-size: 1.4rem; }
  .emg-grade { --cols: 1; }
  .emg-fone { padding: 14px; }
  .emg-fone b { font-size: 1.9rem; }
  .emg-fone-3d { width: 34px; height: 34px; }
  .emg-kit-cab { padding-top: 18px; }
  .kit-res { padding: 16px 14px 18px; border-radius: var(--r-lg); }
  .prosa ol.emg-passos > li { padding-left: 56px; }
}

/* ==========================================================================
   Impressão: só o título e a lista do kit
   ========================================================================== */
@media print {
  .topo, .trendbar, .ad-topo, .ad-slot, .ad-col, .rodape, .fab, .crumb, .kit-painel, .kit-acoes,
  .kit-item-acoes, .kit-afiliado, .emg-kit-texto, .compartilhar-faixa, .wa-modal, .emg-kit-cab .deck { display: none !important; }
  .kit-grade { display: block !important; }
  .kit-res { box-shadow: none; padding: 0; }
  .kit-item { break-inside: avoid; padding: 8px 0; }
  .kit-caixa { border-color: #000; }
  .kit-qtd { background: none; padding: 0; }
}
