/* ── A ABA CIDADES NO DESENHO DA HOME (01/12/2026) ──
   Pedidos do Eduardo: "Vamos atualizar o design dessa pagina" e, sobre o
   primeiro modelo, "Podemos melhorar ne. Se espelhe no modelo que esta na
   home page". O conteudo e o funcionamento sao os mesmos (mapa e busca, sem
   listas de cidades); a aparencia copia a home (css/inicio.css):
   - a abertura no preto (#020202), com a luz quente, o grao, o rotulo com
     fio, o titulo que sobe linha por linha com a segunda linha em italico
     dourado e o brilho que passa uma vez, o fio que se estende, o apoio, a
     busca em vidro com os exemplos sendo digitados, o botao dourado em
     capsula, o link fino e a assinatura;
   - no lugar do retrato, o mapa no desenho do mapa do "Quem Somos":
     contornos dourados finos, os estados com pagina um pouco acesos, o RS
     em destaque e as rotas da sede ate as capitais (_data/mapas.js);
   - abaixo, as folhas creme da home (var(--creme-folha), que o tema escuro
     troca): os estados do bancario em linhas com seta e o contato com os
     caminhos, como o "Fale com um advogado".
   So esta pagina carrega esta folha (pageCssFim), para nao trocar o carimbo
   das 5 mil paginas de cidade. Prefixo :root .or.cdx para vencer o
   cidades.css e o tema.css, que vem depois. */

:root .or.cdx {
  --cdx-uf-pagina: rgba(255, 207, 121, 0.1);
  --cdx-uf-pagina-borda: rgba(255, 207, 121, 0.42);
  --cdx-ouro: linear-gradient(90deg, #EB9E6E, #FFCF79);
}

/* O menu sobre o preto, como na home. */
html body:has(.cdx-abertura) nav:not(.shrunk) { background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0)); border-bottom-color: transparent; }
html body:has(.cdx-abertura) nav.shrunk { background: rgba(2, 2, 2, 0.66); border-bottom: 1px solid rgba(255, 255, 255, 0.07); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }

/* ── A abertura ── */
:root .or.cdx .cdx-abertura {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 980px);
  padding: 132px 0 96px;
  overflow: hidden;
  background: #020202;
  border-bottom: 0;
}
:root .or.cdx .cdx-abertura::before,
:root .or.cdx .cdx-abertura::after { display: none; }
:root .or.cdx .cdx-fundo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 8% 92%, rgba(29, 53, 87, 0.55), transparent 70%),
    radial-gradient(ellipse 85% 75% at 68% 45%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}
:root .or.cdx .cdx-fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
:root .or.cdx .cdx-luz {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: max(0px, calc(50vw - 760px));
  width: min(64vw, 900px);
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(closest-side at 50% 50%, rgba(235, 158, 110, 0.2), rgba(235, 158, 110, 0.07) 48%, transparent 72%);
  animation: cdxSurge 2.2s .3s cubic-bezier(.2, .7, .2, 1) backwards;
}
@keyframes cdxSurge { from { opacity: 0; filter: brightness(.45); } to { opacity: 1; filter: none; } }

:root .or.cdx .cdx-grade {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
:root .or.cdx .cdx-mapa { width: 100%; max-width: 640px; justify-self: end; margin: 0; }

/* O texto. */
:root .or.cdx .cdx-rotulo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--ff);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #c9a46a;
  animation: cdxSobe 1s ease both;
}
:root .or.cdx .cdx-rotulo::before { content: ""; flex: 0 0 40px; height: 1px; background: var(--cdx-ouro); }
:root .or.cdx .cdx-titulo {
  margin: 24px 0 0;
  max-width: none;
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -.005em;
  color: #f5f5f7;
}
:root .or.cdx .cdx-l { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; font-style: normal; }
:root .or.cdx .cdx-l > span { display: inline-block; transform: translateY(108%); animation: cdxLinha 1.15s cubic-bezier(.2, .7, .2, 1) .15s forwards; }
:root .or.cdx em.cdx-l > span {
  font-style: italic;
  font-weight: 400;
  padding-right: .1em;
  background: linear-gradient(110deg, #EB9E6E 0%, #FFCF79 38%, #fff1cc 50%, #FFCF79 62%, #EB9E6E 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cdxLinha 1.15s cubic-bezier(.2, .7, .2, 1) .32s forwards, cdxBrilho 2.6s 1.6s ease-out forwards;
}
@keyframes cdxLinha { to { transform: none; } }
@keyframes cdxBrilho { to { background-position: 0 0; } }
:root .or.cdx .cdx-abertura .cdx-fio { display: block; width: 0; height: 2px; margin-top: 30px; background: var(--cdx-ouro); animation: cdxFio 1.4s cubic-bezier(.2, .7, .2, 1) .5s forwards; }
@keyframes cdxFio { to { width: 120px; } }
:root .or.cdx .cdx-sub {
  max-width: 520px;
  margin: 24px 0 0;
  font-family: var(--ff);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: #c9d3e3;
  animation: cdxSobe 1s .55s ease both;
}
:root .or.cdx .cdx-sub span { display: block; margin-top: 10px; font-size: .88rem; line-height: 1.7; color: #8e96a5; }
@keyframes cdxSobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* A busca em vidro, como a da home, com os exemplos em italico dourado. */
:root .or.cdx .cdx-abertura .cd-escolha { max-width: 560px; margin: 30px 0 0; animation: cdxSobe 1s .7s ease both; }
:root .or.cdx .cdx-busca {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow .25s;
}
:root .or.cdx .cdx-busca:hover { box-shadow: inset 0 0 0 1px rgba(255, 207, 121, 0.5); }
:root .or.cdx .cdx-busca:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 207, 121, 0.7), 0 0 0 4px rgba(255, 207, 121, 0.08); }
:root .or.cdx .cdx-lupa { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: #FFCF79; stroke-width: 2; stroke-linecap: round; }
:root .or.cdx .cdx-busca-txt {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--ff);
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #c9d3e3;
  cursor: text;
}
:root .or.cdx .cdx-busca .cd-busca {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-family: var(--ff);
  font-size: 1rem;
  font-weight: 400;
  color: #FAFAF8;
  outline: none;
}
:root .or.cdx .cdx-busca .cd-busca::placeholder { color: #FFCF79; opacity: 1; font-family: var(--ff-serif); font-style: italic; font-size: 1.15rem; }
:root .or.cdx .cdx-busca .cd-busca::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
:root .or.cdx .cd-sugestoes {
  top: calc(100% + 8px);
  padding: 6px;
  border: 0;
  border-radius: 16px;
  background: rgba(12, 12, 14, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -20px #000;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
:root .or.cdx .cd-sugestoes li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--ff);
  font-size: .95rem;
  color: #eef0f4;
}
:root .or.cdx .cd-sugestoes li:hover { background: rgba(255, 207, 121, 0.09); color: #FFCF79; }
:root .or.cdx .cd-sug-uf { flex-shrink: 0; font-size: .66rem; font-weight: 700; letter-spacing: .14em; color: #8e96a5; }
:root .or.cdx .cd-sugestoes li:hover .cd-sug-uf { color: #d4a96a; }
:root .or.cdx .cd-sugestoes .cd-sug-vazia { display: block; color: #b9c1cf; }

/* O quadro do lugar escolhido, em vidro escuro, com as linhas e a seta
   redonda do contato da home. */
:root .or.cdx .cd-local {
  max-width: 560px;
  margin-top: 14px;
  padding: 22px 22px 20px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 207, 121, 0.22), 0 30px 60px -30px #000;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
:root .or.cdx .cd-local-tipo { margin: 0; font-family: var(--ff); font-size: .64rem; font-weight: 600; letter-spacing: .22em; color: #c9a46a; }
:root .or.cdx .cd-local-nome { margin: 6px 0 8px; font-family: var(--ff-serif); font-size: 2rem; font-weight: 300; line-height: 1.1; color: #f5f5f7; }
:root .or.cdx .cd-local .ar-lista { margin: 4px 0 18px; padding: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root .or.cdx .cd-local .ar-item { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
:root .or.cdx .cd-local .ar-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
:root .or.cdx .cd-local .ar-item-texto b { font-family: var(--ff-serif); font-size: 1.3rem; font-weight: 400; color: #f5f5f7; transition: color .25s; }
:root .or.cdx .cd-local a.ar-item::after {
  content: "\2192";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: .95rem;
  color: #FFCF79;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform .3s;
}
:root .or.cdx .cd-local a.ar-item:hover .ar-item-texto b { color: #FFCF79; }
:root .or.cdx .cd-local a.ar-item:hover::after { transform: translateX(4px); }

/* O botao dourado em capsula e o link fino. */
:root .or.cdx .cdx-abertura .btn-gold { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding-left: 30px; padding-right: 30px; }
:root .or.cdx .cdx-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 30px; animation: cdxSobe 1s .85s ease both; }
:root .or.cdx .cdx-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-family: var(--ff);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #f5f5f7;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 207, 121, 0.35);
  transition: color .25s, border-color .25s, gap .25s;
}
:root .or.cdx .cdx-link:hover { color: #FFCF79; border-bottom-color: #FFCF79; gap: 14px; }
/* Com o quadro do lugar aberto, o botao dele ja leva ao WhatsApp: o de baixo sai. */
:root .or.cdx .cd-escolha:has(.cd-local:not([hidden])) + .cdx-acoes .btn-gold { display: none; }

/* A assinatura. */
:root .or.cdx .cdx-assina {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: cdxSobe 1s 1s ease both;
}
:root .or.cdx .cdx-assina img { height: 54px; width: auto; }
:root .or.cdx .cdx-assina-fio { width: 1.5px; height: 50px; background: linear-gradient(to bottom, #FFCF79, #EB9E6E); }
:root .or.cdx .cdx-assina a { display: block; font-family: var(--ff-serif); font-size: 22px; color: #FAFAF8; text-decoration: none; }
:root .or.cdx .cdx-assina span { display: block; margin-top: 4px; font-family: var(--ff); font-size: 13px; color: #a1a1a6; }

/* ── O mapa, no desenho do mapa do "Quem Somos" ── */
:root .or.cdx .cdx-mapa { position: relative; z-index: 2; animation: cdxSobe 1.2s .4s ease both; }
:root .or.cdx .cd-mapa .br-uf { fill: rgba(255, 207, 121, 0.035); stroke: rgba(255, 207, 121, 0.2); stroke-width: .6; transition: fill .2s, stroke .2s; animation: none; }
/* Com .mp--br a mais, para vencer a regra dos estados acesos, que fica na
   pagina (depois desta folha) e tem o mesmo peso sem ele. */
:root .or.cdx .cd-mapa .mp--br .br-uf:hover { fill: rgba(255, 207, 121, 0.18); stroke: #FFCF79; stroke-width: 1; }
:root .or.cdx .cd-mapa .br-uf--rs { fill: rgba(255, 207, 121, 0.24); stroke: #FFCF79; stroke-width: 1.2; animation: br-pulso 2.4s ease-in-out infinite; }
:root .or.cdx .cd-mapa .mp--br .br-uf--rs:hover,
:root .or.cdx .cd-mapa .mp--br .br-uf--rs:focus-visible { fill: rgba(255, 207, 121, 0.34); }
:root .or.cdx .cd-mapa .mp--br .br-uf.br-uf--sel,
:root .or.cdx .cd-mapa .mp--br .br-uf.br-uf--sel:hover { fill: rgba(255, 207, 121, 0.62); stroke: #FFCF79; stroke-width: 1.2; }
:root .or.cdx .br-rs-nome { fill: #FAFAF8; }
:root .or.cdx .br-rotas { pointer-events: none; }
:root .or.cdx .br-rota {
  fill: none;
  stroke: #FFCF79;
  stroke-opacity: .24;
  stroke-width: .9;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: cdxRota 1.6s cubic-bezier(.3, .6, .2, 1) forwards;
  animation-delay: calc(.9s + var(--i) * 45ms);
}
@keyframes cdxRota { to { stroke-dashoffset: 0; } }
:root .or.cdx .br-capital { fill: #FFCF79; opacity: .6; }
:root .or.cdx .br-sede { fill: #FFCF79; }
:root .or.cdx .br-onda { fill: none; stroke: #FFCF79; stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: cdxOnda 2.4s ease-out infinite; }
@keyframes cdxOnda { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }

/* O RS aberto: as regioes em tons de bronze escuro sobre o preto. */
:root .or.cdx .mp--rs .mp-reg-0 { fill: #17140f; }
:root .or.cdx .mp--rs .mp-reg-1 { fill: #1e1a12; }
:root .or.cdx .mp--rs .mp-reg-2 { fill: #252016; }
:root .or.cdx .mp--rs .mp-reg-3 { fill: #1a1711; }
:root .or.cdx .mp--rs .mp-mun { stroke: rgba(0, 0, 0, 0.55); }
:root .or.cdx .mp-rotulo rect { fill: rgba(2, 2, 2, 0.9); }
:root .or.cdx .cd-voltar { border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); color: #FAFAF8; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
:root .or.cdx .cd-voltar:hover { color: #FFCF79; }
:root .or.cdx .cd-dica { background: rgba(12, 12, 14, 0.94); border-color: rgba(255, 207, 121, 0.3); color: #FAFAF8; }

/* A legenda. */
:root .or.cdx .cdx-mapa figcaption { margin-top: 18px; text-align: left; }
:root .or.cdx .cd-leg-br { display: flex; flex-wrap: wrap; gap: 10px 22px; }
:root .or.cdx .cd-leg-br[hidden] { display: none; }
/* O cidades.css esconde o ultimo span da legenda no celular (o do RS); a
   legenda nova fica inteira. */
:root .or.cdx .cd-mapa figcaption .cd-leg-br .cdx-leg:last-child { display: inline-flex; }
:root .or.cdx .cdx-leg { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff); font-size: .74rem; letter-spacing: .02em; color: #9aa1ad; }
:root .or.cdx .cd-mapa figcaption .cdx-leg i { display: inline-block; width: 12px; height: 12px; margin: 0; border-radius: 3px; vertical-align: 0; }
:root .or.cdx .cd-mapa figcaption .cdx-leg i.cdx-leg-rs { background: rgba(255, 207, 121, 0.24); box-shadow: 0 0 0 1.5px #FFCF79; }
:root .or.cdx .cd-mapa figcaption .cdx-leg i.cdx-leg-pag { background: var(--cdx-uf-pagina); box-shadow: 0 0 0 1px var(--cdx-uf-pagina-borda); }
:root .or.cdx .cd-mapa figcaption .cdx-leg i.cdx-leg-sede { width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: #FFCF79; box-shadow: 0 0 0 4px rgba(255, 207, 121, 0.16); }

/* ── A faixa de fatos, como a da home (.hm-fatos no preto) ── */
:root .or.cdx .cdx-fatos { position: relative; z-index: 2; background: #050505; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
:root .or.cdx .cdx-fatos-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1240px; margin: 0 auto; }
:root .or.cdx .cdx-fatos-grade > div { position: relative; padding: 34px clamp(20px, 2.4vw, 32px) 32px; border-left: 1px solid rgba(255, 255, 255, 0.07); }
:root .or.cdx .cdx-fatos-grade > div:first-child { border-left: 0; }
:root .or.cdx .cdx-fatos-grade > div::before { content: ""; position: absolute; left: clamp(20px, 2.4vw, 32px); top: 0; width: 48px; height: 2px; background: var(--cdx-ouro); }
:root .or.cdx .cdx-fatos small { display: block; margin-bottom: 12px; font-family: var(--ff); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #d4a96a; }
:root .or.cdx .cdx-fatos b { display: block; font-family: var(--ff-serif); font-size: clamp(34px, 3.4vw, 48px); font-weight: 300; line-height: 1; color: #FAFAF8; }
:root .or.cdx .cdx-fatos b i { font-style: normal; font-variant-numeric: lining-nums tabular-nums; }
:root .or.cdx .cdx-fatos b.cdx-palavra { font-style: italic; font-weight: 400; background: linear-gradient(120deg, #EB9E6E, #FFCF79); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
:root .or.cdx .cdx-fatos span { display: block; margin-top: 12px; font-family: var(--ff); font-size: 14px; line-height: 1.55; color: #a9b6cb; }

/* ── Os estados, em todas as areas, no desenho das "frentes de atuacao" ──
   A secao escura, o titulo centrado com a palavra em italico dourado, a
   escolha da regiao como o "O que aconteceu com voce?" da home (lista a
   esquerda, com a contagem) e um cartao por estado: o contorno dele em
   dourado no canto, a sigla num selo, o nome, quantas cidades tem pagina e
   as paginas do estado, uma por area. A luz segue o mouse (--mx e --my). */
:root .or.cdx .cdx-ufs {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(29, 53, 87, 0.45), transparent 70%),
    linear-gradient(180deg, #05070d, #080F22);
  border-top: 1px solid rgba(255, 207, 121, 0.12);
}
:root .or.cdx .cdx-ufs-topo { max-width: 760px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); text-align: center; }
:root .or.cdx .cdx-ufs-rotulo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--ff);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #c9a46a;
}
:root .or.cdx .cdx-ufs-rotulo::before { content: ""; width: 28px; height: 1px; background: var(--cdx-ouro); }
:root .or.cdx .cdx-ufs-titulo {
  margin: 16px 0 0;
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 4.8vw, 3.7rem);
  line-height: 1.08;
  color: #f5f5f7;
  text-wrap: balance;
}
:root .or.cdx .cdx-ufs-titulo em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, #EB9E6E, #FFCF79);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}
:root .or.cdx .cdx-ufs-texto { max-width: 56ch; margin: 18px auto 0; font-family: var(--ff); font-size: .98rem; line-height: 1.75; color: #b3bccb; }

/* A escolha da regiao a esquerda, os estados a direita. */
:root .or.cdx .cdx-ufs-corpo {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px clamp(32px, 4vw, 64px);
  align-items: start;
  max-width: 1240px;
  margin: 56px auto 0;
  padding: 0 clamp(20px, 4vw, 40px);
}
:root .or.cdx .cdx-regioes { position: sticky; top: 110px; display: flex; flex-direction: column; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
:root .or.cdx .cdx-regiao {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 2px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color .25s;
}
:root .or.cdx .cdx-regiao span { font-family: var(--ff-serif); font-size: 1.5rem; font-weight: 400; line-height: 1.1; color: #8e96a5; transition: color .25s; }
:root .or.cdx .cdx-regiao small { flex-shrink: 0; font-family: var(--ff); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #6f7786; transition: color .25s; }
:root .or.cdx .cdx-regiao:hover span { color: #e7e9ee; }
:root .or.cdx .cdx-regiao[aria-selected="true"] { border-top-color: #d4a96a; }
:root .or.cdx .cdx-regiao[aria-selected="true"] span { font-style: italic; color: #f5f5f7; }
:root .or.cdx .cdx-regiao[aria-selected="true"] small { color: #d4a96a; }
:root .or.cdx .cdx-regiao:focus-visible { outline: 2px solid #FFCF79; outline-offset: 4px; }
/* Sem JavaScript, todas as regioes aparecem, cada uma com o nome. */
:root .or.cdx .cdx-ufs-paineis { display: grid; gap: 40px; }
:root .or.cdx .cdx-ufs-painel[hidden] { display: none; }
:root .or.cdx .cdx-ufs-painel-nome { margin: 0 0 16px; font-family: var(--ff); font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #c9a46a; }
:root .or.cdx .cdx-ufs--abas .cdx-ufs-painel-nome { display: none; }
:root .or.cdx .cdx-ufs--abas .cdx-ufs-painel { animation: cdxSobe .5s ease both; }

:root .or.cdx .cdx-ufs-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
:root .or.cdx .cdx-ufs-grade > li { margin: 0; }
:root .or.cdx .cdx-ufs-grade li::before { display: none; }
:root .or.cdx .cdx-uf {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 18px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(22, 41, 71, 0.62), rgba(6, 9, 18, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
:root .or.cdx .cdx-uf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(280px circle at var(--mx, 75%) var(--my, 20%), rgba(255, 207, 121, 0.12), transparent 62%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
:root .or.cdx .cdx-uf:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 207, 121, 0.38), 0 30px 60px -30px #000; }
:root .or.cdx .cdx-uf:hover::before { opacity: 1; }
:root .or.cdx .cdx-uf-forma {
  position: absolute;
  z-index: -1;
  top: 20px;
  right: 20px;
  width: 44%;
  height: 96px;
  overflow: visible;
  fill: rgba(255, 207, 121, 0.05);
  stroke: #FFCF79;
  stroke-opacity: .5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  transition: fill .35s, stroke-opacity .35s, transform .5s cubic-bezier(.2, .7, .2, 1);
  transform-origin: top right;
}
:root .or.cdx .cdx-uf:hover .cdx-uf-forma { fill: rgba(255, 207, 121, 0.12); stroke-opacity: .85; transform: scale(1.04); }
:root .or.cdx .cdx-uf-sigla {
  align-self: flex-start;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 207, 121, 0.28);
  font-family: var(--ff);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #FFCF79;
}
:root .or.cdx .cdx-uf-nome { padding-top: 58px; font-family: var(--ff-serif); font-size: 1.65rem; font-weight: 400; line-height: 1.1; color: #f5f5f7; }
:root .or.cdx .cdx-uf-fato { margin-top: 6px; font-family: var(--ff); font-size: .76rem; font-weight: 600; line-height: 1.45; color: #d4a96a; }
:root .or.cdx .cdx-uf-areas { display: grid; margin: 14px 0 0; padding: 6px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.08); }
:root .or.cdx .cdx-uf-areas li { margin: 0; padding: 0; }
:root .or.cdx .cdx-uf-areas a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  font-family: var(--ff);
  font-size: .86rem;
  font-weight: 500;
  color: #e7e9ee;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color .2s;
}
:root .or.cdx .cdx-uf-areas li:last-child a { border-bottom: 0; }
:root .or.cdx .cdx-uf-areas a i { font-style: normal; color: #FFCF79; transition: transform .25s; }
:root .or.cdx .cdx-uf-areas a:hover,
:root .or.cdx .cdx-uf-areas a:focus-visible { color: #FFCF79; }
:root .or.cdx .cdx-uf-areas a:hover i { transform: translateX(3px); }
:root .or.cdx .cdx-uf-areas a.cdx-uf-mapa { color: #FFCF79; }
/* O RS, sede, um pouco mais aceso. */
:root .or.cdx .cdx-uf--rs { background: linear-gradient(160deg, rgba(60, 46, 24, 0.55), rgba(6, 9, 18, 0.94)); box-shadow: inset 0 0 0 1px rgba(255, 207, 121, 0.26); }
:root .or.cdx .cdx-uf--rs .cdx-uf-forma { fill: rgba(255, 207, 121, 0.14); stroke-opacity: .85; }

/* ── O fecho no preto, com a teia das rotas ao fundo ── */
:root .or.cdx .cdx-fim {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 10vw, 140px) 0 clamp(80px, 9vw, 128px);
  background:
    radial-gradient(700px 420px at 6% 100%, rgba(29, 53, 87, 0.5), transparent 70%),
    #020202;
  border-top: 1px solid rgba(255, 207, 121, 0.12);
}
:root .or.cdx .cdx-fim-teia {
  position: absolute;
  z-index: 0;
  top: -4%;
  left: 50%;
  width: min(100vw, 1240px);
  height: 118%;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(62% 66% at 50% 74%, #000 35%, transparent 86%);
  mask-image: radial-gradient(62% 66% at 50% 74%, #000 35%, transparent 86%);
}
/* A teia comeca apagada e se desenha quando a secao aparece (.on). */
:root .or.cdx .cdx-fim-teia .br-rota { stroke-opacity: .22; stroke-dashoffset: 1; animation: none; }
:root .or.cdx .cdx-fim.on .cdx-fim-teia .br-rota { animation: cdxRota 1.8s cubic-bezier(.3, .6, .2, 1) forwards; animation-delay: calc(var(--i) * 50ms); }
:root .or.cdx .cdx-fim-teia .br-capital { opacity: 0; transition: opacity .8s 1.2s; }
:root .or.cdx .cdx-fim.on .cdx-fim-teia .br-capital { opacity: .55; }
:root .or.cdx .cdx-fim-luz {
  position: absolute;
  z-index: 0;
  right: max(0px, calc(50vw - 700px));
  bottom: -10%;
  width: min(60vw, 820px);
  height: 90%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(235, 158, 110, 0.16), rgba(235, 158, 110, 0.05) 50%, transparent 74%);
}
:root .or.cdx .cdx-fim-grade {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
:root .or.cdx .cdx-fim-rotulo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--ff);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #c9a46a;
}
:root .or.cdx .cdx-fim-rotulo::before { content: ""; flex: 0 0 40px; height: 1px; background: var(--cdx-ouro); }
:root .or.cdx .cdx-fim-titulo {
  margin: 22px 0 0;
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.005em;
  color: #f5f5f7;
  text-wrap: balance;
}
:root .or.cdx .cdx-fim-titulo em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(110deg, #EB9E6E 0%, #FFCF79 50%, #EB9E6E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}
:root .or.cdx .cdx-fim-fio { display: block; width: 120px; height: 2px; margin-top: 28px; background: var(--cdx-ouro); }
:root .or.cdx .cdx-fim-p { max-width: 46ch; margin: 24px 0 0; font-family: var(--ff); font-size: 1rem; line-height: 1.75; color: #c9d3e3; }
:root .or.cdx .cdx-fim-plantao {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-family: var(--ff);
  font-size: .8rem;
  font-weight: 500;
  color: #e7e9ee;
}
:root .or.cdx .cdx-fim-plantao i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #FFCF79; }
:root .or.cdx .cdx-fim-plantao i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #FFCF79; animation: cdxPulso 2.2s ease-out infinite; }
@keyframes cdxPulso { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

/* Os caminhos num painel de vidro escuro, com a seta redonda da home. */
:root .or.cdx .cdx-caminhos {
  padding: 8px 28px;
  border-radius: 24px;
  background: rgba(10, 10, 12, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -40px #000;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
:root .or.cdx .cdx-caminho { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 24px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-decoration: none; color: inherit; }
:root .or.cdx .cdx-caminho:last-child { border-bottom: 0; }
:root .or.cdx .cdx-caminho small { grid-column: 1; font-family: var(--ff); font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #c9a46a; }
:root .or.cdx .cdx-caminho b { grid-column: 1; font-family: var(--ff-serif); font-size: 1.65rem; font-weight: 400; line-height: 1.15; color: #f5f5f7; transition: color .25s; }
:root .or.cdx .cdx-caminho span { grid-column: 1; font-family: var(--ff); font-size: .86rem; line-height: 1.55; color: #9aa3b2; overflow-wrap: anywhere; }
:root .or.cdx .cdx-caminho i { grid-column: 2; grid-row: 1 / 4; align-self: center; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-style: normal; color: #FFCF79; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); transition: transform .3s, box-shadow .3s; }
:root .or.cdx .cdx-caminho:hover b,
:root .or.cdx .cdx-caminho:focus-visible b { color: #FFCF79; }
:root .or.cdx .cdx-caminho:hover i { transform: translateX(4px); box-shadow: inset 0 0 0 1px rgba(255, 207, 121, 0.6); }
:root .or.cdx .cdx-caminho--agora i { background: linear-gradient(135deg, #EB9E6E, #FFCF79); color: #10192c; box-shadow: 0 12px 30px -12px rgba(235, 158, 110, 0.7); }
:root .or.cdx .cdx-caminho--agora:hover i { box-shadow: 0 12px 30px -10px rgba(235, 158, 110, 0.9); }

/* ── O celular ── */
@media (max-width: 900px) {
  :root .or.cdx .cdx-abertura { min-height: 0; padding: 116px 0 60px; }
  :root .or.cdx .cdx-luz { right: -20vw; width: 120vw; top: auto; bottom: 0; height: 620px; }
  :root .or.cdx .cdx-grade { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  :root .or.cdx .cdx-mapa { max-width: 560px; justify-self: center; }
  :root .or.cdx .cdx-assina { display: none; }
  :root .or.cdx .cdx-fatos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root .or.cdx .cdx-fatos-grade > div:nth-child(3) { border-left: 0; }
  :root .or.cdx .cdx-fatos-grade > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
  :root .or.cdx .cdx-fim-grade { grid-template-columns: minmax(0, 1fr); }
  :root .or.cdx .cdx-fim-teia { top: -2%; width: 150vw; height: 62%; }
  :root .or.cdx .cdx-fim-luz { right: -20vw; width: 120vw; height: 60%; bottom: 0; }
  :root .or.cdx .cdx-ufs-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  /* As regioes viram capsulas que correm para o lado, acima dos estados. */
  :root .or.cdx .cdx-ufs-corpo { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
  :root .or.cdx .cdx-regioes { position: static; flex-direction: row; gap: 8px; margin: 0 calc(-1 * clamp(20px, 4vw, 40px)); padding: 0 clamp(20px, 4vw, 40px) 4px; overflow-x: auto; border-bottom: 0; scrollbar-width: none; }
  :root .or.cdx .cdx-regioes::-webkit-scrollbar { display: none; }
  :root .or.cdx .cdx-regiao { flex: 0 0 auto; width: auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; }
  :root .or.cdx .cdx-regiao span { font-size: 1.12rem; }
  :root .or.cdx .cdx-regiao[aria-selected="true"] { border-color: #d4a96a; background: rgba(255, 207, 121, 0.08); }
}
@media (max-width: 600px) {
  :root .or.cdx .cdx-rotulo { font-size: .66rem; letter-spacing: .24em; }
  :root .or.cdx .cdx-rotulo::before { flex-basis: 28px; }
  :root .or.cdx .cdx-titulo { margin-top: 18px; font-size: clamp(2.9rem, 13vw, 3.6rem); }
  :root .or.cdx .cdx-sub { font-size: .95rem; }
  /* O rotulo dentro da busca some da tela, mas fica para o leitor de tela. */
  :root .or.cdx .cdx-busca-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :root .or.cdx .cdx-acoes { flex-direction: column; align-items: stretch; gap: 16px; }
  :root .or.cdx .cdx-acoes .btn-gold { justify-content: center; }
  :root .or.cdx .cdx-link { align-self: center; }
  :root .or.cdx .cdx-leg { font-size: .75rem; }
  :root .or.cdx .cdx-fatos-grade > div { padding: 26px 18px 24px; }
  :root .or.cdx .cdx-fatos-grade > div::before { left: 18px; }
  :root .or.cdx .cdx-fatos small { font-size: 10.5px; letter-spacing: .16em; }
  :root .or.cdx .cdx-fatos span { font-size: 13px; }
  :root .or.cdx .cdx-fim-titulo { font-size: clamp(2.6rem, 12vw, 3.3rem); }
  /* No celular o texto ocupa a largura toda: a teia fica bem mais fraca. */
  :root .or.cdx .cdx-fim-teia .br-rota { stroke-opacity: .11; }
  :root .or.cdx .cdx-fim.on .cdx-fim-teia .br-capital { opacity: .28; }
  :root .or.cdx .cdx-fim-teia .br-sede,
  :root .or.cdx .cdx-fim-teia .br-onda { opacity: .5; }
  :root .or.cdx .cdx-caminhos { padding: 4px 18px; border-radius: 20px; }
  :root .or.cdx .cdx-caminho { padding: 20px 0; gap: 4px 14px; }
  :root .or.cdx .cdx-caminho b { font-size: 1.35rem; }
  :root .or.cdx .cdx-caminho i { width: 42px; height: 42px; }
  :root .or.cdx .cdx-ufs-corpo { padding: 0 12px; }
  :root .or.cdx .cdx-regioes { margin: 0 -12px; padding: 0 12px 4px; }
  :root .or.cdx .cdx-ufs-grade { gap: 10px; }
  :root .or.cdx .cdx-uf { padding: 16px 14px 8px; border-radius: 16px; }
  :root .or.cdx .cdx-uf-forma { top: 14px; right: 12px; width: 42%; height: 60px; }
  :root .or.cdx .cdx-uf-sigla { min-width: 36px; height: 30px; font-size: .66rem; }
  :root .or.cdx .cdx-uf-nome { padding-top: 34px; font-size: 1.24rem; }
  :root .or.cdx .cdx-uf-fato { font-size: .7rem; }
  :root .or.cdx .cdx-uf-areas { margin-top: 10px; padding-top: 2px; }
  :root .or.cdx .cdx-uf-areas a { font-size: .78rem; gap: 6px; }
}

/* Menos movimento: tudo no lugar, sem entrada nem brilho. */
@media (prefers-reduced-motion: reduce) {
  :root .or.cdx .cdx-rotulo,
  :root .or.cdx .cdx-sub,
  :root .or.cdx .cdx-abertura .cd-escolha,
  :root .or.cdx .cdx-acoes,
  :root .or.cdx .cdx-assina,
  :root .or.cdx .cdx-mapa,
  :root .or.cdx .cdx-luz { animation: none; }
  :root .or.cdx .cdx-l > span,
  :root .or.cdx em.cdx-l > span { transform: none; animation: none; background-position: 0 0; }
  :root .or.cdx .cdx-abertura .cdx-fio { width: 120px; animation: none; }
  :root .or.cdx .br-rota { stroke-dashoffset: 0; animation: none; }
  :root .or.cdx .br-onda,
  :root .or.cdx .cd-mapa .br-uf--rs,
  :root .or.cdx .cdx-fim-plantao i::after { animation: none; }
  :root .or.cdx .cdx-fim-teia .br-rota { stroke-dashoffset: 0; animation: none; }
  :root .or.cdx .cdx-fim-teia .br-capital { opacity: .55; transition: none; }
  :root .or.cdx .cdx-uf,
  :root .or.cdx .cdx-uf-forma { transition: none; }
  :root .or.cdx .cdx-ufs--abas .cdx-ufs-painel { animation: none; }
  :root .or.cdx .cdx-uf:hover,
  :root .or.cdx .cdx-uf:hover .cdx-uf-forma { transform: none; }
}
