/* As ferramentas (/ferramentas/). Prefixo fe-. O resto do desenho vem das
   Orientacoes e das paginas de cidade: a folha clara sobre o azul, a capsula e
   as perguntas em vidro. Cor so por variavel, para valer nos dois temas. */
.or.fe {
  --fe-media: #3b4558;
  --fe-halo: #fbf7ef;
  --fe-campo: #fffdf8;
  --fe-campo-linha: rgba(20, 35, 63, 0.3);
  --fe-erro: #9c2f23;
  --fe-botao-fundo: #14233f;
  --fe-botao-texto: #fbf7ef;
  --fe-cartao: rgba(255, 255, 255, 0.55);
  --fe-cabeca: #f7f1e5;
}
html[data-tema="escuro"] .or.fe {
  --fe-media: #8c9ab2;
  --fe-halo: #14233f;
  --fe-campo: rgba(255, 255, 255, 0.05);
  --fe-campo-linha: rgba(255, 255, 255, 0.3);
  --fe-erro: #ffb4a8;
  --fe-botao-fundo: #f3eee4;
  --fe-botao-texto: #14233f;
  --fe-cartao: rgba(255, 255, 255, 0.04);
  --fe-cabeca: #17274a;
}

.or.ar.ar--cartao.fe .ar-faixa--clara > .or-wrap { max-width: 1160px; }

/* A abertura curta: aqui o que a pessoa veio buscar e o formulario. O menu e fixo
   e tem 80 px, entao o respiro de cima conta a partir dele. */
.or.fe .or-hero { padding-top: calc(80px + clamp(20px, 3vw, 36px)); padding-bottom: clamp(24px, 3vw, 34px); }
.or.fe .or-hero > .or-wrap { max-width: 1160px; }
.or.fe .or-hero h1 { max-width: 20em; text-wrap: balance; }
.or.fe .or-hero .or-lead { max-width: 44em; }

.or.fe .fe-grade {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.or.fe .fe-saida { min-width: 0; }

/* O formulario */
.or.fe .fe-form {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 24px;
  border: 1px solid var(--linha-clara);
  border-radius: 20px;
  background: var(--fe-cartao);
}
.or.fe .fe-campo { min-width: 0; margin: 0; padding: 0; border: 0; }
.or.fe .fe-campo label,
.or.fe .fe-campo legend {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tinta);
}
.or.fe .fe-campo label small { font-size: .78rem; font-weight: 400; color: var(--tinta-suave); }
.or.fe .fe-campo select,
.or.fe .fe-campo input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  font: 500 1rem var(--ff-ios);
  font-variant-numeric: lining-nums;
  color: var(--tinta);
  background: var(--fe-campo);
  border: 1px solid var(--fe-campo-linha);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.or.fe .fe-campo select option { color: #14233f; background: #fffdf8; }
.or.fe .fe-campo input::placeholder { color: var(--tinta-suave); opacity: .65; }
.or.fe .fe-campo select:focus,
.or.fe .fe-campo input:focus,
.or.fe .fe-dinheiro:focus-within {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px var(--bronze-fio);
}
.or.fe .fe-campo [aria-invalid="true"] { border-color: var(--fe-erro); }
.or.fe .fe-dinheiro {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  background: var(--fe-campo);
  border: 1px solid var(--fe-campo-linha);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.or.fe .fe-dinheiro span { font-size: .92rem; font-weight: 500; color: var(--tinta-suave); }
.or.fe .fe-dinheiro input,
.or.fe .fe-dinheiro input:focus { flex: 1; min-width: 0; padding-left: 0; padding-right: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.or.fe .fe-dinheiro:has(input[aria-invalid="true"]) { border-color: var(--fe-erro); }
.or.fe .fe-par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.or.fe .fe-par--campos { gap: 12px; align-items: end; }
.or.fe .or-body .fe-ajuda { margin: 6px 0 0; font-size: .8rem; line-height: 1.4; color: var(--tinta-suave); }
.or.fe .or-body .fe-erro { margin: 0; font-size: .88rem; font-weight: 500; line-height: 1.4; color: var(--fe-erro); }
.or.fe .fe-erro[hidden] { display: none; }
.or.fe .fe-calcular {
  min-height: 52px;
  padding: 14px 22px;
  font: 600 .98rem var(--ff-ios);
  color: var(--fe-botao-texto);
  background: var(--fe-botao-fundo);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s, opacity .2s;
}
.or.fe .fe-calcular:hover { opacity: .9; }
.or.fe .fe-calcular:active { transform: scale(.985); }
.or.fe .fe-exemplo {
  align-self: center;
  margin-top: -6px;
  padding: 4px 2px;
  font: 500 .84rem var(--ff-ios);
  color: var(--bronze);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--bronze-fio);
  cursor: pointer;
}
.or.fe .or-body .fe-privacidade { margin: 0; font-size: .78rem; line-height: 1.5; text-align: center; color: var(--tinta-suave); }

/* Antes da conta */
.or.fe .or-body .fe-rotulo {
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
}
.or.fe .fe-vazio { padding-top: 26px; }
.or.fe .fe-vazio[hidden] { display: none; }
.or.or--ios.ar.ar--ios.fe .or-body .fe-vazio-frase {
  margin: 16px 0 26px;
  font-family: var(--ff-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--tinta);
}
.or.fe .fe-vazio ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linha-clara); }
.or.fe .fe-vazio li { margin: 0; padding: 13px 0; font-size: .94rem; line-height: 1.45; color: var(--tinta-suave); border-bottom: 1px solid var(--linha-clara); }
.or.fe .fe-vazio li::before { content: none; }

/* O resultado */
.or.fe .fe-resultado { scroll-margin-top: 92px; outline: none; }
.or.fe .fe-resultado[hidden] { display: none; }
.or.fe .fe-resultado:not([hidden]) { animation: feSurge .45s cubic-bezier(.2, .7, .2, 1) both; }
.or.fe .fe-resultado.fe-velho { opacity: .4; transition: opacity .2s; }
@keyframes feSurge {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.or.fe .or-body .fe-aviso-exemplo {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--tinta);
  border: 1px solid var(--bronze-fio);
  border-radius: 999px;
}
.or.fe .fe-aviso-exemplo[hidden] { display: none; }
.or.or--ios.ar.ar--ios.fe .or-body .fe-numero {
  margin: 12px 0 0;
  font-family: var(--ff-serif);
  font-size: clamp(3.8rem, 9vw, 6.2rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
  color: var(--tinta);
}
.or.fe .fe-numero small { font-family: var(--ff-ios); font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--tinta-suave); }
.or.fe .or-body .fe-anual { margin: 10px 0 0; font-size: .88rem; line-height: 1.5; color: var(--tinta-suave); }
.or.or--ios.ar.ar--ios.fe .or-body .fe-frase {
  margin: 22px 0 0;
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 400;
  line-height: 1.22;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
  color: var(--tinta);
}

.or.fe .fe-barras { margin-top: 26px; display: grid; gap: 16px; }
.or.fe .or-body .fe-barra p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 7px; font-size: .86rem; line-height: 1.3; color: var(--tinta-suave); }
.or.fe .or-body .fe-barra b { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; color: var(--tinta); }
.or.fe .fe-trilho { height: 10px; }
.or.fe .fe-trilho i { display: block; height: 100%; min-width: 4px; border-radius: 0 5px 5px 0; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.or.fe .fe-barra--sua i { background: var(--bronze); }
.or.fe .fe-barra--media i { background: var(--fe-media); }

.or.fe .fe-bloco { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--linha-clara); }
.or.or--ios.ar.ar--ios.fe .or-body .fe-subtitulo {
  margin: 0 0 16px;
  font-family: var(--ff-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
  color: var(--tinta);
}
.or.fe .fe-composicao { display: flex; gap: 2px; height: 10px; }
.or.fe .fe-composicao i { display: block; min-width: 4px; flex: 1 1 0; }
.or.fe .fe-composicao i:first-child { background: var(--fe-media); border-radius: 5px 0 0 5px; }
.or.fe .fe-composicao i:last-child { background: var(--bronze); border-radius: 0 5px 5px 0; }
.or.fe .fe-legenda { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 12px 0 0; padding: 0; list-style: none; }
.or.fe .fe-legenda li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: .86rem; line-height: 1.3; color: var(--tinta-suave); }
.or.fe .fe-legenda li::before { content: none; }
.or.fe .fe-legenda b { font-weight: 600; font-variant-numeric: lining-nums; color: var(--tinta); }
.or.fe .fe-legenda--linha { margin: 0 0 8px; }
.or.fe .fe-amostra { flex: none; width: 14px; height: 3px; border-radius: 2px; }
.or.fe .fe-amostra--media { background: var(--fe-media); }
.or.fe .fe-amostra--sua { background: var(--bronze); }
.or.fe .or-body .fe-nota { margin: 14px 0 0; font-size: .94rem; line-height: 1.6; color: var(--tinta-suave); }
.or.fe .fe-nota[hidden] { display: none; }

/* O grafico */
.or.fe .fe-grafico { position: relative; min-height: 210px; touch-action: pan-y; }
.or.fe .fe-grafico svg { display: block; max-width: 100%; overflow: visible; }
.or.fe .fe-grade-linha { stroke: var(--linha-clara); stroke-width: 1; }
.or.fe .fe-eixo { stroke: var(--tinta-suave); stroke-width: 1; opacity: .5; }
.or.fe .fe-eixo-texto { font: 500 11px var(--ff-ios); fill: var(--tinta-suave); font-variant-numeric: lining-nums; }
.or.fe .fe-linha-media { fill: none; stroke: var(--fe-media); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.or.fe .fe-linha-sua { stroke: var(--bronze); stroke-width: 2; }
.or.fe .fe-marca { fill: var(--fe-media); stroke: var(--fe-halo); stroke-width: 2; }
.or.fe .fe-ponto { fill: var(--tinta); stroke: var(--fe-halo); stroke-width: 2; pointer-events: none; }
.or.fe .fe-cruz { stroke: var(--tinta-suave); stroke-width: 1; opacity: .55; pointer-events: none; }
.or.fe .fe-rotulo-marca,
.or.fe .fe-rotulo-sua {
  font: 600 12px var(--ff-ios);
  fill: var(--tinta);
  font-variant-numeric: lining-nums;
  paint-order: stroke;
  stroke: var(--fe-halo);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.or.fe .fe-dica {
  position: absolute;
  transform: translateX(-50%);
  padding: 7px 11px;
  white-space: nowrap;
  font-size: .78rem;
  line-height: 1.3;
  color: var(--fe-botao-texto);
  background: var(--fe-botao-fundo);
  border-radius: 9px;
  pointer-events: none;
}
.or.fe .fe-dica[hidden] { display: none; }
.or.fe .fe-dica span { display: block; opacity: .75; }
.or.fe .fe-dica b { font-weight: 600; font-variant-numeric: lining-nums; }

/* As tabelas */
.or.ar.fe .fe-tabela-mes { margin-top: 14px; padding: 0; background: none; border: 0; box-shadow: none; }
.or.ar.fe .fe-tabela-mes summary {
  padding: 8px 24px 8px 0;
  font-family: var(--ff-ios);
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--bronze);
  background: none;
  cursor: pointer;
}
.or.ar.fe .fe-tabela-mes summary::after { top: 6px; font-size: 16px; color: var(--bronze); }
.or.fe .fe-tabela-rola { max-height: 280px; overflow: auto; }
.or.fe .fe-tabela-rola--aberta { max-height: none; }
.or.fe .fe-tabela-rola table { width: 100%; border-collapse: collapse; }
.or.fe .fe-tabela-rola th,
.or.fe .fe-tabela-rola td {
  padding: 9px 10px 9px 0;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  color: var(--tinta);
  border-bottom: 1px solid var(--linha-clara);
  font-variant-numeric: lining-nums tabular-nums;
}
.or.fe .fe-tabela-rola thead th { font-size: .76rem; font-weight: 600; color: var(--tinta-suave); }
.or.fe .fe-tabela-rola td,
.or.fe .fe-tabela-rola thead th:not(:first-child) { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 12px; }
.or.fe .fe-mes-marcado th,
.or.fe .fe-mes-marcado td { font-weight: 700; color: var(--bronze); }
.or.fe .fe-medias tbody th { font-weight: 500; }
.or.fe .fe-medias td { font-weight: 600; }
.or.fe .fe-medias td + td { font-weight: 400; color: var(--tinta-suave); }
.or.fe .fe-medias small { display: block; margin-top: 2px; font-size: .76rem; font-weight: 400; color: var(--tinta-suave); }

.or.fe .or-body .fe-leitura { margin: 30px 0 0; font-size: 1rem; line-height: 1.6; color: var(--tinta); }
.or.fe .fe-wa { margin-top: 20px; }

/* O texto abaixo da calculadora */
.or.fe .fe-texto { max-width: 760px; margin-top: 56px; }
.or.fe .fe-texto h2 { text-wrap: balance; }

@media (max-width: 900px) {
  .or.fe .fe-grade { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .or.fe .fe-form { position: static; padding: 20px 16px; }
  .or.fe .fe-vazio { display: none; }
  .or.fe .fe-texto { margin-top: 44px; }
}
@media (max-width: 380px) {
  .or.fe .fe-par--campos { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .or.fe .fe-resultado:not([hidden]) { animation: none; }
  .or.fe .fe-trilho i,
  .or.fe .fe-calcular { transition: none; }
}

/* A calculadora de prazo: a contagem e o dia dentro do prazo. */
.or.or--ios.ar.ar--ios.fe .or-body .fe-contagem {
  display: inline-block;
  margin: 16px 0 0;
  padding: 7px 15px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fe-botao-texto);
  background: var(--fe-botao-fundo);
  border-radius: 999px;
}
.or.or--ios.ar.ar--ios.fe .or-body .fe-contagem--fim { color: var(--fe-erro); background: none; box-shadow: inset 0 0 0 1px var(--fe-erro); }
.or.fe .fe-progresso { margin-top: 18px; }
.or.fe .or-body .fe-progresso p { margin: 0 0 7px; font-size: .84rem; line-height: 1.3; color: var(--tinta-suave); }
.or.fe .fe-progresso .fe-trilho { background: var(--linha-clara); border-radius: 5px; overflow: hidden; }
.or.fe .fe-progresso .fe-trilho i { min-width: 0; background: var(--bronze); border-radius: 5px; }

/* A calculadora de demissao: o numero e dinheiro, e a tabela compara duas colunas. */
.or.or--ios.ar.ar--ios.fe .or-body .fe-numero--valor { font-size: clamp(2.9rem, 7vw, 5rem); }
.or.fe .fe-campo input[type="date"] { padding-left: 11px; padding-right: 8px; font-size: .96rem; }
.or.fe .fe-legenda--pilha { flex-direction: column; margin-top: 0; }
.or.fe .fe-legenda--pilha li { justify-content: flex-start; }
.or.fe .fe-legenda--pilha b { margin-left: auto; }
.or.fe .fe-campo[hidden] { display: none; }
.or.fe .fe-itens { width: 100%; border-collapse: collapse; }
.or.fe .fe-itens th,
.or.fe .fe-itens td {
  padding: 10px 0;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  color: var(--tinta);
  border-bottom: 1px solid var(--linha-clara);
  font-variant-numeric: lining-nums tabular-nums;
}
.or.fe .fe-itens thead th { font-size: .76rem; font-weight: 600; color: var(--tinta-suave); }
.or.fe .fe-itens td,
.or.fe .fe-itens thead th:not(:first-child) { padding-left: 14px; text-align: right; white-space: nowrap; }
.or.fe .fe-itens tbody th small { display: block; margin-top: 2px; font-size: .74rem; color: var(--tinta-suave); }
.or.fe .fe-itens .fe-linha-total th,
.or.fe .fe-itens .fe-linha-total td { font-size: .98rem; font-weight: 700; border-top: 2px solid var(--fio-prazo); }
.or.fe .fe-texto ul { margin: 0 0 18px; }

@media (max-width: 420px) {
  .or.fe .fe-itens--duas th,
  .or.fe .fe-itens--duas td { font-size: .82rem; }
  .or.fe .fe-itens--duas td,
  .or.fe .fe-itens--duas thead th:not(:first-child) { padding-left: 8px; }
}

/* O mapa do credito: a abertura e a propria ferramenta, sobre o azul. */
.or.fe .fe-m-topo { padding-bottom: clamp(30px, 4vw, 52px); }
.or.fe .fe-m-grade {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.or.fe .fe-m-lado { min-width: 0; }
.or.fe .fe-m-lado .or-lead { margin-bottom: 0; }
.or.fe .fe-m-lado .ar-revisado { margin-top: 20px; }

.or.fe .fe-m-busca { position: relative; margin-top: 22px; }
.or.fe .fe-m-busca label {
  display: block;
  margin-bottom: 7px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.or.fe .fe-m-busca input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: 500 1rem var(--ff-ios);
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 207, 121, 0.34);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.or.fe .fe-m-busca input::placeholder { color: #b6bdcb; opacity: 1; }
.or.fe .fe-m-busca input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 207, 121, 0.22); }
.or.fe .fe-m-opcoes {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #111c36;
  border: 1px solid rgba(255, 207, 121, 0.26);
  border-radius: 14px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.8);
}
.or.fe .fe-m-opcoes[hidden] { display: none; }
.or.fe .fe-m-opcoes li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  font-size: .94rem;
  line-height: 1.3;
  color: var(--white);
  border-radius: 9px;
  cursor: pointer;
}
.or.fe .fe-m-opcoes li::before { content: none; }
.or.fe .fe-m-opcoes li small { flex: none; font-size: .76rem; color: #b6bdcb; }
.or.fe .fe-m-opcoes li[aria-selected="true"],
.or.fe .fe-m-opcoes li:hover { background: rgba(255, 207, 121, 0.14); }
.or.fe .fe-m-opcoes .fe-m-nada { color: #b6bdcb; cursor: default; background: none; }

.or.fe .fe-m-cartao {
  margin-top: 14px;
  padding: 20px 20px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 207, 121, 0.18);
  border-radius: 18px;
}
.or.fe .fe-m-cartao-sobre { margin: 0; font-size: .78rem; line-height: 1.4; color: #c5ccd8; }
.or.fe .fe-m-cartao-nome {
  margin: 4px 0 12px;
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
}
.or.fe .fe-m-cartao dl { margin: 0; }
.or.fe .fe-m-cartao dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.or.fe .fe-m-cartao dt { font-size: .86rem; font-weight: 400; line-height: 1.35; color: #c5ccd8; }
.or.fe .fe-m-cartao dd {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  color: var(--white);
  font-variant-numeric: lining-nums tabular-nums;
}
.or.fe .fe-m-cartao dd small { display: block; margin-top: 2px; font-size: .74rem; font-weight: 400; line-height: 1.35; color: #c5ccd8; }
.or.fe .fe-m-cartao-acoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.or.fe .fe-m-cartao-acoes a { font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--gold); text-decoration: none; }
.or.fe .fe-m-cartao-acoes a:hover { text-decoration: underline; text-underline-offset: 3px; }
.or.fe .fe-m-cartao-acoes button {
  padding: 7px 14px;
  font: 500 .8rem var(--ff-ios);
  color: var(--white);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
}

.or.fe .fe-m-figura { min-width: 0; margin: 0; }
.or.fe .fe-m-camadas {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
}
.or.fe .fe-m-camadas::-webkit-scrollbar { display: none; }
.or.fe .fe-m-camadas button {
  flex: 1 0 auto;
  min-height: 38px;
  padding: 7px 14px;
  white-space: nowrap;
  font: 500 .82rem var(--ff-ios);
  color: #d5dae3;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.or.fe .fe-m-camadas button:hover { color: var(--white); }
.or.fe .fe-m-camadas button[aria-pressed="true"] { color: #14233f; background: var(--gold); font-weight: 600; }

.or.fe .fe-m-palco { position: relative; touch-action: manipulation; }
.or.fe .fe-m-palco svg { display: block; width: 100%; height: 100%; }
.or.fe .fe-m-mun {
  fill: #5c5030;
  stroke: rgba(6, 12, 28, 0.62);
  stroke-width: .5px;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .35s, opacity .25s;
}
.or.fe .fe-m-mun:hover { stroke: var(--white); stroke-width: 1px; }
.or.fe .fe-m-apagada { opacity: .16; }
.or.fe .fe-m-sel,
.or.fe .fe-m-sel:hover { stroke: var(--white); stroke-width: 2px; opacity: 1; }
.or.fe .fe-m-rotulo {
  font-family: var(--ff-ios);
  font-weight: 600;
  fill: var(--white);
  stroke: #080f22;
  stroke-linejoin: round;
  paint-order: stroke;
  pointer-events: none;
}
.or.fe .fe-m-voltar {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 8px 14px;
  font: 600 .78rem var(--ff-ios);
  color: var(--white);
  background: rgba(8, 15, 34, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  cursor: pointer;
}
.or.fe .fe-m-voltar[hidden] { display: none; }
.or.fe .fe-m-dica {
  position: absolute;
  z-index: 10;
  transform: translateX(-50%);
  max-width: 260px;
  padding: 8px 12px;
  font-size: .8rem;
  line-height: 1.35;
  color: #14233f;
  background: #fbf7ef;
  border-radius: 10px;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.or.fe .fe-m-dica[hidden] { display: none; }
.or.fe .fe-m-dica b { display: block; font-weight: 700; }
.or.fe .fe-m-dica span { display: block; }

.or.fe .fe-m-legenda { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 12px; }
.or.fe .fe-m-legenda button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  font: 500 .78rem var(--ff-ios);
  line-height: 1.2;
  color: #d5dae3;
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}
.or.fe .fe-m-legenda button:hover { background: rgba(255, 255, 255, 0.06); }
.or.fe .fe-m-legenda button[aria-pressed="true"] { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.or.fe .fe-m-legenda i { flex: none; width: 12px; height: 12px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
.or.fe .fe-m-legenda b { font-weight: 600; color: var(--white); font-variant-numeric: lining-nums; }
.or.fe .fe-m-fonte { margin: 8px 9px 0; font-size: .76rem; line-height: 1.5; color: #b6bdcb; }

/* Abaixo do mapa, na folha clara */
.or.fe .fe-texto--largo { max-width: none; margin-top: 0; }
.or.fe .fe-texto--largo > p,
.or.fe .fe-texto--largo > h2 { max-width: 760px; }
.or.fe .fe-achados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.or.fe .fe-achado { padding: 20px 0; border-top: 1px solid var(--linha-clara); }
.or.or--ios.ar.ar--ios.fe .or-body .fe-achado-numero {
  margin: 0;
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
  color: var(--tinta);
}
.or.fe .or-body .fe-achado-texto { margin: 10px 0 0; font-size: .96rem; line-height: 1.6; color: var(--tinta-suave); }

.or.fe .fe-filtro { max-width: 340px; margin: 16px 0 12px; }
.or.fe .fe-filtro label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 600; color: var(--tinta); }
.or.fe .fe-filtro input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  font: 500 1rem var(--ff-ios);
  color: var(--tinta);
  background: var(--fe-campo);
  border: 1px solid var(--fe-campo-linha);
  border-radius: 12px;
  outline: none;
}
.or.fe .fe-filtro input:focus { border-color: var(--bronze); box-shadow: 0 0 0 3px var(--bronze-fio); }
.or.fe .fe-tabela-cidades { max-height: 520px; border: 1px solid var(--linha-clara); border-radius: 14px; }
.or.fe .fe-tabela-cidades table { min-width: 620px; }
.or.fe .fe-tabela-cidades thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0;
  background: var(--fe-cabeca);
  box-shadow: inset 0 -1px 0 var(--linha-clara);
}
.or.fe .fe-tabela-cidades thead button {
  width: 100%;
  padding: 11px 12px;
  font: 600 .76rem var(--ff-ios);
  line-height: 1.25;
  text-align: inherit;
  color: var(--tinta-suave);
  background: none;
  border: 0;
  cursor: pointer;
}
.or.fe .fe-tabela-cidades thead th:first-child { text-align: left; }
.or.fe .fe-tabela-cidades thead th:not(:first-child) { text-align: right; padding: 0; }
.or.fe .fe-tabela-cidades thead th[aria-sort] button { color: var(--bronze); }
.or.fe .fe-tabela-cidades thead th[aria-sort="ascending"] button::after { content: " \2191"; }
.or.fe .fe-tabela-cidades thead th[aria-sort="descending"] button::after { content: " \2193"; }
.or.fe .fe-tabela-cidades tbody th { padding-left: 12px; font-weight: 500; }
.or.fe .fe-tabela-cidades td { padding-right: 12px; }
.or.fe .fe-tabela-cidades tbody tr { cursor: pointer; }
.or.fe .fe-tabela-cidades tbody tr:hover { background: var(--fe-cartao); }
.or.fe .fe-tabela-cidades tbody tr[hidden] { display: none; }
.or.fe .or-body .fe-tabela-cidades a { color: var(--bronze); border-bottom: 1px solid var(--bronze-fio); text-decoration: none; }

@media (max-width: 960px) {
  /* A ordem do celular: titulo e busca, mapa, cartao da cidade, legenda. */
  .or.fe .fe-m-grade { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .or.fe .fe-m-lado,
  .or.fe .fe-m-figura { display: contents; }
  .or.fe .fe-m-lado > * { order: 1; }
  .or.fe .fe-m-camadas { order: 2; margin: 18px -4px 12px; border-radius: 16px; }
  .or.fe .fe-m-palco { order: 3; scroll-margin-top: 92px; }
  .or.fe .fe-m-lado > .fe-m-cartao { order: 4; }
  .or.fe .fe-m-legenda { order: 5; }
  .or.fe .fe-m-fonte { order: 6; }
  .or.fe .fe-m-cartao--estado { display: none; }
  .or.fe .fe-m-lado .ar-revisado { order: 7; }
  .or.fe .fe-achados { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .or.fe .fe-m-mun { transition: none; }
}

/* A composicao em tres partes, para a calculadora de vinculo. Sem a contribuicao, a terceira
   parte some, e por isso o canto arredondado fica na caixa, e nao em cada pedaco. */
.or.fe { --fe-terceira: #7d8697; }
html[data-tema="escuro"] .or.fe { --fe-terceira: #c9d1df; }
.or.fe .fe-composicao--tres { border-radius: 5px; overflow: hidden; }
.or.fe .fe-composicao--tres i,
.or.fe .fe-composicao--tres i:first-child,
.or.fe .fe-composicao--tres i:last-child { border-radius: 0; }
.or.fe .fe-composicao--tres i:nth-child(1) { background: var(--fe-media); }
.or.fe .fe-composicao--tres i:nth-child(2) { background: var(--bronze); }
.or.fe .fe-composicao--tres i:nth-child(3) { background: var(--fe-terceira); }
.or.fe .fe-composicao--tres i[hidden] { display: none; }
.or.fe .fe-amostra--terceira { background: var(--fe-terceira); }
.or.fe .fe-legenda li[hidden] { display: none; }
.or.fe .fe-par--campos:has(> .fe-campo[hidden]) { grid-template-columns: minmax(0, 1fr); }
.or.fe .fe-composicao--tres + .fe-legenda--pilha { margin-top: 12px; }
