/* Folha de estilo do site: cores de céu, palha e anil; cartões com canto de folha. */
:root {
  --eb-ceu: #e3edf1; --eb-papel: #f9f8f3; --eb-palha: #efe8d7; --eb-branco: #fffefb;
  --eb-tinta: #1b1f26; --eb-apagado: #4f5761; --eb-borda-campo: #858c95; --eb-linha: #d3d7d1;
  --eb-anil: #33407a; --eb-anil-fundo: #273266; --eb-noite: #222b52; --eb-salvia: #a5cbb4; --eb-pasto: #2d6650;
  --eb-erro: #a3311c; --eb-erro-claro: #f7e2da;
  --eb-titulo: "Brygada 1918", Georgia, "Times New Roman", serif;
  --eb-texto: "Cabin", "Segoe UI", Roboto, Arial, sans-serif;
  --eb-folha: 6px 6px 30px 6px; --eb-respiro: max(1rem, calc((100% - 1160px) / 2));
}
[hidden], .ebr-escondido { display: none !important; }
html.ebr { box-sizing: border-box; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.ebr *, html.ebr *::before, html.ebr *::after { box-sizing: inherit; }
@media (prefers-reduced-motion: reduce) { html.ebr { scroll-behavior: auto; } html.ebr * { transition: none !important; } }
body { margin: 0; background: var(--eb-papel); color: var(--eb-tinta); font: 400 1.0625rem/1.62 var(--eb-texto); }
h1, h2, h3 { font-family: var(--eb-titulo); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; color: var(--eb-tinta); }
p { margin-block: 0 1em; margin-inline: 0; } /* respiro entre parágrafos */
img { max-width: 100%; height: auto; }
html.ebr a { color: var(--eb-anil); text-underline-offset: .18em; text-decoration-thickness: 1px; }
html.ebr a:hover { text-decoration-thickness: 2px; }
html.ebr :focus-visible { outline: 3px solid var(--eb-anil); outline-offset: 2px; }
.ebr-so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

html.ebr .ebr-pular { position: absolute; left: 1rem; top: -4rem; z-index: 90; background: var(--eb-noite); color: #fff; padding: .7rem 1rem; border-radius: 0 0 6px 6px; }
html.ebr .ebr-pular:focus { top: 0; }

/* faixa do CNPJ e cabeçalho grudado no alto */
.ebr-faixa-cnpj { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding: .45rem var(--eb-respiro); background: var(--eb-noite); color: #dfe4f1; font-size: .875rem; }
.ebr-faixa-cnpj p { margin: 0; }
html.ebr .ebr-faixa-cnpj a { color: #fff; font-weight: 600; text-decoration: none; display: inline-block; padding-block: .3rem; }
.ebr-topo { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1.5rem; padding: .8rem var(--eb-respiro); background: var(--eb-papel); border-bottom: 1px solid var(--eb-linha); }
html.ebr .ebr-marca { display: inline-flex; align-items: center; gap: .6rem; color: var(--eb-tinta); text-decoration: none; font: 700 1.35rem/1 var(--eb-titulo); margin-right: auto; }
.ebr-navegacao { display: flex; align-items: center; gap: 1.6rem; }
.ebr-navegacao ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
html.ebr .ebr-navegacao ul a { color: var(--eb-tinta); text-decoration: none; font-weight: 500; padding: .5rem 0; display: inline-block; border-bottom: 2px solid transparent; }
html.ebr .ebr-navegacao ul a:hover { border-bottom-color: var(--eb-salvia); }
.ebr-abre-menu { display: none; align-items: center; gap: .55rem; min-height: 44px; padding: .4rem .9rem; border: 1.5px solid var(--eb-anil); border-radius: 3px; background: transparent; color: var(--eb-anil); font: 600 1rem var(--eb-texto); cursor: pointer; }
.ebr-tracos, .ebr-tracos::before, .ebr-tracos::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.ebr-tracos::before, .ebr-tracos::after { content: ""; position: absolute; left: 0; }
.ebr-tracos::before { top: -6px; } .ebr-tracos::after { top: 6px; }

/* botões: retângulo com seta que anda no hover */
html.ebr .ebr-botao { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.3rem; border: 2px solid var(--eb-anil); border-radius: 3px; background: var(--eb-anil); color: #fff; font: 600 1rem/1.2 var(--eb-texto); text-decoration: none; cursor: pointer; }
html.ebr .ebr-botao::after { content: "→"; transition: transform .2s ease; }
html.ebr .ebr-botao:hover { background: var(--eb-anil-fundo); border-color: var(--eb-anil-fundo); }
html.ebr .ebr-botao:hover::after { transform: translateX(4px); }
html.ebr .ebr-botao--contorno { background: transparent; color: var(--eb-anil); }
html.ebr .ebr-botao--contorno:hover { background: var(--eb-anil); color: #fff; }
html.ebr .ebr-botao--claro { padding-inline: 1rem; }
html.ebr .ebr-botao--largo { width: 100%; }

/* abertura */
.ebr-abertura { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 3rem; align-items: center; padding: 4.5rem var(--eb-respiro) 4rem; background: url("/paisagem/correntes.svg") right -40px top 20px / 760px auto no-repeat, linear-gradient(180deg, var(--eb-ceu) 0%, var(--eb-papel) 92%); background-color: var(--eb-ceu); }
.ebr-chapeu { display: flex; align-items: center; gap: .7rem; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--eb-pasto); margin-bottom: 1rem; }
.ebr-chapeu::before { content: ""; width: 2.2rem; height: 2px; background: var(--eb-pasto); }
.ebr-abertura h1 { font-size: clamp(2rem, 4.1vw, 3.25rem); max-width: 17ch; }
.ebr-abertura__linha { font-size: 1.16rem; max-width: 38rem; color: #2f3640; }
.ebr-abertura__acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.ebr-abertura__miudo { font-size: .92rem; color: var(--eb-apagado); max-width: 36rem; }
.ebr-placar { background: var(--eb-noite); color: #e9ecf5; border-radius: var(--eb-folha); padding: 1.8rem 1.9rem 1.4rem; }
.ebr-placar h2 { color: #fff; font-size: 1.2rem; margin-bottom: 1.1rem; }
.ebr-placar dl { margin: 0; display: grid; gap: 1.1rem; }
.ebr-placar dl div { display: flex; flex-direction: column-reverse; border-top: 1px solid rgba(165, 203, 180, .35); padding-top: .8rem; }
.ebr-placar dd { margin: 0; font: 700 2.3rem/1 var(--eb-titulo); color: var(--eb-salvia); font-variant-numeric: tabular-nums; }
.ebr-placar dt { font-size: .95rem; margin-top: .3rem; }
html.ebr .ebr-placar .ebr-fonte { color: #c5cce0; margin: 1.2rem 0 0; }
.ebr-fonte { font-size: .84rem; color: var(--eb-apagado); line-height: 1.45; }

/* seções da inicial */
.ebr-secao { padding: 4.5rem var(--eb-respiro); }
.ebr-secao__topo { max-width: 46rem; margin-bottom: 2.2rem; }
.ebr-secao__topo h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.ebr-secao__topo p { color: #3a414b; font-size: 1.08rem; }
.ebr-mais { margin: 2rem 0 0; font-weight: 600; }
html.ebr .ebr-mais a { display: inline-block; padding-block: .55rem; }
html.ebr .ebr-mais a::after { content: " →"; }

.ebr-caminho__torres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; position: relative; }
.ebr-caminho__torres::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.4rem; border-top: 2px dashed #9aa6c9; }
.ebr-caminho__torres li { position: relative; }
.ebr-caminho__no { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: 1rem; border-radius: 50%; border: 2px solid var(--eb-anil); background: var(--eb-papel); color: var(--eb-anil); font: 700 1.2rem var(--eb-titulo); position: relative; }
.ebr-caminho__torres h3 { font-size: 1.22rem; }
.ebr-caminho__torres p { color: #3a414b; margin: 0; }

.ebr-criterios { background: var(--eb-palha); }
.ebr-criterios__grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.ebr-folha { background: var(--eb-branco); border: 1px solid #ddd4bf; border-radius: var(--eb-folha); padding: 1.5rem 1.5rem 1.3rem; }
.ebr-folha h3 { font-size: 1.22rem; display: flex; align-items: center; gap: .6rem; }
.ebr-folha h3::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 0 0 0 1.1rem; background: var(--eb-salvia); flex: none; }
.ebr-folha p { margin: 0; color: #3a414b; }

/* tabela por estado, com barra horizontal */
.ebr-tabela-uf { width: 100%; max-width: 860px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ebr-tabela-uf caption { text-align: left; font-weight: 600; padding-bottom: .8rem; }
.ebr-tabela-uf th, .ebr-tabela-uf td { padding: .55rem .7rem; border-bottom: 1px solid var(--eb-linha); text-align: right; white-space: nowrap; }
.ebr-tabela-uf th[scope="row"], .ebr-tabela-uf thead th:first-child { text-align: left; font-weight: 600; }
.ebr-tabela-uf thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--eb-apagado); }
.ebr-tabela-uf tbody tr:hover { background: var(--eb-ceu); }
.ebr-barra { width: 42%; }
.ebr-barra i { display: block; height: .75rem; background: var(--eb-anil); border-radius: 0 4px 4px 0; }

/* ficha da área */
.ebr-ficha { background: var(--eb-ceu); }
.ebr-ficha__corpo { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.ebr-ficha__formulario { background: var(--eb-branco); color: var(--eb-tinta); border: 1px solid #c9d6dc; border-radius: var(--eb-folha); padding: 2rem 2rem 1.6rem; }
.ebr-ficha__formulario fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
.ebr-ficha__formulario legend { font: 700 1.2rem var(--eb-titulo); padding: 0; margin-bottom: .9rem; }
.ebr-grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.ebr-campo--largo { grid-column: 1 / -1; }
.ebr-campo label { display: block; font-weight: 600; margin-bottom: .3rem; }
.ebr-campo input[type="text"], .ebr-campo input[type="tel"], .ebr-campo input[type="email"], .ebr-campo select, .ebr-campo textarea { width: 100%; min-height: 46px; padding: .62rem .75rem; border: 1.5px solid var(--eb-borda-campo); border-radius: 6px; background: #fff; color: var(--eb-tinta); font: inherit; }
.ebr-campo input[type="text"], .ebr-campo input[type="tel"], .ebr-campo input[type="email"], .ebr-campo select { height: 48px; line-height: 1.25; }
.ebr-campo textarea { resize: vertical; min-height: 7rem; }
.ebr-campo [aria-invalid="true"] { border-color: var(--eb-erro); background: #fffaf8; }
.ebr-campo__erro { color: var(--eb-erro); font-size: .92rem; font-weight: 600; margin: .3rem 0 0; }
.ebr-ficha__alerta { background: var(--eb-erro-claro); border-left: 4px solid var(--eb-erro); padding: .8rem 1rem; color: #5e1b0e; font-weight: 600; }
.ebr-papeis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.2rem; }
.ebr-papeis li, .ebr-campo--aceite { display: flex; align-items: flex-start; gap: .6rem; }
.ebr-papeis input, .ebr-campo--aceite input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--eb-anil); flex: none; }
.ebr-papeis label { font-weight: 500; }
.ebr-campo--aceite { flex-wrap: wrap; margin: .4rem 0 1.4rem; }
.ebr-campo--aceite label { flex: 1 1 0; min-width: 0; font-weight: 400; }
.ebr-campo--aceite .ebr-campo__erro { flex-basis: 100%; }
.ebr-isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ebr-resumo { position: sticky; top: 6.5rem; background: var(--eb-noite); color: #e7eaf4; border-radius: var(--eb-folha); padding: 1.6rem 1.6rem 1.2rem; }
html.ebr .ebr-resumo h3 { color: #fff; font-size: 1.2rem; }
.ebr-resumo__estado { border-left: 3px solid var(--eb-salvia); padding-left: .8rem; }
.ebr-resumo ul { margin: .4rem 0 1rem; padding-left: 1.1rem; }
.ebr-resumo li { margin-bottom: .45rem; }
.ebr-resumo li span { display: block; font-size: .88rem; color: #c3cadf; }
.ebr-resumo__nota { font-size: .9rem; color: #c3cadf; margin: 0; }

/* perguntas */
.ebr-perguntas__lista { max-width: 50rem; border-top: 1px solid var(--eb-linha); }
.ebr-perguntas details { border-bottom: 1px solid var(--eb-linha); }
.ebr-perguntas summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; font: 600 1.14rem/1.3 var(--eb-titulo); }
.ebr-perguntas summary::-webkit-details-marker { display: none; }
.ebr-perguntas summary::after { content: "+"; font: 400 1.5rem/1 var(--eb-texto); color: var(--eb-anil); }
.ebr-perguntas details[open] summary::after { content: "−"; }
.ebr-perguntas details p { margin: 0 0 1.2rem; max-width: 44rem; color: #333a44; }

/* empresa e mapa */
.ebr-empresa { background: var(--eb-palha); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.ebr-ficha-tecnica { margin: 1.4rem 0 0; }
.ebr-ficha-tecnica div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #d9cfb8; }
.ebr-ficha-tecnica dt { font-weight: 600; color: var(--eb-apagado); }
.ebr-ficha-tecnica dd { margin: 0; overflow-wrap: anywhere; }
.ebr-empresa__mapa { min-height: 320px; display: grid; place-content: center; justify-items: center; gap: .6rem; text-align: center; padding: 2rem 1.5rem; border: 1.5px dashed #b9ad92; border-radius: var(--eb-folha); background: url("/paisagem/correntes.svg") center / 520px auto no-repeat, var(--eb-branco); }
.ebr-empresa__mapa iframe { width: 100%; height: 360px; border: 0; border-radius: var(--eb-folha); }
.ebr-empresa__mapa.ebr-com-mapa { display: block; padding: 0; border: 0; background: none; }

/* rodapé */
.ebr-rodape { background: var(--eb-noite); color: #dfe3ef; padding: 3.5rem var(--eb-respiro) 2rem; }
.ebr-rodape__colunas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
html.ebr .ebr-rodape h2 { color: var(--eb-salvia); font-size: 1.05rem; letter-spacing: .02em; }
.ebr-rodape ul { list-style: none; margin: 0; padding: 0; }
.ebr-rodape li { margin-bottom: .35rem; }
html.ebr .ebr-rodape a, .ebr-link-cookies { color: #fff; display: inline-block; padding: .3rem 0; overflow-wrap: anywhere; }
.ebr-link-cookies { background: none; border: 0; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; text-align: left; }
.ebr-rodape__nota { margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; color: #c7cde0; }

/* aviso de cookies no canto esquerdo */
.ebr-cookies { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; max-width: 24rem; background: var(--eb-branco); color: var(--eb-tinta); border: 1px solid #c9ced8; border-radius: var(--eb-folha); padding: 1.2rem 1.3rem 1.1rem; box-shadow: 0 12px 34px rgba(26, 31, 54, .22); font-size: .95rem; }
.ebr-cookies__titulo { font: 700 1.08rem var(--eb-titulo); margin-bottom: .4rem; }
.ebr-cookies__acoes { display: flex; flex-wrap: wrap; gap: .6rem; }
html.ebr .ebr-cookies .ebr-botao { min-height: 44px; padding: .55rem .95rem; font-size: .95rem; flex: 1 1 9rem; }
html.ebr .ebr-cookies .ebr-botao::after { content: none; }

/* páginas de assunto */
.ebr-tema__abertura { padding: 3.6rem var(--eb-respiro) 3rem; background: url("/paisagem/correntes.svg") right -80px top 0 / 640px auto no-repeat, var(--eb-ceu); }
.ebr-tema__abertura h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 22ch; }
.ebr-tema__linha-fina { font-size: 1.15rem; max-width: 42rem; color: #2f3640; margin: 0; }
.ebr-tema__corpo { padding: 3rem var(--eb-respiro) 1rem; }
.ebr-tema__parte { max-width: 46rem; margin-bottom: 2.6rem; }
.ebr-tema__parte h2 { font-size: 1.6rem; }
.ebr-tema__itens { margin: 0 0 1rem; padding-left: 1.2rem; }
.ebr-tema__itens li { margin-bottom: .7rem; }
.ebr-tema__itens li::marker { color: var(--eb-pasto); }
.ebr-tema__chamada { margin: 1rem var(--eb-respiro) 2.5rem; max-width: 46rem; background: var(--eb-palha); border-radius: var(--eb-folha); padding: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.ebr-tema__chamada h2, .ebr-tema__chamada p { flex-basis: 100%; margin-bottom: .2rem; }
.ebr-tema__chamada h2 { font-size: 1.45rem; }
.ebr-tema__vizinhas { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0 var(--eb-respiro) 3.5rem; }
html.ebr .ebr-tema__vizinhas a { border: 1.5px solid var(--eb-linha); border-radius: 999em; padding: .55rem 1rem; text-decoration: none; font-weight: 600; background: var(--eb-branco); }
html.ebr .ebr-tema__vizinhas a:hover { border-color: var(--eb-anil); }

/* textos longos (dados, condições), confirmação e página inexistente */
.ebr-texto-corrido { padding: 3rem var(--eb-respiro) 4rem; }
.ebr-texto-corrido > * { max-width: 46rem; }
.ebr-texto-corrido h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.ebr-texto-corrido h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.ebr-texto-corrido ul { padding-left: 1.2rem; }
.ebr-aviso-final { padding: 4rem var(--eb-respiro) 4.5rem; background: url("/paisagem/correntes.svg") right -60px bottom 0 / 600px auto no-repeat, var(--eb-ceu); }
.ebr-aviso-final > * { max-width: 42rem; }
.ebr-aviso-final h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.ebr-aviso-final .ebr-abertura__acoes { margin-top: 1.4rem; }
.ebr-protocolo { display: inline-block; font: 700 1.15rem var(--eb-titulo); background: var(--eb-branco); border: 1px solid #c9d6dc; border-radius: 6px; padding: .4rem .8rem; }

/* telas menores */
@media (max-width: 1020px) { /* tablet e notebook estreito: menu recolhido */
  .ebr-abre-menu { display: inline-flex; }
  .ebr-navegacao { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--eb-respiro) 1.4rem; background: var(--eb-papel); border-bottom: 1px solid var(--eb-linha); box-shadow: 0 14px 24px rgba(27, 31, 38, .12); }
  .ebr-navegacao.ebr-aberta { display: flex; }
  .ebr-navegacao ul { flex-direction: column; gap: 0; }
  html.ebr .ebr-navegacao ul a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--eb-linha); }
  .ebr-abertura, .ebr-ficha__corpo, .ebr-empresa { grid-template-columns: minmax(0, 1fr); }
  .ebr-resumo { position: static; }
  .ebr-caminho__torres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ebr-caminho__torres::before { display: none; }
  .ebr-criterios__grade, .ebr-rodape__colunas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body { font-size: 1rem; line-height: 1.58; } /* letra um pouco menor no celular */
  .ebr-so-largo { display: none; }
  .ebr-abertura { padding-top: 3rem; gap: 2rem; background-size: 520px auto, auto; }
  .ebr-secao { padding-block: 3.2rem; }
  .ebr-caminho__torres { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; border-left: 2px dashed #9aa6c9; margin-left: 1.4rem; padding-left: 1.6rem; }
  .ebr-caminho__no { position: absolute; left: -3.05rem; top: -.2rem; }
  .ebr-criterios__grade, .ebr-rodape__colunas, .ebr-grade-2, .ebr-papeis { grid-template-columns: minmax(0, 1fr); }
  .ebr-ficha__formulario { padding: 1.4rem 1.1rem 1.2rem; }
  .ebr-tabela-uf th, .ebr-tabela-uf td { padding-inline: .4rem; }
  .ebr-barra { width: 30%; }
  .ebr-ficha-tecnica div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .ebr-cookies { left: .6rem; right: .6rem; bottom: .6rem; max-width: none; padding: .9rem 1rem .85rem; font-size: .88rem; line-height: 1.45; }
  .ebr-faixa-cnpj { font-size: .8rem; padding-block: .3rem; }
  html.ebr .ebr-marca { font-size: 1.15rem; }
  html.ebr .ebr-marca img { width: 34px; height: 34px; }
}
