/* forum_v12 · Custo de vida por cidade (partes/v12p/custo-vida.php). Tudo com prefixo .v12p-custo-vida. 8 out. 2026 */

.v12p-custo-vida{--cv-a:var(--navy);--cv-b:var(--orange);}
.v12p-custo-vida-foto img{object-position:50% 30%;}
.v12p-custo-vida-sec{padding-top:34px;scroll-margin-top:70px;}

/* ---------- marcas A / B ---------- */
.v12p-custo-vida-marca{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:7px;background:var(--cv-a);color:#fff;font-family:'Manrope',sans-serif;font-weight:800;font-size:13px;flex-shrink:0;}
.v12p-custo-vida-b .v12p-custo-vida-marca,.v12p-custo-vida-marca.v12p-custo-vida-b{background:var(--cv-b);}

/* ---------- formulário ---------- */
.v12p-custo-vida-form fieldset{margin:0;min-width:0;}
.v12p-custo-vida-cidades{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.v12p-custo-vida-cidade,.v12p-custo-vida-teus{padding:20px 22px 22px;background:#fff;border:1px solid #ECE7E0;border-radius:var(--v12-raio);}
.v12p-custo-vida-cidade{border-top:4px solid var(--cv-a);}
.v12p-custo-vida-cidade.v12p-custo-vida-b{border-top-color:var(--cv-b);}
.v12p-custo-vida-form legend{display:flex;align-items:center;gap:10px;float:left;width:100%;margin-bottom:14px;padding:0;font-family:'Manrope',sans-serif;font-weight:800;font-size:18px;letter-spacing:-.02em;color:var(--ink);}
.v12p-custo-vida-form legend + *{clear:both;}
.v12p-custo-vida-teus legend span{font-size:13.5px;font-weight:600;letter-spacing:0;color:var(--muted);}
.v12p-custo-vida-campo{display:block;}
.v12p-custo-vida-campo small,.v12p-custo-vida-extras > small{display:block;margin-bottom:6px;font-size:12.5px;font-weight:700;color:#3A342D;}
.v12p-custo-vida-campo em{display:block;margin-top:6px;font-style:normal;font-size:12px;line-height:1.4;color:var(--muted);}
.v12p-custo-vida-form select,.v12p-custo-vida-form input{width:100%;height:46px;padding:0 14px;border:1.5px solid #E2DCD3;border-radius:8px;background:#fff;font-family:'Manrope',sans-serif;font-size:14.5px;color:var(--ink);}
.v12p-custo-vida-form select{appearance:none;-webkit-appearance:none;padding-right:40px;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314110D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;}
.v12p-custo-vida-form select:focus,.v12p-custo-vida-form input:focus{outline:2.5px solid var(--navy);outline-offset:1px;border-color:var(--navy);}
.v12p-custo-vida-eur{position:relative;display:block;}
.v12p-custo-vida-eur input{padding-right:34px;}
.v12p-custo-vida-eur i{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-style:normal;font-weight:700;font-size:14px;color:var(--muted);pointer-events:none;}
.v12p-custo-vida-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px;}
.v12p-custo-vida-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.v12p-custo-vida-dica{margin-top:12px;font-size:13px;color:var(--muted);}
.v12p-custo-vida-form .v12p-custo-vida-teus{margin-top:18px;}
.v12p-custo-vida-extras{margin-top:18px;padding-top:16px;border-top:1px solid #F1ECE3;}
.v12p-custo-vida-extras .v12p-custo-vida-2{margin-top:0;}
.v12p-custo-vida-extra{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;}
.v12p-custo-vida-bt{border:0;cursor:pointer;font-family:'Manrope',sans-serif;}

/* ---------- resultado: totais ---------- */
.v12p-custo-vida-totais{display:grid;grid-template-columns:1fr 1fr 1.1fr;gap:16px;margin-bottom:18px;}
.v12p-custo-vida-total{position:relative;display:flex;flex-direction:column;gap:4px;padding:22px 24px;border-radius:var(--v12-raio);background:var(--cv-a);color:#fff;overflow:hidden;}
.v12p-custo-vida-total.v12p-custo-vida-b{background:var(--cv-b);}
.v12p-custo-vida-total .v12p-custo-vida-marca{position:absolute;right:18px;top:18px;background:rgba(255,255,255,.18);}
.v12p-custo-vida-total small{font-size:14px;font-weight:700;opacity:.9;}
.v12p-custo-vida-total b{font-family:'Manrope',sans-serif;font-weight:800;font-size:44px;line-height:1.05;letter-spacing:-.04em;}
.v12p-custo-vida-total > span:last-child{font-size:13px;opacity:.85;}
.v12p-custo-vida-dif{display:flex;flex-direction:column;justify-content:center;gap:6px;padding:22px 24px;border-radius:var(--v12-raio);background:#EEF3FA;}
.v12p-custo-vida-dif b{font-family:'Manrope',sans-serif;font-weight:800;font-size:19px;line-height:1.3;letter-spacing:-.02em;color:var(--navy);}
.v12p-custo-vida-dif span{font-size:14px;color:#3A342D;}

/* ---------- resultado: tabela ---------- */
.v12p-custo-vida-caixa{background:#fff;border:1px solid #ECE7E0;border-radius:var(--v12-raio);}
.v12p-custo-vida-rolar{overflow-x:auto;}
.v12p-custo-vida-rolar:focus-visible{outline:2.5px solid var(--navy);outline-offset:2px;}
.v12p-custo-vida-tab{width:100%;min-width:560px;border-collapse:collapse;font-size:14.5px;}
.v12p-custo-vida-tab thead th{padding:14px 20px;text-align:left;font-size:13px;font-weight:800;color:var(--ink);border-bottom:1px solid #ECE7E0;}
.v12p-custo-vida-tab thead .v12p-custo-vida-marca{width:22px;height:22px;font-size:11.5px;margin-right:6px;}
.v12p-custo-vida-tab tbody tr + tr{border-top:1px solid #F3EFE9;}
.v12p-custo-vida-tab tbody th{width:24%;padding:12px 20px;text-align:left;font-weight:700;color:#4A443C;}
.v12p-custo-vida-tab td{width:38%;padding:12px 20px;}
.v12p-custo-vida-val{display:flex;align-items:center;gap:12px;}
.v12p-custo-vida-val b{font-variant-numeric:tabular-nums;}
.v12p-custo-vida-val small{font-size:12px;color:var(--muted);}
.v12p-custo-vida-falta{display:inline-flex;padding:3px 9px;border-radius:5px;background:#F6F2EC;font-size:12.5px;font-weight:700;color:var(--muted);}
.v12p-custo-vida-nada{color:var(--muted);}
.v12p-custo-vida-tab tfoot tr{border-top:2px solid var(--ink);}
.v12p-custo-vida-tab tfoot th{padding:14px 20px;text-align:left;font-weight:800;}
.v12p-custo-vida-tab tfoot td{padding:14px 20px;text-align:left;font-family:'Manrope',sans-serif;font-weight:800;font-size:20px;letter-spacing:-.02em;color:var(--navy);font-variant-numeric:tabular-nums;}
.v12p-custo-vida-nota{margin-top:10px;font-size:13px;color:var(--muted);}

/* ---------- fontes ---------- */
.v12p-custo-vida-fontes{padding-top:34px;padding-bottom:60px;}
.v12p-custo-vida-fontes-in{padding:24px 28px;border-radius:12px;background:#F3EFE9;border:1px solid #ECE7E0;}
.v12p-custo-vida-fontes h2{font-family:'Manrope',sans-serif;font-weight:800;font-size:19px;letter-spacing:-.02em;}
.v12p-custo-vida-fontes dl{margin:12px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.v12p-custo-vida-fontes dt{font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--orange);}
.v12p-custo-vida-fontes dd{margin:6px 0 0;font-size:13.5px;line-height:1.55;color:#3A342D;}

@media (max-width:1100px){
  .v12p-custo-vida-totais{grid-template-columns:1fr 1fr;}
  .v12p-custo-vida-dif{grid-column:1 / -1;}
}
@media (max-width:980px){
  .v12p-custo-vida-cidades{grid-template-columns:1fr;}
  .v12p-custo-vida-3{grid-template-columns:1fr 1fr;}
  .v12p-custo-vida-fontes dl{grid-template-columns:1fr;gap:14px;}
}
@media (max-width:640px){
  .v12p-custo-vida-cartao{display:none;}
  .v12p-custo-vida-2,.v12p-custo-vida-3,.v12p-custo-vida-totais{grid-template-columns:1fr;}
  .v12p-custo-vida-cidade,.v12p-custo-vida-teus{padding:16px;}
  .v12p-custo-vida-total b{font-size:36px;}
  .v12p-custo-vida-fontes-in{padding:20px;}
  .v12p-custo-vida-bt{width:100%;justify-content:center;}
}
.v12p-custo-vida-total-vazio{background:#fff !important;color:var(--ink);border:1.5px dashed #D9D1C5;justify-content:center;}
.v12p-custo-vida-total-vazio b{font-size:20px;letter-spacing:-.02em;}
.v12p-custo-vida-total-vazio small{color:var(--muted);}
.v12p-custo-vida-total-vazio:hover{border-color:var(--orange);}

/* #calcular: até 16 out. 2026 vinha do v12-p-provas.css, carregado em todas as páginas (a secção "Calcular" desta página
   tem o mesmo id). Com o CSS por página (PERF-02) a regra passa a viver também aqui, igual, para nada mudar. */
#calcular{scroll-margin-top:80px;padding-top:36px;}

/* total: "/mês" pequeno ao lado do valor (29 out. 2026) */
.v12p-custo-vida-total b .v12p-custo-vida-mes{font-size:18px;font-weight:700;letter-spacing:0;margin-left:4px;opacity:.85;}

/* computador, versão A aprovada (18 nov. 2026): a caixa de números do topo passa a laranja da marca com texto branco a negrito,
   cantos 12 px; títulos das secções a preto */
.v12p-custo-vida .v12p-custo-vida-cartao{background:#F15922;border:0;border-radius:12px;box-shadow:none;color:#fff;}
.v12p-custo-vida .v12p-custo-vida-cartao .v12-es-dado + .v12-es-dado{border-top-color:rgba(255,255,255,.35);}
.v12p-custo-vida .v12p-custo-vida-cartao .v12-es-dado b,.v12p-custo-vida .v12p-custo-vida-cartao .v12-es-dado small{color:#fff;}
.v12p-custo-vida .v12p-custo-vida-cartao .v12-es-dado svg{stroke:#fff;opacity:0;} /* 18 nov.: caixa laranja só com texto, como o aprovado (o lugar do ícone fica, como no estrangeiro) */
.v12p-custo-vida .v12p-custo-vida-sec h2,.v12p-custo-vida .v12p-custo-vida-fontes h2{color:var(--ink);}
