/* JCA Window · estilos da rubrica (implementação de 26-11, sobre o mockup v05b aprovado pelo César).
   Assenta no site.css (tokens, escala 88/40/24/17/14 com 11/12, pesos 400/700, .rot, .sec, .corpo, .btn, .vh).
   Cor: só tokens. O acento (--acc-1) marca o prazo legal de 30 dias, o risco de viés High e os níveis de
   restrição do financiamento no mapa (com opacidade: o build não aceita misturas de cor). */

/* o cabeçalho do site, sempre visível na rubrica (na página inicial aparece depois do hero) */
.jca-rubrica {
  --jw-linha: 56px;
}
.jca-rubrica .topo {
  position: sticky;
  transform: none;
  visibility: visible;
  transition: none;
}
.jca-rubrica [id] {
  scroll-margin-top: calc(var(--topo-h) + 64px);
}

.jw-in {
  max-width: var(--moldura);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- topo do site (o mesmo da página inicial) */
.jw-topo {
  background: var(--field);
  color: var(--cream);
  border-bottom: 1px solid var(--circle);
}
.jw-topo .jw-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}
.jw-topo .jw-casa {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.jw-topo img {
  height: 26px;
  width: auto;
}
.jw-topo nav {
  margin-left: auto;
}
.jw-topo nav ul {
  display: flex;
  gap: 4px;
}
.jw-topo nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: var(--t-rot);
  font-weight: 700;
  text-decoration: none;
}
.jw-topo nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.jw-topo .jw-menu {
  display: none;
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink-2);
  border-radius: 6px;
  background: transparent;
  color: var(--cream);
  font-size: var(--t-rot);
  font-weight: 700;
}
.jw-prova {
  background: var(--field);
  color: var(--line);
  font-size: var(--t-rot);
  border-bottom: 1px solid var(--circle);
}
.jw-prova .jw-in {
  min-height: 36px;
  display: flex;
  align-items: center;
}

/* ---------- barra do produto: fica presa ao rolar */
.jw-barra {
  position: sticky;
  top: var(--topo-h);
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.jw-barra .jw-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--jw-linha);
}
.jw-nome {
  font-size: var(--t-rot);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.jw-sub {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.jw-sub::-webkit-scrollbar {
  display: none;
}
.jw-sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: var(--t-rot);
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.jw-sub a:hover,
.jw-sub a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.jw-conta[hidden] {
  display: none;
}
.jw-conta {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-rot);
  font-weight: 700;
}

/* ---------- entrada da raiz: faixa escura compacta, com a resposta dentro */
.jw-entrada {
  background: var(--field);
  color: var(--cream);
}
.jw-entrada .jw-in {
  padding-top: 56px;
  padding-bottom: 48px;
}
.jw-entrada .rot {
  color: var(--line);
}
.jw-entrada h1 {
  font-size: var(--t-titulo);
  font-weight: 700;
  line-height: 1.12;
  margin-top: 8px;
}
.jw-entrada .corpo {
  color: var(--cream);
  margin-top: 12px;
  max-width: 64ch;
}
.jw-met {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  border-top: 1px solid var(--circle);
  padding-top: 24px;
}
.jw-met div {
  min-width: 0;
}
.jw-met .n {
  font-size: var(--t-titulo);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.jw-met .n.grande {
  font-size: var(--t-num);
  line-height: 0.9;
}
.jw-met .r {
  font-size: var(--t-rot);
  color: var(--line);
  margin-top: 10px;
  max-width: 28ch;
}

/* ---------- secções */
.jw-sec {
  padding: 64px 0 24px;
}
.jw-sec + .jw-sec {
  border-top: 1px solid var(--line);
}
.jw-cab {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 32px;
  margin-bottom: 24px;
}
.jw-cab .sec {
  margin-top: 6px;
}
.jw-cab .corpo {
  max-width: 62ch;
  margin-top: 8px;
}
.jw-cab-acc {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.jw-fonte {
  font-size: var(--t-rot);
  color: var(--ink-3);
  margin-top: 20px;
  max-width: 90ch;
}

/* ---------- controlos: segmentos (separadores) e campo de procura */
.jw-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  background: var(--paper);
}
.jw-seg button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  font-size: var(--t-rot);
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
}
.jw-seg button[aria-selected="true"],
.jw-seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.jw-seg button .tnum {
  font-weight: 400;
  margin-left: 6px;
}
.jw-campo {
  min-height: 44px;
  width: 280px;
  max-width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: var(--t-rot);
  color: var(--ink);
  font-family: var(--font);
}
.jw-campo:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.btn-2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: var(--t-rot);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-2[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.jw-ext {
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: 0;
}

/* ---------- tabela de processos (lista densa, linhas de 64 px) */
.jw-lista {
  border-top: 2px solid var(--ink);
}
.jw-lcab,
.jw-l {
  display: grid;
  grid-template-columns:
    56px minmax(180px, 1.3fr) minmax(200px, 2fr) 110px minmax(240px, 2fr)
    72px 56px;
  column-gap: 20px;
  align-items: center;
}
.jw-lcab {
  min-height: 44px;
  font-size: var(--t-rot);
  font-weight: 700;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.jw-lcab .num,
.jw-l .num {
  text-align: right;
}
.jw-l {
  min-height: 72px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.jw-l:hover {
  background: #fff;
}
.jw-l .med a {
  font-weight: 700;
  text-decoration: none;
}
.jw-l .med a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.jw-l .med a::after {
  /* a linha inteira é o alvo da ficha */
  content: "";
  position: absolute;
  inset: 0 56px 0 76px;
}
.jw-l .med .inn {
  display: block;
}
.jw-l .med .inn,
.jw-l .ind,
.jw-l .ass {
  font-size: var(--t-rot);
  color: var(--ink-3);
}
.jw-l .ind {
  color: var(--ink);
}
.jw-l .num {
  font-size: var(--t-corpo);
  font-variant-numeric: tabular-nums;
}
.jw-l .num.pq {
  font-size: var(--t-rot);
}
.jw-l .seta {
  justify-self: end;
  font-size: var(--t-corpo);
  color: var(--ink-3);
}
.jw-sel {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.jw-sel i {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink-3);
  border-radius: 6px;
  display: block;
}
.jw-sel[aria-pressed="true"] i {
  background: var(--ink);
  border-color: var(--ink);
  position: relative;
}
.jw-sel[aria-pressed="true"] i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.jw-sel:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.jw-vazio-l {
  padding: 32px 0;
  font-size: var(--t-corpo);
  color: var(--ink-3);
}

/* ---------- mini linha do tempo (dias desde a AIM) */
.jw-mt {
  position: relative;
  height: 28px;
}
.jw-mt .eixo {
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 2px;
  background: var(--line);
}
.jw-mt .feito {
  position: absolute;
  top: 13px;
  height: 2px;
  background: var(--d3);
}
.jw-mt .prazo,
.jw-tl .prazo {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--acc-1);
}
.jw-mk {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}
.mk-endosso {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}
.mk-concl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--d3);
}
.mk-pub {
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.mk-aim {
  width: 2px;
  height: 14px;
  background: var(--ink);
}
/* barra «em curso» (dias desde a validação) */
.jw-bar {
  position: relative;
  height: 28px;
}
.jw-bar .eixo {
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 2px;
  background: var(--line-soft);
}
.jw-bar .v {
  position: absolute;
  left: 0;
  top: 8px;
  height: 12px;
  background: var(--d3);
}
.jw-bar .v::after {
  /* ponta aberta: o processo continua */
  content: "";
  position: absolute;
  right: -7px;
  top: -2px;
  border-left: 7px solid var(--d3);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* ---------- legenda */
.jw-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: var(--t-rot);
  color: var(--ink-3);
  margin-top: 16px;
  align-items: center;
}
.jw-leg > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.jw-leg .jw-mk {
  position: relative;
  top: auto;
  transform: none;
}
.jw-leg .mk-pub {
  transform: rotate(45deg);
}
.jw-leg .prazo-l {
  width: 2px;
  height: 16px;
  background: var(--acc-1);
}

/* ---------- países: grelha de mosaicos e os seis estados */
.jw-paises {
  display: grid;
  grid-template-columns: repeat(8, 52px);
  grid-auto-rows: 52px;
  gap: 6px;
}
.pt {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  font-size: var(--t-rot);
  font-weight: 700;
  border: 0;
  padding: 0;
  cursor: default;
  font-family: var(--font);
}
button.pt {
  cursor: pointer;
}
/* 0 · por recolher (antes de haver dados): sem contorno, superfície ténue */
.pt.s-rec {
  background: var(--line-soft);
  color: var(--ink-3);
}
/* 1 · decidido: cheio */
.pt.s-dec {
  background: var(--ink);
  color: var(--paper);
}
/* 2 · em avaliação: contorno forte + meio-disco (relógio a correr) */
.pt.s-ava {
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
}
.pt.s-ava::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  clip-path: inset(0 0 0 50%);
  background: var(--ink);
}
/* 3 · sem decisão encontrada: contorno fino + traço por baixo */
.pt.s-sem {
  background: var(--paper);
  border: 1px solid var(--ink-3);
  color: var(--ink);
}
.pt.s-sem::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 9px;
  height: 2px;
  background: var(--ink-3);
}
/* 4 · sem pedido conhecido: contorno tracejado, vazio */
.pt.s-nao {
  background: transparent;
  border: 1px dashed var(--d3);
  color: var(--ink-3);
}
/* + acesso precoce (campo à parte, coexiste): canto marcado */
.pt.ap::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 14px solid var(--ink);
  border-left: 14px solid transparent;
  border-top-right-radius: 6px;
}
.pt.s-dec.ap::before {
  border-top-color: var(--paper);
}
.jw-paises-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.jw-estados {
  display: grid;
  gap: 10px;
}
.jw-estados li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.jw-estados .pt {
  width: 36px;
  height: 36px;
  font-size: var(--t-rot);
}
.jw-estados-g .pt {
  width: 52px;
  height: 52px;
}
.jw-estados b {
  display: block;
  font-size: var(--t-rot);
}
.jw-estados span.d {
  display: block;
  font-size: var(--t-rot);
  color: var(--ink-3);
}
.jw-aviso {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 16px;
  font-size: var(--t-corpo);
  max-width: 62ch;
}
.jw-aviso .rot {
  display: block;
  margin-bottom: 4px;
}

/* ---------- leituras e precedente */
.jw-leit li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 130px 120px;
  gap: 20px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
}
.jw-leit li:first-child {
  border-top: 2px solid var(--ink);
}
.jw-leit .rot {
  font-weight: 400;
}
.jw-leit a {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.jw-leit .tnum {
  font-size: var(--t-rot);
  color: var(--ink-3);
}

/* ---------- bandeja de comparação (aparece com 1 ou mais) */
.jw-bandeja {
  position: sticky;
  bottom: 0;
  z-index: 9;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(100%);
  transition: transform 0.25s;
}
.jw-bandeja:not(.on) {
  visibility: hidden;
  /* fechada, não guarda os 64 px no fim da página (o espaço antes do rodapé; César, 26-11) */
  height: 0;
  overflow: hidden;
}
.jw-bandeja.on {
  transform: none;
}
.jw-bandeja .jw-in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.jw-bandeja p {
  font-size: var(--t-rot);
}
.jw-bandeja .btn {
  margin-left: auto;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.jw-bandeja .limpar {
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--line);
  font-size: var(--t-rot);
  text-decoration: underline;
  cursor: pointer;
}

/* =================================================================== FICHA */
.jw-migalhas {
  font-size: var(--t-rot);
  color: var(--ink-3);
  padding-top: 32px;
}
.jw-migalhas a {
  color: var(--ink-3);
}
.jw-fcab {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 48px;
  padding: 20px 0 40px;
  align-items: start;
}
.jw-estado {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: var(--t-rot);
  color: var(--ink-3);
}
.jw-fcab h1 {
  font-size: var(--t-titulo);
  line-height: 1.1;
  margin-top: 12px;
}
.jw-fcab .inn {
  font-size: var(--t-sec);
  font-weight: 400;
  color: var(--ink-2);
  margin-top: 4px;
}
.jw-fcab .ind {
  margin-top: 16px;
  max-width: 56ch;
}
.jw-fcab .botoes {
  margin-top: 24px;
  gap: 12px;
}
.jw-fcab .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
}
.jw-ficha-dl {
  border-top: 2px solid var(--ink);
}
.jw-ficha-dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-rot);
}
.jw-ficha-dl dt {
  color: var(--ink-3);
}
.jw-ficha-dl dd {
  font-weight: 700;
}
.chip-j {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: var(--t-rot);
  font-weight: 700;
  color: var(--ink);
}
/* faixa de factos */
.jw-factos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.jw-factos div {
  padding: 20px 20px 20px 0;
  min-width: 0;
}
.jw-factos div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.jw-factos .n {
  font-size: var(--t-titulo);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.jw-factos .r {
  font-size: var(--t-rot);
  color: var(--ink-3);
  margin-top: 8px;
}

/* linha do tempo grande: previsto contra real */
.jw-tl {
  position: relative;
  height: 120px;
  margin: 8px 0 0;
}
.jw-tl .eixo {
  position: absolute;
  left: 0;
  right: 0;
  top: 59px;
  height: 2px;
  background: var(--line);
}
.jw-tl .feito {
  position: absolute;
  top: 59px;
  height: 2px;
  background: var(--ink);
}
.jw-tl .prazo {
  top: 48px;
  bottom: 48px;
  width: 2px;
}
.jw-tl .jw-mk {
  top: 60px;
}
.jw-tl .mk-endosso {
  width: 16px;
  height: 16px;
}
.jw-tl .mk-pub {
  width: 16px;
  height: 16px;
}
.jw-tl .lb {
  position: absolute;
  font-size: var(--t-rot);
  white-space: nowrap;
  transform: translateX(-50%);
}
.jw-tl .lb b {
  display: block;
}
.jw-tl .lb.cima {
  bottom: 74px;
}
.jw-tl .lb.baixo {
  top: 74px;
}
.jw-tl .lb.prazo-t {
  color: var(--acc-1);
  font-weight: 700;
}
.jw-tl .lb.esq {
  transform: none;
}
.jw-tl .lb.dir {
  transform: translateX(-100%);
}
.jw-tl-eixo {
  position: relative;
  height: 28px;
  border-top: 1px solid var(--d3);
  font-size: var(--t-rot);
  color: var(--ink-3);
}
.jw-tl-eixo span {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
}
.jw-tl-eixo span:first-child {
  transform: none;
}
.jw-falta {
  margin-top: 28px;
  font-size: var(--t-rot);
  color: var(--ink-3);
  max-width: 80ch;
}
.jw-falta b {
  color: var(--ink);
}

/* evidência por PICO: formas */
.ev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-rot);
  white-space: nowrap;
}
.ev i,
.ev-u {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
}
.ev-d i,
.ev-u.ev-d {
  background: var(--ink);
}
.ev-i i,
.ev-u.ev-i {
  border: 2px solid var(--ink);
  overflow: hidden;
}
.ev-i i::after,
.ev-u.ev-i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--ink);
}
.ev-x i,
.ev-u.ev-x {
  border: 2px solid var(--ink-3);
}
.ev-x i::after,
.ev-u.ev-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--ink-3);
  transform: rotate(45deg);
}
.ev-n i,
.ev-u.ev-n {
  border: 2px dashed var(--d3);
}
/* fila de unidades: um quadrado por PICO */
.jw-unid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.jw-unid .ev-u {
  width: 22px;
  height: 22px;
}
.jw-ev-resumo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 12px;
}

/* matriz PICO */
.jw-pico {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.jw-pico th,
.jw-pico td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-rot);
}
.jw-pico thead th {
  color: var(--ink-3);
  border-bottom: 2px solid var(--ink);
}
.jw-pico td.comp {
  font-size: var(--t-rot);
  max-width: 44ch;
}
.jw-pico tr.grupo th {
  font-size: var(--t-rot);
  font-weight: 700;
  padding-top: 20px;
  color: var(--ink);
}
.jw-pico .pid {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.jw-pico button.ver {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-size: var(--t-rot);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.jw-pico button.ver:hover {
  border-color: var(--ink);
}
.jw-pico tr.ativo td {
  background: #fff;
}

/* resultados: estimativas com IC (escala logarítmica, linha em 1) */
.jw-res-ctl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.jw-res-ctl select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: var(--t-rot);
  font-family: var(--font);
}
.jw-forest {
  border-top: 2px solid var(--ink);
}
.jw-fr,
.jw-fcabr {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) minmax(220px, 1.2fr) minmax(260px, 1.6fr) 150px;
  gap: 20px;
  align-items: center;
}
.jw-fcabr {
  min-height: 40px;
  font-size: var(--t-rot);
  font-weight: 700;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.jw-fr {
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-rot);
}
.jw-fr .m b {
  display: block;
}
.jw-fr .m span,
.jw-fr .s {
  color: var(--ink-3);
}
.jw-fr .e {
  font-variant-numeric: tabular-nums;
}
.jw-plot {
  position: relative;
  height: 24px;
}
.jw-plot .um {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--d3);
}
.jw-plot .ic {
  position: absolute;
  top: 11px;
  height: 2px;
  background: var(--ink);
}
.jw-plot .pe {
  position: absolute;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  transform: translateX(-50%);
}
.jw-plot .pe.ns {
  background: var(--paper);
  border: 2px solid var(--ink);
}
.jw-plot .fora-e {
  position: absolute;
  top: 4px;
  font-size: var(--t-rot);
}
.jw-plot-eixo {
  position: relative;
  height: 22px;
  font-size: var(--t-rot);
  color: var(--ink-3);
}
.jw-plot-eixo span {
  position: absolute;
  transform: translateX(-50%);
  top: 2px;
}
.jw-res-nota {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.jw-res-nota > div {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}
.jw-res-nota .n {
  font-size: var(--t-sec);
  font-weight: 700;
}
.jw-res-nota .r {
  font-size: var(--t-rot);
  color: var(--ink-3);
  margin-top: 4px;
}
.jw-nrec {
  font-size: var(--t-rot);
  color: var(--ink-3);
  border: 1px dashed var(--d3);
  border-radius: 6px;
  padding: 0 6px;
  margin-left: 6px;
  white-space: nowrap;
}

/* documentos */
.jw-docs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 120px 100px;
  gap: 20px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-rot);
}
.jw-docs li:first-child {
  border-top: 2px solid var(--ink);
}
.jw-docs b {
  font-size: var(--t-corpo);
}
.jw-docs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
}

/* lista de países da ficha */
.jw-plista {
  margin-top: 24px;
  border-top: 2px solid var(--ink);
}
.jw-plista li {
  display: grid;
  grid-template-columns: 52px 160px 170px minmax(0, 1fr) 120px 110px;
  gap: 16px;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-rot);
}
.jw-plista .pt {
  width: 36px;
  height: 36px;
}
.jw-plista .tit {
  color: var(--ink-3);
  font-weight: 700;
  min-height: 44px;
}

/* =================================================================== COMPARAR */
.jw-cmp-cab {
  position: sticky;
  top: var(--jw-linha);
  z-index: 8;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.jw-cmp-g {
  display: grid;
  grid-template-columns: 240px repeat(var(--n, 1), minmax(0, 1fr));
  gap: 0 24px;
}
.jw-cmp-cab .jw-cmp-g {
  padding: 16px 0;
  align-items: end;
}
.jw-cmp-cab .r-nome a {
  font-size: var(--t-sec);
  font-weight: 700;
  text-decoration: none;
}
.jw-cmp-cab .r-inn {
  font-size: var(--t-rot);
  color: var(--ink-3);
}
.jw-cmp-cab .tirar {
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: var(--t-rot);
  color: var(--ink-3);
  text-decoration: underline;
  cursor: pointer;
}
.jw-cmp-grupo {
  font-size: var(--t-rot);
  font-weight: 700;
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--ink);
}
.jw-cmp-l {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.jw-cmp-l .lab {
  margin-top: 0;
}
.jw-cmp-l .v {
  font-size: var(--t-rot);
  min-width: 0;
}
.jw-cmp-l .v.n {
  font-size: var(--t-corpo);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.jw-cmp-l .ev {
  white-space: normal;
}
.jw-ficha-dl a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.jw-esp .larga {
  grid-column: 1 / -1;
}
.jw-cmp-l.igual .v {
  color: var(--ink-3);
}
.jw-cmp.so-dif .jw-cmp-l.igual {
  display: none;
}
.jw-cmp-tl {
  padding: 16px 0 8px;
}
.jw-cmp-tl .lin {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 44px;
}
.jw-cmp-tl .lin b {
  font-size: var(--t-rot);
}

/* =================================================================== SISTEMA */
.jw-esp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.jw-esp .c {
  border-radius: 12px;
}
.jw-marca-esp {
  font-size: var(--t-rot);
  color: var(--ink-3);
  border: 1px dashed var(--d3);
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
}

.jw-h1 {
  font-size: var(--t-titulo);
  font-weight: 700;
  line-height: 1.12;
}
/* rodapé */
.jw-rodape {
  background: var(--field);
  color: var(--line);
  margin-top: 64px;
}
.jw-rodape .jw-in {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: center;
  min-height: 96px;
  font-size: var(--t-rot);
}
.jw-rodape img {
  height: 24px;
  width: auto;
}

/* ---------- 1100 */
@media (max-width: 1100px) {
  .jw-topo nav {
    display: none;
  }
  .jw-topo .jw-menu {
    display: inline-flex;
    align-items: center;
  }
  .jw-lcab,
  .jw-l {
    grid-template-columns:
      52px minmax(160px, 1.3fr) minmax(160px, 1.6fr) minmax(200px, 2fr)
      64px 40px;
  }
  .jw-lcab .ass,
  .jw-l .ass {
    display: none;
  }
  .jw-fr,
  .jw-fcabr {
    grid-template-columns: minmax(160px, 1.3fr) minmax(200px, 1.4fr) 130px;
  }
  .jw-fr .e,
  .jw-fcabr .e {
    display: none;
  }
}
/* ---------- 900: a lista passa a linhas empilhadas */
@media (max-width: 900px) {
  .jw-met {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jw-lcab {
    display: none;
  }
  .jw-l {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
      "sel med num"
      ". ind ind"
      ". mt mt";
    row-gap: 6px;
    padding: 14px 0;
  }
  .jw-l .sel {
    grid-area: sel;
    align-self: start;
  }
  .jw-l .med {
    grid-area: med;
  }
  .jw-l .ind {
    grid-area: ind;
  }
  .jw-l .vis {
    grid-area: mt;
  }
  .jw-l .num {
    grid-area: num;
    align-self: start;
  }
  .jw-l .ass,
  .jw-l .seta,
  .jw-l .extra {
    display: none;
  }
  .jw-l .med a::after {
    inset: 0 0 0 60px;
  }
  .jw-paises-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .jw-fcab {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .jw-factos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jw-factos div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .jw-factos div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .jw-leit li {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "n d" "t t" "a a";
    padding: 12px 0;
    gap: 4px 12px;
  }
  .jw-leit .rot {
    grid-area: n;
  }
  .jw-leit .t {
    grid-area: t;
  }
  .jw-leit .tnum {
    grid-area: d;
  }
  .jw-leit .a {
    grid-area: a;
  }
  .jw-docs li {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 0;
  }
  .jw-docs .f,
  .jw-docs .dt {
    display: none;
  }
  .jw-plista li {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 10px 0;
  }
  .jw-plista li > :nth-child(n + 3) {
    grid-column: 2;
  }
  .jw-plista .tit {
    display: none;
  }
  .jw-res-nota {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .jw-pico thead {
    display: none;
  }
  .jw-pico tr:not(.grupo) {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .jw-pico tr:not(.grupo) td {
    border: 0;
    padding: 0;
  }
  .jw-pico tr:not(.grupo) td:nth-child(n + 3) {
    grid-column: 2;
  }
  .jw-pico tr.grupo th {
    display: block;
    border-bottom: 1px solid var(--ink);
  }
  .jw-fr,
  .jw-fcabr {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .jw-fcabr {
    display: none;
  }
  .jw-fr .s {
    display: none;
  }
  .jw-fr .e {
    display: block;
  }
  /* comparação: rótulo por cima, um valor por relatório lado a lado */
  .jw-cmp-g {
    grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr));
    gap: 4px 16px;
  }
  .jw-cmp-g > .lab {
    grid-column: 1 / -1;
  }
  .jw-cmp-cab .jw-cmp-g > .lab {
    display: none;
  }
  .jw-cmp-cab .r-nome a {
    font-size: var(--t-corpo);
  }
  .jw-cmp-tl .lin {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .jw-esp {
    grid-template-columns: 1fr;
  }
}
/* ---------- telemóvel */
@media (max-width: 600px) {
  .jw-topo img {
    height: 22px;
  }
  .jw-entrada .jw-in {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .jw-met {
    gap: 20px 16px;
    margin-top: 28px;
  }
  .jw-met .n.grande {
    font-size: var(--t-num);
  }
  .jw-sec {
    padding-top: 48px;
  }
  .jw-campo {
    width: 100%;
  }
  .jw-cab-acc {
    margin-left: 0;
    width: 100%;
  }
  .jw-seg {
    width: 100%;
    flex-wrap: wrap;
  }
  .jw-seg button {
    flex: 1 1 auto;
  }
  .jw-paises {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 4px;
    width: 100%;
  }
  .jw-paises .pt {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    min-height: 38px;
  }
  .jw-factos .n {
    font-size: var(--t-sec);
  }
  .jw-tl .lb.cima .x,
  .jw-tl .lb.baixo .x {
    display: none;
  }
  .jw-bandeja .jw-in {
    gap: 8px;
  }
  .jw-bandeja .limpar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jw-bandeja {
    transition: none;
  }
}

/* =================================================================== v02 · 26-11-2026 (decisões do César) */
/* linhas soltas do fim da raiz: leituras (na Research) e as funcionalidades AI-augmented (a /access/) */
.jw-fim {
  padding-top: 40px;
  padding-bottom: 16px;
}
.jw-linha {
  font-size: var(--t-corpo);
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.jw-linha + .jw-linha {
  border-top: 1px solid var(--line);
}
/* segunda camada: o texto técnico por baixo do simples */
.jw-2c,
.jw-dd {
  display: block;
  font-size: var(--t-rot);
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 2px;
}
.jw-am {
  display: block;
  font-size: var(--t-rot);
  font-weight: 400;
  color: var(--ink-3);
}

/* ---------- mapa da Europa (Natural Earth 1:110m), pintado pelo estado */
.jw-mapa-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
.jw-mapa {
  width: 100%;
  height: auto;
  display: block;
}
.jw-mapa .m-ctx {
  fill: var(--line-soft);
  stroke: var(--paper);
  stroke-width: 1;
}
.jw-mapa .m-p,
.jw-mapa .m-mk circle {
  stroke: var(--paper);
  stroke-width: 1;
  cursor: pointer;
}
.jw-mapa .m-p:focus-visible,
.jw-mapa .m-mk:focus-visible circle {
  outline: none;
  stroke: var(--acc-1);
  stroke-width: 3;
}
.jw-mapa .m-sel,
.jw-mapa .m-sel circle {
  stroke: var(--ink);
  stroke-width: 3;
}
.jw-mapa .m-mk text {
  font-size: var(--t-sec);
  font-weight: 700;
  fill: var(--ink-2);
}
/* estados: a mesma linguagem da legenda (cheio, tom, claro, tracejado) */
.jw-mapa .s-dec,
.jw-mapa .s-dec circle,
.jw-mapa .m-n3,
.jw-mapa .m-n3 circle {
  fill: var(--ink);
}
.jw-mapa .s-ava,
.jw-mapa .s-ava circle,
.jw-mapa .m-n1,
.jw-mapa .m-n1 circle {
  fill: var(--d3);
}
.jw-mapa .s-sem,
.jw-mapa .s-sem circle {
  fill: var(--d5);
}
.jw-mapa .s-nao,
.jw-mapa .s-nao circle,
.jw-mapa .m-n0,
.jw-mapa .m-n0 circle {
  fill: #fff;
  stroke: var(--d4);
}
.jw-mapa .s-nao,
.jw-mapa .s-nao circle {
  stroke-dasharray: 3 2;
}
.jw-mapa .m-ap {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}
.jw-mleg {
  display: grid;
  gap: 8px;
  font-size: var(--t-rot);
}
.jw-mleg li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.jw-mleg i {
  width: 18px;
  height: 14px;
  border-radius: 0; /* amostra de legenda: parte do gráfico, cantos rectos (BRAND_KIT) */
  flex: none;
}
.jw-mleg .s-dec,
.jw-mleg .m-n3 {
  background: var(--ink);
}
.jw-mleg .s-ava,
.jw-mleg .m-n1 {
  background: var(--d3);
}
.jw-mleg .s-sem {
  background: var(--d5);
}
.jw-mleg .s-nao {
  background: #fff;
  border: 1px dashed var(--d4);
}
.jw-mleg .m-n0 {
  background: #fff;
  border: 1px solid var(--d4);
}
.jw-mleg .m-ctx-l {
  background: var(--line-soft);
}
.jw-mleg .m-ap-l {
  background: var(--ink);
  box-shadow:
    inset 0 0 0 3px var(--ink),
    inset 0 0 0 5px #fff;
}
/* amostra de cor nas listas */
.sw {
  width: 18px;
  height: 14px;
  border-radius: 0;
  display: inline-block;
}
.sw.s-dec,
.sw.m-n3 {
  background: var(--ink);
}
.sw.s-ava,
.sw.m-n1 {
  background: var(--d3);
}
.sw.s-sem {
  background: var(--d5);
}
.sw.s-nao {
  background: #fff;
  border: 1px dashed var(--d4);
}
.sw.m-n0 {
  background: #fff;
  border: 1px solid var(--d4);
}
.jw-psel {
  margin-top: 28px;
}
.jw-ph {
  font-size: var(--t-sec);
  font-weight: 700;
}
.jw-plista-c li {
  grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.4fr);
}
.jw-plista-f li {
  grid-template-columns: 28px 150px 170px minmax(0, 1fr) 110px 150px 80px;
}
.jw-plista-f li.ativo {
  background: #fff;
}
/* raiz: no ecrã largo escolhe-se no mapa; a lista de países só aparece no telemóvel */
.jw-plista-m {
  display: none;
}
.jw-pbtn {
  display: grid;
  grid-template-columns: 28px 140px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: var(--font);
  font-size: var(--t-rot);
  color: var(--ink);
  cursor: pointer;
}
.jw-plista-m li {
  display: block;
  min-height: 0;
}

/* ---------- ficha: Scope e Findings qualitativos */
.jw-factos-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}
.jw-fps {
  margin-top: 24px;
  border-top: 2px solid var(--ink);
}
.jw-fp {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.jw-fp .pid {
  font-size: var(--t-sec);
  font-weight: 700;
  margin: 0;
}
.jw-fp.vazio {
  align-items: center;
  padding: 14px 0;
}
.jw-fp .lab {
  font-size: var(--t-rot);
  font-weight: 700;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.jw-fp .lab + * {
  margin-bottom: 18px;
}
.jw-trials li,
.jw-dir li,
.jw-det li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-rot);
}
.jw-dir li {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}
.jw-dir .mais {
  display: block;
  color: var(--ink-3);
}
.jw-trials a,
.jw-det a {
  white-space: nowrap;
}
.jw-mais summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: var(--t-rot);
  font-weight: 700;
  cursor: pointer;
}
.jw-det li {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}
.jw-det .jw-dd {
  grid-column: 1 / -1;
}
/* E-139: a ressalva dos avaliadores, uma vez por PICO quando se repete */
.jw-ress {
  font-size: var(--t-rot);
  color: var(--ink-2);
  margin: 0 0 10px;
}
/* um grupo de estimativas por ressalva; entre grupos, espaço e um filete, para se ver o que cada uma cobre */
.jw-grupo + .jw-grupo {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- comparação aberta sem ?c=: escolher até três */
.jw-escolha {
  margin-top: 16px;
  border-top: 2px solid var(--ink);
}
.jw-escolha li {
  border-bottom: 1px solid var(--line);
}
.jw-escolha label {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-height: 56px;
  font-size: var(--t-corpo);
  cursor: pointer;
}
.jw-escolha input {
  width: 18px;
  height: 18px;
  justify-self: center;
}

@media (max-width: 900px) {
  .jw-mapa-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .jw-plista-m {
    display: block;
  }
  .jw-plista-f li,
  .jw-plista-c li {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .jw-plista-f li > :nth-child(n + 3),
  .jw-plista-c li > :nth-child(n + 3) {
    grid-column: 2;
  }
  .jw-factos-3 {
    grid-template-columns: 1fr;
  }
  .jw-factos.jw-factos-3 div,
  .jw-factos.jw-factos-3 div + div {
    padding-left: 0;
    border-left: 0;
  }
  .jw-factos.jw-factos-3 div + div {
    border-top: 1px solid var(--line);
  }
  .jw-fp {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .jw-trials li,
  .jw-dir li,
  .jw-det li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .jw-pbtn {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  /* no telemóvel, as células vazias («—») não ocupam linha */
  .jw-plista-f .vz {
    display: none;
  }
  .jw-pbtn > :nth-child(3) {
    grid-column: 2;
    color: var(--ink-3);
  }
}

/* =====================================================================
   v03 (26-11-2026) · bloco Countries da raiz: três provas do mapa (P1, P2, P3)
   Escala: 0 % em papel com contorno; «em avaliação» a cinzento claro (P1, P2) ou tracejado (P3);
   as classes vão do claro à tinta. Só tokens; sem sombras; traço fino que não escala com o mapa.
   ===================================================================== */
.jw-mapa-wrap.jw-v3 {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
}
.jw-mapa .m-ctx {
  fill: var(--cream);
  stroke: none;
}
.jw-plista-c a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.jw-mapa .m-p,
.jw-mapa .m-mk circle {
  vector-effect: non-scaling-stroke;
  stroke: var(--paper);
  stroke-width: 1;
}
/* classes da percentagem (P1, P2) e estados por relatório (as três), com a mesma lógica de tom */
.jw-mapa .b-0,
.jw-mapa .b-0 circle,
.jw-mapa .s-sem,
.jw-mapa .s-sem circle,
.jw-mapa .s-nao,
.jw-mapa .s-nao circle {
  fill: var(--paper);
  stroke: var(--d4);
}
.jw-mapa .s-nao,
.jw-mapa .s-nao circle {
  stroke-dasharray: 3 2;
}
.jw-mapa .b-ua,
.jw-mapa .b-ua circle,
.jw-mapa .s-ava,
.jw-mapa .s-ava circle {
  fill: var(--d5);
}
.jw-mapa .b-ua-h,
.jw-mapa .b-ua-h circle,
.jw-mapa .s-ava-h,
.jw-mapa .s-ava-h circle {
  stroke: var(--d3);
}
.jw-mapa .b-1,
.jw-mapa .b-1 circle {
  fill: var(--d4);
}
.jw-mapa .b-2,
.jw-mapa .b-2 circle {
  fill: var(--d3);
}
.jw-mapa .b-3,
.jw-mapa .b-3 circle {
  fill: var(--d2);
}
.jw-mapa .b-4,
.jw-mapa .b-4 circle,
.jw-mapa .s-dec,
.jw-mapa .s-dec circle {
  fill: var(--d1);
}
.jw-mapa .b-r circle {
  fill: inherit;
}
.jw-mapa .m-hl,
.jw-mapa .m-hl circle {
  stroke: var(--ink);
  stroke-width: 2;
}
.jw-mapa .m-sel,
.jw-mapa .m-sel circle {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.jw-mapa .m-fora {
  opacity: 0.25;
}
.jw-mapa .m-mk text {
  fill: var(--ink-3);
  font-weight: 400;
}
/* amostras */
.sw.b-0,
.sw.s-sem {
  background: var(--paper);
  border: 1px solid var(--d4);
}
.sw.s-nao {
  background: var(--paper);
  border: 1px dashed var(--d4);
}
.sw.b-ua,
.sw.s-ava {
  background: var(--d5);
  border: 0;
}
.sw.b-1 {
  background: var(--d4);
}
.sw.b-2 {
  background: var(--d3);
}
.sw.b-3 {
  background: var(--d2);
}
.sw.b-4,
.sw.s-dec {
  background: var(--d1);
}
.sw.m-ctx-l {
  background: var(--cream);
  border: 1px solid var(--line-soft);
}
.sw.b-ua-h,
.sw.s-ava-h {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--d3);
}
.sw.b-ua-h::before,
.sw.b-ua-h::after,
.sw.s-ava-h::before,
.sw.s-ava-h::after {
  content: "";
  position: absolute;
  top: -50%;
  width: 1.5px;
  height: 200%;
  background: var(--ink-3);
  transform: rotate(45deg);
  left: 3px;
}
.sw.b-ua-h::after,
.sw.s-ava-h::after {
  left: 10px;
}
.sw {
  flex: none;
  box-sizing: border-box;
}

/* leitura ao passar, por cima do mapa */
.jw-leitura {
  min-height: 22px;
  margin: 0 0 8px;
  font-size: var(--t-rot);
  color: var(--ink-3);
}
.jw-leitura b {
  color: var(--ink);
}
.jw-cap {
  margin: 0 0 12px;
  font-size: var(--t-rot);
  font-weight: 700;
  color: var(--ink);
}
.jw-fora {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: var(--t-eixo);
  color: var(--ink-3);
}
.jw-den {
  margin: 4px 0 8px;
  font-size: var(--t-rot);
  font-weight: 700;
  color: var(--ink-2);
}
.jw-plista-c li.ativo {
  background: var(--line-soft);
}

/* ---------- selector de relatório: campo com procura (combobox) */
.jw-cb {
  position: relative;
  width: 420px;
  max-width: 100%;
  margin-top: 8px;
}
.jw-cb-campo {
  position: relative;
}
.jw-cb .jw-campo {
  width: 100%;
  padding-right: 48px;
  font-weight: 700;
}
.jw-cb .jw-campo::placeholder {
  font-weight: 400;
  color: var(--muted);
}
.jw-cb-abre {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}
.jw-cb-abre svg {
  width: 12px;
  height: 12px;
}
.jw-cb-lista {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: min(380px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 12px;
}
.jw-cb-lista [role="option"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 4px 14px 4px 16px;
  border-left: 2px solid transparent;
  cursor: pointer;
  font-size: var(--t-rot);
}
.jw-cb-lista [role="option"] span {
  font-size: var(--t-eixo);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jw-cb-lista [role="option"]:hover,
.jw-cb-lista [role="option"].ativo {
  background: var(--line-soft);
}
.jw-cb-lista [role="option"][aria-selected="true"] {
  border-left-color: var(--ink);
}
.jw-cb-lista .grp {
  margin-top: 4px;
  padding: 10px 16px 4px;
  border-top: 1px solid var(--line);
  font-size: var(--t-eixo);
  font-weight: 700;
  color: var(--ink-3);
}
.jw-cb-lista .vazio {
  padding: 12px 16px;
  font-size: var(--t-rot);
  color: var(--ink-3);
}

/* ---------- P1: legenda-histograma (uma barra fina por classe, com o n.º de países) */
.jw-hist {
  border-top: 1px solid var(--ink);
}
.jw-hb {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(48px, 120px) 28px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: none;
  text-align: left;
  font-family: var(--font);
  font-size: var(--t-rot);
  color: var(--ink);
  cursor: pointer;
}
.jw-hb[aria-pressed="true"] .t {
  font-weight: 700;
}
.jw-hb[aria-pressed="true"] {
  border-bottom-color: var(--ink);
}
.jw-hb:disabled {
  cursor: default;
  color: var(--muted);
}
.jw-hb .br {
  display: block;
  height: 4px;
  background: var(--line-soft);
}
.jw-hb .br span {
  display: block;
  height: 100%;
  background: var(--ink-2);
}
.jw-hb .k {
  text-align: right;
}

/* ---------- P2: lista ordenada dos países com actividade */
.jw-rank {
  border-top: 1px solid var(--ink);
}
.jw-rank + .jw-resto {
  margin-top: 0;
}
#rk-resto {
  border-top: 0;
}
.jw-rk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 150px) 40px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: none;
  text-align: left;
  font-family: var(--font);
  font-size: var(--t-rot);
  color: var(--ink);
  cursor: pointer;
}
.jw-rk b {
  font-weight: 400;
}
.jw-rk[aria-pressed="true"] b {
  font-weight: 700;
}
.jw-rk .k {
  text-align: right;
}
.jw-rk .st {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
}
.jw-emp {
  display: flex;
  gap: 2px;
  height: 8px;
}
.jw-emp i {
  flex: 1;
  box-sizing: border-box;
}
.jw-emp .d {
  background: var(--d1);
}
.jw-emp .a {
  background: var(--d5);
}
.jw-emp .z {
  border: 1px solid var(--line);
}
.jw-resto {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-family: var(--font);
  font-size: var(--t-rot);
  color: var(--ink-3);
  cursor: pointer;
}
.jw-resto::before {
  content: "+";
  width: 12px;
  color: var(--ink);
}
.jw-resto[aria-expanded="true"]::before {
  content: "−";
}
.jw-chave {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: var(--t-eixo);
  color: var(--ink-3);
}
.jw-chave li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.jw-chave .sw {
  width: 14px;
  height: 10px;
  border-radius: 0;
}

/* ---------- P3: tira-histograma de pontos */
.jw-tira {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}
.jw-tira .ax,
.jw-tira line {
  stroke: var(--ink-3);
  stroke-width: 1;
}
.jw-tira text {
  font-size: var(--t-eixo);
  fill: var(--ink-3);
  font-family: var(--font);
}
.jw-tira circle {
  stroke: var(--paper);
  stroke-width: 0.75;
}
.jw-tira circle.z {
  fill: var(--paper);
  stroke: var(--d4);
  stroke-width: 1;
}
.jw-tira circle.m-hl {
  stroke: var(--ink);
  stroke-width: 2;
}
.jw-P3 .jw-chave {
  margin-top: 10px;
}
.jw-pontos {
  border-top: 1px solid var(--ink);
}
.jw-pontos li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-rot);
}
.jw-pontos .pp {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 6px 0;
}
.jw-pontos .pp .sw {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.jw-pontos .pp .sw.m-hl {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.jw-pontos .pp .sw.s-ava-h::before {
  left: 2px;
}
.jw-pontos .pp .sw.s-ava-h::after {
  left: 6px;
}

@media (max-width: 900px) {
  .jw-mapa-wrap.jw-v3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .jw-cb {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jw-cb-lista {
    scroll-behavior: auto;
  }
}
.jw-tira text.cod {
  fill: var(--ink-2);
}
.jw-tira {
  max-width: none;
}
.jw-v3 .jw-plista-c li {
  align-items: start;
}
.jw-v3 .jw-plista-c li > :nth-child(3) {
  padding-top: 12px;
}
.jw-v3 .jw-plista-c li > .sw {
  margin-top: 15px;
}
.jw-rk:has(.st) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}

/* ---------- mapa da Europa (1:50m, cor e espigão) e ficha: v04, 26-11 */
.jca-rubrica {
  --jw4-0: var(--line);
  --jw4-1: var(--d5);
  --jw4-2: var(--d4);
  --jw4-3: var(--d3);
  --jw4-4: var(--d2);
  --jw4-pop: var(--acc-1);
  --jw4-nao: var(--d1);
}
.jw-sel4 {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.jw-sel4 .jw-cb {
  width: 320px;
  margin-top: 0;
}
.jw-amostra {
  display: flex;
  gap: 8px;
}
.jw-am-b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  font-family: var(--font);
  font-size: var(--t-rot);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.jw-am-b svg {
  width: 12px;
  height: 12px;
  visibility: hidden;
}
.jw-am-b[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.jw-am-b[aria-pressed="true"] svg {
  visibility: visible;
}
.jw-am-b[aria-disabled="true"] {
  cursor: default;
}
.jw-am-b:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.jw-mapa-wrap.jw-v4 {
  grid-template-columns: 640px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  margin-top: 24px;
}
.jw-m4 {
  width: 100%;
  height: auto;
  display: block;
}
.jw-m4 .m-grat {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 0.6;
}
.jw-m4 .m-ctx {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 0.5;
  stroke-linejoin: round;
}
.jw-m4 .m-p {
  stroke: var(--paper);
  stroke-width: 0.9;
  stroke-linejoin: round;
  vector-effect: none;
  cursor: pointer;
}
.jw-m4 .m-aresta {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.5;
  stroke-width: 0.35;
  stroke-linejoin: round;
  pointer-events: none;
}
.jw-m4 .m-anel {
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 0.8;
  cursor: pointer;
}
.jw-m4 .b-0 {
  fill: var(--jw4-0);
}
.jw-m4 .b-1 {
  fill: var(--jw4-1);
}
.jw-m4 .b-2 {
  fill: var(--jw4-2);
}
.jw-m4 .b-3 {
  fill: var(--jw4-3);
}
.jw-m4 .b-4 {
  fill: var(--jw4-4);
}
/* .b-ua-h: o tracejado vai no atributo style do SVG (o jca.js), porque o build não aceita url() numa cor */
.jw-m4 .b-nd {
  fill: var(--paper);
  stroke: var(--d4);
  stroke-dasharray: 3 2;
}
.jw-m4 .tr-f {
  fill: var(--jw4-0);
}
.jw-m4 .tr-l {
  stroke: var(--d3);
  stroke-width: 1;
}
.jw-m4 .m-hl {
  stroke: var(--ink);
  stroke-width: 2;
}
.jw-m4 .m-sel {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.jw-m4 .m-fora {
  opacity: 0.25;
}
.jw-m4 .m-cima {
  pointer-events: none;
}
.sp-halo {
  fill: var(--paper);
}
.sp-sem {
  fill: var(--acc-1);
  fill-opacity: 0.22;
}
.sp-cond {
  fill: var(--acc-1);
  fill-opacity: 0.55;
}
.sp-pop {
  fill: var(--jw4-pop);
}
.sp-nao {
  fill: var(--jw4-nao);
}
.sp-ponto {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 1;
}
/* amostras da legenda */
.sw.b-0 {
  background: var(--jw4-0);
  border: 0;
}
.sw.b-1 {
  background: var(--jw4-1);
}
.sw.b-2 {
  background: var(--jw4-2);
}
.sw.b-3 {
  background: var(--jw4-3);
}
.sw.b-4 {
  background: var(--jw4-4);
}
.sw.b-nd {
  background: var(--paper);
  border: 1px dashed var(--d4);
}
.sw.b-ua-h {
  background: var(--jw4-0);
  border: 0;
}
.sw.b-ua-h::before,
.sw.b-ua-h::after {
  background: var(--d3);
  width: 1px;
}
.sw.sp-sem {
  background: var(--acc-1);
  opacity: 0.22;
}
.sw.sp-cond {
  background: var(--acc-1);
  opacity: 0.55;
}
.sw.sp-pop {
  background: var(--jw4-pop);
}
.sw.sp-nao {
  background: var(--jw4-nao);
}
.jw-v4 .jw-hb .sw,
.jw-dist .sw,
.jw-mleg4 .sw,
.jw-so-tel .st .sw {
  width: 16px;
  height: 16px;
  display: inline-block;
}
.jw-v4 .jw-cap {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin: 0;
}
.jw-v4 .jw-hist {
  border-top: 0;
}
.jw-v4 .jw-cap-2 {
  margin-top: 28px;
}
.jw-sp-leg {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-top: 16px;
}
.jw-sp-leg ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: var(--t-rot);
}
.jw-sp-leg li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.jw-sp-leg li .sw {
  width: 12px;
  height: 12px;
  display: inline-block;
}
.jw-sp-nota {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  font-size: var(--t-rot);
  color: var(--ink-3);
}
.jw-sp-nada {
  margin-top: 16px;
  font-size: var(--t-rot);
  color: var(--ink-2);
  max-width: 44ch;
}
.jw-v4 .jw-psel:not(:empty) {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.jw-dist {
  margin: 8px 0 0;
  font-size: var(--t-rot);
}
.jw-dist li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.jw-dist li .tnum {
  text-align: right;
}
.jw-plab {
  margin-top: 16px;
}
.jw-v4 .jw-pdec li,
.jw-so-tel .jw-pdec li {
  grid-template-columns: 12px minmax(0, 1fr) minmax(0, 1.4fr);
}
.jw-so-tel {
  display: none;
}
@media (max-width: 1200px) and (min-width: 701px) {
  .jw-mapa-wrap.jw-v4 {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
  }
}
/* telemóvel: a lista em vez do mapa (decisão A.7) */
@media (max-width: 700px) {
  .jw-mapa-wrap.jw-v4 {
    display: none;
  }
  .jw-so-tel {
    display: block;
    margin-top: 24px;
  }
  .jw-sel4 .jw-cb {
    width: 100%;
  }
  .jw-amostra {
    width: 100%;
  }
  .jw-am-b {
    flex: 1;
    justify-content: center;
  }
  .jw-so-tel .jw-pdec li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 10px 0;
  }
  .jw-so-tel .jw-pdec li > :nth-child(3) {
    grid-column: 2;
  }
  .jw-so-tel .jw-pdec li > .sw {
    margin-top: 4px;
  }
}
.jw-so-tel .jw-cap {
  padding-bottom: 12px;
  margin: 0;
  font-weight: 700;
  font-size: var(--t-rot);
}
.jw-so-tel .jw-rank {
  border-top: 1px solid var(--ink);
}
.jw-so-tel .jw-rk {
  grid-template-columns: minmax(0, 1fr) minmax(70px, 120px) 40px;
  row-gap: 6px;
  padding: 10px 0;
}
.jw-pbar {
  display: block;
  height: 8px;
  background: var(--line-soft);
}
.jw-pbar span {
  display: block;
  height: 100%;
}
.jw-pbar .b-1 {
  background: var(--jw4-1);
}
.jw-pbar .b-2 {
  background: var(--jw4-2);
}
.jw-pbar .b-3 {
  background: var(--jw4-3);
}
.jw-pbar .b-4 {
  background: var(--jw4-4);
}
.jw-dist-m {
  grid-column: 1 / -1;
  display: flex;
  gap: 1px;
  height: 6px;
}
.jw-dist-m i {
  display: block;
}
.jw-dist-m .sp-sem {
  background: var(--acc-1);
  opacity: 0.22;
}
.jw-dist-m .sp-cond {
  background: var(--acc-1);
  opacity: 0.55;
}
.jw-dist-m .sp-pop {
  background: var(--jw4-pop);
}
.jw-dist-m .sp-nao {
  background: var(--jw4-nao);
}
.jw-psel-m {
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
}

/* ---------- ficha */
.jw-mapa-wrap.jw-v4f {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.jw-mleg4 li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  font-size: var(--t-rot);
}
.jw-pf-outro:not(:empty) {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-size: var(--t-rot);
}
.jw-pf-outro p {
  margin: 4px 0;
}
.jw-pf-outro a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.jw-mais-p summary,
.jw-mais-s summary {
  font-size: var(--t-rot);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.jw-pico4 tbody.pg {
  border-top: 1px solid var(--ink);
}
.jw-pico4 th.pid {
  vertical-align: top;
  text-align: left;
  font-weight: 700;
  padding-top: 12px;
}
.jw-pico4 td.lin {
  color: var(--ink-3);
  white-space: nowrap;
}
.jw-pico4 tr.pcab td.pn {
  color: var(--ink-3);
  font-size: var(--t-rot);
  padding-top: 12px;
}
.jw-pico4 td.pop {
  color: var(--ink-2);
}
.jw-rob-l {
  margin-top: 4px;
}
.jw-rob-e {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.jw-rob-e > p {
  margin: 0;
}
.jw-rob > li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 120px minmax(0, 2fr);
  gap: 4px 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-rot);
}
.jw-rob > li > details {
  grid-column: 2 / -1;
}
.jw-rob q {
  color: var(--ink-3);
}
.rob {
  font-weight: 700;
}
.rob-high {
  color: var(--acc-1);
}
.jw-dom summary {
  font-size: var(--t-rot);
  cursor: pointer;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.jw-dom ul li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 700px) {
  .jw-mapa-wrap.jw-v4f {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .jw-rob > li {
    grid-template-columns: 1fr;
  }
  .jw-rob > li > details {
    grid-column: 1;
  }
}

/* ---------- grelha do risco de viés e detalhe ao clique: v05, 26-11 */
.jw-robg {
  margin-top: 8px;
}
.jw-robt-w {
  overflow-x: auto;
}
.jw-robt {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--t-rot);
}
.jw-robt th,
.jw-robt td {
  text-align: left;
  padding: 0 12px 0 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.jw-robt thead th {
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}
.jw-robt tbody th {
  font-weight: 400;
  color: var(--ink-2);
  min-width: 180px;
}
.jw-robt tr.instr th,
.jw-robt tr.instr td {
  color: var(--ink-3);
  padding: 10px 12px 10px 0;
  border-bottom: 0;
}
.rob-c {
  min-height: 40px;
  padding: 0 10px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  font-family: var(--font);
  font-size: var(--t-rot);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.rob-c:hover {
  border-color: var(--line);
}
.rob-c[aria-expanded="true"] {
  border-color: var(--ink);
  background: var(--paper);
}
.rob-c:focus-visible,
.jw-dom-b:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.rob-high,
.rob-serious,
.rob-critical {
  color: var(--acc-1);
}
.rob-c.rob-high,
.rob-c.rob-serious,
.rob-c.rob-critical {
  color: var(--acc-1);
}
.rob-c.rob-not-applicable,
.rob-c.rob-not-reported {
  font-weight: 400;
  color: var(--ink-3);
}
.jw-robd:not(:empty) {
  margin-top: 12px;
  padding: 12px 16px;
  border-left: 2px solid var(--ink);
  background: var(--paper);
  font-size: var(--t-rot);
}
.jw-robd p {
  margin: 4px 0;
}
.jw-pend {
  color: var(--muted);
  font-style: italic;
}
.jw-dom-b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: var(--t-rot);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.jw-dom-b::before {
  content: "+";
  width: 12px;
}
.jw-dom-b[aria-expanded="true"]::before {
  content: "−";
}
.jw-dom-l li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.jw-dom-l .rob-high {
  font-weight: 700;
}
.jw-robm {
  display: none;
}
.jw-robm-e {
  padding: 8px 0;
  border-top: 1px solid var(--ink);
}
.jw-robm-e > p {
  margin: 0 0 4px;
}
.jw-robm-e .rob-c {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.jw-robm-e .rob-c span:first-child {
  font-weight: 400;
  color: var(--ink-2);
}
@media (max-width: 700px) {
  .jw-robt-w {
    display: none;
  }
  .jw-robm {
    display: block;
  }
}

/* ---------- E-136 (26-11): a razão do relatório por domínio, no detalhe da célula e no segundo clique */
.jw-rob-r li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.jw-rob-r li .jw-dd,
.jw-dom-l li .jw-dd {
  display: block;
  margin-top: 2px;
}
.jw-dom-l li .jw-dd {
  grid-column: 1 / -1;
}

/* ---------- rodapé da rubrica (o build injecta-o): o mesmo bloco do site (.ecra, .moldura, .perimetro, .rodape),
   sem a secção de contacto longa (verificação cega de 26-11). Por cima, o ritmo do rodapé do site (40 a 64 px
   entre a última linha e o contacto; César, 26-11), não os 104 px de abertura de um ecrã */
.jca-pe > .moldura {
  padding-top: 40px;
}
.jca-pe-contacto {
  margin-top: 0;
  font-size: var(--t-rot);
  font-weight: 700;
}
@media (max-width: 900px) {
  .jca-pe-contacto a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ---------- verificação cega de 26-11 */
/* o filtro esconde linhas com [hidden]; o display das linhas não pode passar por cima */
.jca-rubrica [hidden] {
  display: none !important;
}
/* contraste AA (era --muted, 4,07:1) */
.jw-hb:disabled {
  color: var(--ink-3);
}
/* o ícone de ligação externa encosta ao texto, sem espaço antes do «)» */
.jw-ext {
  margin-left: 3px;
}
/* ficha: abaixo de 768 px, a lista dos outros países no lugar do mapa (o mapa não se consegue tocar) */
.jw-pf-tel {
  display: none;
}
.jw-pf-b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: none;
  text-align: left;
  font-family: var(--font);
  font-size: var(--t-rot);
  color: var(--ink);
  cursor: pointer;
}
.jw-pf-b b {
  font-weight: 400;
}
.jw-pf-b span {
  color: var(--ink-3);
}
.jw-pf-o {
  padding: 8px 0 12px;
  font-size: var(--t-rot);
}
@media (max-width: 767px) {
  .jw-mapa-wrap.jw-v4f {
    display: none;
  }
  .jw-pf-tel {
    display: block;
    margin-top: 8px;
    border-top: 1px solid var(--ink);
  }
}
/* alvos de toque de 44 px no telemóvel */
@media (max-width: 700px) {
  .jw-robm-e .rob-c {
    min-height: 44px;
  }
  .jw-l .med a,
  .jw-trials a,
  .jw-plista-f a,
  .jw-migalhas a,
  .jw-pf-o a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .jw-escolha label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
  }
  .jw-escolha input {
    width: 24px;
    height: 24px;
  }
}
