@font-face { font-family: "Geist"; src: url("/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #060606;
  --bg-2: #0f0f10;
  --ink: #f2f2f0;
  --ink-2: #b3b4b8;
  --mut: #7c7e84;
  --line: #222326;
  --line-2: #34363a;
  --acc: #ff5b1f;
  --acc-2: #ff8a52;
  --sobe: #ff7a45;
  --desce: #7fb2ff;
  --fora: #151516;
  --r: 8px;
  --g: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
@media (min-width: 768px) { :root { --g: 40px; } }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; }
img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--g); }
.sobe { color: var(--sobe); }
.desce { color: var(--desce); }
.mut { color: var(--mut); }

/* Cabeçalho */
.top { position: sticky; top: 0; z-index: 40; background: rgb(6 6 6 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; height: 56px; gap: 8px; }
.logo { font-weight: 600; letter-spacing: -0.015em; text-decoration: none; font-size: 15px; white-space: nowrap; min-height: 44px; display: flex; align-items: center; }
.nav { display: none; gap: 4px; margin-left: 28px; }
.nav a { text-decoration: none; color: var(--mut); font-size: 14px; padding: 8px 10px; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.procurar { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s; }
.procurar:hover { border-color: var(--mut); color: var(--ink); }
.procurar svg { width: 14px; height: 14px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 899px) {
  .top.aberto .nav { display: flex; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px var(--g) 14px; margin: 0; }
  .top.aberto .nav a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
}

/* Pesquisa */
.pesquisa { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .7); display: flex; justify-content: center; align-items: flex-start; padding: 64px var(--g) 0; }
.procura { position: relative; width: 100%; max-width: 560px; }
.procura-campo { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); }
.procura-campo:focus-within { border-color: var(--acc); }
.procura-campo svg { width: 18px; height: 18px; color: var(--mut); flex: none; }
.procura-campo input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; height: 100%; }
.procura-campo input::placeholder { color: var(--mut); }
.resultados { position: absolute; left: 0; right: 0; top: 62px; z-index: 30; list-style: none; margin: 0; padding: 0; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); max-height: min(60vh, 440px); overflow: auto; }
.resultados a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; min-height: 56px; border-bottom: 1px solid var(--line); }
.resultados li:last-child a { border-bottom: 0; }
.resultados a:hover, .resultados a[aria-selected="true"] { background: #1a1a1c; }
.resultados small { display: block; color: var(--mut); font-size: 13px; }
.resultados .preco { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.resultados .vazio { padding: 16px; color: var(--mut); }

/* Carregar */
.carregar { padding: 40px var(--g); display: grid; gap: 14px; max-width: 1280px; margin: 0 auto; }
.sk { background: linear-gradient(90deg, #111, #1a1a1b, #111); background-size: 200% 100%; animation: brilho 1.4s infinite linear; border-radius: 4px; }
.sk-h { height: 40px; width: min(520px, 90%); }
.sk-p { height: 18px; width: min(360px, 70%); }
.sk-map { height: 60vh; margin-top: 16px; }
@keyframes brilho { to { background-position: -200% 0; } }

/* Topo: três perguntas, resposta e mapa */
.palco { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 0 56px; }
.palco > * { min-width: 0; }
.grupo.largo { grid-auto-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .palco { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 48px 0 72px; align-items: start; } .mapa-lado { position: sticky; top: 76px; } }
.titulo { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.045em; line-height: 1.02; }
.titulo-sub { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 44ch; }
.perguntas { margin-top: 28px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
.pergunta { padding: 20px; border-bottom: 1px solid var(--line); }
.pergunta:last-child { border-bottom: 0; }
.pergunta label, .pergunta .rot { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.passo { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; display: grid; place-items: center; flex: none; }
.entrada { display: flex; align-items: center; height: 60px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); padding: 0 18px; transition: border-color .2s; }
.entrada:focus-within { border-color: var(--acc); }
.entrada input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; height: 100%; }
.entrada span { font-size: 22px; color: var(--mut); font-weight: 500; }
.rapidos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rapidos button { height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.rapidos button:hover { border-color: var(--mut); color: var(--ink); }
.rapidos button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.ajuda { font-size: 13px; color: var(--mut); margin-top: 10px; line-height: 1.5; }
.ajuda a { color: var(--ink-2); }
.grupo.largo { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.grupo.largo button { height: 52px; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.grupo.largo button small { font-size: 12px; font-weight: 400; opacity: .7; margin-top: 2px; }
.resposta { margin-top: 32px; }
.resposta h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; line-height: 1.12; }
.resposta h2 em { font-style: normal; color: var(--acc); }
.resposta .ranking { counter-reset: none; margin-top: 16px; }
.resposta .ranking a { grid-template-columns: minmax(0, 1fr) auto; }
.resposta .ranking a::before { content: none; }
.mais { width: 100%; height: 48px; margin-top: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--ink); font-size: 15px; cursor: pointer; }
.mais:hover { border-color: var(--mut); }
.mapa-tit { font-size: 14px; color: var(--mut); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ponto { width: 10px; height: 10px; display: inline-block; margin-left: 6px; }
.ponto.cabe { background: var(--acc); }
.ponto.nao { background: #26272a; }
.mapa-caixa { position: relative; margin: 12px calc(var(--g) * -1) 0; height: min(78vh, 760px); }
@media (min-width: 1000px) { .mapa-caixa { margin: 12px 0 0; height: calc(100dvh - 130px); } }
.mapa-caixa svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.mapa-caixa path { stroke: var(--bg); stroke-width: .6; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .45s ease; }
.mapa-caixa path.ativo { stroke: var(--ink); stroke-width: 2; }
.mapa-caixa .caixa-ilhas { fill: none; stroke: var(--line-2); stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.mapa-caixa text { fill: var(--mut); font-size: 11px; font-family: var(--font); }

/* Folha de baixo e dica */
.folha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg-2); border-top: 1px solid var(--line-2); border-radius: 14px 14px 0 0; padding: 10px var(--g) calc(18px + env(safe-area-inset-bottom)); animation: folha .3s var(--ease); }
.folha .pega { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 12px; }
.folha .fechar { position: absolute; top: 6px; right: 8px; }
.folha h3 { font-size: 24px; }
.folha .onde { color: var(--mut); font-size: 14px; margin-top: 2px; }
.folha .linhas { margin-top: 12px; }
.folha .acao { margin-top: 14px; }
@keyframes folha { from { transform: translateY(100%); } }
.tip { position: fixed; z-index: 70; pointer-events: none; background: var(--ink); color: var(--bg); padding: 10px 12px; border-radius: 6px; font-size: 13px; line-height: 1.45; max-width: 270px; }
.tip b { display: block; font-size: 15px; }
.tip .ok { color: #157a3c; font-weight: 600; }
.tip .nao { color: #b3360c; font-weight: 600; }

/* Linhas de dados (estilo jornal) */
.linhas { display: grid; }
.linhas div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.linhas div:first-child { border-top: 1px solid var(--line); }
.linhas span { color: var(--mut); }
.linhas b { font-weight: 500; text-align: right; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--r); border: 0; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s; }
.btn:hover { background: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-2 { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-2:hover { background: var(--bg-2); }
.ligacao { color: var(--acc); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.ligacao:hover { text-decoration: underline; }

/* Secções */
.sec { padding: 72px 0; border-top: 1px solid var(--line); }
.sec-h { font-size: clamp(30px, 4.6vw, 60px); letter-spacing: -0.045em; max-width: 18ch; }
.sec-h em { font-style: normal; color: var(--acc); }
.sec-p { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 54ch; }
.fonte { font-size: 13px; color: var(--mut); margin-top: 16px; }
.dois { display: grid; gap: 40px; margin-top: 36px; }
@media (min-width: 960px) { .dois { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Barras de comparação */
.comp { display: grid; gap: 16px; margin-top: 32px; max-width: 760px; }
.comp-l { display: grid; grid-template-columns: 140px minmax(0, 1fr) 76px; gap: 14px; align-items: center; font-size: 15px; }
.comp-l i { display: block; height: 22px; background: var(--ink-2); width: calc(var(--w) * 1%); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.comp-l.forte i { background: var(--acc); }
.comp-l b { text-align: right; font-weight: 600; font-size: 18px; }
.visto .comp-l i { transform: scaleX(1); }
@media (max-width: 560px) { .comp-l { grid-template-columns: 1fr auto; gap: 6px 10px; } .comp-l i { grid-column: 1 / -1; grid-row: 2; height: 14px; } }

/* Números grandes */
.grande { font-size: clamp(80px, 15vw, 200px); font-weight: 600; letter-spacing: -0.07em; line-height: .82; color: var(--acc); }
.grande small { font-size: .26em; letter-spacing: -0.02em; color: var(--mut); font-weight: 500; margin-left: .12em; }
.grande-t { font-size: clamp(22px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; max-width: 22ch; margin-top: 18px; }
.grande-t span { color: var(--mut); }

/* Tabela de inflação e listas */
.tabela-dados { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 16px; }
.tabela-dados th { text-align: right; font-weight: 400; color: var(--mut); font-size: 13px; padding: 0 0 10px; }
.tabela-dados th:first-child, .tabela-dados td:first-child { text-align: left; }
.tabela-dados td { padding: 14px 0; border-top: 1px solid var(--line); text-align: right; }
.tabela-dados td b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ranking { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: n; }
.ranking a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); text-decoration: none; min-height: 52px; }
.ranking li:last-child a { border-bottom: 1px solid var(--line); }
.ranking a::before { counter-increment: n; content: counter(n); color: var(--mut); font-size: 13px; }
.ranking a:hover .nome { color: var(--acc); }
.ranking .nome { font-weight: 500; transition: color .2s; }
.ranking .nome small { display: block; color: var(--mut); font-weight: 400; font-size: 13px; }
.ranking .val { text-align: right; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.ranking .val small { display: block; color: var(--mut); font-weight: 400; font-size: 13px; letter-spacing: 0; }

/* Ficha de zona */
.migalhas { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--mut); padding-top: 24px; }
.migalhas a { color: var(--ink-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.migalhas a:hover { color: var(--ink); }
.zona-top { padding: 14px 0 36px; }
.zona-top h1 { font-size: clamp(52px, 10vw, 128px); letter-spacing: -0.06em; line-height: .9; }
.zona-frase { margin-top: 20px; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink-2); max-width: 36ch; font-weight: 500; }
.zona-frase b { color: var(--ink); font-weight: 600; }
.zona-frase em { font-style: normal; color: var(--acc); font-weight: 600; }
.numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .numeros { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.numeros > div { padding: 18px 16px 20px 0; border-bottom: 1px solid var(--line); }
.numeros span { display: block; font-size: 13px; color: var(--mut); }
.numeros b { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.04em; margin-top: 6px; line-height: 1; }
.numeros small { display: block; font-size: 13px; margin-top: 6px; color: var(--mut); }
.bloco { padding: 56px 0 0; }
.bloco-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.bloco h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.04em; }
.g-area { margin-top: 20px; position: relative; }
.g-svg { width: 100%; overflow: visible; }
.g-svg .grelha { stroke: var(--line); }
.g-svg .eixo { stroke: var(--line-2); }
.g-svg text { fill: var(--mut); font-size: 12px; font-family: var(--font); }
.g-svg .cruz { stroke: var(--mut); stroke-dasharray: 2 3; }
.g-svg .linha { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: tracar 1.4s var(--ease) forwards; }
@keyframes tracar { to { stroke-dashoffset: 0; } }
.legenda-series { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.legenda-series span { display: inline-flex; align-items: center; gap: 8px; }
.legenda-series i { width: 16px; height: 2px; display: inline-block; }
.legenda-series i.trac { background: repeating-linear-gradient(90deg, var(--mut) 0 4px, transparent 4px 7px) !important; }
.calc { margin-top: 24px; }
.calc .frase { font-size: clamp(24px, 3vw, 36px); }
.calc .veredito { margin-top: 18px; font-size: 20px; letter-spacing: -0.015em; }
.calc .veredito b { color: var(--acc); }
.vizinhos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.vizinhos a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; font-size: 14px; }
.vizinhos a:hover { border-color: var(--mut); }
.vizinhos a span { color: var(--mut); }
.mapa-freg { position: relative; height: 440px; margin-top: 24px; }
.mapa-freg svg { width: 100%; height: 100%; }
.mapa-freg path { stroke: var(--bg); stroke-width: .8; vector-effect: non-scaling-stroke; cursor: pointer; }
.mapa-freg path.ativo { stroke: var(--ink); stroke-width: 2; }

/* Tabela completa */
.filtro { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.filtro .procura-campo { flex: 1 1 260px; max-width: 420px; height: 48px; }
.tabela-caixa { overflow-x: auto; margin-top: 18px; border-top: 1px solid var(--line-2); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th, .t td { padding: 13px 14px; text-align: right; white-space: nowrap; }
.t th:first-child, .t td:first-child { text-align: left; position: sticky; left: 0; background: var(--bg); padding-left: 0; }
.t thead th { font-weight: 400; color: var(--mut); font-size: 13px; border-bottom: 1px solid var(--line-2); }
.t thead th button { all: unset; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }
.t thead th button:focus-visible { outline: 2px solid var(--acc); }
.t tbody tr { border-bottom: 1px solid var(--line); }
.t tbody tr:hover td { background: var(--bg-2); }
.t td a { text-decoration: none; font-weight: 500; }
.t td a:hover { color: var(--acc); }
.t td.nd { color: var(--mut); }

/* Texto */
.texto { max-width: 68ch; padding: 48px 0 72px; }
.texto h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.05em; }
.texto h2 { font-size: 22px; margin-top: 40px; }
.texto p, .texto li { color: var(--ink-2); margin-top: 12px; font-size: 17px; }
.texto ul { padding-left: 20px; }
.texto a { color: var(--acc); }
.atual { font-size: 14px; color: var(--mut); margin-top: 10px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; padding: 16px 0; font-weight: 500; min-height: 44px; }
details p { margin: 0 0 16px !important; }

/* Rodapé */
.rodape { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--mut); }
.rodape-in { display: grid; gap: 20px; }
@media (min-width: 768px) { .rodape-in { grid-template-columns: 1fr auto; } }
.rodape-titulo { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.rodape-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.rodape-links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); }
.rodape-links a:hover { color: var(--ink); }
.rodape-fim { grid-column: 1 / -1; font-size: 13px; }

.topo { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; display: grid; place-items: center; z-index: 30; color: var(--ink); }
.topo svg { width: 20px; height: 20px; }
.erro { padding: 72px 0; }
.erro h1 { font-size: 40px; }
.erro p { margin-top: 12px; color: var(--ink-2); }
.erro .btn { margin-top: 22px; }

.revelar { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.revelar.visto { opacity: 1; transform: none; }
.entrar { animation: entrar .6s var(--ease) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .grande { animation: crescer linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; transform-origin: left bottom; }
  }
}
@keyframes crescer { from { transform: scale(.8); opacity: .15; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .revelar { opacity: 1; transform: none; }
  .g-svg .linha { stroke-dashoffset: 0; }
}
@media print {
  body { background: #fff; color: #000; }
  .top, .rodape, .topo, .folha, .pesquisa { display: none !important; }
  .revelar { opacity: 1; transform: none; }
}
.grupo { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.grupo button { height: 40px; min-width: 44px; padding: 0 14px; border: 0; border-right: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.grupo button:last-child { border-right: 0; }
.grupo button:hover { color: var(--ink); background: #161618; }
.grupo button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.grupo.largo { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
.grupo.largo button { height: 52px; font-size: 16px; }

.linhas b small { font-size: 13px; font-weight: 500; margin-left: 6px; }
/* Comparar */
.comparar-escolha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 24px; max-width: 720px; }
.comparar-escolha label { display: grid; gap: 6px; font-size: 13px; color: var(--mut); }
.comparar-escolha select { width: 100%; min-width: 0; height: 52px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; padding: 0 14px; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.comparar-escolha select:focus { border-color: var(--acc); outline: none; }
.t.comparar td:first-child { color: var(--ink-2); white-space: normal; min-width: 140px; }
.t.comparar td.melhor { color: var(--acc); font-weight: 600; }
.t.comparar th { color: var(--ink); font-weight: 600; font-size: 15px; }
.atalhos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Telemóvel: barra de baixo, resumo fixo, menos texto */
.tabs { display: none; }
.resumo-fixo { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgb(10 10 11 / .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a, .tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px; border: 0; background: none; color: var(--mut); font: inherit; font-size: 11px; text-decoration: none; cursor: pointer; }
  .tabs svg { width: 23px; height: 23px; }
  .tabs [aria-current="page"] { color: var(--ink); }
  .tabs [aria-current="page"] svg { color: var(--acc); }
  .nav, .menu-btn, .procurar { display: none !important; }
  .topo { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .folha { bottom: 0; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .titulo-sub { display: none; }
  .titulo { font-size: 32px; }
  .palco { padding-top: 18px; gap: 20px; }
  .perguntas { margin-top: 18px; }
  .pergunta { padding: 16px; }
  .pergunta label, .pergunta .rot { margin-bottom: 10px; font-size: 15px; }
  .rapidos { flex-wrap: nowrap; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .rapidos::-webkit-scrollbar { display: none; }
  .rapidos button { flex: none; }
  .resposta { margin-top: 20px; }
  .resposta h2 { font-size: 26px; }
  .resumo-fixo { display: flex; position: fixed; top: 56px; left: 0; right: 0; z-index: 35; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--g); background: rgb(15 15 16 / .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); font-size: 14px; transform: translateY(-120%); transition: transform .3s var(--ease); }
  .resumo-fixo.ver { transform: none; }
  .resumo-fixo b { color: var(--acc); }
  .resumo-fixo button { flex: none; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 13px; }
  .sec { padding: 48px 0; }
  .zona-top { padding-bottom: 24px; }
  .zona-frase { font-size: 19px; }
}
.mais-opcoes { border-top: 1px solid var(--line); }
.mais-opcoes summary { padding: 16px 20px; color: var(--ink-2); font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mais-opcoes summary::after { content: "+"; font-size: 20px; color: var(--mut); }
.mais-opcoes[open] summary::after { content: "−"; }
.mais-opcoes summary::-webkit-details-marker { display: none; }
.mais-opcoes .pergunta { border-top: 1px solid var(--line); border-bottom: 0; }

/* Mapa logo a seguir à resposta */
.lista-t { font-size: 18px; letter-spacing: -0.02em; margin-top: 8px; }
.mapa-ilhas { display: none; }
@media (min-width: 1000px) {
  .palco { grid-template-areas: "lado mapa" "lista mapa"; grid-template-rows: auto 1fr; }
  .palco > .lado { grid-area: lado; }
  .palco > .mapa-lado { grid-area: mapa; }
  .palco > .lista-lado { grid-area: lista; }
}
@media (max-width: 999px) {
  .mapa-dupla { display: grid; grid-template-columns: minmax(0, 1fr) 34%; gap: 6px; align-items: start; margin-top: 8px; }
  .mapa-dupla .mapa-caixa { margin: 0; height: min(64vh, 560px); }
  .mapa-ilhas { display: block; position: relative; aspect-ratio: 220 / 330; }
  .mapa-ilhas svg { width: 100%; height: 100%; position: absolute; inset: 0; }
  .mapa-ilhas path { stroke: var(--bg); stroke-width: .5; vector-effect: non-scaling-stroke; }
  .mapa-ilhas path.ativo { stroke: var(--ink); stroke-width: 2; }
  .mapa-ilhas .caixa-ilhas { fill: none; stroke: var(--line-2); stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
  .mapa-ilhas text { fill: var(--mut); font-size: 14px; font-family: var(--font); }
  .mapa-tit { font-size: 13px; }
  .passo { display: none; }
  .titulo { font-size: 28px; }
  .perguntas { margin-top: 14px; }
  .pergunta { padding: 12px 14px; }
  .pergunta label, .pergunta .rot { margin-bottom: 8px; font-size: 14px; color: var(--ink-2); }
  .entrada { height: 52px; padding: 0 14px; }
  .entrada input { font-size: 24px; }
  .rapidos { margin: 8px -14px 0; padding: 0 14px; }
  .rapidos button { height: 34px; }
  .grupo.largo button { height: 44px; font-size: 15px; }
  .grupo.largo button small { display: none; }
  #sal-ajuda { display: none; }
  .resposta { margin-top: 16px; }
  .resposta h2 { font-size: 24px; }
  .lista-lado { margin-top: 8px; }
}

/* Questionário: uma pergunta por ecrã */
.fluxo { min-height: calc(100dvh - 56px); display: grid; grid-template-rows: auto 1fr auto auto; max-width: 620px; margin: 0 auto; padding: 18px var(--g) 24px; }
@media (max-width: 899px) { .fluxo { min-height: calc(100dvh - 56px - 64px - env(safe-area-inset-bottom)); } }
.fx-topo { display: flex; align-items: center; gap: 12px; }
.fx-barra { flex: 1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.fx-barra i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .45s var(--ease); }
.fx-n { font-size: 13px; color: var(--mut); white-space: nowrap; }
.fx-palco { padding-top: 8vh; overflow: hidden; }
.fx-q { font-size: clamp(34px, 7vw, 52px); letter-spacing: -0.045em; line-height: 1.02; }
.fx-a { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.fx-entrada { margin-top: 28px; height: 72px; }
.fx-entrada input { font-size: 36px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fx-chips button { height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: none; color: var(--ink-2); font-size: 15px; cursor: pointer; transition: background .2s, color .2s, transform .12s; }
.fx-chips button:active, .fx-c:active { transform: scale(.97); }
.fx-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.fx-cartoes { display: grid; gap: 10px; margin-top: 28px; }
.fx-c { display: grid; gap: 4px; text-align: left; padding: 18px 20px; min-height: 76px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .12s; font: inherit; }
.fx-c b { font-size: 22px; letter-spacing: -0.02em; }
.fx-c span { font-size: 14px; color: var(--mut); }
.fx-c:hover { border-color: var(--mut); }
.fx-c[aria-pressed="true"] { border-color: var(--acc); background: #1a0f0a; }
.fx-c[aria-pressed="true"] b { color: var(--acc); }
.fx-acoes { display: flex; gap: 10px; padding-top: 24px; }
.fx-acoes .fx-seguir { flex: 1; }
.fx-acoes .btn { height: 54px; font-size: 16px; }
.fx-seguir { background: var(--acc); color: #120700; }
.fx-seguir:hover { background: var(--acc-2); }
.fx-saltar { margin: 14px auto 0; background: none; border: 0; color: var(--mut); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; min-height: 44px; }
.fx-refazer { margin-top: 8px; background: none; border: 0; padding: 0; color: var(--acc); font: inherit; font-size: 14px; cursor: pointer; min-height: 32px; }
.escolhas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.escolhas b { color: var(--ink); }
.escolhas .btn { height: 42px; padding: 0 18px; flex: none; }
.perguntas .fx-refazer { margin: 12px 16px 0; }

.m2-linha { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--mut); }
.m2-linha label { flex: none; }
.entrada.pequena { height: 44px; padding: 0 12px; flex: 1; max-width: 160px; }
.entrada.pequena input { font-size: 18px; }
.entrada.pequena span { font-size: 15px; }
.fx-cartoes.duas { grid-template-columns: 1fr 1fr; }
.fx-cartoes.duas .fx-c { min-height: 70px; padding: 14px 16px; }
.fx-cartoes.duas .fx-c span { font-size: 12px; }
.fx-m2 { margin-top: 16px; }
@media (max-width: 999px) { .grupo.largo button { padding: 0 6px; font-size: 14px; } }

/* Animações e toques */
.btn, .grupo button, .rapidos button, .fx-c, .chip, .vizinhos a, .escolhas .btn { transition: transform .12s ease, background .2s, color .2s, border-color .2s; }
.btn:active, .grupo button:active, .rapidos button:active, .vizinhos a:active, .mais:active { transform: scale(.97); }
.cascata { animation: cascata .5s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes cascata { from { opacity: 0; transform: translateY(10px); } }
.rotulo-cidade { fill: #fff; font: 600 12px var(--font); text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgb(0 0 0 / .75); stroke-width: 3px; stroke-linejoin: round; }
.acoes-r { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.acoes-r .btn { flex: 1 1 140px; }
.cartao-fundo { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .65); display: grid; place-items: center; padding: var(--g); animation: fade .2s ease-out; }
.cartao-sorte { position: relative; width: 100%; max-width: 420px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; animation: virar .55s var(--ease) both; transform-origin: center bottom; }
.cartao-sorte .fechar { position: absolute; top: 8px; right: 8px; }
.cartao-sorte h3 { font-size: 40px; letter-spacing: -0.045em; line-height: 1; color: var(--acc); margin-top: 6px; }
.cartao-sorte .onde { color: var(--mut); margin-top: 6px; }
.cartao-sorte-t { font-size: 14px; color: var(--mut); }
@keyframes virar { from { opacity: 0; transform: perspective(800px) rotateX(-18deg) translateY(30px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.aviso { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; font-size: 14px; animation: fade .2s ease-out; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: reduce) { .cascata, .cartao-sorte { animation: none; } }

/* Ordenado com - e + */
.sal-ctl { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 12px; width: 100%; }
.sal-b { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #1c1d20; color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .15s, transform .12s; -webkit-tap-highlight-color: transparent; }
.sal-b svg { width: 22px; height: 22px; }
.sal-b:hover { background: #26272b; }
.sal-b:active { transform: scale(.9); background: #2c2d31; }
.sal-v { min-width: 0; text-align: center; }
.sal-v input { display: block; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; text-align: center; font: 600 44px/1.05 var(--font); letter-spacing: -0.045em; color: var(--ink); padding: 0; margin: 0; -webkit-appearance: none; appearance: none; border-radius: 0; }
.sal-v input:focus { color: var(--acc); }
.sal-v span { display: block; font-size: 13px; color: var(--mut); margin-top: 4px; white-space: nowrap; }
.sal-r { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 36px; margin: 14px 0 0; background: transparent; cursor: pointer; --p: 50%; -webkit-tap-highlight-color: transparent; }
.sal-r:focus { outline: none; }
.sal-r::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) var(--p), #2a2b2f var(--p)); }
.sal-r::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) var(--p), #2a2b2f var(--p)); }
.sal-r::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; margin-top: -11px; box-shadow: 0 2px 8px rgb(0 0 0 / .5); transition: transform .15s; }
.sal-r::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .5); }
.sal-r:active::-webkit-slider-thumb { transform: scale(1.12); }
.fx-sal { margin-top: clamp(20px, 5vh, 40px); }
.fx-sal .sal-v input { font-size: 54px; }
.fx-sal .sal-ctl { grid-template-columns: 56px minmax(0, 1fr) 56px; }
.fx-sal .sal-b { width: 56px; height: 56px; }
@media (max-width: 360px) { .sal-v input { font-size: 38px; } .fx-sal .sal-v input { font-size: 44px; } }

/* Escolhas com desenhos */
.grupo.icones button { height: auto; min-height: 64px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.grupo.icones svg { width: 26px; height: 26px; }
.grupo.icones button span { line-height: 1.1; }
.grupo.icones button[aria-pressed="true"] svg { color: var(--acc); }
.grupo.tipos button { min-height: 62px; }
.casinha { display: grid; place-items: end center; width: 30px; height: 26px; }
.casinha svg { width: 30px; height: 30px; transform: scale(var(--s)); transform-origin: bottom center; transition: transform .25s var(--ease); }
.grupo.tipos button[aria-pressed="true"] .casinha svg { transform: scale(calc(var(--s) * 1.12)); }
.fx-c i { display: block; width: 34px; height: 34px; color: var(--mut); margin-bottom: 4px; }
.fx-c i svg { width: 100%; height: 100%; }
.fx-c i .casinha { width: 34px; height: 34px; }
.fx-c i .casinha svg { width: 34px; height: 34px; }
.fx-c[aria-pressed="true"] i { color: var(--acc); }

/* Folha de mudar escolhas */
.editor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; max-height: 72vh; display: flex; flex-direction: column; background: var(--bg-2); border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 50px rgb(0 0 0 / .5); animation: folha .35s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.editor .pega { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 10px auto 6px; flex: none; }
.editor-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px 10px; border-bottom: 1px solid var(--line); flex: none; }
.editor-topo b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.editor-topo b em { font-style: normal; color: var(--acc); }
.editor-topo .btn { height: 44px; padding: 0 22px; flex: none; }
.editor-corpo { overflow-y: auto; overscroll-behavior: contain; }
.editor-corpo .pergunta { border-bottom: 1px solid var(--line); }
@media (max-width: 899px) { .editor { bottom: 0; } .editor-corpo { padding-bottom: 72px; } }

/* Questionário: cada pergunta cabe num ecrã, botão sempre à vista */
body.em-fluxo { padding-bottom: 0 !important; }
body.em-fluxo .tabs, body.em-fluxo .topo { display: none !important; }
.fluxo { height: calc(100dvh - 56px); min-height: 0 !important; grid-template-rows: auto minmax(0, 1fr) auto; padding: 12px var(--g) calc(14px + env(safe-area-inset-bottom)); }
.fx-topo { gap: 10px; }
.fx-saltar { margin: 0; padding: 0 0 0 4px; min-height: 36px; font-size: 13px; text-decoration: none; color: var(--ink-2); }
.fx-palco { padding-top: clamp(12px, 4vh, 48px); overflow-y: auto; overscroll-behavior: contain; }
.fx-q { font-size: clamp(28px, 6.5vw, 48px); }
.fx-a { font-size: 15px; margin-top: 8px; }
.fx-cartoes { margin-top: clamp(14px, 3vh, 28px); gap: 8px; }
.fx-c { padding: 12px 16px; min-height: 0; gap: 2px; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.fx-c i { grid-row: span 2; margin: 0; width: 30px; height: 30px; }
.fx-c b { font-size: 19px; }
.fx-c span { font-size: 13px; }
.fx-cartoes.duas .fx-c { grid-template-columns: 1fr; padding: 10px 12px; min-height: 0; }
.fx-cartoes.duas .fx-c i { grid-row: auto; width: 26px; height: 26px; }
.fx-cartoes.duas .fx-c i .casinha, .fx-cartoes.duas .fx-c i .casinha svg { width: 26px; height: 26px; }
.fx-cartoes.duas .fx-c b { font-size: 17px; }
.fx-cartoes.duas .fx-c .d { font-size: 11px; }
.fx-m2 { margin-top: 10px; }
.fx-sal { margin-top: clamp(16px, 4vh, 28px); }
.fx-acoes { padding-top: 12px; }
.fx-acoes .btn { height: 52px; }
@media (max-height: 640px) { .fx-a { display: none; } .fx-cartoes.duas .fx-c .d { display: none; } }
body.em-fluxo .rodape { display: none; }
body.em-fluxo { overflow: hidden; }

/* E se...? */
.ese { margin-top: 16px; }
.ese-t { font-size: 13px; color: var(--mut); }
.ese-l { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ese-l::-webkit-scrollbar { display: none; }
.ese-c { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 92px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); color: var(--ink); font: inherit; cursor: pointer; text-align: left; transition: transform .12s, border-color .2s; animation: cascata .4s var(--ease) both; }
.ese-c:active { transform: scale(.96); }
.ese-c:hover { border-color: var(--mut); }
.ese-c span { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.ese-c b { font-size: 20px; letter-spacing: -0.03em; font-weight: 600; }
.ese-c b::after { content: " concelhos"; font-size: 11px; font-weight: 400; color: var(--mut); letter-spacing: 0; }
.ese-c b.sobe-n { color: #4ade80; }
.ese-c b.desce-n { color: var(--sobe); }

/* Mapa | Lista */
.vista { display: none; }
@media (max-width: 999px) {
  .vista { display: grid; grid-template-columns: 1fr 1fr; position: sticky; top: 64px; z-index: 30; margin: 0 0 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: rgb(15 15 16 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .vista button { height: 42px; border: 0; border-radius: 9px; background: none; color: var(--mut); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
  .vista button[aria-selected="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }
  .palco[data-vista="mapa"] > .lista-lado { display: none; }
  .palco[data-vista="lista"] > .mapa-lado { display: none; }
  .palco > .lista-lado { margin-top: 0; }
  .resumo-fixo { display: none !important; }
}
@media (max-width: 999px) {
  .escolhas { padding: 10px 14px; font-size: 15px; }
  .escolhas .btn { height: 38px; }
  .resposta { margin-top: 12px; }
  #r-nota { font-size: 12px; margin-top: 6px; }
  .ese { margin-top: 10px; }
  .acoes-r { margin-top: 12px; }
  .acoes-r .btn { height: 42px; font-size: 14px; }
  .mapa-tit { margin-top: 6px; }
}

.calc-ficha { margin-top: 16px; max-width: 680px; }
.c-verd { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; }
.c-verd em { font-style: normal; color: var(--acc); }
.c-verd .mut { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.calc-ficha .escolhas { margin-top: 16px; }
@media (min-width: 1000px) { .editor { width: 560px; margin: 0 auto; border: 1px solid var(--line-2); border-bottom: 0; } }
.bloco-calc { padding-top: 8px; padding-bottom: 32px; }
.bloco-calc h2 { font-size: 20px; color: var(--ink-2); font-weight: 500; letter-spacing: -0.01em; }
/* iPhone: dois toques rápidos não fazem zoom (o zoom com dois dedos continua) */
html, body, button, a, input, select, label, .mapa-caixa svg, .mapa-ilhas svg { touch-action: manipulation; }
button, a, .sal-b, .fx-c, .ese-c { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: max(16px, 1em); }

/* Cabeçalho das páginas de detalhe: seta de voltar e nome da página */
.voltar, .top-titulo { display: none; }
body.detalhe .voltar { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -12px; border: 0; background: none; color: var(--ink); cursor: pointer; }
body.detalhe .voltar svg { width: 24px; height: 24px; }
@media (max-width: 899px) {
  body.detalhe .logo { display: none; }
  body.detalhe .top-titulo { display: block; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
/* Procurar */
.procurar-pag { padding-top: 28px; padding-bottom: 48px; }
.procura.grande-p { margin-top: 20px; max-width: 560px; }
.atalhos-grandes { display: grid; gap: 10px; margin-top: 28px; max-width: 560px; }
.atalhos-grandes a { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); text-decoration: none; transition: border-color .2s; }
.atalhos-grandes a:hover { border-color: var(--mut); }
.atalhos-grandes b { font-size: 17px; }
.atalhos-grandes span { font-size: 14px; color: var(--mut); }
@media (max-width: 899px) { .migalhas { display: none; } .zona-top { padding-top: 20px; } }

/* E se: grelha sem cortes */
/* Como calculamos */
.como { margin-top: 12px; border: 0; }
.como summary { color: var(--ink-2); font-size: 14px; padding: 8px 0; min-height: 0; list-style: none; cursor: pointer; }
.como summary::-webkit-details-marker { display: none; }
.como summary::before { content: "+ "; color: var(--acc); }
.como[open] summary::before { content: "− "; }
.como p { margin: 4px 0 8px !important; }
/* Botões da ficha lado a lado */
.atalhos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.atalhos .btn { padding: 0 10px; font-size: 14px; white-space: normal; text-align: center; line-height: 1.2; }
.numeros small { line-height: 1.35; }
/* Mapa no telemóvel: ocupa o ecrã */
@media (max-width: 999px) {
  .mapa-dupla { grid-template-columns: minmax(0, 1fr) 28%; gap: 4px; }
  .mapa-dupla .mapa-caixa { height: max(420px, calc(100dvh - 190px - env(safe-area-inset-bottom))); max-height: 900px; }
  .mapa-tit { justify-content: center; }
}
.top { background: var(--bg) !important; }

.lista-topo { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.lista-topo .grupo { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lista-topo .grupo button { padding: 0 4px; white-space: nowrap; }
.rodape-feito { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.rodape-feito a { color: var(--acc); text-decoration: none; font-weight: 600; }
.rodape-feito a:hover { text-decoration: underline; }
body.em-fluxo .rodape { display: none; }

/* estilo de vida */
.vida-top{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.vida-nota{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.vida-nota b{font-size:44px;font-weight:600;letter-spacing:-.03em;color:var(--acc)}
.vida-nota span{color:var(--mut);font-size:16px;margin-left:2px}
.vida-l{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:0}
.vida-l li{display:grid;grid-template-columns:minmax(0,120px) minmax(0,1fr) minmax(0,auto);align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.vida-n{font-size:15px}
.vida-b{height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.vida-b i{display:block;height:100%;width:var(--p);background:var(--acc);border-radius:3px;transform-origin:left;animation:vida-cresce .7s cubic-bezier(.2,.8,.2,1) both}
.vida-v{font-size:14px;text-align:right;font-variant-numeric:tabular-nums}
.vida-v small{display:block;color:var(--mut);font-size:12px}
@keyframes vida-cresce{from{transform:scaleX(0)}}
@media (max-width:560px){
  .vida-l li{grid-template-columns:minmax(0,1fr) minmax(0,auto);row-gap:8px}
  .vida-b{grid-column:1/-1;grid-row:2}
}
@media (prefers-reduced-motion:reduce){.vida-b i{animation:none}}

/* ---------- 20-Out: toque, movimento e arrumação ---------- */
/* barra de baixo opaca, com traço que marca o separador ativo e ícone que salta */
@media (max-width: 999px) {
  .tabs { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; view-transition-name: tabs; }
  .tabs a { position: relative; transition: color .2s; }
  .tabs a::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--acc); transform: scaleX(0); transition: transform .35s var(--ease); }
  .tabs a[aria-current="page"]::before { transform: scaleX(1); }
  .tabs a[aria-current="page"] svg { animation: salto .45s var(--ease); }
  .tabs a:active svg { transform: scale(.88); }
  .tabs svg { transition: transform .15s; }
}
@keyframes salto { 40% { transform: translateY(-3px) scale(1.08); } }
.top { view-transition-name: topo; }

/* Mapa | Lista: a pílula branca desliza */
@media (max-width: 999px) {
  .vista { position: sticky; }
  .vista::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--ink); transition: transform .38s var(--ease); }
  .vista[data-v="lista"]::before { transform: translateX(100%); }
  .vista button { position: relative; z-index: 1; }
  .vista button[aria-selected="true"] { background: none; }
  .acoes-fim { margin: 20px 0 8px; }
}

/* páginas: entrar numa ficha vem da direita, voltar vem da esquerda, separadores cruzam */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
html[data-dir="frente"]::view-transition-old(root) { animation-name: vt-sai-esq; }
html[data-dir="frente"]::view-transition-new(root) { animation-name: vt-entra-dir; }
html[data-dir="tras"]::view-transition-old(root) { animation-name: vt-sai-dir; }
html[data-dir="tras"]::view-transition-new(root) { animation-name: vt-entra-esq; }
html[data-dir="lado"]::view-transition-new(root) { animation-name: vt-sobe; }
html[data-dir="lado"]::view-transition-old(root) { animation-name: vt-some; animation-duration: .15s; }
@keyframes vt-sai-esq { to { transform: translateX(-24%); opacity: 0; } }
@keyframes vt-entra-dir { from { transform: translateX(32%); opacity: 0; } }
@keyframes vt-sai-dir { to { transform: translateX(24%); opacity: 0; } }
@keyframes vt-entra-esq { from { transform: translateX(-32%); opacity: 0; } }
@keyframes vt-sobe { from { transform: translateY(14px); opacity: 0; } }
@keyframes vt-some { to { opacity: 0; } }

/* comparar: a tabela cabe no telemóvel sem cortar */
@media (max-width: 560px) {
  .t.comparar { table-layout: fixed; width: 100%; }
  .t.comparar td, .t.comparar th { font-size: 14px; padding-left: 6px; padding-right: 6px; white-space: normal; overflow-wrap: anywhere; }
  .t.comparar td:first-child { min-width: 0; width: 38%; font-size: 13px; padding-left: 0; }
  .t.comparar th { font-size: 14px; }
}
.folha .linhas dd, .folha .linhas b, .folha .linhas span:last-child { white-space: nowrap; }

/* toque: tudo o que se carrega afunda um pouco */
.ranking a, .ese-c, .vista button, .procura-r a, .vizinhos a, .cidades a, .cartoes a { transition: transform .15s, background .2s; }
.ranking a:active, .cidades a:active, .cartoes a:active { transform: scale(.985); }
@media (prefers-reduced-motion: reduce) { .vista::before, .tabs a::before { transition: none; } .tabs a[aria-current="page"] svg { animation: none; } }

/* E se...? : 4 cartões arrumados em 2x2 (4 seguidos no computador), frase em cima, número e diferença em baixo */
.ese-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; overflow: visible; padding: 0; }
@media (min-width: 1000px) { .ese-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ese-c { min-width: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: end; column-gap: 8px; row-gap: 6px; padding: 12px 14px; }
.ese-c span { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ese-c b { font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.ese-c b::after { content: " concelhos"; font-size: 12px; font-weight: 400; color: var(--mut); letter-spacing: 0; }
.ese-c b.sobe-n, .ese-c b.desce-n { color: var(--ink); }
.ese-c em { font-style: normal; font-size: 13px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.ese-c em.sobe-n { color: #4ade80; background: rgb(74 222 128 / .12); }
.ese-c em.desce-n { color: var(--sobe); background: rgb(255 122 69 / .12); }
.ese-c em.igual { color: var(--mut); background: var(--line); }
.ese-t { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.ese-c b::after { display: block; margin-top: 4px; }

/* ver casas nos portais */
.casas { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.casas-t { font-size: 16px; color: var(--ink); }
.casas-t b { color: var(--acc); }
.casas-l { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; margin-top: 12px; }
.casas-l a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .15s, border-color .2s; }
.casas-l a:hover { border-color: var(--mut); }
.casas-l a:active { transform: scale(.97); }
.casas-l svg { width: 16px; height: 16px; color: var(--acc); flex: none; }
.casas .ajuda { margin-top: 10px; font-size: 12px; }

/* ficha mais limpa: subtítulo, títulos de secção iguais, menos espaço morto */
.zona-sub { margin-top: 12px; font-size: 15px; color: var(--mut); }
.bloco-calc h2, .vida-top h2, .bloco h2 { font-size: clamp(24px, 3vw, 34px); color: var(--ink); font-weight: 600; letter-spacing: -0.035em; }
@media (max-width: 999px) {
  .bloco { padding-top: 44px; }
  .zona-top { padding-bottom: 24px; }
  .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) { .mapa-freg { height: 300px; margin-top: 12px; } }

/* apoios: uma linha cada, o resto ao tocar */
.apoios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .apoios { grid-template-columns: minmax(0, 1fr); } }
.apoio { border-bottom: 1px solid var(--line); }
.apoio summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 0; }
.apoio summary::-webkit-details-marker { display: none; }
.apoio summary::after { content: "+"; grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--acc); font-size: 20px; transition: transform .25s var(--ease); }
.apoio[open] summary::after { transform: rotate(45deg); }
.apoio summary b { font-size: 16px; }
.apoio summary span { grid-column: 1; font-size: 14px; color: var(--ink-2); }
.apoio p { padding: 0 0 16px; font-size: 14px; color: var(--mut); line-height: 1.55; }
.linhas b small { white-space: nowrap; }
.linhas b { white-space: nowrap; }

/* questionário: mapa pequeno que se acende ao vivo */
.fluxo { grid-template-rows: auto minmax(0, auto) minmax(0, 1fr) auto auto !important; }
.fx-vivo { display: contents; }
.fx-mapa { min-height: 0; display: grid; place-items: center; padding-top: 12px; overflow: hidden; }
.fx-mapa svg { height: 100%; width: auto; max-width: 100%; max-height: 300px; }
.fx-mapa path { stroke: var(--bg); stroke-width: .5; vector-effect: non-scaling-stroke; transition: fill .45s ease; cursor: default; }
.fx-conta { padding-top: 8px; text-align: center; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.fx-conta b { color: var(--acc); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-vivo.sem-espaco .fx-mapa { visibility: hidden; }
.fluxo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 359px) { .fx-acoes .btn { font-size: 14px; padding: 0 12px; } .fx-acoes .btn-2 { flex: none; } }

/* listas de concelhos com a miniatura do desenho do concelho */
.ranking.com-mini a { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; }
.ranking.com-mini a::before { content: none; }
.mini { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); display: block; }
.mini path { stroke: var(--bg); stroke-width: .6; vector-effect: non-scaling-stroke; }
.ranking.com-mini a:hover .mini { border-color: var(--line-2); }

/* E se...? : uma lista arrumada, uma linha por hipótese */
.ese-l { display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 0; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.ese-c { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; grid-template-rows: auto; align-items: center; column-gap: 12px; row-gap: 0; width: 100%; padding: 0 14px; min-height: 48px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; animation: none; }
.ese-c:first-child { border-top: 0; }
.ese-c:hover { background: #151517; border-color: var(--line); }
.ese-c span { grid-column: 1; font-size: 15px; color: var(--ink); }
.ese-c b { grid-column: 2; font-size: 17px; }
.ese-c b::after { display: inline; margin: 0 0 0 4px; font-size: 12px; }
.ese-c em { grid-column: 3; justify-self: end; }
@media (max-width: 999px) { .vista { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 -12px 0 var(--bg); } }

/* E se...? discreto: 4 botões pequenos em 2x2, só a frase e a diferença; o destaque fica para o mapa e a lista */
.ese { margin-top: 14px; }
.ese-t { font-size: 13px; font-weight: 400; color: var(--mut); }
.ese-l { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px; margin-top: 6px; border: 0; border-radius: 0; background: none; overflow: visible; }
.ese-c { grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; min-height: 36px; padding: 0 6px 0 10px; border: 1px solid var(--line) !important; border-radius: 8px; background: none; }
.ese-c:hover { background: var(--bg-2); }
.ese-c span { font-size: 13px; color: var(--ink-2); }
.ese-c b { display: none; }
.ese-c em { grid-column: 2; font-size: 12px; padding: 3px 6px; }

/* telemóvel: o topo é só a resposta, o mapa aparece logo */
@media (max-width: 999px) {
  #escolhas.escolhas { padding: 8px 8px 8px 14px; font-size: 14px; line-height: 1.3; border-radius: 10px; }
  #escolhas.escolhas .btn { height: 36px; padding: 0 14px; font-size: 14px; }
  .resposta { margin-top: 10px; }
  .resposta h2 { font-size: 22px; line-height: 1.15; }
  .vista { margin-top: 12px; }
  .vista button { height: 38px; }
  .mapa-tit { margin-top: 8px; font-size: 12px; }
  .fim-telemovel { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
  .fim-telemovel #r-nota { margin-top: 12px; }
  .fim-telemovel .ese { margin-top: 0; }
}

/* ordenar a lista: escrito por extenso */
.lista-topo { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.ordenar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mut); }
.ordenar select { appearance: none; -webkit-appearance: none; height: 38px; padding: 0 34px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23ff5b1f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
img.mini { object-fit: cover; background: var(--bg-2); }
.creditos { font-size: 13px; color: var(--mut); columns: 2 260px; padding-left: 18px; }
.creditos li { break-inside: avoid; margin-bottom: 4px; }

/* telemóvel: espaços iguais (16 px) entre a caixa do ordenado, a resposta, o Mapa | Lista e o mapa; o mapa cabe inteiro no ecrã */
@media (max-width: 999px) {
  .palco { row-gap: 16px !important; }
  .resposta { margin-top: 16px !important; }
  .resposta h2 { margin: 0; }
  .vista { margin: 0 !important; }
  .mapa-lado { position: relative; }
  .mapa-tit { position: absolute; top: 4px; left: 0; z-index: 2; margin: 0 !important; font-size: 12px; gap: 6px; pointer-events: none; }
  .mapa-dupla { margin-top: 0 !important; }
  .mapa-dupla .mapa-caixa { height: var(--mapa-h, 60vh) !important; max-height: none !important; }
  .mapa-dupla .mapa-ilhas { padding-top: 22px; }
}

/* marca: casa laranja com visto */
.marca { width: 24px; height: 24px; flex: none; margin-right: 8px; }
.logo { font-size: 16px; }
.rodape-titulo { display: flex; align-items: center; }
.rodape-titulo .marca { width: 20px; height: 20px; }
.folha { max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; }

/* tamanho: 6 botões compactos (3 por linha) para o mapa ao vivo caber sempre */
.fx-cartoes.tamanhos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-cartoes.tamanhos .fx-c { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; min-height: 0; gap: 2px; }
.fx-cartoes.tamanhos .fx-c b { font-size: 20px; }
.fx-cartoes.tamanhos .fx-c span { font-size: 12px; }
.fx-desc { margin-top: 10px; min-height: 1.4em; }
.fx-m2 { flex-wrap: nowrap; } .fx-m2 .entrada { min-width: 0; flex: 1 1 auto; max-width: 160px; } .fx-m2 label { white-space: nowrap; }

/* questionário: o mapa tem SEMPRE o mesmo tamanho; se faltar espaço, é a pergunta que desliza */
.fluxo { grid-template-rows: auto minmax(0, 1fr) auto auto auto !important; }
.fx-palco { padding-top: 12px !important; }
.fx-mapa { height: clamp(110px, calc(25dvh - 10px), 200px); padding-top: 10px; }
.fx-mapa svg { max-height: none; }
.fx-cartoes.tamanhos .fx-c i { width: 26px; height: 26px; margin: 0 0 2px; grid-row: auto; }
.fx-cartoes.tamanhos .fx-c b.pq { font-size: 15px; letter-spacing: -0.01em; }
.fx-cartoes.tamanhos .fx-c { padding: 8px 6px; } .fx-desc { margin-top: 8px; } .fx-q { margin-bottom: 0; }
.fx-m2 { margin-top: 10px !important; }
/* ecrãs baixos (iPhone SE): tudo um pouco mais pequeno para caber sem deslizar */
@media (max-height: 640px) {
  .fx-mapa { height: 100px; padding-top: 6px; }
  .fx-q { font-size: 24px !important; }
  .fx-a { font-size: 13px; }
  .fx-c { padding: 8px 12px !important; }
  .fx-cartoes { gap: 6px !important; }
  .fx-topo { margin-bottom: 0; }
  .fx-acoes .btn { height: 46px !important; }
  .fx-conta { padding-top: 4px; font-size: 13px; }
}
.fluxo[data-passo="tipo"] .fx-desc { margin-top: 6px; } .fluxo[data-passo="tipo"] .fx-m2 { margin-top: 4px !important; }

/* questionário no computador: perguntas à esquerda, mapa grande e fixo à direita, sem espaço vazio */
@media (min-width: 1000px) {
  .fluxo {
    max-width: 1120px; height: auto !important; min-height: calc(100dvh - 64px) !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px;
    grid-template-rows: auto auto auto 1fr !important;
    grid-template-areas: "topo mapa" "palco mapa" "acoes mapa" ". conta";
    align-content: center; padding-top: 40px; padding-bottom: 40px;
  }
  .fx-topo { grid-area: topo; }
  .fx-palco { grid-area: palco; overflow: visible !important; padding-top: 28px !important; }
  .fx-acoes { grid-area: acoes; padding-top: 28px !important; }
  .fx-mapa { grid-area: mapa; height: min(62vh, 600px) !important; padding: 0; align-self: center; }
  .fx-conta { grid-area: conta; align-self: start; padding-top: 12px; font-size: 16px; }
  .fx-conta b { font-size: 26px; }
}
@media (min-width: 1000px) { .fluxo { grid-template-rows: auto auto auto auto !important; } }
