/* Páginas "por lugar" (/emitir-nfse/, estados e cidades; scripts/paginas-locais.ts, modelo seo/modelos/local.html).
   Fica fora do Tailwind da landing: o `content` dele não lê os modelos de SEO e a landing tem orçamento de 15 KB.
   Só usa os tokens de src/styles/tokens.css (claro e escuro) e as classes de componente que a landing já emite
   (h1-landing, h2-landing, botao-app, pergunta, numero-passo, link-rodape). */

.loc { display: block; }
.loc-miolo { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) { .loc-miolo { padding-left: 1.5rem; padding-right: 1.5rem; } }

.loc-secao { padding-top: 4rem; padding-bottom: 4rem; }
.loc-faixa { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.loc-faixa > .loc-miolo { padding-top: 4rem; padding-bottom: 4rem; }
.loc-faixa + .loc-faixa { border-top: 0; }
@media (max-width: 767px) { .loc-secao, .loc-faixa > .loc-miolo { padding-top: 2.75rem; padding-bottom: 2.75rem; } }

.loc h2 { margin: 0.5rem 0 0; max-width: 28ch; }
.loc-olho { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.loc-olho::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 0.1rem; background: hsl(var(--lime)); box-shadow: inset 0 0 0 1px hsl(var(--lime-ink) / 0.6); }
.loc-texto { max-width: 46rem; margin-top: 1.25rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.loc-texto p { margin: 0 0 1rem; }
.loc-texto strong { color: hsl(var(--foreground)); font-weight: 600; }
.loc a:not(.botao-app):not(.loc-botao):not(.loc-cartao) { text-underline-offset: 4px; }
.loc-texto a, .loc-contador a, .loc-fontes a, .loc-mais a, .loc-profissoes a, .seo-aviso a { color: hsl(var(--primary)); text-decoration: underline; }
.loc-junto { white-space: nowrap; }
.loc-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* trilha */
.seo-trilha { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.seo-trilha a { text-decoration: underline; text-underline-offset: 4px; }
.seo-aviso { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* herói */
.loc-hero { display: grid; gap: 2.5rem; padding-top: 1.5rem; padding-bottom: 3.5rem; align-items: start; }
@media (min-width: 960px) { .loc-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3.5rem; padding-top: 2.5rem; padding-bottom: 5rem; } }
.loc-hero-simples { grid-template-columns: minmax(0, 1fr); }
.loc-hero-simples > div { max-width: 50rem; }
.loc-hero .loc-olho { margin-top: 2rem; }
.loc-hero h1 { margin: 0.75rem 0 0; }
.loc-lead { margin: 1.5rem 0 0; font-size: 1.125rem; line-height: 1.65; color: hsl(var(--foreground)); max-width: 40rem; }
.loc-lead-2 { margin: 0.875rem 0 0; line-height: 1.65; color: hsl(var(--muted-foreground)); max-width: 40rem; }
.loc-acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.loc-botao { display: inline-flex; min-height: 3rem; align-items: center; gap: 0.5rem; padding: 0 1.5rem; border: 1px solid hsl(var(--border)); border-radius: 9999px; background: hsl(var(--background)); color: hsl(var(--foreground)); font-weight: 500; text-decoration: none; transition: border-color 0.15s; }
.loc-botao:hover { border-color: hsl(var(--foreground) / 0.4); }
.loc-nota { margin: 1rem 0 0; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.loc-centro { text-align: center; }
.loc-centro > div { margin: 0 auto; }
.loc-centro .seo-trilha { text-align: left; }
.loc-centro .loc-olho, .loc-centro .loc-acoes { justify-content: center; }
.loc-centro .loc-lead { margin-left: auto; margin-right: auto; }

/* ficha da cidade */
.loc-ficha { border: 1px solid hsl(var(--border)); border-radius: 1.25rem; background: hsl(var(--card)); box-shadow: var(--shadow-card); padding: 1.5rem; }
@media (min-width: 960px) { .loc-ficha { margin-top: 3.25rem; } }
.loc-ficha-topo { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid hsl(var(--border)); font-size: 0.9375rem; }
.loc-ficha-topo strong { font-weight: 600; }
.loc-selo { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 9999px; padding: 0.2rem 0.65rem; font-size: 0.75rem; font-weight: 600; background: hsl(var(--lime)); color: hsl(var(--lime-foreground)); }
.loc-selo-neutro { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.loc-ficha dl { margin: 0; }
.loc-ficha dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: 0.875rem; }
.loc-ficha dt { color: hsl(var(--muted-foreground)); }
.loc-ficha dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.loc-fonte { margin: 0.875rem 0 0; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* números do hub */
.loc-numeros { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.loc-numeros strong { color: hsl(var(--foreground)); font-weight: 600; font-variant-numeric: tabular-nums; }

/* quem emite */
.loc-regimes { display: grid; gap: 0.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.loc-regimes li { display: grid; gap: 0.35rem 1.5rem; align-items: center; padding: 1.125rem 1.25rem; border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--background)); }
@media (min-width: 768px) { .loc-regimes li { grid-template-columns: 15rem minmax(0, 1fr) auto; } }
.loc-regimes strong { font-weight: 600; }
.loc-regimes span { color: hsl(var(--muted-foreground)); line-height: 1.55; font-size: 0.9375rem; }
.loc-regimes em { font-style: normal; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.loc-sim { color: hsl(var(--success)); }
.loc-nao { color: hsl(var(--muted-foreground)); }

/* passo a passo */
.loc-passos { display: grid; gap: 0.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 768px) { .loc-passos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.loc-passos li { padding: 1.375rem; border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--card)); }
.loc-faixa .loc-passos li { background: hsl(var(--background)); }
.loc-passos h3 { margin: 0.875rem 0 0.375rem; font-size: 1.0625rem; font-weight: 600; }
.loc-passos p { margin: 0; color: hsl(var(--muted-foreground)); line-height: 1.6; font-size: 0.9375rem; }

/* tabela de ISS */
.loc-tabela { overflow-x: auto; margin: 0.5rem 0 1rem; border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--background)); }
.loc-tabela table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.loc-tabela th, .loc-tabela td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
.loc-tabela th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.loc-tabela tr:last-child td { border-bottom: 0; }
.loc-tabela td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: hsl(var(--muted-foreground)); }
.loc-tabela td:last-child, .loc-tabela th:last-child { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }

/* perguntas */
.loc-faq { max-width: 46rem; margin-top: 1.25rem; border-top: 1px solid hsl(var(--border)); }

/* cartões de cidade e de estado */
.loc-grade { display: grid; gap: 0.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.loc-grade-uf { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.loc-cartao { display: flex; height: 100%; flex-direction: column; gap: 0.25rem; padding: 1.125rem 1.25rem; border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--background)); color: hsl(var(--foreground)); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.loc-cartao:hover { border-color: hsl(var(--primary)); box-shadow: var(--shadow-card); }
.loc-cartao strong { font-weight: 600; }
.loc-cartao-uf { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.09em; color: hsl(var(--muted-foreground)); }
.loc-cartao-info { font-size: 0.8125rem; line-height: 1.45; color: hsl(var(--muted-foreground)); }
.loc-cartao-ir { margin-top: 0.625rem; font-size: 0.8125rem; font-weight: 600; color: hsl(var(--primary)); }
.loc-mais { margin: 1.5rem 0 0; font-weight: 600; }

/* lista de A a Z e filtro */
.loc-busca { margin-top: 1.75rem; padding: 0.5rem; border: 1px solid hsl(var(--border)); border-radius: 1.25rem; background: hsl(var(--card)); box-shadow: var(--shadow-card); }
.loc-busca input { width: 100%; min-height: 3rem; padding: 0 1rem; border: 1px solid transparent; border-radius: 0.875rem; background: hsl(var(--muted)); color: hsl(var(--foreground)); font: inherit; }
.loc-busca input::placeholder { color: hsl(var(--muted-foreground)); }
.loc-busca input:focus { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; background: hsl(var(--background)); }
.loc-letras { display: flex; flex-wrap: wrap; gap: 0.125rem; padding: 0.5rem 0.25rem 0.125rem; }
.loc-letras a { display: inline-flex; min-width: 2rem; min-height: 2rem; align-items: center; justify-content: center; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 600; color: hsl(var(--muted-foreground)); text-decoration: none; }
.loc-letras a:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.loc-letra { margin-top: 2rem; }
.loc-letra h3 { margin: 0 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid hsl(var(--border)); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; color: hsl(var(--lime-ink)); scroll-margin-top: 1rem; }
.loc-colunas { margin: 0; padding: 0; list-style: none; columns: 5 11rem; column-gap: 2rem; }
.loc-colunas li { break-inside: avoid; }
.loc-colunas a { display: inline-flex; min-height: 2.25rem; align-items: center; color: hsl(var(--foreground)); text-decoration: none; font-size: 0.9375rem; }
.loc-colunas a:hover { color: hsl(var(--primary)); text-decoration: underline; }
.loc-secao > .loc-colunas { margin-top: 1.5rem; }
.loc-vazio { margin: 1.5rem 0 0; color: hsl(var(--muted-foreground)); }

/* busca do hub */
.loc-busca-hub { position: relative; max-width: 36rem; margin-left: auto; margin-right: auto; text-align: left; }
.loc-resultados { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.loc-resultados a { display: flex; min-height: 2.75rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem; border-radius: 0.75rem; color: hsl(var(--foreground)); text-decoration: none; }
.loc-resultados a:hover, .loc-resultados a:focus { background: hsl(var(--muted)); }
.loc-resultados span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: hsl(var(--muted-foreground)); }
.loc-resultados p { margin: 0; padding: 0.75rem 1rem; color: hsl(var(--muted-foreground)); }

/* leia também */
.loc-links { display: grid; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.loc-links a { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.125rem; border: 1px solid hsl(var(--border)); border-radius: 0.875rem; background: hsl(var(--card)); color: hsl(var(--foreground)); font-weight: 500; text-decoration: none; }
.loc-links a::after { content: "→"; color: hsl(var(--primary)); }
.loc-links a:hover { border-color: hsl(var(--primary)); }
.loc-profissoes, .loc-contador, .loc-fontes { max-width: 46rem; margin: 1.5rem 0 0; line-height: 1.65; color: hsl(var(--muted-foreground)); }
.loc-contador { padding: 1rem 1.25rem; border-left: 3px solid hsl(var(--primary)); border-radius: 0 0.75rem 0.75rem 0; background: hsl(var(--card)); }
.loc-contador strong { color: hsl(var(--foreground)); font-weight: 600; }
.loc-fontes { font-size: 0.875rem; }

/* chamada final */
.loc-final { text-align: center; }
.loc-final h2 { margin-left: auto; margin-right: auto; max-width: none; }
.loc-final p { margin: 0.875rem auto 1.5rem; max-width: 34rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.loc-faixa:has(.loc-final) { border-bottom: 0; }

.loc-rodape-estados { padding-top: 1rem; border-top: 1px solid hsl(var(--border)); }
