/* Tiba — folha de estilo
   Identidade: cartografia desenhada à mão e filologia — papel de mapa
   antigo (ocre, pergaminho), tinta índigo, marcadores de terracota para
   as origens das palavras. Tipografia de sistema: serifa para leitura
   corrida, monoespaçada para étimos e rótulos de dados (à maneira de
   uma ficha de arquivo). Sem nenhuma dependência externa. */

:root {
  /* --- claro: papel de mapa, tinta índigo, terracota --- */
  --bg: #f3ead4;
  --bg-alt: #e9dcbc;
  --superficie: #fbf6e9;
  --superficie-2: #efe2c3;
  --texto: #2a2114;
  --texto-suave: #675c44;
  --linha: #d3c39c;
  --marca: #33506d;         /* tinta índigo */
  --marca-forte: #1f3549;   /* índigo profundo */
  --marca-clara: #5c7d9c;
  --terra: #bd5326;         /* terracota — marcador de origem */
  --terra-forte: #8c3b18;
  --terra-clara: #dd8455;
  --ouro: #a9791f;          /* ocre — realce, século */
  --ouro-forte: #7c5911;
  --ok-bg: #e2ebe0;
  --ok-texto: #33532f;
  --erro-bg: #f2e1da;
  --erro-texto: #883a1f;
  --sombra: 0 8px 26px -14px rgba(30, 22, 10, .4);
  --raio: 9px;
  --display: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Liberation Serif", serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Liberation Serif", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", Menlo, monospace;
  /* camada premium: tinta abstrata do site (resolve-se por tema) */
  --realce: var(--terra);
  --realce-forte: var(--terra-forte);
  --realce-suave: color-mix(in srgb, var(--terra) 20%, transparent);
  --tinta-sobre-realce: #fdf6e9;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130e;
    --bg-alt: #1e1912;
    --superficie: #211b13;
    --superficie-2: #292117;
    --texto: #ecdfc2;
    --texto-suave: #b3a486;
    --linha: #3d3423;
    --marca: #8fb0cf;
    --marca-forte: #bcd6ea;
    --marca-clara: #6f92b3;
    --terra: #e2825a;
    --terra-forte: #f0a077;
    --terra-clara: #c96538;
    --ouro: #d9ac5c;
    --ouro-forte: #eec583;
    --ok-bg: #223022;
    --ok-texto: #a8d3a2;
    --erro-bg: #34241d;
    --erro-texto: #e7ab8f;
    --sombra: 0 10px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #17130e;
  --bg-alt: #1e1912;
  --superficie: #211b13;
  --superficie-2: #292117;
  --texto: #ecdfc2;
  --texto-suave: #b3a486;
  --linha: #3d3423;
  --marca: #8fb0cf;
  --marca-forte: #bcd6ea;
  --marca-clara: #6f92b3;
  --terra: #e2825a;
  --terra-forte: #f0a077;
  --terra-clara: #c96538;
  --ouro: #d9ac5c;
  --ouro-forte: #eec583;
  --ok-bg: #223022;
  --ok-texto: #a8d3a2;
  --erro-bg: #34241d;
  --erro-texto: #e7ab8f;
  --sombra: 0 10px 30px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--texto);
  line-height: 1.18;
  margin: 0 0 .7rem;
  font-weight: 600;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.06; letter-spacing: -.015em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.1rem; }
h4 { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--texto-suave); font-weight: 700; }

p { margin: 0 0 1rem; color: var(--texto); }
a { color: var(--terra-forte); }
:root[data-theme="dark"] a, @media (prefers-color-scheme: dark) { }
a:hover { color: var(--marca-forte); }
strong { color: var(--texto); }

.moldura {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.saltar-conteudo {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--marca-forte); color: #fdf9ec; padding: .7rem 1.2rem;
  border-radius: 0 0 8px 0; font-weight: 700; font-family: var(--sans);
}
.saltar-conteudo:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 3px;
}

/* fundo de papel de mapa — graticule muito subtil */
.fundo-mapa {
  background-image:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--linha) 50%, transparent) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--linha) 50%, transparent) 0 1px, transparent 1px 46px);
  background-position: center top;
}

/* ---------- cabeçalho ---------- */
.cabecalho {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--linha);
}
.cabecalho .moldura {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .7rem; padding-bottom: .7rem;
}
.marca {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  font-style: italic; letter-spacing: .01em;
  color: var(--texto); text-decoration: none; white-space: nowrap;
}
.marca:hover { color: var(--terra-forte); }
.marca svg { width: 32px; height: 32px; flex: none; }

.nav-principal { display: flex; align-items: center; gap: .2rem; }
.nav-principal ul {
  display: flex; list-style: none; margin: 0; padding: 0; gap: .05rem; flex-wrap: wrap;
}
.nav-principal a {
  display: inline-block; padding: .5rem .6rem; border-radius: 5px;
  color: var(--texto-suave); text-decoration: none; font-weight: 600; font-size: .76rem;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em;
  transition: background .15s ease, color .15s ease;
}
.nav-principal a:hover { color: var(--texto); }
.nav-principal a[aria-current="page"] { color: var(--terra-forte); }

.botao-tema {
  border: 1px solid var(--linha); background: var(--superficie);
  color: var(--texto); width: 38px; height: 38px; border-radius: 6px;
  display: grid; place-items: center; cursor: pointer; flex: none;
  transition: transform .15s ease, background .15s ease;
}
.botao-tema:hover { background: var(--superficie-2); }
.botao-tema:active { transform: scale(.92); }
.botao-tema svg { width: 18px; height: 18px; }

.botao-nav-movel {
  display: none; border: 1px solid var(--linha); background: var(--superficie);
  border-radius: 6px; width: 38px; height: 38px; cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.botao-nav-movel svg { width: 20px; height: 20px; stroke: var(--texto); }

@media (max-width: 1180px) {
  .botao-nav-movel { display: inline-flex; }
  .nav-principal {
    position: absolute; inset: 100% 0 auto 0; background: var(--bg);
    border-bottom: 2px solid var(--linha); box-shadow: var(--sombra);
    display: none; padding: .5rem 1.4rem 1rem; max-height: 80vh; overflow-y: auto;
  }
  .nav-principal.aberta { display: block; }
  .nav-principal ul { flex-direction: column; gap: .1rem; }
  .nav-principal a { display: block; }
}

/* ---------- secções ---------- */
.seccao { padding: 4rem 0; }
.seccao-alt { background: var(--bg-alt); }
.seccao-fina { padding: 2.6rem 0; }

.etiqueta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--terra-forte); background: var(--superficie-2);
  border: 1px solid var(--linha); padding: .3rem .7rem; border-radius: 4px;
  margin-bottom: 1rem;
}
.etiqueta::before { content: "✦"; font-size: .7rem; }

.lead { font-size: 1.1rem; color: var(--texto-suave); max-width: 62ch; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 4.2rem 0 3.2rem; overflow: hidden; border-bottom: 1px solid var(--linha); }
.hero .moldura { position: relative; z-index: 1; }
.hero-grelha {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 860px) { .hero-grelha { grid-template-columns: 1fr; } }

.acoes { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .03em;
  padding: .72rem 1.25rem; border-radius: 6px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primario { background: var(--terra-forte); color: #fdf6e9; box-shadow: var(--sombra); }
.btn-primario:hover { background: var(--terra); }
.btn-secundario { background: var(--superficie); border-color: var(--linha); color: var(--texto); }
.btn-secundario:hover { border-color: var(--marca); }
.btn-fantasma { background: transparent; border-color: var(--linha); color: var(--texto-suave); }
.btn-fantasma:hover { color: var(--texto); border-color: var(--marca); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- grelhas / cartões ---------- */
.grelha-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grelha-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .grelha-3, .grelha-2 { grid-template-columns: 1fr; } }

.cartao {
  background: var(--superficie); border: 1px solid var(--linha);
  border-radius: var(--raio); padding: 1.7rem; box-shadow: var(--sombra);
}
.cartao-destaque {
  background: linear-gradient(160deg, var(--superficie) 0%, var(--superficie-2) 100%);
  border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 2.1rem; box-shadow: var(--sombra);
  display: flex; flex-direction: column; gap: .9rem;
  border-top: 3px solid var(--terra);
}
.cartao-destaque h3 { font-size: 1.3rem; }
.icone-destaque {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--marca-forte); color: #fdf6e9;
  display: grid; place-items: center; flex: none;
}
.icone-destaque svg { width: 24px; height: 24px; }

/* ---------- texto corrido ---------- */
.artigo { max-width: 72ch; }
.artigo h2 { margin-top: 2.4rem; }
.artigo h2:first-child { margin-top: 0; }
.artigo h3 { margin-top: 1.6rem; font-family: var(--sans); font-weight: 700; font-size: 1.02rem; }
.artigo ul, .artigo ol { padding-left: 1.3rem; }
.artigo li { margin-bottom: .4rem; }
.artigo blockquote {
  margin: 1.6rem 0; padding: .3rem 0 .3rem 1.2rem; border-left: 3px solid var(--terra);
  color: var(--texto-suave); font-style: italic;
}
.nota-verificar {
  display: inline-block; font-family: var(--mono); font-size: .82em;
  color: var(--terra-forte); background: var(--superficie-2);
  border: 1px dashed var(--terra-clara); border-radius: 4px; padding: .05em .4em;
}

table { border-collapse: collapse; width: 100%; }
caption { text-align: left; font-weight: 700; margin-bottom: .5rem; font-family: var(--sans); }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--linha); vertical-align: top; }
th { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-suave); }
.tabela-scroll { overflow-x: auto; border: 1px solid var(--linha); border-radius: var(--raio); }
.tabela-scroll table { min-width: 560px; }

/* ---------- caixas de contexto editorial ---------- */
.caixa-nota {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--superficie-2); border: 1px dashed var(--marca-clara);
  border-radius: var(--raio); padding: 1.1rem 1.3rem; margin: 1.8rem 0;
}
.caixa-nota svg { width: 26px; height: 26px; flex: none; color: var(--terra-forte); }
.caixa-nota p { margin: 0; font-size: .92rem; color: var(--texto-suave); }
.caixa-nota strong { color: var(--texto); }

.caixa-exemplo {
  background: var(--superficie); border: 1px solid var(--linha); border-left: 4px solid var(--marca);
  border-radius: 0 var(--raio) var(--raio) 0; padding: 1.2rem 1.4rem; margin: 1.8rem 0;
}
.caixa-exemplo h4 { margin-bottom: .5rem; color: var(--marca-forte); }
:root[data-theme="dark"] .caixa-exemplo h4 { color: var(--marca); }
.caixa-exemplo p:last-child { margin-bottom: 0; }

.passos-processo { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: 1rem; counter-reset: passo; }
.passos-processo li { position: relative; padding-left: 3rem; counter-increment: passo; }
.passos-processo li::before {
  content: counter(passo); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--marca-forte); color: #fdf6e9; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700;
}
.passos-processo p { margin: 0; }
.passos-processo h3 { margin: 0 0 .3rem; font-size: 1.02rem; }

/* ---------- ficha de palavra ---------- */
.lista-fichas-palavra { display: flex; flex-direction: column; gap: 1.6rem; }
.ficha-palavra {
  background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 1.7rem 1.8rem; box-shadow: var(--sombra); scroll-margin-top: 6rem;
}
.ficha-palavra-cabecalho {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: .3rem;
}
.ficha-palavra-cabecalho h3 { margin: 0; font-size: 1.5rem; font-style: italic; }
.ficha-palavra-etimo { font-family: var(--mono); font-size: .8rem; color: var(--texto-suave); }
.ficha-palavra-etiquetas { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 1rem; }
.selo {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  padding: .22rem .55rem; border-radius: 999px; border: 1px solid var(--linha);
  background: var(--superficie-2); color: var(--texto-suave);
}
.selo-origem { border-color: var(--terra-clara); color: var(--terra-forte); }
.selo-campo { border-color: var(--marca-clara); color: var(--marca-forte); }
.selo-seculo { border-color: var(--ouro); color: var(--ouro-forte); }

.ficha-palavra-sentidos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.1rem 0;
}
@media (max-width: 560px) { .ficha-palavra-sentidos { grid-template-columns: 1fr; } }
.sentido-bloco {
  background: var(--superficie-2); border: 1px solid var(--linha); border-radius: 7px; padding: .85rem 1rem;
}
.sentido-bloco h4 { margin-bottom: .3rem; }
.sentido-bloco p { margin: 0; font-size: .95rem; }
.sentido-bloco.sentido-hoje { border-left: 3px solid var(--terra); }
.sentido-bloco.sentido-original { border-left: 3px solid var(--marca); }

.ficha-palavra-dados { font-size: .9rem; color: var(--texto-suave); margin-top: .8rem; }
.ficha-palavra-dados dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.ficha-palavra-dados dd { margin: 0 0 .6rem; color: var(--texto); }

/* ---------- mapa das palavras ---------- */
.mapa-shell {
  background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio);
  box-shadow: var(--sombra); overflow: hidden; margin-top: 1.6rem;
}
.mapa-corpo {
  display: grid; grid-template-columns: 1fr 340px; gap: 0;
}
@media (max-width: 980px) { .mapa-corpo { grid-template-columns: 1fr; } }

.mapa-svg-caixa {
  background-color: var(--bg-alt); padding: .8rem; overflow: hidden; position: relative;
}
.mapa-svg-caixa svg { display: block; width: 100%; height: auto; }

.mapa-continente { fill: var(--superficie-2); stroke: var(--linha); stroke-width: 1.4; }
.mapa-ilhas circle { fill: var(--superficie-2); stroke: var(--linha); stroke-width: 1; }
.mapa-legenda-oceano { fill: var(--texto-suave); font-family: var(--mono); opacity: .5; }

.linha-percurso {
  fill: none; stroke: var(--terra); stroke-width: 2; stroke-linecap: round;
  transition: opacity .3s ease, stroke-width .3s ease;
}
.linha-percurso.inativa { opacity: .12; }
.linha-percurso.realcada { stroke: var(--marca-forte); stroke-width: 3.2; }
:root[data-theme="dark"] .linha-percurso.realcada { stroke: var(--ouro); }

.ponto-mapa { cursor: default; }
.ponto-mapa circle.nucleo { fill: var(--terra-forte); stroke: var(--superficie); stroke-width: 1.6; }
.ponto-mapa.destino circle.nucleo { fill: var(--marca-forte); }
.ponto-mapa.inativo circle.nucleo { opacity: .25; }
.ponto-mapa text { font-family: var(--mono); font-size: 10.5px; fill: var(--texto); }
.ponto-mapa.inativo text { opacity: .25; }
.ponto-mapa .contagem {
  font-family: var(--mono); font-size: 9px; fill: var(--superficie); font-weight: 700;
}

.ponto-viajante {
  fill: var(--ouro-forte); stroke: var(--superficie); stroke-width: 1.2;
}

/* ---------- filtros do mapa ---------- */
.filtros-mapa {
  padding: 1.4rem 1.4rem 1.6rem; border-bottom: 1px solid var(--linha); background: var(--superficie-2);
}
.filtro-grupo { border: 0; margin: 0 0 1.1rem; padding: 0; }
.filtro-grupo:last-child { margin-bottom: 0; }
.filtro-grupo legend {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--texto-suave); padding: 0; margin-bottom: .5rem; font-weight: 700;
}
.filtro-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-etiqueta {
  display: inline-flex; align-items: center; gap: .3rem; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--linha);
  background: var(--superficie); color: var(--texto-suave);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip-input:checked + .chip-etiqueta {
  background: var(--terra-forte); border-color: var(--terra-forte); color: #fdf6e9;
}
.chip-input:focus-visible + .chip-etiqueta { outline: 3px solid var(--marca); outline-offset: 2px; }
.chip-etiqueta:hover { border-color: var(--marca-clara); }

.filtros-acoes { display: flex; gap: .6rem; margin-top: .8rem; }
.filtros-acoes button {
  font-family: var(--sans); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  background: transparent; border: 1px solid var(--linha); color: var(--texto-suave);
  padding: .4rem .8rem; border-radius: 6px; cursor: pointer;
}
.filtros-acoes button:hover { color: var(--texto); border-color: var(--marca); }

/* ---------- painel lateral: lista + ficha ---------- */
.mapa-painel {
  display: flex; flex-direction: column; border-left: 1px solid var(--linha); max-height: 640px;
}
@media (max-width: 980px) { .mapa-painel { border-left: 0; border-top: 1px solid var(--linha); max-height: none; } }

.mapa-contagem {
  padding: 1rem 1.2rem .6rem; font-family: var(--mono); font-size: .78rem; color: var(--texto-suave);
}
.lista-palavras-mapa {
  list-style: none; margin: 0; padding: .2rem .8rem 1rem; overflow-y: auto; flex: 1;
}
.lista-palavras-mapa li { margin-bottom: .3rem; }
.botao-palavra-mapa {
  width: 100%; text-align: left; background: var(--superficie); border: 1px solid var(--linha);
  border-radius: 7px; padding: .6rem .75rem; cursor: pointer; font-family: var(--serif);
  color: var(--texto); font-size: .95rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  transition: background .15s ease, border-color .15s ease;
}
.botao-palavra-mapa:hover { border-color: var(--terra-clara); }
.botao-palavra-mapa[aria-pressed="true"] {
  background: color-mix(in srgb, var(--terra) 14%, var(--superficie)); border-color: var(--terra);
}
.botao-palavra-mapa .origem-mini { font-family: var(--mono); font-size: .68rem; color: var(--texto-suave); }

.ficha-detalhe {
  border-top: 1px solid var(--linha); padding: 1.1rem 1.2rem 1.3rem; background: var(--superficie-2);
}
.ficha-detalhe-vazio { color: var(--texto-suave); font-size: .9rem; }
.ficha-detalhe h3 { font-style: italic; font-size: 1.25rem; margin-bottom: .2rem; }
.ficha-detalhe .ficha-palavra-etimo { display: block; margin-bottom: .6rem; }
.ficha-detalhe dl { margin: .8rem 0 0; font-size: .88rem; }
.ficha-detalhe dt { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-suave); margin-top: .5rem; }
.ficha-detalhe dd { margin: .1rem 0 0; }
.ficha-detalhe .btn { margin-top: .9rem; }

.mapa-legenda-visual {
  display: flex; gap: 1.4rem; flex-wrap: wrap; padding: .9rem 1.4rem; font-family: var(--sans);
  font-size: .8rem; color: var(--texto-suave); border-top: 1px solid var(--linha);
}
.mapa-legenda-visual span { display: inline-flex; align-items: center; gap: .4rem; }
.marcador-legenda { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.marcador-legenda.origem { background: var(--terra-forte); }
.marcador-legenda.destino { background: var(--marca-forte); }

/* ---------- formulário de contacto ---------- */
.aviso-ok {
  background: var(--ok-bg); color: var(--ok-texto); border: 1px solid color-mix(in srgb, var(--ok-texto) 40%, transparent);
  padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.6rem; font-weight: 700; font-family: var(--sans);
}
.forma-contacto { max-width: 560px; }
.campo { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.campo label { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-suave); }
.campo input, .campo select, .campo textarea {
  padding: .7rem .8rem; border-radius: 6px; border: 1px solid var(--linha);
  background: var(--superficie); color: var(--texto); font-family: var(--serif); font-size: 1rem;
  width: 100%;
}
.campo textarea { resize: vertical; min-height: 110px; }
.campo .ajuda { font-size: .82rem; color: var(--texto-suave); font-family: var(--sans); }

/* ---------- rodapé ---------- */
.rodape { background: var(--marca-forte); color: #eef2f4; margin-top: 3rem; }
.rodape .moldura { padding: 3rem 1.4rem 1.6rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .rodape .moldura { grid-template-columns: 1fr; } }
.rodape h4 { color: #cfdde6; font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.rodape .marca-rodape { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1.25rem; color: #f4f7f8; text-decoration: none; }
.rodape p { color: #b7c6d0; max-width: 36ch; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rodape a { color: #cfdde6; text-decoration: none; font-family: var(--sans); font-size: .9rem; }
.rodape a:hover { color: #f4f7f8; text-decoration: underline; }
.creditos { border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 1.4rem; font-size: .82rem; color: #a6b8c2; text-align: center; font-family: var(--sans); }

/* utilidade */
.centro { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ============================================================
   CAMADA PREMIUM — código canónico partilhado pelos seis sites
   (fartapao, bracarapipe, mesteze, noniussoftware, talkdesk, tibagroup).

   Como usar: copiar este bloco para o FIM do style.css do site e
   (1) mapear os tokens abstratos no :root do site:
         --realce: var(--marca);            tinta do site
         --realce-forte: var(--marca-forte);
         --realce-suave: color-mix(in srgb, var(--marca) 22%, transparent);
         --tinta-sobre-realce: #fffaf0;     texto sobre --realce-forte
   (2) apagar as regras antigas que este bloco substitui:
         .revela / .em-vista, .botao-tema .icone-* (display:none),
         .nav-principal a:hover / [aria-current] com pastilha de fundo,
         .btn:hover / .btn:active simples, .cartao/.cartao-destaque hover.
   (3) ajustar a escala do h1 do hero à tipografia do site (ver «HERO»).
   Requer html.js (script inline no <head>) e o main.js canónico.
   Tudo o que esconde conteúdo vive sob html.js + no-preference.
   ============================================================ */

:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-mola: linear(0, .006, .025 2.8%, .101 6.1%, .539 18.9%, .721 25.3%, .849 31.5%, .937 38.1%, .968 41.8%, .991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001);
}

/* ---------- fio de leitura ---------- */
.leitura-progresso {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 300;
  background: linear-gradient(90deg, var(--realce), var(--realce-forte));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
  view-transition-name: leitura;
}
html:not(.js) .leitura-progresso { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    html.js .leitura-progresso { animation: ler-progresso linear both; animation-timeline: scroll(root); }
  }
}
@keyframes ler-progresso { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- cabeçalho vivo ---------- */
.cabecalho {
  view-transition-name: cabecalho;
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
  transition: box-shadow .35s ease, background-color .35s ease;
}
.cabecalho .moldura { max-width: 1320px; transition: padding .3s var(--ease-out); }
.cabecalho.rolou {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .45);
}
.cabecalho.rolou .moldura { padding-top: .5rem; padding-bottom: .5rem; }

.nav-principal ul { gap: 0; }
.nav-principal a { position: relative; background: transparent; }
.nav-principal a::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .28rem; height: 2px;
  border-radius: 2px; background: var(--realce);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .32s var(--ease-out);
}
.nav-principal a:hover, .nav-principal a:focus-visible { background: transparent; color: var(--texto); }
.nav-principal a[aria-current="page"] { background: transparent; color: var(--realce-forte); box-shadow: none; }
.nav-principal a:hover::after, .nav-principal a:focus-visible::after,
.nav-principal a[aria-current="page"]::after { transform: scaleX(1); }

/* botão de tema: os ícones rodam e deslizam, em vez de display:none */
.botao-tema { position: relative; overflow: hidden; }
.botao-tema svg {
  position: absolute; inset: 0; margin: auto;
  transition: transform .5s var(--ease-out), opacity .3s ease;
}
.botao-tema .icone-sol { display: block; opacity: 1; transform: none; }
.botao-tema .icone-lua { display: block; opacity: 0; transform: translateY(130%) rotate(-50deg); }
:root[data-theme="dark"] .botao-tema .icone-sol { opacity: 0; transform: translateY(-130%) rotate(50deg); }
:root[data-theme="dark"] .botao-tema .icone-lua { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .botao-tema .icone-sol { display: block; opacity: 0; transform: translateY(-130%) rotate(50deg); }
  :root:not([data-theme="light"]) .botao-tema .icone-lua { display: block; opacity: 1; transform: none; }
}
.botao-tema:hover { transform: rotate(12deg); }
.botao-tema:active { transform: scale(.9); }

/* menu móvel: abre a deslizar */
@media (prefers-reduced-motion: no-preference) {
  html.js .nav-principal.aberta { animation: nav-abrir .32s var(--ease-out) both; }
}
@keyframes nav-abrir { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- navegação entre páginas como app ---------- */
@view-transition { navigation: auto; }
.rodape { view-transition-name: rodape; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-sair .28s ease both; }
  ::view-transition-new(root) { animation: vt-entrar .42s var(--ease-out) both; }
}
@keyframes vt-sair { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-entrar { from { opacity: 0; transform: translateY(10px); } }
/* círculo de luz a partir do botão de tema */
html.vt-circulo::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
html.vt-circulo::view-transition-new(root) { animation: tema-circulo .6s var(--ease-in-out) both; mix-blend-mode: normal; }
@keyframes tema-circulo {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0px)); }
  to { clip-path: circle(var(--vt-r, 141vmax) at var(--vt-x, 50%) var(--vt-y, 0px)); }
}
/* chegada por view transition: a página aterra composta, sem duplo reveal */
html.vt-instante .rv { transition: none !important; }
html.vt-instante .hero h1 .palavra { animation: none !important; opacity: 1 !important; transform: none !important; }

/* ---------- motor de revelação ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  html.js .rv.in-view { opacity: 1; transform: none; }
}

/* ---------- hero: tipografia cinética, palavra-chave, ambiente ---------- */
.hero { isolation: isolate; }
.hero h1 { text-wrap: balance; }
.hero .lead { text-wrap: pretty; }
/* escala display — ajustar por site: serifados clamp(2.3rem,5.2vw,4.1rem);
   caixa alta/display (mesteze) clamp(2rem,4.8vw,3.6rem); mono (nónio) clamp(1.9rem,4.2vw,3.1rem) */
.hero h1 .palavra { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html.js .hero h1.tipo-viva .palavra {
    opacity: 0; transform: translateY(.6em) rotate(1.2deg);
    animation: palavra-sobe .95s var(--ease-out) both;
  }
  html.js .hero h1.tipo-viva ~ .lead,
  html.js .hero h1.tipo-viva ~ .acoes { animation: sobe-suave .9s var(--ease-out) both; }
  html.js .hero h1.tipo-viva ~ .lead { animation-delay: .45s; }
  html.js .hero h1.tipo-viva ~ .acoes { animation-delay: .6s; }
}
@keyframes palavra-sobe { to { opacity: 1; transform: none; } }
@keyframes sobe-suave { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.realce {
  background-image: linear-gradient(var(--realce-suave), var(--realce-suave));
  background-repeat: no-repeat; background-size: 100% .34em; background-position: 0 90%;
  padding: 0 .08em; margin: 0 -.08em; border-radius: .1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .hero .realce { background-size: 0% .34em; animation: realce-pintar .9s var(--ease-out) 1s both; }
}
@keyframes realce-pintar { to { background-size: 100% .34em; } }

/* camadas de ambiente do hero: cada site define os seus filhos */
.hero-ambiente { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-ambiente > * { position: absolute; }
/* animações contínuas do ambiente só correm com o hero em cena */
.hero:not(.em-cena) .hero-ambiente > * { animation-play-state: paused; }
html:not(.js) .hero .hero-ambiente > * { animation-play-state: running; }

/* vinheta: o cartão do hero deixa de ter hover de cartão */
.hero .cartao, .hero .hero-vinheta { transition: none; }
.hero .cartao:hover, .hero .hero-vinheta:hover { transform: none; }

/* ---------- botões ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .22s var(--ease-out), box-shadow .3s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-primario::after {
  content: ""; position: absolute; inset: -20% -40%; z-index: -1; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .26) 50%, transparent 62%);
  transform: translateX(-70%);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primario:hover::after { transform: translateX(70%); transition: transform .85s var(--ease-out); }
}
.btn-primario:hover { box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--realce-forte) 60%, transparent); }
.btn .seta { display: inline-block; transition: transform .3s var(--ease-out); }
.btn:hover .seta, .btn:focus-visible .seta { transform: translateX(4px); }
.btn-fantasma:hover { background: color-mix(in srgb, var(--realce) 8%, transparent); }

/* ---------- cartões ---------- */
.cartao, .cartao-destaque {
  position: relative;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  main .cartao:hover, main .cartao-destaque:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--realce) 45%, var(--linha));
    box-shadow: 0 26px 44px -26px rgba(0, 0, 0, .4);
  }
}
.cartao-destaque { overflow: hidden; }
.cartao-destaque::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), color-mix(in srgb, var(--realce) 18%, transparent), transparent 62%);
  opacity: 0; transition: opacity .45s ease;
}
.cartao-destaque:hover::before { opacity: 1; }
.cartao-destaque > * { position: relative; z-index: 1; }
.icone-destaque { transition: transform .45s var(--ease-out); }
.cartao-destaque:hover .icone-destaque { transform: translateY(-2px) rotate(-5deg); }

/* ---------- faixa de termos ---------- */
.faixa {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha);
  background: var(--superficie-2); padding: .95rem 0;
}
.faixa-mascara { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.faixa-pista {
  display: flex; width: max-content; margin: 0; padding: 0; list-style: none;
  font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--texto-suave); white-space: nowrap;
}
.faixa-pista > span { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; }
.faixa-pista i { font-style: normal; color: var(--realce); }
@media (prefers-reduced-motion: no-preference) {
  html.js .faixa-pista { animation: faixa-rolar 52s linear infinite; }
  .faixa:hover .faixa-pista, .faixa:focus-within .faixa-pista, .faixa.parada .faixa-pista { animation-play-state: paused; }
}
@keyframes faixa-rolar { to { transform: translateX(-50%); } }
.faixa-pausa {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--linha);
  background: var(--superficie); color: var(--texto-suave); display: grid; place-items: center; cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.faixa-pausa:hover { color: var(--texto); border-color: var(--realce); }
.faixa-pausa svg { width: 12px; height: 12px; }
.faixa-pausa .icone-retomar { display: none; }
.faixa.parada .faixa-pausa .icone-pausar { display: none; }
.faixa.parada .faixa-pausa .icone-retomar { display: block; }
html:not(.js) .faixa-pausa { display: none; }
@media (prefers-reduced-motion: reduce) {
  .faixa-pista { animation: none; width: auto; flex-wrap: wrap; justify-content: center; white-space: normal; row-gap: .5rem; }
  .faixa-pista > span { flex-wrap: wrap; justify-content: center; row-gap: .5rem; }
  .faixa-pista > span:nth-child(2) { display: none; }
  .faixa-mascara { mask-image: none; -webkit-mask-image: none; }
  .faixa-pausa { display: none; }
}

/* ---------- banda de números ---------- */
.banda-numeros { padding: 2.6rem 0; }
.banda-numeros .moldura { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 720px) { .banda-numeros .moldura { grid-template-columns: 1fr; } }
.numero-facto { position: relative; padding: .4rem 0 .4rem 1.3rem; }
.numero-facto::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 3px; border-radius: 3px; background: var(--realce); }
.numero-facto strong {
  display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1; color: var(--realce-forte); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.numero-facto span { display: block; margin-top: .45rem; font-size: .92rem; color: var(--texto-suave); max-width: 26ch; }

/* ---------- formulário ---------- */
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible,
.decompositor-entrada textarea:focus-visible, .atlas-ferramentas input:focus-visible {
  outline: none; border-color: var(--realce);
  box-shadow: 0 0 0 4px var(--realce-suave);
}
.campo input, .campo select, .campo textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn[aria-busy="true"]::before {
  content: ""; width: 1em; height: 1em; border-radius: 50%; margin-right: .2em;
  border: 2px solid currentColor; border-right-color: transparent; animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  html.js .aviso-ok.a-entrar { animation: sobe-suave .6s var(--ease-out) both; }
}

/* ---------- rodapé ---------- */
.rodape { position: relative; }
.rodape::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--realce), transparent 60%); opacity: .9; }
.rodape a { position: relative; text-decoration: none; }
.rodape ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.rodape ul a:hover { text-decoration: none; }
.rodape ul a:hover::after { transform: scaleX(1); }

/* ---------- detalhes / tabelas ---------- */
details summary::before, details summary::marker { transition: transform .3s var(--ease-out); }
details summary { transition: color .2s ease; }

/* ---------- movimento reduzido: tudo visível e quieto ---------- */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-image-pair(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .leitura-progresso { display: none !important; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  html.js .hero h1.tipo-viva .palavra { animation: none; opacity: 1; transform: none; }
  html.js .hero .realce { animation: none; background-size: 100% .34em; }
  .hero-ambiente > * { animation: none !important; }
}

/* ============================================================
   TIBA — camada premium própria: «a rota que se desenha»
   ============================================================ */
/* palavra-chave: tinta terracota com sublinhado tracejado de rota */
.hero .realce {
  color: var(--terra-forte);
  background-image: repeating-linear-gradient(90deg, var(--terra) 0 .42em, transparent .42em .72em);
  background-size: 100% .17em; background-position: 0 98%;
  padding: 0 .04em; margin: 0 -.04em; border-radius: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .hero .realce { background-size: 0% .17em; animation: rota-pintar 1.2s var(--ease-out) 1.05s both; }
}
@keyframes rota-pintar { to { background-size: 100% .17em; } }

/* ambiente: pergaminho nos cantos e rosa-dos-ventos a rodar devagar */
.hero-ambiente .ambiente-pergaminho {
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(74, 46, 12, .09) 100%);
}
.hero-ambiente .ambiente-rosa {
  right: 5%; top: 50%; width: 320px; height: 320px; margin-top: -160px;
  color: var(--ouro-forte); opacity: .11;
  animation: rosa-rodar 120s linear infinite;
}
:root[data-theme="dark"] .hero-ambiente .ambiente-pergaminho { background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .38) 100%); }
:root[data-theme="dark"] .hero-ambiente .ambiente-rosa { opacity: .13; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-ambiente .ambiente-pergaminho { background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .38) 100%); }
  :root:not([data-theme="light"]) .hero-ambiente .ambiente-rosa { opacity: .13; }
}
@keyframes rosa-rodar { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .hero-ambiente .ambiente-rosa { right: -70px; top: 8%; width: 220px; height: 220px; margin-top: 0; }
}

/* vinheta: o mini-mapa vivo */
.hero-vinheta {
  padding: 1.2rem;
  background: linear-gradient(160deg, var(--superficie) 0%, var(--superficie-2) 100%);
  box-shadow: var(--sombra), inset 0 0 0 1px color-mix(in srgb, var(--ouro) 28%, transparent);
}
.rota-hero { display: block; }
.rota-hero .rota-moldura { fill: none; stroke: var(--linha); stroke-width: 1; }
.rota-hero .rota-graticule line { stroke: var(--linha); stroke-width: .6; opacity: .6; }
.rota-hero .rota-origens-fundo circle { fill: var(--terra); opacity: .32; }
.rota-hero .rota-linha { fill: none; stroke: var(--terra); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 4 5; }
.rota-hero .rota-origem { fill: var(--terra-forte); }
.rota-hero .rota-destino { fill: var(--marca-forte); }
.rota-hero .rota-destino-anel { fill: none; stroke: var(--marca-forte); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rota-hero .rota-viajante { fill: var(--ouro-forte); stroke: var(--superficie); stroke-width: 1; opacity: 0; transition: opacity .3s ease; }
.rota-hero .rota-rotulo { font-family: var(--mono); font-size: 9px; fill: var(--texto-suave); transition: opacity .35s ease; }
@media (prefers-reduced-motion: no-preference) {
  .rota-hero .rota-destino-anel.pulsar { animation: anel-pulsar 1.1s var(--ease-out) both; }
}
@keyframes anel-pulsar { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }

/* faixa: o ornamento ✦ em ocre */
.faixa-pista i { color: var(--ouro); font-size: .7em; }

/* ---------- mapa das palavras: coreografia ---------- */
.ponto-mapa .anel {
  fill: none; stroke: var(--terra); stroke-width: 1.6; opacity: 0; pointer-events: none;
  transform-box: fill-box; transform-origin: center;
}
.ponto-mapa.ativo circle.nucleo { stroke: var(--ouro); stroke-width: 2.2; }
@media (prefers-reduced-motion: no-preference) {
  .ponto-mapa.ativo .anel { animation: anel-pulsar 1.6s var(--ease-out) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .ponto-mapa.ativo .anel { opacity: .7; transform: scale(1.9); }
}
.rasto-viajante { fill: none; stroke: var(--ouro-forte); stroke-width: 3.2; stroke-linecap: round; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.linha-percurso.realcada { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--ouro) 55%, transparent)); }

.chip-etiqueta { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-out), box-shadow .2s ease; }
.chip-etiqueta:active { transform: scale(.96); }
.chip-input:checked + .chip-etiqueta { box-shadow: 0 5px 14px -8px color-mix(in srgb, var(--terra-forte) 75%, transparent); }
.filtros-acoes button { transition: color .2s ease, border-color .2s ease, transform .2s var(--ease-out); }
.filtros-acoes button:active { transform: scale(.97); }

.botao-palavra-mapa { transition: background .2s ease, border-color .2s ease, transform .25s var(--ease-out); }
.botao-palavra-mapa:hover { transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) {
  html.js .lista-palavras-mapa li.entrar { animation: entrar-item .5s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 14) * 38ms); }
  html.js .ficha-detalhe.a-entrar > * { animation: sobe-suave .55s var(--ease-out) both; }
}
@keyframes entrar-item { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html.js .hero .realce { animation: none; background-size: 100% .17em; }
  .hero-ambiente .ambiente-rosa { animation: none; }
  .rota-hero .rota-viajante { opacity: 0; }
}


/* ---------- mapa das palavras: coreografia (set 2026) ---------- */
.anel-pulso { fill: none; stroke: var(--terra); stroke-width: 2; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.rasto-viajante { fill: none; stroke: var(--ouro-forte); stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.ponto-mapa.ativo circle.nucleo { stroke: var(--ouro-forte); stroke-width: 2.2; }
.chip-etiqueta { transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s var(--ease-out), box-shadow .18s ease; }
.chip-etiqueta:active { transform: scale(.96); }
.chip-input:checked + .chip-etiqueta { box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--terra-forte) 70%, transparent); }
.botao-palavra-mapa { transition: background .18s ease, border-color .18s ease, transform .25s var(--ease-out); }
.botao-palavra-mapa:hover { transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) {
  html.js .lista-palavras-mapa li { animation: sobe-suave .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
  html.js .ficha-detalhe.a-entrar { animation: sobe-suave .45s var(--ease-out) both; }
}
