/* "Seu lugar" no Início: campo de CEP ou cidade, quem governa (cidade → estado → país), a semana e o dinheiro.
   Mesma identidade do portal.css: amarelo só no grifo do título; aqui tudo é preto, cinza e borda. */

/* ---------- campo "Seu CEP ou sua cidade" ---------- */
.lugar-escopo { flex: none; display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 10px 10px; padding: 0 6px 0 10px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.lugar-escopo svg.lucide { width: 16px; height: 16px; }
.lugar-escopo[hidden] { display: none; }
.lugar-limpar { flex: none; width: 48px; display: grid; place-items: center; color: var(--ink-3); border-radius: 0 14px 14px 0; }
.lugar-limpar[hidden] { display: none; }
.busca-linha .lugar-limpar:focus-visible, .busca-linha .lugar-escopo:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.lugar-lista { list-style: none; margin: 0; }
.lugar-op { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.lugar-op:first-child { border-top: 0; }
.lugar-op[aria-selected='true'] { background: var(--bg-2); box-shadow: -16px 0 0 var(--bg-2), 16px 0 0 var(--bg-2); }
@media (hover: hover) { .lugar-op:hover { background: #fafaf8; box-shadow: -16px 0 0 #fafaf8, 16px 0 0 #fafaf8; } }
.lugar-op .res-ico svg.lucide { width: 18px; height: 18px; }
.lugar-op b { font-weight: 600; }
.lugar-op mark { background: none; color: inherit; font-weight: 800; }
.lugar-op small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.lugar-aviso { padding: 14px 0; margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.hero-priv { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 12px !important; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.hero-priv span { display: inline-flex; align-items: center; gap: 6px; }
.hero-priv svg.lucide { width: 14px; height: 14px; }
.hero-priv button { min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lugar-nota { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; margin-top: 12px !important; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--bg-2); font-size: 14px; line-height: 20px; color: var(--ink-2); text-align: left; }
.lugar-nota[hidden] { display: none; }
.lugar-nota svg.lucide { width: 18px; height: 18px; margin-top: 1px; color: var(--ink); }
.lugar-nota b { color: var(--ink); }
@media (min-width: 900px) { .hero-priv { justify-content: center; } .lugar-nota { max-width: 640px; margin-left: auto !important; margin-right: auto !important; } }

/* ---------- cabeçalho do lugar ---------- */
.lugar-cab { margin-top: 32px; padding: 20px 0 0; border-top: 2px solid var(--ink); display: grid; gap: 4px; }
.lugar-cab p { margin: 0; }
.lugar-nome { font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -0.03em; }
.lugar-nome span { color: var(--ink-3); font-weight: 700; }
.lugar-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.lugar-acoes button { min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .lugar-cab { margin-top: 48px; } .lugar-nome { font-size: 44px; line-height: 48px; } }
.bloco-sub { margin: -8px 0 16px !important; font-size: 14px; line-height: 20px; color: var(--ink-2); max-width: 60ch; }

/* ---------- quem governa você: três níveis ligados por um trilho ---------- */
.niveis { display: grid; }
.nivel { position: relative; padding: 0 0 32px 24px; }
.nivel::before { content: ''; position: absolute; left: 5px; top: 18px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.nivel:last-child { padding-bottom: 0; }
.nivel:last-child::before { display: none; }
.nivel-marca { position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 3px var(--ink); }
.nivel-cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 8px; }
.nivel-cab p { margin: 0; }
.nivel-cab .n { font-size: 20px; line-height: 24px; font-weight: 800; letter-spacing: -0.015em; }
.orgaos { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.orgao { min-width: 0; }
.orgao-cab { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.orgao-cab p { margin: 0; }
.orgao-n { font-size: 16px; line-height: 22px; font-weight: 700; }
.orgao-d { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.orgao-d .q { width: 18px; height: 18px; font-size: 11px; }
.pessoas { display: grid; }
.pessoa { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 64px; padding: 8px 0; }
.pessoa + .pessoa, .pessoas .recolhe > .pessoa:not(:first-child), .pessoas .extra > .pessoa { border-top: 1px solid var(--line); }
.pessoa .pn { font-weight: 600; line-height: 20px; }
.pessoa .ps { display: block; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.pessoa a { display: block; padding: 4px 0; }
@media (hover: hover) { .pessoa a:hover .pn { text-decoration: underline; text-underline-offset: 3px; } }
.foto-falta { width: 40px; height: 40px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #c9c9c3; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--bg-2) 4px 8px); }
.pessoa.falta .pn { color: var(--ink-2); }
.reunindo { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.escolher-cidade { display: grid; gap: 12px; justify-items: start; padding: 16px; border-radius: var(--r-card); background: var(--bg-2); }
.escolher-cidade p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.pessoas .mais { margin-top: 0; }

/* botão do resumo semanal: contorno preto (o amarelo fica para o grifo); marcado vira preto cheio */
.acomp { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s var(--ease); }
.acomp::after { content: ''; position: absolute; inset: -4px; } /* 44 px de toque */
.acomp svg.lucide { width: 16px; height: 16px; display: none; }
.acomp[aria-pressed='true'] { background: var(--ink); color: #fff; }
.acomp[aria-pressed='true'] svg.lucide { display: block; }
.acomp:active { transform: scale(0.97); }
/* um botão só, no topo do lugar: largo no celular, à direita do nome no computador */
.acomp-lugar { height: 48px; margin-top: 12px; padding: 0 20px; font-size: 15px; width: 100%; }
@media (min-width: 900px) {
  .lugar-cab { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
  .lugar-cab > p { grid-column: 1; }
  .acomp-lugar { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: auto; margin-top: 0; }
}
@media (hover: hover) { .acomp[aria-pressed='false']:hover { background: var(--bg-2); color: var(--ink); } }

/* janela de consentimento */
.consent { display: grid; gap: 16px; }
.consent p { margin: 0; }
.consent-caixa { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 14px; line-height: 20px; }
.consent-caixa input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.consent-lgpd { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.consent-lgpd ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.consent-lgpd a { text-decoration: underline; text-underline-offset: 2px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.prot-nota { margin: 8px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-3); text-align: center; }

/* ---------- o que eles fizeram esta semana ---------- */
.dia + .dia { margin-top: 8px; }
.dia-t { padding: 12px 0 4px; }
.ev-l { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); }
.ev-l p { margin: 0; }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; line-height: 18px; color: var(--ink-3); font-weight: 600; }
.ev-meta .q { width: 18px; height: 18px; font-size: 11px; margin-left: 0; }
.ev-tt { font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.ev-r { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.ev-uf { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--bg-2); }
.ev-uf-t { font-size: 14px; line-height: 20px; font-weight: 700; }
.ev-cont { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ev-cont .voto { font-size: 13px; font-weight: 600; }
.ev-cont .voto b { font-variant-numeric: tabular-nums; font-weight: 800; margin-right: 2px; }
.ev-uf .placar-barra { background: var(--bg); }
.ev-uf details summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -6px 0; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.ev-uf details summary::-webkit-details-marker { display: none; }
.ev-uf details summary svg.lucide { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.ev-uf details[open] summary svg.lucide { transform: rotate(180deg); }
.quem-votou { list-style: none; margin: 4px 0 0; padding: 0; columns: 1; }
.quem-votou li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #e9e9e4; font-size: 14px; line-height: 20px; break-inside: avoid; }
.quem-votou li:first-child { border-top: 0; }
.quem-votou a { font-weight: 600; }
.ev-ir { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0; font-size: 14px; font-weight: 600; justify-self: start; }
.ev-ir svg.lucide { width: 16px; height: 16px; }
.ev-falta { display: grid; gap: 8px; margin-top: 8px; padding: 16px; border-radius: var(--r-card); border: 1.5px dashed #c9c9c3; }
.ev-falta p { margin: 0; }
.ev-falta ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ev-falta li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.semana-ia { margin-top: 8px !important; }

/* ---------- o dinheiro do seu lugar ---------- */
.dinheiro { display: grid; gap: 16px; }
.cofre { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); }
.cofre p { margin: 0; }
.cofre-v { font-size: 32px; line-height: 40px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cofre-p { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.cofre .barras { margin-top: 4px; }
.cofre .barra-l .v small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.cofre .fonte { margin-top: 0; }
.cofre-linha { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 16px 20px; border-radius: var(--r-card); background: var(--bg-2); }
.cofre-linha p { margin: 0; }
.cofre-linha > p:first-child { white-space: nowrap; }
.cofre-linha.falta { background: none; border: 1.5px dashed #c9c9c3; align-items: center; }
.cofre-linha .v { font-size: 20px; line-height: 28px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cofre-linha .d { grid-column: 1 / -1; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.cofre-linha a { text-decoration: underline; text-underline-offset: 2px; }

/* separador entre o lugar e o resto do país */
.no-brasil { margin-top: 64px; padding-top: 20px; border-top: 2px solid var(--ink); }
.no-brasil p { margin: 0; }

@media (min-width: 900px) {
  .nivel { padding-left: 32px; padding-bottom: 40px; }
  .nivel-cab .n { font-size: 24px; line-height: 28px; }
  .orgaos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .orgao { padding: 4px 20px 8px; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); }
  .orgao.so { grid-column: 1 / -1; }
  .orgao.so .pessoas { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .orgao.so .pessoa + .pessoa { border-top: 0; }
  .lugar-duas { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .quem-votou { columns: 2; column-gap: 24px; }
  .cofre { padding: 24px; }
  .cofre-v { font-size: 40px; line-height: 48px; }
}

/* campo de e-mail da janela: o anel é do campo inteiro, não um segundo por dentro */
.consent .campo input:focus-visible { box-shadow: none; border-radius: 0; }
.consent .campo:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--sun-soft); }
@media (min-width: 900px) { .lugar-duas > section:last-child { position: sticky; top: calc(var(--topo) + 16px); } }
