:root {
  --green: #1F4D3A;
  --green-deep: #163829;
  --leaf: #5E8C61;
  --cream: #F5EFE2;
  --paper: #FBF8F1;
  --terra: #A8432F;
  --gold: #E9B44C;
  --coral: #E07A5F;
  --ink: #1C2621;
  --muted: #5A6660;
  --line: #E4DCCB;
  --radius: 18px;
  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--terra); }
a:hover { color: #8a3424; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Topo */
.top { background: var(--green); color: var(--cream); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.01em; }
.brand:hover { color: #fff; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 999px; }
.top nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.top nav a[aria-current="page"] { background: var(--cream); color: var(--green); }

/* Hero */
.hero { background: var(--green); color: var(--cream); position: relative; padding: 56px 0 120px; overflow: hidden; }
.hero-in { position: relative; z-index: 1; }
.kicker { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 3vw, 28px); margin: 0 0 10px; }
.hero h1 { font-size: clamp(52px, 10vw, 120px); font-weight: 800; color: var(--gold); letter-spacing: -0.03em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); max-width: 620px; margin: 18px 0 0; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hills { position: absolute; left: 0; bottom: -1px; width: 100%; height: 110px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: var(--cream); font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-deep); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }
.btn.gold:hover { background: #f0c364; color: var(--green-deep); }
.btn.ghost { background: transparent; border-color: rgba(245,239,226,0.6); color: var(--cream); }
.btn.ghost:hover { background: rgba(255,255,255,0.1); }
.btn.big { width: 100%; min-height: 56px; font-size: 18px; background: var(--terra); border-color: var(--terra); }
.btn.big:hover { background: #8a3424; }

/* Seções */
.section { padding: 40px 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--green); }
.section-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
h2.sub { font-size: 24px; color: var(--green); margin: 28px 0 14px; }
h2.sub:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.empty { color: var(--muted); font-size: 18px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31,77,58,0.12); color: var(--ink); }
.card.survey { padding: 22px; gap: 10px; }
.card.survey h3 { font-size: 26px; font-weight: 800; color: var(--green); }
.card.survey p { margin: 0; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--muted); }
.card-foot .go { display: inline-flex; gap: 6px; align-items: center; color: var(--terra); font-weight: 600; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge.open { background: #E3EEDF; color: #24533a; }
.badge.closed { background: #EFE9DD; color: #6b5d45; }
.card.news { overflow: hidden; }
.card.news img, .news-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-ph { background: var(--leaf); display: grid; place-items: center; }
.news-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.news-body time { font-size: 14px; color: var(--muted); }
.news-body h3 { font-size: 22px; font-weight: 700; color: var(--green); }
.news-body p { margin: 0; color: var(--muted); }

.band { background: var(--cream); border-radius: var(--radius); padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.band h2 { font-size: 30px; color: var(--green); font-weight: 800; }
.band p { margin: 8px 0 0; color: var(--muted); max-width: 520px; }

/* Cabeçalho de páginas internas */
.page-head { background: var(--cream); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; color: var(--green); }
.page-head p { margin: 12px 0 0; color: var(--muted); font-size: 18px; }
.page-head .btn.ghost { border-color: var(--green); color: var(--green); }
.page-head .btn.ghost:hover { background: rgba(31,77,58,0.06); }
.page-head.thanks { text-align: left; }
.page-head.thanks svg { margin-bottom: 14px; }
.crumb { margin: 0 0 8px !important; font-size: 15px !important; }
.crumb a { text-decoration: none; font-weight: 600; }

/* Formulário da pesquisa */
.survey-form { display: flex; flex-direction: column; gap: 18px; }
.q { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 20px; margin: 0; min-width: 0; }
.q legend { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--green); padding: 0; display: flex; gap: 10px; align-items: baseline; float: left; width: 100%; margin-bottom: 12px; }
.q legend + * { clear: both; }
.qn { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--cream); font-size: 15px; flex: none; }
.req { color: var(--terra); }
.opt { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--muted); background: var(--cream); padding: 2px 8px; border-radius: 999px; }
.hint { margin: 0 0 10px; color: var(--muted); font-size: 15px; clear: both; }
.choices { display: grid; gap: 8px; clear: both; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--paper); }
.choice:hover { border-color: var(--leaf); }
.choice input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.choice:has(input:checked) { border-color: var(--green); background: #EAF1E8; }
.choice.off { opacity: 0.5; cursor: not-allowed; }
textarea, input[type="text"], input:not([type]), input[type="tel"] { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
textarea:focus, input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(31,77,58,0.15); }
.contact { background: var(--cream); }
.contact label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; clear: both; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; margin-top: 14px; font-weight: 400 !important; font-size: 15px !important; line-height: 1.45; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -5000px; }
.alert { background: #FBE6E1; color: #7d2a1b; border: 1px solid #F0C2B7; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }

/* Resultados */
.result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.result h3 { font-size: 22px; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; margin-bottom: 5px; }
.bar { height: 12px; background: #EFE9DD; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--leaf); border-radius: 999px; }
.bars li.top .bar span { background: var(--terra); }
.bars li.top .bar-label strong { color: var(--terra); }

/* Notícia */
.article { padding-top: 40px; padding-bottom: 56px; }
.article h1 { font-size: clamp(34px, 6vw, 54px); font-weight: 800; color: var(--green); }
.article time { display: block; margin-top: 12px; color: var(--muted); }
.article .lead { color: var(--ink); font-size: 20px; }
.cover { margin: 24px 0; border-radius: var(--radius); width: 100%; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 26px; color: var(--green); margin: 28px 0 8px; }
.prose p { margin: 0 0 18px; }

/* Utilidade */
.phones { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.phones li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.phones strong { display: block; font-size: 17px; }
.phones span { color: var(--muted); font-size: 15px; }
.tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--green); color: var(--cream); text-decoration: none; font-weight: 600; white-space: nowrap; }
.tel:hover { background: var(--green-deep); color: #fff; }

/* Rodapé */
.foot { background: var(--green-deep); color: var(--cream); padding: 36px 0; margin-top: 40px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand strong { display: block; font-family: var(--display); font-size: 20px; }
.foot-brand span { font-size: 15px; opacity: 0.85; }
.foot-links { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); text-decoration: none; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(245,239,226,0.3); font-weight: 500; }
.foot-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { position: static; }
  .top-in { justify-content: center; }
  .top nav { width: 100%; justify-content: space-between; }
  .top nav a { padding: 8px 10px; font-size: 14px; }
  .hero { padding: 36px 0 96px; }
  .hero-actions .btn { width: 100%; }
  .row2 { grid-template-columns: 1fr; }
  .section { padding: 28px 16px; }
  .wrap { padding: 0 16px; }
  .band .btn { width: 100%; }
}

/* ---------------- Tamanho da letra (botão A+) ---------------- */
html[data-fs="g"] { font-size: 112%; }
html[data-fs="g"] body { font-size: 19px; }
html[data-fs="gg"] body { font-size: 21px; }
html[data-fs="gg"] .q legend, html[data-fs="gg"] .card h3 { font-size: 26px; }
.fs-btn { min-width: 44px; min-height: 40px; border-radius: 999px; border: 1.5px solid rgba(245,239,226,.5); background: transparent; color: var(--cream); font: 800 16px var(--display); cursor: pointer; margin-left: 4px; }
.fs-btn span { font-size: 13px; vertical-align: super; }
.fs-btn:hover, .fs-btn[aria-pressed="true"] { background: var(--cream); color: var(--green); }

/* ---------------- Hubs ---------------- */
.grid.hubs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card.hub { padding: 22px; gap: 8px; }
.hub-ic { width: 52px; height: 52px; border-radius: 14px; background: #EAF1E8; color: var(--green); display: grid; place-items: center; margin-bottom: 6px; }
.hub-t { font: 800 22px/1.15 var(--display); color: var(--green); }
.hub-t em { font: 600 12px var(--body); font-style: normal; background: var(--gold); color: var(--green-deep); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.hub-d { color: var(--muted); }

/* ---------------- Início ---------------- */
.hero-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-poll .poll { background: var(--cream); color: var(--ink); }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }

/* ---------------- Enquete ---------------- */
.poll { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.poll-k { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 600; color: var(--terra); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.poll-k svg { width: 20px; height: 20px; }
.poll h3 { font-size: 26px; color: var(--green); font-weight: 800; margin-bottom: 14px; }
.poll-opts { display: grid; gap: 8px; }
.poll-opts button { min-height: 50px; text-align: left; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: 600 17px var(--body); color: var(--ink); cursor: pointer; }
.poll-opts button:hover { border-color: var(--green); background: #EAF1E8; }
.poll .hint { margin: 12px 0 0; }
.mine { font-style: normal; font-size: 12px; background: var(--gold); color: var(--green-deep); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.poll.compact h3 { font-size: 22px; }

/* ---------------- R$ 100 ---------------- */
.budget { display: flex; flex-direction: column; gap: 10px; }
.budget-total { position: sticky; top: 8px; z-index: 3; display: flex; justify-content: space-between; align-items: center; background: var(--green); color: var(--cream); border-radius: 14px; padding: 14px 18px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.budget-total strong { font: 800 28px var(--display); color: var(--gold); }
.budget-total.ok { background: #2f6b47; } .budget-total.ok strong { color: #fff; }
.budget-total.over { background: var(--terra); } .budget-total.over strong { color: #fff; }
.b-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.b-row label { font-weight: 600; font-size: 17px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--green); background: #fff; color: var(--green); font: 700 22px var(--body); cursor: pointer; }
.stepper button:hover { background: #EAF1E8; }
.stepper input { width: 74px; text-align: center; font: 800 20px var(--display); padding: 8px; }
.b-bar { grid-column: 1 / -1; height: 8px; background: #EFE9DD; border-radius: 999px; overflow: hidden; }
.b-bar span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .15s; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- Toolbar / filtros ---------------- */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .btn svg { width: 20px; height: 20px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg a { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; background: #fff; }
.seg a[aria-current="page"] { background: var(--green); color: var(--cream); border-color: var(--green); }
.linkish { font-weight: 600; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; margin-bottom: 14px; }
.filters input, .filters select, .field select, .field input[type="date"], .field input[type="time"], .field input[type="number"], .field input[type="url"], .q select { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); min-height: 48px; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr; } }
.tag { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #EAF1E8; color: #24533a; margin-bottom: 6px; }
.tag.warn { background: #FBE6E1; color: #7d2a1b; }
.meta { color: var(--muted); font-size: 15px; margin: 4px 0 8px; }
.by { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* ---------------- Formulários públicos genéricos ---------------- */
.pub-form .q { display: flex; flex-direction: column; gap: 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { margin: -2px 0 8px; }
.field .thumb img { max-width: 220px; border-radius: 10px; margin-bottom: 8px; }
.field input[type="file"] { font: inherit; padding: 10px; border: 1.5px dashed var(--line); border-radius: 12px; width: 100%; background: var(--paper); }
.consent.publish { background: var(--cream); border-radius: 14px; padding: 16px; margin: 0; }
.pickmap { height: 320px; border-radius: 14px; border: 1px solid var(--line); z-index: 0; }

/* ---------------- Ideias ---------------- */
.ideas { display: grid; gap: 12px; }
.card.idea { flex-direction: row; gap: 16px; padding: 18px; align-items: flex-start; }
.card.idea h3 { font-size: 22px; color: var(--green); }
.card.idea p { margin: 6px 0 0; color: var(--muted); }
.vote button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; min-height: 64px; padding: 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font: 800 18px var(--display); color: var(--terra); }
.vote button:hover:not(:disabled) { border-color: var(--terra); background: #FBEDE8; }
.vote button:disabled { cursor: default; background: #FBEDE8; border-color: #F0C2B7; }

/* ---------------- Problemas ---------------- */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.stats-row div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stats-row strong { display: block; font: 800 40px var(--display); color: var(--green); }
.stats-row span { color: var(--muted); }
.btn.big svg { width: 22px; height: 22px; }

/* ---------------- Mapa ---------------- */
.bigmap { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.places { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.places li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.places p { margin: 6px 0; } .places span { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .bigmap { height: 360px; } }

/* ---------------- Agenda ---------------- */
.events { display: grid; gap: 12px; }
.card.event { flex-direction: row; gap: 16px; padding: 16px; align-items: flex-start; }
.card.event img { width: 120px; border-radius: 10px; margin-left: auto; object-fit: cover; aspect-ratio: 1; }
.card.event h3 { font-size: 21px; color: var(--green); }
.card.event p { margin: 6px 0 0; }
.events.past { opacity: .7; }
.datebadge { flex: none; width: 68px; text-align: center; background: var(--green); color: var(--cream); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; line-height: 1.1; }
.datebadge .d { font: 800 28px var(--display); color: var(--gold); }
.datebadge .m { text-transform: uppercase; font-weight: 600; font-size: 13px; letter-spacing: .05em; }
.datebadge .w { font-size: 12px; opacity: .8; text-transform: capitalize; }
.card.event.mini { align-items: center; }
@media (max-width: 560px) { .card.event img { display: none; } }

/* ---------------- Oportunidades / transporte / guia ---------------- */
.card.opp, .card.bus { padding: 22px; margin-bottom: 14px; }
.card.opp h3, .card.bus h3 { font-size: 24px; color: var(--green); display: flex; align-items: center; gap: 10px; }
.how { background: var(--cream); border-radius: 12px; padding: 12px 16px; margin: 10px 0 14px; }
.how p { margin: 4px 0; }
.prose.small { font-size: 16px; line-height: 1.6; }
.prose ul { padding-left: 22px; margin: 0 0 18px; } .prose li { margin-bottom: 6px; }
.times { font-size: 17px; }
.times p { margin: 0 0 6px; }
.list { display: grid; gap: 10px; }
.card.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.card.row strong { display: block; font-size: 18px; color: var(--green); }
.card.row span { color: var(--muted); font-size: 15px; }
.card.row > svg { color: var(--terra); flex: none; }

/* ---------------- Memória ---------------- */
.timeline { list-style: none; padding: 0 0 0 24px; margin: 0; border-left: 3px solid var(--leaf); }
.timeline li { position: relative; margin-bottom: 26px; }
.timeline li::before { content: ''; position: absolute; left: -34px; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); }
.year { font: 800 28px var(--display); color: var(--terra); display: block; margin-bottom: 8px; }
.card.tl { overflow: hidden; }
.card.tl img { width: 100%; max-height: 420px; object-fit: cover; filter: sepia(.15); }
.tl-body { padding: 16px 20px; }
.tl-body h3 { font-size: 22px; color: var(--green); margin-bottom: 6px; }

/* ---------------- Números ---------------- */
.grid.nums { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card.num { padding: 20px; gap: 6px; }
.n-label { font-weight: 600; color: var(--muted); }
.n-val { font: 800 36px/1.1 var(--display); color: var(--green); }
.n-val small { font: 500 15px var(--body); color: var(--muted); }
.card.num p { margin: 4px 0; font-size: 15px; }
.n-src { margin-top: auto; font-size: 13px; color: var(--muted); }

/* ---------------- Comércio / achados ---------------- */
.card.biz, .card.lf { overflow: hidden; }
.card.biz img, .card.lf img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.biz-body { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.biz-body h3 { font-size: 22px; color: var(--green); }
.biz-body p { margin: 4px 0; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.tel.ghost { background: #fff; color: var(--green); border: 1.5px solid var(--green); }
.tel.ghost:hover { background: #EAF1E8; color: var(--green); }

/* ---------------- Entrevistador ---------------- */
.interview-bar { background: var(--gold); color: var(--green-deep); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 15px; }
.interview-bar a { color: var(--green-deep); font-weight: 600; }
.interview-bar .ok { font-style: normal; font-weight: 700; }

/* ---------------- Busca ---------------- */
.search-btn { display: inline-grid; place-items: center; width: 44px; height: 40px; border-radius: 999px; color: var(--cream); }
.search-btn:hover, .search-btn.on { background: rgba(255,255,255,.12); color: #fff; }
.bigsearch { display: flex; gap: 10px; margin-top: 18px; }
.bigsearch input { flex: 1; font: inherit; font-size: 18px; padding: 14px 18px; border: 2px solid var(--green); border-radius: 999px; background: #fff; min-height: 54px; }
.bigsearch .btn { min-height: 54px; }
.page-head .hint a { font-weight: 600; }

/* ---------------- Barra de atalhos no celular ---------------- */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .top nav a { display: none; }
  .top-in { justify-content: space-between; flex-wrap: nowrap; }
  .top nav { width: auto; }
  .top nav .search-btn { display: none; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(0,0,0,.06); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; border-radius: 12px; }
  .bottom-nav a[aria-current="page"] { color: var(--green); background: #EAF1E8; }
  .budget-total { top: 8px; }
}

/* ---------------- Boas-vindas ---------------- */
.welcome { position: fixed; inset: 0; z-index: 30; background: rgba(22, 56, 41, .55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.welcome[hidden] { display: none; }
.welcome-in { background: var(--paper); border-radius: 22px; max-width: 460px; width: 100%; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); margin-bottom: calc(70px + env(safe-area-inset-bottom)); }
.welcome-k { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; color: var(--terra); }
.welcome h2 { font-size: 28px; color: var(--green); font-weight: 800; }
.welcome ol { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; counter-reset: s; }
.welcome li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 0 10px; align-items: start; }
.welcome li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--cream); display: grid; place-items: center; font: 800 16px var(--display); }
.welcome li strong { color: var(--green); }
.welcome li span { color: var(--muted); font-size: 15px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-actions .btn { flex: 1 1 160px; }
.btn.ghost-dark { background: #fff; color: var(--green); border-color: var(--green); }
.btn.ghost-dark:hover { background: #EAF1E8; color: var(--green); }
.ios-hint { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
@media (min-width: 761px) { .welcome { align-items: center; } .welcome-in { margin-bottom: 0; } }
.foot-install { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); background: transparent; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(245,239,226,0.3); font: 500 16px var(--body); cursor: pointer; }
.foot-install[hidden] { display: none; }
.foot-install:hover { background: rgba(255,255,255,.08); }
.section { padding-top: 36px; padding-bottom: 36px; }
.bigsearch input { min-width: 0; }
@media (max-width: 480px) { .bigsearch .btn { padding: 12px 16px; } }
