/* forum_v12 · TELEMÓVEL: custo de vida (ecrã "custo-vida" aprovado, Final de 17 nov. 2026; partes/v12p/custo-vida-tel.php).
   Topo laranja com as duas cidades e o botão de trocar, cartões brancos com barras de deslizar, resultado ao vivo com os
   cartões A (azul) e B (verde) presos por baixo do cabeçalho. Só até 767 px. 18 nov. 2026. */
@media (max-width:767px){
.v12p-custo-vida{--cvt-a:var(--navy,#03294E);--cvt-b:#1D7A4E;background:var(--paper-alt,#F1ECE3);}
.v12p-custo-vida-tel{padding-bottom:8px;}
.v12p-custo-vida-tel svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.v12p-custo-vida-tel-topo{background:#F15922;color:#fff;padding:6px var(--v12-tel-g) 64px;}
.v12p-custo-vida-tel-volta{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-bottom:10px;font:700 15px 'Manrope',sans-serif;color:#fff !important;text-decoration:none;}
.v12p-custo-vida-tel-volta svg{width:18px;height:18px;}
.v12p-custo-vida-tel-h1{margin:0;font:800 40px/1 'Manrope',sans-serif;letter-spacing:-.035em;color:#fff;}
.v12p-custo-vida-tel-h1 span{display:inline-block;margin-top:6px;padding:0 10px 4px;border-radius:8px;background:var(--navy,#03294E);color:#fff;}
.v12p-custo-vida-tel-par{position:relative;display:flex;flex-direction:column;gap:8px;margin-top:18px;}
.v12p-custo-vida-tel-cid{display:flex;align-items:center;gap:10px;height:56px;padding:0 6px 0 14px;border-radius:999px;background:#fff;color:var(--ink);box-shadow:0 8px 24px rgba(20,17,13,.18);}
.v12p-custo-vida-tel-l{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--cvt-a);color:#fff;font:800 14px 'Manrope',sans-serif;}
.v12p-custo-vida-tel-kb.v12p-custo-vida-tel-l{background:var(--cvt-b);}
.v12p-custo-vida-tel-sel{position:relative;display:block;flex:1;min-width:0;}
.v12p-custo-vida-tel-sel select{width:100%;height:52px;padding:0 36px 0 0;border:0;background:none;font:700 17px 'Manrope',sans-serif;color:var(--ink);appearance:none;-webkit-appearance:none;outline:0;}
.v12p-custo-vida-tel-sel svg{position:absolute;right:10px;top:16px;pointer-events:none;color:#F15922;}
.v12p-custo-vida-tel-troca{position:absolute;right:58px;top:50%;z-index:2;display:grid;place-items:center;width:44px;height:44px;margin-top:-22px;padding:0;border:3px solid #fff;border-radius:50%;background:var(--navy,#03294E);color:#fff;cursor:pointer;}
.v12p-custo-vida-tel-cartao{position:relative;margin:-44px var(--v12-tel-g) 0;padding:18px 16px;border-radius:20px;background:#fff;box-shadow:0 14px 34px rgba(20,17,13,.1);}
.v12p-custo-vida-tel-cartao + .v12p-custo-vida-tel-cartao{margin-top:14px;}
.v12p-custo-vida-tel-ct{display:flex;align-items:center;gap:10px;}
.v12p-custo-vida-tel-ct h2{margin:0;font:800 19px/1.2 'Manrope',sans-serif !important;letter-spacing:-.01em;color:var(--ink);}
.v12p-custo-vida-tel-n{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#F15922;color:#fff;font:800 16px 'Manrope',sans-serif;}
.v12p-custo-vida-tel-aj{margin:8px 0 4px;font-size:15px;line-height:1.45;color:var(--muted);}
.v12p-custo-vida-tel-sl{margin-top:14px;}
.v12p-custo-vida-tel-slt{display:flex;align-items:baseline;gap:8px;font:700 16px 'Manrope',sans-serif;color:var(--ink);}
.v12p-custo-vida-tel-slt span{flex:1;}
.v12p-custo-vida-tel-slt output{font-size:24px;font-weight:800;}
.v12p-custo-vida-tel-slt button{display:grid;place-items:center;width:44px;height:44px;margin:-10px -10px -10px 0;padding:0;border:0;background:none;color:var(--muted);cursor:pointer;}
.v12p-custo-vida-tel-slt button svg{width:18px;height:18px;}
.v12p-custo-vida-tel-sl input[type=range]{width:100%;height:40px;margin:0;accent-color:#F15922;}
.v12p-custo-vida-tel-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;}
.v12p-custo-vida-tel-chips > span{font-size:14px;font-weight:700;color:var(--muted);}
.v12p-custo-vida-tel-chips button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px 0 10px;border:1.5px solid var(--border);border-radius:999px;background:#fff;color:var(--ink);font:700 15px 'Manrope',sans-serif;cursor:pointer;}
.v12p-custo-vida-tel-chips button[hidden]{display:none;}
.v12p-custo-vida-tel-chips svg{width:18px;height:18px;}
.v12p-custo-vida-tel-apl{padding:14px 0;border-bottom:1px solid var(--border);}
.v12p-custo-vida-tel-apl:last-child{padding-bottom:0;border-bottom:0;}
.v12p-custo-vida-tel-apl > .v12p-custo-vida-tel-l{display:inline-grid;vertical-align:middle;}
.v12p-custo-vida-tel-apl > b{margin-left:8px;vertical-align:middle;font:800 16px 'Manrope',sans-serif;}
.v12p-custo-vida-tel-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:12px;}
.v12p-custo-vida-tel-campo{display:block;}
.v12p-custo-vida-tel-campo > span:first-child{display:block;margin-bottom:6px;font-size:14px;font-weight:700;color:var(--ink);}
.v12p-custo-vida-tel-in{display:flex;align-items:center;min-width:0;height:52px;padding:0 16px;border:1.5px solid var(--border);border-radius:12px;background:#fff;}
.v12p-custo-vida-tel-in:focus-within{border-color:var(--ink);}
.v12p-custo-vida-tel-in input{flex:1;width:100%;min-width:0;border:0;outline:0;background:none;font:700 17px 'Manrope',sans-serif;color:var(--ink);}
.v12p-custo-vida-tel-in i{font-style:normal;font-weight:800;color:var(--muted);}
/* resultado */
.v12p-custo-vida-tel-zona{padding:18px var(--v12-tel-g) 0;}
.v12p-custo-vida-tel-tops{position:sticky;top:var(--v12-tel-topo,56px);z-index:6;display:grid;gap:8px;margin:0 calc(-1 * var(--v12-tel-g));padding:8px var(--v12-tel-g);background:var(--paper-alt,#F1ECE3);transition:top .25s ease;}
.v12p-custo-vida-tel-top{min-width:0;padding:9px 12px 10px;border-radius:12px;background:var(--cvt-a);color:#fff;}
.v12p-custo-vida-tel-top.v12p-custo-vida-tel-kb{background:var(--cvt-b);}
.v12p-custo-vida-tel-tl{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;background:rgba(255,255,255,.2);font:800 13px 'Manrope',sans-serif;vertical-align:middle;}
.v12p-custo-vida-tel-top > b{margin-left:6px;font:800 15px 'Manrope',sans-serif;vertical-align:middle;overflow-wrap:anywhere;}
.v12p-custo-vida-tel-top strong{display:block;margin-top:4px;font:800 24px/1.1 'Manrope',sans-serif;letter-spacing:-.03em;}
.v12p-custo-vida-tel-top small{display:block;font-size:12px;line-height:1.3;opacity:.85;}
.v12p-custo-vida-tel-fr{margin:12px 0 0;padding:14px 16px;border-radius:12px;background:#FDEEE7;font-size:16px;line-height:1.45;color:var(--ink);}
.v12p-custo-vida-tel-li{margin-top:10px;padding:14px;border:1px solid var(--border);border-radius:12px;background:#fff;}
.v12p-custo-vida-tel-li h3{margin:0 0 10px;font:800 16px 'Manrope',sans-serif;color:var(--ink);}
.v12p-custo-vida-tel-v{display:grid;gap:8px;}
.v12p-custo-vida-tel-c{min-width:0;padding:8px 8px 10px;border-radius:10px;background:var(--paper-alt,#F1ECE3);}
.v12p-custo-vida-tel-c b{display:block;font:800 22px/1.1 'Manrope',sans-serif;letter-spacing:-.02em;color:var(--ink);}
.v12p-custo-vida-tel-t{display:block;padding:3px 0;font-size:14px;font-weight:700;color:var(--muted);}
.v12p-custo-vida-tel-bar{display:block;height:6px;margin-top:8px;border-radius:6px;background:rgba(20,17,13,.08);overflow:hidden;}
.v12p-custo-vida-tel-bar i{display:block;height:100%;border-radius:6px;background:var(--cvt-a);}
.v12p-custo-vida-tel-kb .v12p-custo-vida-tel-bar i{background:var(--cvt-b);}
.v12p-custo-vida-tel-best{background:#FDEEE7;box-shadow:inset 0 0 0 2px #F15922;}
.v12p-custo-vida-tel-c em{display:block;margin-top:6px;font-style:normal;font-size:13px;font-weight:800;color:#F15922;}
.v12p-custo-vida-tel-vazio{padding:20px;border:1px solid var(--border);border-radius:12px;background:#fff;text-align:center;font-weight:700;}
/* fontes: lista simples, como no ecrã aprovado */
.v12p-custo-vida-fontes{padding:30px var(--v12-tel-g) 0 !important;}
.v12p-custo-vida-fontes-in{padding:0 !important;border:0 !important;background:none !important;}
.v12p-custo-vida-fontes h2{font:800 24px/1.15 'Manrope',sans-serif !important;letter-spacing:-.02em;color:var(--ink) !important;}
.v12p-custo-vida-fontes dl{display:block !important;margin:12px 0 0;border-top:1px solid var(--border);}
.v12p-custo-vida-fontes dl > div{padding:14px 0;border-bottom:1px solid var(--border);}
.v12p-custo-vida-fontes dt{font:800 16px 'Manrope',sans-serif !important;letter-spacing:0 !important;text-transform:none !important;color:var(--ink) !important;}
.v12p-custo-vida-fontes dd{margin:4px 0 0;font-size:15px !important;line-height:1.5;color:var(--ink-3);}
/* 20 nov. 2026 (revisão, aprovado 32): o espaço do fim no mesmo bege da página (sem faixa clara antes do rodapé) */
body:has(.v12p-custo-vida) .v12-espaco-fundo{background:var(--paper-alt,#F1ECE3);}
}
