/* ============================================================================
   style.css — ÚNICO arquivo de estilos do app ILPF.
   Cada página tem uma classe no <body> e suas regras ficam restritas a ela:
     body.pg-mapa         /mapa         (visualizador de ILP)
     body.pg-login        /             (tela de entrada)
     body.pg-painel       /painel       (cartões das aplicações)
     body.pg-doc          /doc          (apresentação interativa)
     body.pg-documentacao /documentacao (site do projeto)
     body.pg-metodologia  /documentacao/metodologia_temp_cnn
   O assistente (#ass-*) é global. Assim as páginas não colidem entre si e o painel pode
   carregar outra página dentro dele (mesma URL) apenas trocando a classe do <body>.
   Gerado a partir dos estilos antigos (cópias em datasets/documentacao/_originais_antes_do_css_unico).
   ============================================================================ */
/* ═══ Botão "voltar ao painel" (aplicações incorporadas no painel) — global ═══ */
html body button.voltar-painel{position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:14px!important;transform:translateX(-50%)!important;
  z-index:3000!important;width:auto!important;height:auto!important;margin:0!important;padding:8px 14px!important;border:0!important;border-radius:20px!important;cursor:pointer;
  font:700 .8rem/1 "Nunito",system-ui,sans-serif!important;letter-spacing:.06em;color:#fff!important;background:rgba(6,82,39,.94)!important;box-shadow:0 4px 14px rgba(0,0,0,.35)!important}
html body button.voltar-painel:hover{background:#0e8a42!important}
html body button.voltar-painel:focus-visible{outline:3px solid #9fca91;outline-offset:2px}

/* ═══ mapa.css — escopo body.pg-mapa ═══ */
html:has(body.pg-mapa) {
  color-scheme: dark;          /* deixa barras de rolagem, selects e campos nativos no escuro */
  --bg: #0a0a09;
  --surface: #151514;
  --surface-2: #232320;        /* botões secundários e realces sobre o preto */
  --ink: #f2f1ec;
  --ink-2: #a9a7a0;
  --line: #2c2b28;
  --accent: #2f8f27;
  --accent-ink: #ffffff;
  --ok: #3aa05f;
  --neutro: #7c7a74;
  --barra: #55534b;
}
/* Tema preto fixo: a aparência não acompanha mais o claro/escuro do sistema. */
body.pg-mapa * { box-sizing: border-box; }
html:has(body.pg-mapa), body.pg-mapa { height: 100%; margin: 0; }
html:has(body.pg-mapa) { -webkit-text-size-adjust: 100%; }   /* o celular deitado não aumenta a fonte sozinho */
body.pg-mapa {
  display: grid;
  grid-template-columns: minmax(340px, 30%) 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.pg-mapa .cabecalho {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
}
body.pg-mapa .cabecalho .logos { display: flex; align-items: center; gap: 16px; flex-shrink: 0;width:20% ; }
body.pg-mapa .cabecalho .logos img { display: block; height: 44px; width: auto; }
body.pg-mapa .cabecalho .logos-dir { justify-content: flex-end; margin-left: auto; }   /* logo do LAPIG alinhado à direita */
body.pg-mapa .cabecalho .logos-dir img { filter: brightness(0) invert(1); }   /* o PNG do LAPIG é preto: vira branco no tema escuro */
body.pg-mapa .cabecalho .titulos { width: 60%; }
body.pg-mapa .cabecalho h1 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
body.pg-mapa .cabecalho p { margin: 2px 0 0; font-size: .85rem; color: var(--ink-2); }
body.pg-mapa .painel {
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 28px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
body.pg-mapa h1 { margin: 0 0 4px; font-size: 1.35rem; }
body.pg-mapa .sub { margin: 0 0 18px; color: var(--ink-2); }
body.pg-mapa .campo { margin-bottom: 16px; }
body.pg-mapa label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
body.pg-mapa select, body.pg-mapa input, body.pg-mapa textarea {
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
body.pg-mapa .dica { margin: 6px 0 0; font-size: .82rem; color: var(--ink-2); }
body.pg-mapa .modo { display: flex; gap: 16px; margin-bottom: 12px; }
body.pg-mapa .modo label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; color: var(--ink); cursor: pointer; }
body.pg-mapa .modo input { width: auto; accent-color: var(--accent); }
body.pg-mapa .dois { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.pg-mapa .tabela-safras { width: 100%; border-collapse: collapse; font-size: .85rem; }
body.pg-mapa .tabela-safras th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 4px 4px 6px; }
body.pg-mapa .tabela-safras td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
body.pg-mapa .tabela-safras .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
body.pg-mapa .tabela-safras .barra { min-width: 50px; }
body.pg-mapa .tabela-safras .ilp-sim { color: var(--accent); font-weight: 700; }
body.pg-mapa .tabela-safras .erro-linha { color: var(--ink-2); font-style: italic; }
body.pg-mapa .grafico.longo { height: 220px; }
body.pg-mapa a { color: var(--accent); }
body.pg-mapa code { font-size: .78rem; }
body.pg-mapa .coords .linha { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.pg-mapa .coords button { grid-column: 1 / -1; }
body.pg-mapa button {
  padding: 9px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
body.pg-mapa button:hover { filter: brightness(.95); }

body.pg-mapa .linha-busca { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
body.pg-mapa .resultados-busca { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-height: 260px; overflow-y: auto; }
body.pg-mapa .resultados-busca h3 { margin: 0; padding: 6px 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--bg); }
body.pg-mapa .resultados-busca .item {
  display: block; width: 100%; text-align: left; padding: 8px 10px;
  color: var(--ink); background: var(--surface); border: 0; border-top: 1px solid var(--line);
  border-radius: 0; font-weight: 400; cursor: pointer;
}
body.pg-mapa .resultados-busca .item:hover, body.pg-mapa .resultados-busca .item:focus { background: var(--bg); filter: none; }
body.pg-mapa .resultados-busca .item strong { display: block; font-size: .9rem; }
body.pg-mapa .resultados-busca .item span { display: block; font-size: .78rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pg-mapa .resultados-busca .vazio { padding: 10px; font-size: .85rem; color: var(--ink-2); }

body.pg-mapa .resultado { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
body.pg-mapa .carregando { color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
body.pg-mapa .spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: mapa-gira .8s linear infinite;
}
@keyframes mapa-gira { to { transform: rotate(360deg); } }
body.pg-mapa .erro { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--accent); color: var(--ink); }
body.pg-mapa .veredito { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body.pg-mapa .selo {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  color: #fff; background: var(--neutro);
}
body.pg-mapa .selo.ilp { background: var(--accent); }
body.pg-mapa .pct { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
body.pg-mapa .pct small { font-size: .8rem; font-weight: 500; color: var(--ink-2); }
body.pg-mapa .meta { margin: 6px 0 14px; font-size: .82rem; color: var(--ink-2); }
body.pg-mapa h2 { margin: 18px 0 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
body.pg-mapa .barra-linha { display: grid; grid-template-columns: 92px 1fr 52px; gap: 8px; align-items: center; margin: 6px 0; font-size: .9rem; }
body.pg-mapa .barra { height: 10px; border-radius: 5px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
body.pg-mapa .barra > span { display: block; height: 100%; background: var(--barra); }
body.pg-mapa .barra-linha.ilp .barra > span { background: var(--accent); }
body.pg-mapa .barra-linha.ilp { font-weight: 700; }
body.pg-mapa .valor { text-align: right; font-variant-numeric: tabular-nums; }
body.pg-mapa .aviso { margin: 8px 0 0; padding: 8px 10px; font-size: .82rem; border-radius: 8px; background: var(--bg); border-left: 3px solid var(--accent); color: var(--ink-2); }
body.pg-mapa .grafico { position: relative; height: 190px; }
/* mapa em cima, tabela (opcional) embaixo, na coluna da direita */
body.pg-mapa .area-mapa { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
body.pg-mapa #mapa { flex: 1 1 auto; min-height: 320px; }
body.pg-mapa .tabela-pontos { flex: 0 0 auto; height: min(42vh, 380px); display: flex; flex-direction: column; background: var(--surface); border-top: 3px solid var(--accent); }
body.pg-mapa .tabela-pontos[hidden] { display: none; }
body.pg-mapa .tabela-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
body.pg-mapa .tabela-topo h2 { margin: 0; font-size: .95rem; }
body.pg-mapa .tabela-rolagem { flex: 1 1 auto; min-height: 0; overflow: auto; }
body.pg-mapa .tabela-pontos table { width: 100%; border-collapse: collapse; font-size: .84rem; }
body.pg-mapa .tabela-pontos th { position: sticky; top: 0; z-index: 1; padding: 7px 10px; text-align: left; white-space: nowrap; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
body.pg-mapa .tabela-pontos th[aria-sort="ascending"]::after { content: " ▲"; }
body.pg-mapa .tabela-pontos th[aria-sort="descending"]::after { content: " ▼"; }
body.pg-mapa .tabela-pontos td { padding: 6px 10px; border-top: 1px solid var(--line); vertical-align: top; }
body.pg-mapa .tabela-pontos td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.pg-mapa .tabela-pontos td.obs { min-width: 200px; max-width: 420px; white-space: pre-wrap; overflow-wrap: anywhere; }
body.pg-mapa .tabela-pontos td.nome { min-width: 140px; overflow-wrap: anywhere; }
body.pg-mapa .tabela-pontos td.quieto { color: var(--ink-2); }
body.pg-mapa .tabela-pontos .vazio { padding: 18px 14px; color: var(--ink-2); }
body.pg-mapa .btn-mini { padding: 3px 9px; font-size: .75rem; }
body.pg-mapa .tabela-pontos td button { white-space: nowrap; }
body.pg-mapa .tabela-pontos td.quieto, body.pg-mapa .tabela-pontos td.classe { white-space: nowrap; }

/* ---- pontos cadastrados (Supabase) ---- */
body.pg-mapa textarea { resize: vertical; margin-top: 8px; }
body.pg-mapa button:disabled { opacity: .6; cursor: default; filter: none; }
body.pg-mapa button.secundario { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
body.pg-mapa .linha-pontos { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 8px; }
body.pg-mapa .linha-pontos button[aria-pressed="true"], body.pg-mapa .linha-pontos button[aria-expanded="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
body.pg-mapa .bolinha { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #5b7083; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--line); vertical-align: middle; }
body.pg-mapa .bolinha.ilp { background: #eb6834; }
body.pg-mapa .legenda { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .82rem; color: var(--ink-2); }
body.pg-mapa .item-legenda { display: inline-flex; align-items: center; gap: 5px; }
body.pg-mapa .popup-ponto { min-width: 220px; font-size: .85rem; line-height: 1.4; }
body.pg-mapa .popup-ponto .popup-meta { color: var(--ink-2); font-size: .78rem; margin-bottom: 6px; }
body.pg-mapa .popup-ponto .popup-obs { margin: 6px 0; white-space: pre-wrap; }
body.pg-mapa .popup-ponto .tabela-safras { margin: 6px 0 8px; }
body.pg-mapa .popup-ponto .tabela-safras td { color: var(--ink); }
body.pg-mapa .popup-ponto .acoes { display: flex; gap: 6px; }
body.pg-mapa .popup-ponto button { padding: 5px 9px; font-size: .8rem; }
body.pg-mapa .popup-ponto button.btn-perigo { color: #fff; background: #a82a22; }
body.pg-mapa .popup-ponto .popup-erro { margin: 6px 0 0; color: #ff7b6f; font-size: .78rem; }

/* ---------------- celular e telas estreitas ----------------
   Tudo passa a ser uma coluna só: cabeçalho, mapa e, abaixo, o painel.
   O mapa vem antes do painel para a tela abrir já no mapa. */
@media (max-width: 800px) {
  body.pg-mapa { grid-template-columns: 1fr; grid-template-rows: auto auto auto; height: auto; min-height: 100%; }

  body.pg-mapa .cabecalho { order: -2; flex-wrap: wrap; gap: 6px 12px; padding: 8px 12px; }
  body.pg-mapa .cabecalho .logos { width: auto; gap: 10px; }
  body.pg-mapa .cabecalho .logos img { height: 30px; }
  body.pg-mapa .cabecalho .titulos { order: 3; width: 100%; }      /* título numa linha só, abaixo das logos */
  body.pg-mapa .cabecalho h1 { font-size: 1rem; text-align: center; }
  body.pg-mapa .cabecalho p { display: none; }

  body.pg-mapa .area-mapa { order: -1; }
  /* dvh acompanha a barra de endereço do navegador do celular; vh fica de reserva */
  body.pg-mapa #mapa { flex: none; height: 52vh; height: 52dvh; min-height: 280px; }   /* altura também usada pelo popup de cadastro */
  body.pg-mapa .tabela-pontos { height: 52vh; height: 52dvh; }

  /* quem rola é a página inteira, não o painel */
  body.pg-mapa .painel { overflow: visible; padding: 16px 14px 24px; border-right: 0; border-top: 1px solid var(--line); }

  /* 16px evita o zoom automático do iPhone quando o campo recebe o toque */
  body.pg-mapa select, body.pg-mapa input, body.pg-mapa textarea { font-size: 16px; }
  body.pg-mapa button { padding: 11px 12px; }                      /* alvo de toque maior */
  body.pg-mapa .btn-mini { padding: 5px 10px; }
  body.pg-mapa .linha-pontos { grid-template-columns: 1fr 1fr; }
  body.pg-mapa .linha-pontos button:last-child { grid-column: 1 / -1; }
  body.pg-mapa .barra-linha { grid-template-columns: 84px 1fr 48px; }
  body.pg-mapa .tabela-pontos td.obs { min-width: 150px; }
  body.pg-mapa .grafico { height: 170px; }
  body.pg-mapa .grafico.longo { height: 200px; }
}

@media (max-width: 420px) {
  body.pg-mapa .cabecalho .logos img { height: 26px; }
  body.pg-mapa .cabecalho h1 { font-size: .95rem; }
  body.pg-mapa .painel { padding: 14px 12px 22px; }
  body.pg-mapa .pct { font-size: 1.7rem; }
  body.pg-mapa .modo { gap: 10px; }
  body.pg-mapa .dica { font-size: .8rem; }
}

/* ---- popup: fluxo de cadastro (cores do tema preto) ---- */
body.pg-mapa .popup-ponto .campo-form { margin-top: 8px; }
body.pg-mapa .popup-ponto label { margin: 0 0 3px; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
body.pg-mapa .popup-ponto input, body.pg-mapa .popup-ponto select, body.pg-mapa .popup-ponto textarea { padding: 6px 8px; font-size: .82rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }
body.pg-mapa .popup-ponto input[readonly] { color: var(--ink-2); background: var(--surface-2); }
body.pg-mapa .popup-ponto textarea { margin-top: 0; }
body.pg-mapa .popup-ponto .dois { gap: 6px; }
body.pg-mapa .popup-ponto .acoes { margin-top: 10px; }
body.pg-mapa .popup-ponto button.secundario { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
body.pg-mapa .popup-ponto .popup-ok { margin: 0 0 8px; color: #5fc184; font-size: .82rem; font-weight: 600; }
body.pg-mapa .popup-ponto .popup-safra { padding: 6px 0; border-top: 1px solid var(--line); }
body.pg-mapa .popup-ponto .popup-safra-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
body.pg-mapa .popup-ponto button.btn-mini { padding: 2px 7px; font-size: .72rem; }

/* ---- Leaflet no tema preto (o padrão da biblioteca é branco) ---- */
body.pg-mapa .leaflet-popup-content-wrapper, body.pg-mapa .leaflet-popup-tip {
  color: var(--ink); background: var(--surface);
  box-shadow: 0 3px 16px rgba(0, 0, 0, .55);
}
body.pg-mapa .leaflet-container a.leaflet-popup-close-button { color: var(--ink-2); }
body.pg-mapa .leaflet-container a.leaflet-popup-close-button:hover { color: var(--ink); background: transparent; }
body.pg-mapa .leaflet-bar a, body.pg-mapa .leaflet-bar a:hover, body.pg-mapa .leaflet-control-layers {
  color: var(--ink); background: var(--surface); border-bottom-color: var(--line);
}
body.pg-mapa .leaflet-bar a:hover { background: var(--surface-2); }
body.pg-mapa .leaflet-bar a.leaflet-disabled { color: var(--neutro); background: var(--surface); }
body.pg-mapa .leaflet-control-layers-toggle { filter: invert(1) hue-rotate(180deg); }   /* o ícone de camadas é escuro */
body.pg-mapa .leaflet-control-layers-expanded { color: var(--ink); background: var(--surface); }
body.pg-mapa .leaflet-control-layers-separator { border-top-color: var(--line); }
body.pg-mapa .leaflet-control-attribution {
  color: var(--ink-2) !important; background: rgba(10, 10, 9, .78) !important;
}
body.pg-mapa .leaflet-control-attribution a { color: var(--ink) !important; }

/* ---- camada de probabilidade de ILP ---- */
body.pg-mapa .camada-ilp { image-rendering: pixelated; }
body.pg-mapa .legenda-ilp {
  padding: 8px 10px; min-width: 190px; font-size: .78rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
body.pg-mapa .legenda-ilp strong { display: block; margin-bottom: 6px; font-weight: 600; }
body.pg-mapa .legenda-ilp-barra { height: 12px; border-radius: 3px; }
body.pg-mapa .legenda-ilp-escala { display: flex; justify-content: space-between; margin-top: 4px; color: var(--ink-2); font-size: .72rem; }

/* ---- controle de camadas do Leaflet oculto; o mapa de probabilidade tem botão próprio no painel ---- */
body.pg-mapa .leaflet-control-layers { display: none !important; }
body.pg-mapa .linha-pontos { grid-template-columns: 1fr 1fr; }
body.pg-mapa .linha-pontos button[hidden] { display: none; }
@media (max-width: 800px) { body.pg-mapa .linha-pontos button:last-child { grid-column: auto; } }


/* ═══ login_0.css — escopo body.pg-login ═══ */

  /* Cores e fonte tiradas do site da Rede ILPF (redeilpf.org.br):
     verde dos títulos #065227, fonte Nunito, cantos de 5-6 px. */
  html:has(body.pg-login) {
    --verde-escuro: #065227;
    --verde: #0a6e34;
    --verde-vivo: #0e8a42;
    --verde-claro: #9fca91;
    --branco: #ffffff;
    --raio: 6px;
  }
  body.pg-login * { box-sizing: border-box; }
  html:has(body.pg-login), body.pg-login { height: 100%; margin: 0; }
  body.pg-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--branco);
    background: var(--verde-escuro);
    overflow: hidden;
  }

  /* fundo: degradê verde + formas orgânicas, como no modelo */
  body.pg-login .fundo { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(145deg, #053f1e 0%, var(--verde-escuro) 45%, var(--verde-vivo) 100%); }
  body.pg-login .fundo span { position: absolute; display: block; border-radius: 50%; }
  body.pg-login .forma-1 { width: 980px; height: 980px; left: -460px; bottom: -430px; background: rgba(255, 255, 255, .055); }
  body.pg-login .forma-2 { width: 620px; height: 620px; left: -230px; bottom: -220px; background: rgba(255, 255, 255, .05); }
  body.pg-login .forma-3 { width: 1150px; height: 1000px; right: -420px; top: -520px; background: rgba(255, 255, 255, .045); border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%; }
  body.pg-login .forma-4 { width: 300px; height: 300px; right: 12%; bottom: -120px; background: rgba(159, 202, 145, .10); }

  body.pg-login .caixa { position: relative; z-index: 1; width: 100%; max-width: 420px; text-align: center; }

  /* a logo fica num cartão branco para manter as cores originais da marca */
  body.pg-login .marca { display: inline-flex; align-items: center; justify-content: center; padding: 16px 26px; margin-bottom: 14px; background: var(--branco); border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
  body.pg-login .marca img { display: block; height: 52px; width: auto; }
  body.pg-login .sistema { margin: 0 0 34px; font-size: .96rem; font-weight: 600; line-height: 1.45; color: rgba(255, 255, 255, .88); }
  body.pg-login .sistema small { display: block; margin-top: 4px; font-size: .78rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--verde-claro); }

  body.pg-login form { display: flex; flex-direction: column; gap: 16px; }
  body.pg-login .campo { position: relative; }
  body.pg-login .campo svg { position: absolute; top: 50%; left: 18px; width: 18px; height: 18px; transform: translateY(-50%); fill: rgba(255, 255, 255, .72); pointer-events: none; }
  body.pg-login .campo input {
    width: 100%; height: 54px; padding: 0 18px 0 50px;
    font: 600 .86rem/1 "Nunito", sans-serif; letter-spacing: .11em;
    color: var(--branco); background: transparent;
    border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--raio);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
  }
  body.pg-login .campo input::placeholder { color: rgba(255, 255, 255, .62); letter-spacing: .11em; text-transform: uppercase; }
  body.pg-login .campo input:hover { border-color: rgba(255, 255, 255, .8); }
  body.pg-login .campo input:focus { outline: 0; border-color: var(--branco); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(255, 255, 255, .16); }
  body.pg-login .campo input:focus + svg, body.pg-login .campo input:focus ~ svg { fill: var(--branco); }
  /* o preenchimento automático do Chrome deixaria o campo branco */
  body.pg-login .campo input:-webkit-autofill { -webkit-text-fill-color: var(--verde-escuro); box-shadow: 0 0 0 60px var(--branco) inset; }

  body.pg-login button[type="submit"] {
    height: 54px; margin-top: 14px;
    font: 700 .95rem/1 "Nunito", sans-serif; letter-spacing: .12em; text-transform: uppercase;
    color: var(--verde-escuro); background: var(--branco);
    border: 0; border-radius: var(--raio); cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
    transition: transform .12s, box-shadow .15s, opacity .15s;
  }
  body.pg-login button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0, 0, 0, .26); }
  body.pg-login button[type="submit"]:active { transform: translateY(0); }
  body.pg-login button[type="submit"]:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 3px; }
  body.pg-login button[type="submit"][disabled] { opacity: .65; cursor: default; transform: none; }

  body.pg-login .esqueci { margin-top: 14px; text-align: right; }
  body.pg-login .esqueci a { font-size: .85rem; font-weight: 600; color: var(--branco); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: 1px; }
  body.pg-login .esqueci a:hover { border-bottom-color: var(--branco); }

  body.pg-login .recado { margin: 18px 0 0; padding: 11px 14px; font-size: .86rem; font-weight: 600; text-align: left; border-radius: var(--raio); background: rgba(0, 0, 0, .22); border-left: 3px solid var(--verde-claro); }
  body.pg-login .recado[hidden] { display: none; }
  body.pg-login .recado.erro { border-left-color: #ffb4a8; }

  body.pg-login .rodape { margin-top: 38px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .74rem; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
  body.pg-login .rodape img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .75; }   /* a marca do LAPIG é preta */

  @media (max-width: 460px) {
    body.pg-login .marca img { height: 42px; }
    body.pg-login .sistema { margin-bottom: 26px; }
    body.pg-login .campo input, body.pg-login button[type="submit"] { height: 50px; font-size: 16px; letter-spacing: .08em; }   /* 16px evita o zoom do iPhone */
    body.pg-login .campo input { padding-left: 46px; }
  }
  @media (prefers-reduced-motion: reduce) { body.pg-login * { transition: none !important; } }


/* ═══ painel_0.css — escopo body.pg-painel ═══ */

  /* Mesmo estilo da tela de login (cores e fonte do site redeilpf.org.br).
     Estrutura baseada no template panelapps.html: título + grade de cartões. */
  html:has(body.pg-painel) {
    --verde-escuro: #065227;
    --verde: #0a6e34;
    --verde-vivo: #0e8a42;
    --verde-claro: #9fca91;
    --branco: #ffffff;
    --raio: 6px;
  }
  body.pg-painel * { box-sizing: border-box; }
  html:has(body.pg-painel), body.pg-painel { margin: 0; min-height: 100%; }
  body.pg-painel {
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--branco);
    background: var(--verde-escuro);
  }

  body.pg-painel .fundo { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(145deg, #053f1e 0%, var(--verde-escuro) 45%, var(--verde-vivo) 100%); }
  body.pg-painel .fundo span { position: absolute; display: block; border-radius: 50%; }
  body.pg-painel .forma-1 { width: 980px; height: 980px; left: -460px; bottom: -430px; background: rgba(255, 255, 255, .055); }
  body.pg-painel .forma-2 { width: 620px; height: 620px; left: -230px; bottom: -220px; background: rgba(255, 255, 255, .05); }
  body.pg-painel .forma-3 { width: 1150px; height: 1000px; right: -420px; top: -520px; background: rgba(255, 255, 255, .045); border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%; }
  body.pg-painel .forma-4 { width: 300px; height: 300px; right: 12%; bottom: -120px; background: rgba(159, 202, 145, .10); }

  body.pg-painel .pagina { position: relative; z-index: 1; max-width: 1040px; min-height: 100vh; margin: 0 auto; padding: 40px 24px 28px; display: flex; flex-direction: column; }

  body.pg-painel .topo { text-align: center; }
  body.pg-painel .marca { display: inline-flex; align-items: center; justify-content: center; padding: 16px 26px; margin-bottom: 18px; background: var(--branco); border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
  body.pg-painel .marca img { display: block; height: 52px; width: auto; }
  body.pg-painel h1 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  body.pg-painel .sub { margin: 8px 0 0; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
  body.pg-painel .sub small { display: block; margin-top: 4px; font-size: .78rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--verde-claro); }

  body.pg-painel .grade { list-style: none; margin: 42px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  body.pg-painel .cartao {
    display: flex; flex-direction: column; height: 100%; padding: 26px 22px 22px;
    color: var(--branco); text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--raio);
    background: rgba(255, 255, 255, .04);
    transition: transform .15s, border-color .15s, background-color .15s, box-shadow .15s;
  }
  body.pg-painel .cartao:hover { transform: translateY(-3px); border-color: var(--branco); background: rgba(255, 255, 255, .1); box-shadow: 0 16px 34px rgba(0, 0, 0, .25); }
  body.pg-painel .cartao:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 3px; }
  body.pg-painel .icone { width: 54px; height: 54px; margin-bottom: 18px; display: grid; place-items: center; background: var(--branco); border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
  body.pg-painel .icone svg { width: 28px; height: 28px; fill: var(--verde-escuro); }
  body.pg-painel .cartao h2 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  body.pg-painel .cartao p { margin: 0 0 20px; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .82); }
  body.pg-painel .abrir { margin-top: auto; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--verde-claro); }
  body.pg-painel .abrir::after { content: " →"; transition: margin-left .15s; }
  body.pg-painel .cartao:hover .abrir::after { margin-left: 4px; }
  body.pg-painel .selo { align-self: flex-start; margin-bottom: 12px; padding: 2px 9px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--verde-escuro); background: var(--verde-claro); border-radius: 20px; }

  body.pg-painel .rodape { margin-top: auto; padding-top: 46px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .74rem; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
  body.pg-painel .rodape img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .75; }   /* a marca do LAPIG é preta */
  body.pg-painel .rodape a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
  body.pg-painel .rodape a:hover { color: var(--branco); border-bottom-color: var(--branco); }

  @media (max-width: 860px) { body.pg-painel .grade { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) {
    body.pg-painel .pagina { padding: 28px 16px 22px; }
    body.pg-painel .marca img { height: 42px; }
    body.pg-painel h1 { font-size: 1.1rem; }
    body.pg-painel .grade { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
    body.pg-painel .cartao { padding: 20px 18px 18px; }
  }
  @media (prefers-reduced-motion: reduce) { body.pg-painel * { transition: none !important; } }


/* ═══ assistente_0.css — escopo global ═══ */

  #ass-botao{position:fixed;right:20px;bottom:20px;z-index:2000;width:54px;height:54px;border-radius:50%;border:0;cursor:pointer;
    background:var(--accent,#2f8f27);color:#fff;font-size:24px;box-shadow:0 4px 16px rgba(0,0,0,.5)}
  #ass-botao:focus-visible{outline:3px solid #fff;outline-offset:2px}
  #ass-painel{position:fixed;right:20px;bottom:86px;z-index:2000;width:min(400px,calc(100vw - 24px));height:min(560px,calc(100vh - 110px));
    display:none;flex-direction:column;background:var(--surface,#151514);color:var(--ink,#f2f1ec);border:1px solid var(--line,#2c2b28);
    border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.6);font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}
  #ass-painel.aberto{display:flex}
  #ass-topo{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--line,#2c2b28);font-weight:600}
  #ass-topo button{background:none;border:0;color:var(--ink-2,#a9a7a0);cursor:pointer;font-size:13px;padding:2px 6px}
  #ass-topo button:hover{color:var(--ink,#f2f1ec)}
  #ass-msgs{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px}
  .ass-m{max-width:92%;padding:8px 11px;border-radius:10px;word-wrap:break-word;overflow-wrap:anywhere}
  .ass-m.user{align-self:flex-end;background:var(--accent,#2f8f27);color:#fff;white-space:pre-wrap}
  .ass-m.assistant{align-self:flex-start;background:var(--surface-2,#232320)}
  .ass-m.assistant p{margin:0 0 6px}.ass-m.assistant p:last-child{margin:0}
  .ass-m.assistant ul{margin:4px 0 6px;padding-left:18px}
  .ass-m.assistant code{background:rgba(255,255,255,.1);padding:0 4px;border-radius:4px}
  .ass-m.erro{align-self:stretch;background:#3a1717;color:#ffb4b4}
  .ass-m.pensando{color:var(--ink-2,#a9a7a0);font-style:italic}
  .ass-ferr{font-size:11px;color:var(--ink-2,#a9a7a0);margin-top:4px}
  #ass-sug{display:flex;flex-wrap:wrap;gap:6px}
  #ass-sug button{background:var(--surface-2,#232320);color:var(--ink,#f2f1ec);border:1px solid var(--line,#2c2b28);border-radius:14px;
    padding:4px 10px;font-size:12.5px;cursor:pointer;text-align:left}
  #ass-sug button:hover{border-color:var(--accent,#2f8f27)}
  #ass-form{display:flex;gap:6px;padding:10px;border-top:1px solid var(--line,#2c2b28)}
  #ass-entrada{flex:1;resize:none;height:42px;background:var(--bg,#0a0a09);color:var(--ink,#f2f1ec);border:1px solid var(--line,#2c2b28);
    border-radius:8px;padding:8px;font:inherit}
  #ass-form button{background:var(--accent,#2f8f27);color:#fff;border:0;border-radius:8px;padding:0 14px;cursor:pointer;font-weight:600}
  #ass-form button:disabled{opacity:.5;cursor:default}
  #ass-aviso{font-size:11px;color:var(--ink-2,#a9a7a0);padding:0 12px 8px}

/* ═══ doc_0.css — escopo body.pg-doc ═══ */

/* ──────────────────────────────────────────────────────────
       DESIGN SYSTEM — tokens (Time2Graze / WRI / LAPIG palette)
    ────────────────────────────────────────────────────────── */
html:has(body.pg-doc) {
  --paper: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #edf1eb;
  --ink: #18362d;
  --text: #33453d;
  --muted: #5f7169;
  --forest: #184b39;
  --forest-dark: #10382b;
  --accent-highlight: #dce89b;
  --line: #d7ddd8;

  --color-bg: var(--paper);
  --color-fg: var(--ink);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-rule: var(--line);
  --color-border: var(--line);
  --color-accent: var(--forest);
  --color-accent-soft: #2c5e4c;
  --color-accent-glow: rgba(24, 54, 45, 0.05);
  --color-yellow: #dce89b;
  --color-card-bg: var(--surface);
  --color-card: var(--surface);
  --color-section-bg: var(--surface-soft);
  --font-sans: "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: var(--font-sans);
  --ok: #1f6f46;
  --agora: #c97320;
  --futuro: #8f9d95;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max-width: 1720px;
  --max-width-wide: min(98vw, 1920px);
  --gutter: clamp(18px, 2.5vw, 44px);
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(16, 56, 43, 0.04);
  --shadow-md: 0 12px 32px -16px rgba(16, 56, 43, 0.14);
  --transition: 0.22s cubic-bezier(.22, .61, .36, 1);
}

/* ──────────────────────────────────────────────────────────
       RESET & BASE
    ────────────────────────────────────────────────────────── */
body.pg-doc *,
body.pg-doc *::before,
body.pg-doc *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html:has(body.pg-doc) {
  font-size: 120%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body.pg-doc {
  background: var(--color-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

/* ──────────────────────────────────────────────────────────
       NAV
    ────────────────────────────────────────────────────────── */
body.pg-doc .site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-rule);
}

body.pg-doc .site-nav__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

body.pg-doc .site-nav__brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  transition: opacity var(--transition);
}

body.pg-doc .site-nav__brand-logos:hover {
  opacity: 0.85;
}

body.pg-doc .site-nav__logo {
  display: block;
  object-fit: contain;
  width: auto;
}

body.pg-doc .site-nav__logo--wri {
  height: 44px;
  width: auto;
  max-width: 225px;
}

body.pg-doc .site-nav__logo--ilpf {
  height: 38px;
  width: auto;
  max-width: 140px;
}

body.pg-doc .site-nav__logo--lapig {
  height: 37px;
  width: auto;
  max-width: 190px;
}

body.pg-doc .site-nav__logo--ufg {
  height: 48px;
  width: auto;
  max-width: 205px;
}

body.pg-doc .site-nav__logo-divider {
  width: 1px;
  height: 36px;
  background: var(--color-rule);
}

body.pg-doc .site-nav__brand {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-fg);
  text-decoration: none;
  letter-spacing: 0.01em;
}

body.pg-doc .site-nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

body.pg-doc .site-nav__links a {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-fg);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

body.pg-doc .site-nav__links a:hover {
  color: var(--color-muted);
}

/* ──────────────────────────────────────────────────────────
       LANDSCAPE HERO & TOP DIRECTORY (TIME2GRAZE STYLE)
    ────────────────────────────────────────────────────────── */
body.pg-doc .landscape-hero {
  position: relative;
  min-height: 640px;
  max-width: var(--max-width-wide);
  padding: 0 var(--gutter) 68px;
  background: var(--paper);
  margin: 0 auto;
}

body.pg-doc .landscape-photo {
  position: relative;
  height: 540px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

body.pg-doc .landscape-photo::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 56, 43, 0.25), transparent 55%);
}

body.pg-doc .landscape-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.95) contrast(1.04);
  display: block;
}

body.pg-doc .landscape-photo p {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 1;
  margin: 0;
  padding: 8px 14px;
  background: rgba(16, 56, 43, 0.85);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.pg-doc .landscape-card {
  position: absolute;
  bottom: 24px;
  left: calc(var(--gutter) + clamp(28px, 4vw, 64px));
  z-index: 2;
  width: min(760px, calc(100% - 2 * var(--gutter) - 220px));
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.2vw, 44px) clamp(28px, 3.6vw, 52px);
  box-shadow: 0 18px 40px -30px rgba(16, 56, 43, 0.42);
}

body.pg-doc .landscape-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

body.pg-doc .landscape-eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: var(--accent-highlight);
  box-shadow: 0 1px 0 var(--forest);
}

body.pg-doc .landscape-card h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

body.pg-doc .landscape-card h1 span {
  display: block;
  margin-top: 0.15em;
  font-size: 0.72em;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

body.pg-doc .landscape-intro {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.62;
  text-align: left;
}

body.pg-doc .landscape-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body.pg-doc .landscape-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 210px;
  padding: 13px 18px;
  background: var(--forest-dark);
  color: #ffffff;
  border: 1px solid var(--forest-dark);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

body.pg-doc .landscape-action:hover {
  background: var(--accent-highlight);
  color: var(--forest-dark);
  border-color: var(--forest-dark);
  transform: translateY(-2px);
}

body.pg-doc .landscape-action--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

body.pg-doc .landscape-action--secondary:hover {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--ink);
}

body.pg-doc .landscape-date {
  position: absolute;
  bottom: 24px;
  right: calc(var(--gutter) + clamp(24px, 3.5vw, 56px));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--accent-highlight);
  color: var(--forest-dark);
  border: 1px solid rgba(16, 56, 43, 0.2);
}

body.pg-doc .landscape-date strong {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
}

body.pg-doc .landscape-date span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  line-height: 1.25;
}

body.pg-doc .home-directory {
  position: relative;
  z-index: 1;
  max-width: var(--max-width-wide);
  padding: 0 var(--gutter);
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

body.pg-doc .home-directory a {
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  align-items: start;
  gap: 14px;
  min-height: 132px;
  padding: 22px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background var(--transition);
}

body.pg-doc .home-directory a:first-child {
  border-left: 1px solid var(--line);
}

body.pg-doc .home-directory a:hover {
  background: #f7f9f3;
}

body.pg-doc .home-directory-index {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
}

body.pg-doc .home-directory a > div {
  display: grid;
}

body.pg-doc .home-directory strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

body.pg-doc .home-directory small {
  margin-top: 7px;
  max-width: 38ch;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.45;
}

body.pg-doc .home-directory em {
  margin-top: 12px;
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

body.pg-doc .home-directory svg {
  align-self: center;
  color: var(--muted);
  transition: transform var(--transition);
}

body.pg-doc .home-directory a:hover svg {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  body.pg-doc .landscape-hero {
    min-height: auto;
    padding-bottom: 24px;
  }
  body.pg-doc .landscape-photo {
    height: 380px;
  }
  body.pg-doc .landscape-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: -48px;
  }
  body.pg-doc .landscape-date {
    display: none;
  }
  body.pg-doc .home-directory {
    grid-template-columns: 1fr;
  }
  body.pg-doc .home-directory a {
    border-left: 1px solid var(--line);
    min-height: auto;
  }
}

/* ──────────────────────────────────────────────────────────
       SECTION WRAPPERS & STANDARDIZED HEADERS
    ────────────────────────────────────────────────────────── */
body.pg-doc .section {
  padding: 3.5rem var(--gutter);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

body.pg-doc .section--alt {
  background: var(--color-section-bg);
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  max-width: 100%;
  padding: 3.5rem var(--gutter);
}

body.pg-doc .section--alt > .section__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

body.pg-doc #visualizacoes > .section__inner,
body.pg-doc #comparacao > .section__inner {
  max-width: var(--max-width-wide);
}

body.pg-doc .section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 0.45rem;
  text-align: left;
}

body.pg-doc .section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 600;
  color: var(--color-fg);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
}

body.pg-doc .section__desc {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--text);
  max-width: 960px;
  margin: 0 0 2rem;
  line-height: 1.65;
  text-align: left;
}

/* ──────────────────────────────────────────────────────────
       CARDS GRID
    ────────────────────────────────────────────────────────── */
body.pg-doc .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

body.pg-doc .card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
}

body.pg-doc .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.pg-doc .card__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.45rem;
}

body.pg-doc .card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: var(--color-fg);
  line-height: 1.25;
}

body.pg-doc .card__desc {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  text-align: left;
}

body.pg-doc .card__arrow {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-fg);
  transition: transform var(--transition);
}

body.pg-doc .card:hover .card__arrow {
  transform: translateX(4px);
}

/* ──────────────────────────────────────────────────────────
       STATS ROW
    ────────────────────────────────────────────────────────── */
body.pg-doc .stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
  margin: 1rem 0;
}

@media (max-width: 1100px) {
  body.pg-doc .stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

body.pg-doc .stat {
  text-align: left;
  padding: 1.35rem 1.4rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
}

body.pg-doc .stat__number {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.1;
}

body.pg-doc .stat__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
       CLASSES TABLE
    ────────────────────────────────────────────────────────── */
body.pg-doc .classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

body.pg-doc .class-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

body.pg-doc .class-item:hover {
  box-shadow: var(--shadow-sm);
}

body.pg-doc .class-item__swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

body.pg-doc .class-item__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-fg);
}

body.pg-doc .class-item__desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
  margin-top: 0.2rem;
}

body.pg-doc .class-item__count {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-top: 0.3rem;
}

/* ──────────────────────────────────────────────────────────
       IMAGE FIGURE
    ────────────────────────────────────────────────────────── */
body.pg-doc .figure {
  margin: 2rem 0;
  text-align: center;
}

body.pg-doc .figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-sm);
}

body.pg-doc .figure figcaption {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.6rem;
}

/* ──────────────────────────────────────────────────────────
       TIMELINE
    ────────────────────────────────────────────────────────── */
body.pg-doc .timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

body.pg-doc .timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-rule);
}

body.pg-doc .timeline__item {
  position: relative;
  margin-bottom: 1.35rem;
  padding-left: 0.5rem;
}

body.pg-doc .timeline__item::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-fg);
  border: 2px solid var(--color-bg);
}

body.pg-doc .timeline__item.done::before {
  background: var(--color-fg);
}

body.pg-doc .timeline__item.current::before {
  background: var(--accent-highlight);
  border: 3px solid var(--color-fg);
}

body.pg-doc .timeline__item.future::before {
  background: var(--color-rule);
}

body.pg-doc .timeline__date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.pg-doc .timeline__title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-top: 0.15rem;
}

body.pg-doc .timeline__desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 0.25rem;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────
       METHODOLOGY PROSE
    ────────────────────────────────────────────────────────── */
body.pg-doc .prose {
  max-width: 1480px;
  margin: 2rem auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

body.pg-doc .prose p {
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.pg-doc .prose strong {
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
       PIPELINE STEPS
    ────────────────────────────────────────────────────────── */
body.pg-doc .pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 2rem 0;
  position: relative;
}

body.pg-doc .pipeline__step {
  text-align: center;
  padding: 1.2rem 0.8rem;
  position: relative;
}

body.pg-doc .pipeline__step::after {
  content: 'â†’';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  color: var(--color-rule);
  font-size: 1.2rem;
}

body.pg-doc .pipeline__step:last-child::after {
  display: none;
}

body.pg-doc .pipeline__icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

body.pg-doc .pipeline__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-fg);
}

body.pg-doc .pipeline__sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

/* ──────────────────────────────────────────────────────────
       METHODOLOGY BLOCKS & DETAILS (PREMIUM REDESIGN)
    ────────────────────────────────────────────────────────── */
body.pg-doc .method-section {
  position: relative;
}

body.pg-doc .method-scope-banner {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

body.pg-doc .method-scope-banner__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

body.pg-doc .method-scope-banner__content strong {
  color: #92400e;
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────
   METHODOLOGY FLOWCHART — chronological, collapsible boxes
   ────────────────────────────────────────────────────────── */
body.pg-doc .flow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow-sm);
}

body.pg-doc .flow-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #475569;
}

body.pg-doc .flow-legend__title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e293b;
}

body.pg-doc .flow-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

body.pg-doc .flow-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

body.pg-doc .flow-dot--done { background: #22c55e; }
body.pg-doc .flow-dot--prelim { background: #f59e0b; }
body.pg-doc .flow-dot--dev { background: #f97316; }
body.pg-doc .flow-dot--plan { background: #94a3b8; }

body.pg-doc .flow-toolbar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pg-doc .flow-toolbar__hint {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-right: 0.25rem;
}

body.pg-doc .flow-btn {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

body.pg-doc .flow-btn:hover {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── Layout ── */
body.pg-doc .flow {
  --flow-line: #94a3b8;
  --flow-gap: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

body.pg-doc .flow__single {
  width: 100%;
  max-width: 1100px;
}

body.pg-doc .flow__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--flow-gap);
  width: 100%;
}

body.pg-doc .flow__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.pg-doc .flow__col > .fnode {
  flex: 0 0 auto;
}

/* ── Connectors ── */
body.pg-doc .fc-fill {
  flex: 1 1 auto;
  min-height: 22px;
  width: 2px;
  align-self: center;
  background: var(--flow-line);
}

body.pg-doc .fc-bus {
  position: relative;
  width: 100%;
  height: 2px;
}

body.pg-doc .fc-bus::before {
  content: '';
  position: absolute;
  top: 0;
  height: 2px;
  left: calc((100% - var(--flow-gap)) / 4);
  right: calc((100% - var(--flow-gap)) / 4);
  background: var(--flow-line);
}

body.pg-doc .fc-bus__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--flow-line);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
}

body.pg-doc .fc-arrow {
  position: relative;
  flex-shrink: 0;
  width: 2px;
  height: 46px;
  margin-bottom: 9px;
  align-self: center;
  background: var(--flow-line);
}

body.pg-doc .fc-arrow--short {
  height: 26px;
}

body.pg-doc .fc-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--flow-line);
}

body.pg-doc .fc-arrow__label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-style: italic;
  color: var(--muted);
}

body.pg-doc .flow__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 2.5rem 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

body.pg-doc .flow__divider::before,
body.pg-doc .flow__divider::after {
  content: '';
  flex: 1;
  border-top: 2px dashed #cbd5e1;
}

body.pg-doc .flow__row--support {
  row-gap: 1.25rem;
  align-items: start;
}

/* ── Node (box) ── */
body.pg-doc .fnode {
  --node-color: var(--ink);
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

body.pg-doc .fnode--input { --node-color: var(--ink); }
body.pg-doc .fnode--extract { --node-color: var(--ink); }
body.pg-doc .fnode--filter { --node-color: var(--ink); }
body.pg-doc .fnode--qc { --node-color: var(--ink); }
body.pg-doc .fnode--model { --node-color: var(--ink); }
body.pg-doc .fnode--valid { --node-color: var(--ink); }
body.pg-doc .fnode--support { --node-color: #334155; border-style: dashed; }

body.pg-doc .fnode:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

body.pg-doc .fnode.is-open {
  border-color: var(--node-color);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-md);
}

body.pg-doc .fnode__toggle {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

body.pg-doc .fnode__toggle:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: -3px;
}

body.pg-doc .fnode__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  background: var(--node-color);
  color: #ffffff;
}

body.pg-doc .fnode__num {
  flex-shrink: 0;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.pg-doc .fnode__titles {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.pg-doc .fnode__phase {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

body.pg-doc .fnode__title {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

body.pg-doc .fstatus {
  --dot: #94a3b8;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

body.pg-doc .fstatus::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--dot);
}

body.pg-doc .fstatus--done { --dot: #dce89b; }
body.pg-doc .fstatus--prelim { --dot: #fbbf24; }
body.pg-doc .fstatus--dev { --dot: #fb923c; }
body.pg-doc .fstatus--plan { --dot: #cbd5e1; }

body.pg-doc .fnode__chev {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

body.pg-doc .fnode.is-open .fnode__chev {
  transform: rotate(180deg);
}

body.pg-doc .fnode__summary {
  display: block;
  padding: 0.95rem 1.1rem 0.85rem;
}

body.pg-doc .fnode__desc {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

body.pg-doc .fnode__kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pg-doc .fnode__kpis--inline {
  margin: 0.25rem 0 0.75rem;
}

body.pg-doc .fkpi {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

body.pg-doc .fkpi__v {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  color: #18362d;
}

body.pg-doc .fkpi__l {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  line-height: 1.35;
  color: #64748b;
}

body.pg-doc .fnode__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--node-color);
}

body.pg-doc .fnode__more .is-open-text,
body.pg-doc .fnode.is-open .fnode__more .is-closed-text {
  display: none;
}

body.pg-doc .fnode.is-open .fnode__more .is-open-text {
  display: inline;
}

/* Outcome chips (Keep / Analyze / Remove) */
body.pg-doc .foutcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

body.pg-doc .foutcome {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

body.pg-doc .foutcome--keep { background: #dcfce7; color: #166534; border-color: #86efac; }
body.pg-doc .foutcome--analyze { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
body.pg-doc .foutcome--remove { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* ── Collapsible panel (no padding on the animated element) ── */
body.pg-doc .fnode__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.pg-doc .fnode.is-open .fnode__panel {
  grid-template-rows: 1fr;
}

body.pg-doc .fnode__panel-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}

body.pg-doc .fnode.is-open .fnode__panel-inner {
  visibility: visible;
  transition-delay: 0s;
}

body.pg-doc .fnode__body {
  padding: 1rem 1.15rem 1.2rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.15);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #334155;
}

body.pg-doc .fnode__body p {
  margin: 0 0 0.75rem;
  text-align: left;
}

body.pg-doc .fnode__body p:last-child {
  margin-bottom: 0;
}

body.pg-doc .fnode__body h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--node-color);
  margin: 1.1rem 0 0.5rem;
}

body.pg-doc .fnode__body h4:first-child {
  margin-top: 0;
}

body.pg-doc .fnode__body .method-subcard .method-formula {
  margin-bottom: 0;
}

body.pg-doc .fnote {
  font-size: 0.76rem;
  font-style: italic;
  color: #64748b;
}

/* Tables inside boxes */
body.pg-doc .ftable-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 0.25rem 0 0.85rem;
}

body.pg-doc .ftable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  line-height: 1.45;
}

body.pg-doc .ftable th,
body.pg-doc .ftable td {
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

body.pg-doc .ftable th {
  background: #f1f5f1;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e293b;
}

body.pg-doc .ftable td:first-child {
  font-weight: 600;
  color: #0f172a;
}

body.pg-doc .ftable tbody tr:last-child td {
  border-bottom: none;
}

body.pg-doc .ftable__total td {
  background: #f6faf6;
  font-weight: 700;
}

/* md3 cards */
body.pg-doc .fmd3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.25rem 0 0.6rem;
}

body.pg-doc .fmd3__card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1.5px solid;
  font-size: 0.74rem;
  line-height: 1.4;
}

body.pg-doc .fmd3__card strong {
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

body.pg-doc .fmd3__n {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.pg-doc .fmd3__card--3 { border-color: #86efac; background: #f0fdf4; }
body.pg-doc .fmd3__card--3 .fmd3__n { background: #15803d; }
body.pg-doc .fmd3__card--2 { border-color: #fcd34d; background: #fffbeb; }
body.pg-doc .fmd3__card--2 .fmd3__n { background: #d97706; }
body.pg-doc .fmd3__card--1 { border-color: #fca5a5; background: #fef2f2; }
body.pg-doc .fmd3__card--1 .fmd3__n { background: #b91c1c; }

/* SOM decision matrix */
body.pg-doc .fdecision {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.25rem 0 0.85rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--node-color);
}

body.pg-doc .fdecision__step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

body.pg-doc .fdecision__q {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 13rem;
}

/* Roadmap list */
body.pg-doc .froadmap {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.pg-doc .froadmap li::marker {
  font-weight: 800;
  color: var(--node-color);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  body.pg-doc .flow__row {
    grid-template-columns: 1fr;
  }

  body.pg-doc .fc-bus {
    display: none;
  }

  body.pg-doc .fc-fill {
    flex: 0 0 22px;
  }

  body.pg-doc .flow__row--support .fc-fill {
    display: none;
  }

  body.pg-doc .fc-arrow__label {
    display: none;
  }

  body.pg-doc .fc-arrow {
    height: 30px;
  }

  body.pg-doc .fmd3 {
    grid-template-columns: 1fr;
  }

  body.pg-doc .flow-toolbar__hint {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body.pg-doc .fnode__bar {
    flex-wrap: wrap;
  }

  body.pg-doc .fnode__titles {
    order: 3;
    flex-basis: 100%;
  }

  body.pg-doc .fstatus {
    margin-left: auto;
  }

  body.pg-doc .fdecision__q {
    min-width: 0;
  }
}

/* Redesigned Pipeline Stepper (Legacy support) */
body.pg-doc .method-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

@media (max-width: 1100px) {
  body.pg-doc .method-stepper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  body.pg-doc .method-stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.pg-doc .method-step {
  background: var(--color-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

body.pg-doc .method-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border-color: rgba(24, 54, 45, 0.3);
}

body.pg-doc .method-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

body.pg-doc .method-step__icon {
  font-size: 1.3rem;
}

body.pg-doc .method-step__status {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

body.pg-doc .method-step__status--assembled {
  background: rgba(24, 54, 45, 0.1);
  color: #0f766e;
  border: 1px solid rgba(24, 54, 45, 0.2);
}

body.pg-doc .method-step__status--extracted {
  background: rgba(24, 54, 45, 0.1);
  color: #0f766e;
  border: 1px solid rgba(24, 54, 45, 0.2);
}

body.pg-doc .method-step__status--preliminary {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

body.pg-doc .method-step__status--dev {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

body.pg-doc .method-step__status--planning {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

body.pg-doc .method-step__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

body.pg-doc .method-step__desc {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
}

/* Method Grid & Core Cards */
body.pg-doc .method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

@media (max-width: 900px) {
  body.pg-doc .method-grid {
    grid-template-columns: 1fr;
  }

  body.pg-doc .method-card {
    padding: 1.25rem 1.25rem;
  }
}

body.pg-doc .method-card {
  background: var(--color-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

body.pg-doc .method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: rgba(24, 54, 45, 0.25);
}

body.pg-doc .method-card--full {
  grid-column: 1 / -1;
}

body.pg-doc .method-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

body.pg-doc .method-card__icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(24, 54, 45, 0.07);
  border: 1px solid rgba(24, 54, 45, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

body.pg-doc .method-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}

body.pg-doc .method-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

body.pg-doc .method-card__body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #334155;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

body.pg-doc .method-card__body p {
  margin-bottom: 0.85rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.pg-doc .method-card__body p:last-child {
  margin-bottom: 0;
}

/* Feature Sub-Blocks inside Cards */
body.pg-doc .method-subcard {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0.6rem 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

body.pg-doc .method-subcard strong {
  color: #0f172a;
}

body.pg-doc .method-subcard--warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.25);
}

body.pg-doc .method-subcard--accent {
  background: rgba(24, 54, 45, 0.04);
  border-color: rgba(24, 54, 45, 0.18);
}

body.pg-doc .method-list-styled {
  margin: 0.5rem 0 0.8rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.pg-doc .method-list-styled li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #334155;
}

body.pg-doc .method-list-styled li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: bold;
}

body.pg-doc .method-formula {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin: 0.75rem 0;
  color: #0f172a;
  text-align: center;
  line-height: 1.55;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Category & Topic Tags */
body.pg-doc .method-tags {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.pg-doc .method-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: rgba(24, 54, 45, 0.07);
  color: var(--color-accent);
  border: 1px solid rgba(24, 54, 45, 0.15);
}

/* Risk Dashboard Grid */
body.pg-doc .risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0 0.5rem;
}

body.pg-doc .risk-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.9rem 1.05rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.pg-doc .risk-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

body.pg-doc .risk-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.pg-doc .risk-card p {
  margin: 0;
  text-align: left;
}

/* Roadmap Grid */
body.pg-doc .roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0 0.5rem;
}

body.pg-doc .roadmap-card {
  background: #ffffff;
  border: 1px solid rgba(24, 54, 45, 0.2);
  border-radius: 8px;
  padding: 0.9rem 1.05rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #334155;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.pg-doc .roadmap-card:hover {
  border-color: rgba(24, 54, 45, 0.45);
  box-shadow: 0 4px 12px rgba(24, 54, 45, 0.08);
  transform: translateY(-1px);
}

body.pg-doc .roadmap-card__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

body.pg-doc .roadmap-card__content strong {
  display: block;
  color: #1b4d3e;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
}

body.pg-doc .roadmap-card__content p {
  margin: 0;
  text-align: left;
}

/* ──────────────────────────────────────────────────────────
       DELIVERABLES
    ────────────────────────────────────────────────────────── */
body.pg-doc .deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

body.pg-doc .deliverable {
  padding: 1.35rem 1.45rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  text-align: left;
  transition: box-shadow var(--transition);
}

body.pg-doc .deliverable:hover {
  box-shadow: var(--shadow-sm);
}

body.pg-doc .deliverable__icon {
  color: var(--color-fg);
  margin-bottom: 0.65rem;
}

body.pg-doc .deliverable__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-fg);
}

body.pg-doc .deliverable__desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.35rem;
  line-height: 1.55;
}

/* ──────────────────────────────────────────────────────────
       FOOTER
    ────────────────────────────────────────────────────────── */
body.pg-doc .site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--color-rule);
  margin-top: 2rem;
}

body.pg-doc .site-footer__logos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

body.pg-doc .site-footer__logos a {
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity var(--transition);
}

body.pg-doc .site-footer__logos a:hover {
  opacity: 1;
}

body.pg-doc .site-footer__logo {
  display: block;
  object-fit: contain;
  width: auto;
}

body.pg-doc .site-footer__logo--wri {
  height: 32px;
  width: auto;
  max-width: 165px;
}

body.pg-doc .site-footer__logo--ilpf {
  height: 36px;
  width: auto;
  max-width: 130px;
}

body.pg-doc .site-footer__logo--lapig {
  height: 27px;
  width: auto;
  max-width: 140px;
}

body.pg-doc .site-footer__logo--ufg {
  height: 35.5px;
  width: auto;
  max-width: 150px;
}

body.pg-doc .site-footer__logo-divider {
  width: 1px;
  height: 28px;
  background: var(--color-rule);
}

body.pg-doc .site-footer p {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.6;
}

body.pg-doc .site-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

body.pg-doc .site-footer a:hover {
  text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────
       RESPONSIVE & CROSS-PLATFORM SYSTEM
    ────────────────────────────────────────────────────────── */
@media (max-width: 950px) {
  body.pg-doc .site-nav__inner {
    padding: 0.5rem 1.25rem;
    gap: 1rem;
  }

  body.pg-doc .site-nav__links {
    gap: 1rem;
  }

  body.pg-doc .map-viz {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  body.pg-doc .map-container {
    height: 480px;
    min-height: 400px;
  }

  body.pg-doc .map-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.pg-doc .static-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.pg-doc .site-nav__inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.45rem 1rem;
    gap: 0.75rem;
  }

  body.pg-doc .site-nav__brand-logos {
    gap: 0.75rem;
  }

  body.pg-doc .site-nav__logo--wri {
    height: 25px;
    max-width: 125px;
  }

  body.pg-doc .site-nav__logo--lapig {
    height: 21px;
    max-width: 105px;
  }

  body.pg-doc .site-nav__logo--ufg {
    height: 28px;
    max-width: 115px;
  }

  body.pg-doc .site-nav__logo-divider {
    height: 22px;
  }

  body.pg-doc .site-nav__links {
    width: 100%;
    justify-content: center;
    gap: 0.85rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.2rem 0;
  }

  body.pg-doc .site-nav__links::-webkit-scrollbar {
    display: none;
  }

  body.pg-doc .split-dashboards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  body.pg-doc .hero {
    padding: 2.5rem 1rem 1.75rem;
  }

  body.pg-doc .hero__subtitle {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }

  body.pg-doc .hero__meta {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
  }

  body.pg-doc .section,
  body.pg-doc .section--alt {
    padding: 2.5rem 1rem;
  }

  body.pg-doc .section__desc {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }

  body.pg-doc .cards {
    grid-template-columns: 1fr;
  }

  body.pg-doc .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  body.pg-doc .stats .stat:last-child {
    grid-column: 1 / -1;
  }

  body.pg-doc .pipeline {
    grid-template-columns: 1fr;
  }

  body.pg-doc .pipeline__step::after {
    display: none;
  }

  body.pg-doc .classes-grid {
    grid-template-columns: 1fr;
  }

  body.pg-doc .method-stepper {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  body.pg-doc .risk-grid {
    grid-template-columns: 1fr;
  }

  body.pg-doc .roadmap-grid {
    grid-template-columns: 1fr;
  }

  body.pg-doc .map-container {
    height: 380px;
    min-height: 320px;
  }

  body.pg-doc #map-amostras {
    min-height: 320px;
  }

  body.pg-doc .map-controls-overlay {
    top: 8px;
    right: 8px;
    left: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 4px 6px;
  }

  body.pg-doc .map-controls-overlay::-webkit-scrollbar {
    display: none;
  }

  body.pg-doc .map-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  body.pg-doc .split-map-wrapper {
    height: 340px;
  }

  body.pg-doc .script-links-grid {
    grid-template-columns: 1fr;
  }

  body.pg-doc .data-table-wrapper,
  body.pg-doc .overlap-table-container {
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
}

@media (max-width: 420px) {
  body.pg-doc .method-stepper {
    grid-template-columns: 1fr;
  }

  body.pg-doc .stats {
    grid-template-columns: 1fr;
  }

  body.pg-doc .stats .stat:last-child {
    grid-column: auto;
  }
}

/* ──────────────────────────────────────────────────────────
       ANIMATIONS
    ────────────────────────────────────────────────────────── */
@keyframes doc-fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.pg-doc .fade-up {
  opacity: 0;
  animation: doc-fadeUp 0.6s ease forwards;
}

body.pg-doc .fade-up:nth-child(2) {
  animation-delay: 0.08s;
}

body.pg-doc .fade-up:nth-child(3) {
  animation-delay: 0.16s;
}

body.pg-doc .fade-up:nth-child(4) {
  animation-delay: 0.24s;
}

body.pg-doc .fade-up:nth-child(5) {
  animation-delay: 0.32s;
}

body.pg-doc .fade-up:nth-child(6) {
  animation-delay: 0.40s;
}

/* Scroll-triggered fade-in */
body.pg-doc .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.pg-doc .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Divider */
body.pg-doc hr.divider {
  border: none;
  height: 1px;
  background: var(--color-rule);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
       INTERACTIVE MAP & OVERLAY CONTROLS
    ────────────────────────────────────────────────────────── */
body.pg-doc .map-viz {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 1.5rem;
  margin-top: 1.5rem;
  height: 820px;
  max-height: 88vh;
}

@media (max-width: 950px) {
  body.pg-doc .map-viz {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
}

body.pg-doc .map-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 760px;
}

@media (max-width: 950px) {
  body.pg-doc .map-container {
    height: 520px;
    min-height: 520px;
  }
}

body.pg-doc #map-amostras {
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 1;
}

/* Map Floating Controls */
body.pg-doc .map-controls-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.pg-doc .map-btn {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition);
  line-height: 1;
}

body.pg-doc .map-btn:hover {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

body.pg-doc .map-btn--draw.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

body.pg-doc .map-btn--clear-rect {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

body.pg-doc .map-btn--clear-rect:hover {
  background: #fecaca;
  color: #991b1b;
  border-color: #f87171;
}

body.pg-doc .map-btn--embrapa.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
}

body.pg-doc .map-select {
  padding-right: 1.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 0.75rem;
}

/* Custom styling for Leaflet controls */
body.pg-doc .leaflet-control-layers {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
}

body.pg-doc .leaflet-control-layers-expanded {
  padding: 8px 12px !important;
}

body.pg-doc .leaflet-bar {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
}

body.pg-doc .leaflet-bar a {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--color-fg) !important;
}

body.pg-doc .map-selection-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(24, 54, 45, 0.95);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  animation: doc-fadeUp 0.3s ease;
}

/* ──────────────────────────────────────────────────────────
       MAP PANEL & FILTER ACCORDION
    ────────────────────────────────────────────────────────── */
body.pg-doc .map-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  max-height: 820px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

@media (max-width: 950px) {
  body.pg-doc .map-panel {
    height: auto;
    max-height: none;
  }
}

/* Custom Sleek Scrollbar for Panel */
body.pg-doc .map-panel::-webkit-scrollbar {
  width: 6px;
}

body.pg-doc .map-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

body.pg-doc .map-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

body.pg-doc .map-panel::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

body.pg-doc .map-panel__card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

body.pg-doc .map-panel__title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-fg);
}

body.pg-doc .map-counter {
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-rule);
}

body.pg-doc .map-counter__number {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1;
}

body.pg-doc .map-counter__label {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--color-fg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

body.pg-doc .map-counter__sub {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

/* Filter Card Header */
body.pg-doc .filter-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-doc .filter-card__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-fg);
}

body.pg-doc .filter-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--color-fg);
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  border: 1px solid var(--color-rule);
}

body.pg-doc .btn-clear-filters {
  background: none;
  border: 1px solid var(--color-rule);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
}

body.pg-doc .btn-clear-filters:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* Dataset Selector Group (50k vs 11k) */
body.pg-doc .dataset-select-group {
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-doc .dataset-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.35rem;
}

body.pg-doc .dataset-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.3rem;
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.2;
}

body.pg-doc .dataset-chip strong {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-fg);
}

body.pg-doc .dataset-chip small {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  color: var(--color-muted);
}

body.pg-doc .dataset-chip:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
}

body.pg-doc .dataset-chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

body.pg-doc .dataset-chip.active strong,
body.pg-doc .dataset-chip.active small {
  color: #ffffff;
}

/* Filter Accordion */
body.pg-doc .filter-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.pg-doc .filter-item {
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg);
}

body.pg-doc .filter-item__header {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.02);
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-fg);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

body.pg-doc .filter-item__header:hover {
  background: var(--color-accent-glow);
}

body.pg-doc .filter-item__icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  color: var(--color-muted);
}

body.pg-doc .filter-item.open .filter-item__icon {
  transform: rotate(180deg);
}

body.pg-doc .filter-item__body {
  padding: 0.75rem;
  display: none;
  border-top: 1px solid var(--color-rule);
  background: #ffffff;
}

body.pg-doc .filter-item.open .filter-item__body {
  display: block;
}

/* Year Selector Grid */
body.pg-doc .year-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

body.pg-doc .year-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.pg-doc .year-chip,
body.pg-doc .mb-year-chip,
body.pg-doc .change-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
}

body.pg-doc .year-chip input,
body.pg-doc .mb-year-chip input,
body.pg-doc .change-chip input {
  display: none;
}

body.pg-doc .year-chip:hover,
body.pg-doc .mb-year-chip:hover,
body.pg-doc .change-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-section-bg);
}

body.pg-doc .year-chip.active,
body.pg-doc .mb-year-chip.active,
body.pg-doc .change-chip.active {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 1px var(--color-accent);
}

body.pg-doc .filter-note {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
  font-style: italic;
}

/* Vigor Checkboxes */
body.pg-doc .vigor-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.pg-doc .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  cursor: pointer;
  user-select: none;
}

body.pg-doc .vigor-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

body.pg-doc .vigor-1 {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

body.pg-doc .vigor-2 {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
}

body.pg-doc .vigor-3 {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

body.pg-doc .vigor-desc {
  color: var(--color-muted);
  font-size: 0.68rem;
  margin-left: auto;
}

/* Md3 Slider & Chips */
body.pg-doc .md3-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.pg-doc .md3-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--color-fg);
}

body.pg-doc .md3-slider-label strong {
  color: var(--color-accent);
}

body.pg-doc .md3-slider {
  width: 100%;
  cursor: pointer;
  accent-color: var(--color-accent);
}

body.pg-doc .md3-chips {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

body.pg-doc .md3-chip {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--color-rule);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
}

body.pg-doc .md3-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

body.pg-doc .md3-chip.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

/* Filter classes actions */
body.pg-doc .filter-classes-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

body.pg-doc .filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.pg-doc .filter-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  transition: background var(--transition);
}

body.pg-doc .filter-list li:hover {
  background: var(--color-accent-glow);
}

body.pg-doc .filter-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.pg-doc .filter-count {
  margin-left: auto;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

/* Dual Charts */
body.pg-doc .chart-card {
  padding: 1rem 1.2rem;
}

body.pg-doc .chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

body.pg-doc .chart-badge {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-accent-glow);
  color: var(--color-accent);
  padding: 0.15rem 0.4rem;
  border-radius: 100px;
}

body.pg-doc .chart-badge--ref {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

body.pg-doc .chart-card--embrapa {
  background: #fbfbf9;
  border-color: #e2e8f0;
}

body.pg-doc .chart-container {
  position: relative;
  width: 100%;
  height: 180px;
}

/* Leaflet popup customization */
body.pg-doc .leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font-sans) !important;
}

body.pg-doc .leaflet-popup-content {
  margin: 12px 16px !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

body.pg-doc .popup-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--color-fg);
}

body.pg-doc .popup-class {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

body.pg-doc .popup-class__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

body.pg-doc .popup-meta {
  color: var(--color-muted);
  font-size: 0.75rem;
}

body.pg-doc .map-caption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  font-style: italic;
  margin: 0.8rem auto 0;
  max-width: 1020px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ──────────────────────────────────────────────────────────
       OVERLAP TABLE & SEARCH & FILTERS
    ────────────────────────────────────────────────────────── */
body.pg-doc .overlap-table-header {
  padding: 0.8rem 1rem;
  background: var(--color-section-bg);
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pg-doc .overlap-table-header h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-fg);
  text-align: left;
}

body.pg-doc .overlap-table-header small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-muted);
}

body.pg-doc .search-container {
  margin-bottom: 0.6rem;
}

body.pg-doc .search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  background: var(--color-bg);
  color: var(--color-fg);
  transition: border-color var(--transition);
}

body.pg-doc .search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

body.pg-doc .overlap-table-container {
  margin-top: 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-height: 480px;
  overflow-y: auto;
  overflow-x: auto;
  display: none;
}

/* Custom Sleek Scrollbar for Table */
body.pg-doc .overlap-table-container::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

body.pg-doc .overlap-table-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}

body.pg-doc .overlap-table-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

body.pg-doc .overlap-table-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

body.pg-doc .overlap-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  min-width: 800px;
}

body.pg-doc .overlap-table th,
body.pg-doc .overlap-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-doc .overlap-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #edf1eb;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.pg-doc .overlap-table tr:last-child td {
  border-bottom: none;
}

body.pg-doc .overlap-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

body.pg-doc .class-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
  color: #000000;
}

/* Pie marker icon styles */
body.pg-doc .pie-marker-icon {
  background: none;
  border: none;
}

body.pg-doc .pie-marker-icon svg {
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  background: #fff;
}

/* Reset button on map */
body.pg-doc .map-reset-btn {
  position: absolute;
  top: 80px;
  left: 10px;
  z-index: 1000;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-fg);
  transition: background var(--transition);
  line-height: 1;
}

body.pg-doc .map-reset-btn:hover {
  background: var(--color-accent-glow);
}

@media (max-width: 800px) {
  body.pg-doc .map-viz {
    grid-template-columns: 1fr;
  }

  body.pg-doc .map-container {
    min-height: 380px;
  }

  body.pg-doc #map-amostras {
    min-height: 380px;
  }
}

/* ──────────────────────────────────────────────────────────
       SPLIT MAP & DASHBOARDS
    ────────────────────────────────────────────────────────── */
body.pg-doc .split-map-wrapper {
  position: relative;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

body.pg-doc #split-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

body.pg-doc .split-dashboards {
  display: flex;
  gap: 1.5rem;
}

body.pg-doc .split-dashboard {
  flex: 1;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.pg-doc .dashboard-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  text-align: center;
}

body.pg-doc .dashboard-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

body.pg-doc .legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

body.pg-doc .legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.pg-doc .dashboard-chart {
  position: relative;
  width: 100%;
  height: 150px;
}

@media (max-width: 800px) {
  body.pg-doc .split-dashboards {
    flex-direction: column;
  }
}

body.pg-doc .leaflet-sbs-range::-webkit-slider-thumb {
  width: 80px !important;
  height: 80px !important;
  background: transparent !important;
  cursor: ew-resize !important;
}

body.pg-doc .leaflet-sbs-range::-moz-range-thumb {
  width: 80px !important;
  height: 80px !important;
  background: transparent !important;
  cursor: ew-resize !important;
}

/* ──────────────────────────────────────────────────────────
       PAGE HEADER & BACK BUTTON (SUB-PAGES)
    ────────────────────────────────────────────────────────── */
body.pg-doc .page-header {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem var(--gutter) 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

body.pg-doc .page-header .back-button {
  align-self: flex-start;
}

body.pg-doc .back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-fg);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.1rem;
  transition: all var(--transition);
  line-height: 1;
}

body.pg-doc .back-button svg {
  transition: transform var(--transition);
  stroke: currentColor;
}

body.pg-doc .back-button:hover {
  background: var(--color-fg);
  color: #ffffff;
  border-color: var(--color-fg);
  transform: translateX(-2px);
}

body.pg-doc .back-button:hover svg {
  transform: translateX(-2px);
}

body.pg-doc .page-header__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
  text-align: left;
}

body.pg-doc .page-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 3.2vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 0.5rem;
  color: var(--color-fg);
  text-align: left;
}

body.pg-doc .page-header__desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  max-width: 1080px;
  margin: 0;
  line-height: 1.62;
  text-align: left;
}

@media (max-width: 700px) {
  body.pg-doc .page-header {
    padding: 2rem 1rem 1rem;
  }

  body.pg-doc .page-header__desc {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

/* ──────────────────────────────────────────────────────────
       PRODUTOS ESTÃTICOS — STYLES
    ────────────────────────────────────────────────────────── */
body.pg-doc .static-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  body.pg-doc .static-products-grid {
    grid-template-columns: 1fr;
  }
}

body.pg-doc .static-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

body.pg-doc .static-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(24, 54, 45, 0.3);
}

body.pg-doc .static-card--wide {
  grid-column: 1 / -1;
}

body.pg-doc .static-card__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

body.pg-doc .static-card__icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(24, 54, 45, 0.15);
}

body.pg-doc .static-card__badge {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  display: block;
}

body.pg-doc .static-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-top: 0.1rem;
}

body.pg-doc .static-card__desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-word;
}

body.pg-doc .static-card__actions {
  margin-top: auto;
}

body.pg-doc .btn-static-download {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

body.pg-doc .btn-static-download--disabled {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  cursor: not-allowed;
}

body.pg-doc .badge-status {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
}

body.pg-doc .badge-status--ready {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

body.pg-doc .btn-static-download:hover:not(.btn-static-download--disabled) {
  background: #10382b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 54, 45, 0.25);
}

/* Asset List GEE */
body.pg-doc .asset-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

body.pg-doc .asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 6px;
}

@media (max-width: 700px) {
  body.pg-doc .asset-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.pg-doc .asset-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.pg-doc .asset-item__info strong {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-fg);
}

body.pg-doc .asset-item__info code {
  font-family: monospace;
  font-size: 0.72rem;
  color: #0f766e;
  word-break: break-all;
  background: rgba(15, 118, 110, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

body.pg-doc .btn-copy-asset {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}

body.pg-doc .btn-copy-asset:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

/* Script Links Grid */
body.pg-doc .static-subheading {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-top: 0.8rem;
  margin-bottom: 0.6rem;
}

body.pg-doc .script-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.6rem;
}

body.pg-doc .script-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-fg);
  transition: all var(--transition);
}

body.pg-doc .script-link-item:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
  transform: translateX(2px);
}

body.pg-doc .script-link-item--github:hover {
  border-color: #4338ca;
  background: #eef2ff;
}

body.pg-doc .script-link-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.pg-doc .script-link-item__text strong {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
}

body.pg-doc .script-link-item__text small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-muted);
}

body.pg-doc .script-link-item__arrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

body.pg-doc .script-link-item--github .script-link-item__arrow {
  color: #4338ca;
}

/* Static Data Table */
body.pg-doc .data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  margin-top: 0.5rem;
}

body.pg-doc .static-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  min-width: 600px;
}

body.pg-doc .static-data-table th,
body.pg-doc .static-data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-doc .static-data-table th {
  background: var(--color-section-bg);
  font-weight: 700;
  color: var(--color-fg);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.pg-doc .static-data-table tbody tr:last-child td {
  border-bottom: none;
}

body.pg-doc .static-data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

body.pg-doc .download-links-cell {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

body.pg-doc .data-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

body.pg-doc .data-badge--csv {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

body.pg-doc .data-badge--csv:hover {
  background: #0284c7;
  color: #ffffff;
}

body.pg-doc .data-badge--json {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

body.pg-doc .data-badge--json:hover {
  background: #ca8a04;
  color: #ffffff;
}

body.pg-doc .data-badge--parquet {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

body.pg-doc .data-badge--parquet:hover {
  background: #9333ea;
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────
       SOM — SELF-ORGANIZING MAPS SECTION
    ────────────────────────────────────────────────────────── */
body.pg-doc .som-development-card {
  background: var(--color-card-bg);
  border: 1px dashed var(--color-rule);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.pg-doc .som-development-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  animation: doc-pulse 2.5s infinite ease-in-out;
}

body.pg-doc .som-development-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 0.6rem;
  text-align: center;
}

body.pg-doc .som-development-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0.4rem auto 0.8rem;
}

body.pg-doc .som-development-status {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-align: center;
}

body.pg-doc .som-development-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.5;
  text-align: center;
}

@keyframes doc-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}


/* ──────────────────────────────────────────────────────────
       GLOBAL FONT STANDARDIZATION & TEXT JUSTIFICATION
    ────────────────────────────────────────────────────────── */
body.pg-doc,
body.pg-doc h1,
body.pg-doc h2,
body.pg-doc h3,
body.pg-doc h4,
body.pg-doc h5,
body.pg-doc h6,
body.pg-doc p,
body.pg-doc li,
body.pg-doc td,
body.pg-doc th,
body.pg-doc span,
body.pg-doc div,
body.pg-doc a,
body.pg-doc button,
body.pg-doc input,
body.pg-doc select,
body.pg-doc .section__title,
body.pg-doc .card__title,
body.pg-doc .stat__number,
body.pg-doc .page-header__title,
body.pg-doc .landscape-card h1,
body.pg-doc .landscape-date strong,
body.pg-doc .home-directory strong,
body.pg-doc .map-counter__number,
body.pg-doc .method-formula {
  font-family: var(--font-sans);
}

body.pg-doc .landscape-intro,
body.pg-doc .section__desc,
body.pg-doc .card__desc,
body.pg-doc .class-item__desc,
body.pg-doc .deliverable__desc,
body.pg-doc .timeline__desc,
body.pg-doc .method-scope-banner__content,
body.pg-doc .fnode__desc,
body.pg-doc .fnode__body p,
body.pg-doc .method-list-styled li,
body.pg-doc .method-subcard,
body.pg-doc .froadmap li,
body.pg-doc .page-header__desc,
body.pg-doc .static-card__desc,
body.pg-doc .map-caption,
body.pg-doc .home-directory small,
body.pg-doc .risk-card p,
body.pg-doc .roadmap-card__content p,
body.pg-doc .status-card .sub,
body.pg-doc .detalhe-etapa__obj,
body.pg-doc .detalhe-etapa__list li,
body.pg-doc .etapa-card__desc,
body.pg-doc .prod-item span {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.pg-doc .section__desc,
body.pg-doc .page-header__desc {
  max-width: 100%;
}

/* ──────────────────────────────────────────────────────────
       COMPACT MINIMIZED TIMELINE (STATUS CARD + MILESTONE BAR)
    ────────────────────────────────────────────────────────── */
body.pg-doc .status-section {
  padding-top: 1.5rem;
  padding-bottom: 2.25rem;
}

body.pg-doc .status-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 2.25rem;
  border: 1px solid var(--line);
  align-items: center;
}

body.pg-doc .agora-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--agora);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.pg-doc .pulso {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--agora);
  box-shadow: 0 0 0 0 rgba(201, 115, 32, 0.6);
  animation: doc-pulsoStatus 1.8s infinite;
}

@keyframes doc-pulsoStatus {
  70% {
    box-shadow: 0 0 0 12px rgba(201, 115, 32, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 115, 32, 0);
  }
}

body.pg-doc .status-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.4rem 0 0.45rem;
  line-height: 1.25;
}

body.pg-doc .status-card .sub {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

body.pg-doc .status-card__actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.pg-doc .linha-tempo {
  position: relative;
  padding-top: 0.5rem;
}

body.pg-doc .lt-trilho {
  position: relative;
  height: 8px;
  background: #dfe5df;
  border-radius: 99px;
  margin: 52px 32px 0;
}

body.pg-doc .lt-prog {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--ink), #3b7a57);
  border-radius: 99px;
}

body.pg-doc .lt-hoje {
  position: absolute;
  top: -34px;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--agora);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.pg-doc .lt-hoje::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 2px;
  height: 24px;
  background: var(--agora);
}

body.pg-doc .marco {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--futuro);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--futuro);
  cursor: default;
}

body.pg-doc .marco.ok {
  border-color: var(--ok);
  background: var(--ok);
  color: #ffffff;
}

body.pg-doc .marco.agora {
  border-color: var(--agora);
  color: var(--agora);
  width: 28px;
  height: 28px;
  box-shadow: 0 0 0 5px rgba(201, 115, 32, 0.18);
}

body.pg-doc .marco-rot {
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.25;
  width: 96px;
  color: var(--muted);
}

body.pg-doc .marco-rot b {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

body.pg-doc .marco-rot.cima {
  top: auto;
  bottom: 22px;
}

body.pg-doc .lt-legenda {
  display: flex;
  gap: 1.25rem;
  margin-top: 64px;
  font-size: 0.76rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}

body.pg-doc .lt-legenda span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}

body.pg-doc .lt-legenda .l-ok::before {
  background: var(--ok);
}

body.pg-doc .lt-legenda .l-ag::before {
  background: var(--agora);
}

body.pg-doc .lt-legenda .l-fu::before {
  background: var(--futuro);
}

/* ──────────────────────────────────────────────────────────
       FULL TIMELINE PAGE (/cronograma/) — STAGES & PRODUCTS
    ────────────────────────────────────────────────────────── */
body.pg-doc .fluxo-etapas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  position: relative;
}

body.pg-doc .etapa-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
  opacity: 0.72;
}

body.pg-doc .etapa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

body.pg-doc .etapa-card.is-selected {
  opacity: 1;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-md);
}

body.pg-doc .etapa-card__icone {
  width: 78px;
  height: 78px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2.5px solid var(--futuro);
  color: var(--ink);
  transition: transform var(--transition);
}

body.pg-doc .etapa-card__icone svg {
  width: 38px;
  height: 38px;
}

body.pg-doc .etapa-card.ok .etapa-card__icone {
  border-color: var(--ok);
  background: #eaf4ee;
  color: var(--ok);
}

body.pg-doc .etapa-card.agora .etapa-card__icone {
  border-color: var(--agora);
  background: #fff4e8;
  color: var(--agora);
  box-shadow: 0 0 0 6px rgba(201, 115, 32, 0.14);
}

body.pg-doc .etapa-card.parcial .etapa-card__icone {
  border-color: var(--forest);
  border-style: dashed;
  color: var(--forest);
}

body.pg-doc .etapa-card__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

body.pg-doc .etapa-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.35rem 0 0.45rem;
}

body.pg-doc .etapa-card__desc {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

body.pg-doc .selo-etapa {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.pg-doc .selo-etapa.ok {
  background: #e1f1e5;
  color: var(--ok);
}

body.pg-doc .selo-etapa.agora {
  background: #ffe9d1;
  color: #9e5311;
}

body.pg-doc .selo-etapa.parcial {
  background: #e8f0ec;
  color: var(--forest);
}

body.pg-doc .selo-etapa.fu {
  background: #eceeed;
  color: #5f6d66;
}

body.pg-doc .aqui-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--agora);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

body.pg-doc .detalhe-etapa {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.25rem;
  box-shadow: var(--shadow-sm);
}

body.pg-doc .detalhe-etapa__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

body.pg-doc .detalhe-etapa__periodo {
  display: inline-block;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.2rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

body.pg-doc .detalhe-etapa__obj {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.6;
}

body.pg-doc .detalhe-etapa__how-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

body.pg-doc .detalhe-etapa__list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

body.pg-doc .detalhe-etapa__list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

body.pg-doc .detalhe-etapa__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 700;
}

body.pg-doc .detalhe-etapa__meta {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--text);
}

body.pg-doc .subpassos {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

body.pg-doc .subpassos__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

body.pg-doc .sp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text);
}

body.pg-doc .sp i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
}

body.pg-doc .sp.ok i {
  background: var(--ok);
}

body.pg-doc .sp.agora i {
  background: var(--agora);
}

body.pg-doc .sp.fu i {
  background: #cbd5e1;
}

body.pg-doc .produtos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

body.pg-doc .prod-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.pg-doc .prod-item--active {
  border-color: var(--agora);
  box-shadow: 0 0 0 1px rgba(201, 115, 32, 0.25);
}

body.pg-doc .prod-item b {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

body.pg-doc .prod-item--active b {
  color: var(--agora);
}

body.pg-doc .prod-item span {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.45;
}

@media (max-width: 1024px) {
  body.pg-doc .status-card,
  body.pg-doc .detalhe-etapa {
    grid-template-columns: 1fr;
  }
  body.pg-doc .fluxo-etapas {
    grid-template-columns: repeat(2, 1fr);
  }
  body.pg-doc .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body.pg-doc .fluxo-etapas,
  body.pg-doc .produtos-grid {
    grid-template-columns: 1fr;
  }
  body.pg-doc .marco-rot {
    font-size: 0.64rem;
    width: 66px;
  }
  body.pg-doc .marco-rot b {
    font-size: 0.68rem;
  }
}


/* ──────────────────────────────────────────────────────────
       CARD OVERFLOW & LAYOUT CONTAINMENT FIXES
    ────────────────────────────────────────────────────────── */
/* 1. Hero Card & Top Directory Containment */
body.pg-doc .landscape-hero {
  min-height: 690px;
}

body.pg-doc .landscape-photo {
  height: 590px;
}

body.pg-doc .landscape-card {
  width: min(820px, calc(100% - 2 * var(--gutter) - 210px));
  padding: clamp(22px, 2.4vw, 34px) clamp(24px, 2.8vw, 42px);
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-doc .landscape-card h1 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.12;
}

body.pg-doc .landscape-intro {
  max-width: 100%;
  font-size: 0.96rem;
  line-height: 1.58;
}

body.pg-doc .home-directory a {
  min-width: 0;
  overflow: hidden;
}

body.pg-doc .home-directory a > div {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-doc .home-directory small {
  max-width: 100%;
  text-align: left !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* 2. Interactive Map Panel Cards (Prevent Flexbox Squashing & Text Overflow) */
body.pg-doc .map-viz {
  grid-template-columns: minmax(0, 1fr) 460px;
}

@media (max-width: 1080px) {
  body.pg-doc .map-viz {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
}

body.pg-doc .map-panel {
  min-width: 0;
}

body.pg-doc .map-panel__card {
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-doc .dataset-chips {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

body.pg-doc .dataset-chip {
  min-width: 0;
  padding: 0.5rem 0.45rem;
  text-align: center !important;
  overflow: hidden;
}

body.pg-doc .dataset-chip strong,
body.pg-doc .dataset-chip small {
  text-align: center !important;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  display: block;
  width: 100%;
}

body.pg-doc .filter-item__header {
  white-space: normal;
  gap: 0.5rem;
  line-height: 1.3;
}

body.pg-doc .checkbox-label {
  flex-wrap: wrap;
  min-width: 0;
}

body.pg-doc .filter-list li {
  min-width: 0;
  overflow-wrap: break-word;
}

body.pg-doc .chart-card {
  flex-shrink: 0;
}

/* 3. Timeline Status Card & General Card Overflow Protection */
body.pg-doc .status-card {
  overflow: hidden;
  min-width: 0;
}

body.pg-doc .status-card > * {
  min-width: 0;
}

body.pg-doc .lt-trilho {
  margin: 54px 52px 0;
}

body.pg-doc .marco-rot {
  text-align: center !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  width: 90px;
}

body.pg-doc .card,
body.pg-doc .class-item,
body.pg-doc .class-item > div,
body.pg-doc .deliverable,
body.pg-doc .static-card,
body.pg-doc .prod-item,
body.pg-doc .detalhe-etapa > div {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-doc .etapa-card {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-doc .etapa-card__desc {
  text-align: center !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* ──────────────────────────────────────────────────────────
   FERRAMENTA DE VISUALIZAÇÃO DE TRANSIÇÕES (MAPBIOMAS)
   ────────────────────────────────────────────────────────── */
body.pg-doc .change-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--color-border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
body.pg-doc .change-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
body.pg-doc .change-chip.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

body.pg-doc .inspector-tab {
  background: none;
  border: none;
  padding: 0.32rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.18s ease;
}
body.pg-doc .inspector-tab:hover {
  background: var(--color-section-bg);
  color: var(--color-ink);
}
body.pg-doc .inspector-tab.active {
  background: var(--color-accent);
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────
   REPRESENTAÇÃO TEMPORAL MAPBIOMAS (LINHA POR ANOS & RETÂNGULOS)
   ────────────────────────────────────────────────────────── */
body.pg-doc .mb-annual-strip-container {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px;
  margin: 0.35rem 0 0.5rem 0;
}

body.pg-doc .mb-year-cell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  position: relative;
}

body.pg-doc .mb-year-header {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
  text-align: center;
  width: 100%;
}

body.pg-doc .mb-year-header.is-active {
  color: #184b39;
  font-weight: 800;
  text-decoration: underline;
}

body.pg-doc .mb-year-rect {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  cursor: default;
}
body.pg-doc .mb-year-rect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Indicador visual de transição entre anos */
body.pg-doc .mb-year-cell.has-transition::after {
  content: "➔";
  position: absolute;
  right: -6px;
  top: calc(50% + 9px);
  transform: translateY(-50%);
  font-size: 0.60rem;
  font-weight: 900;
  color: #dc2626;
  background: #ffffff;
  border: 1px solid #dc2626;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 3;
}

/* Legenda Oficial MapBiomas */
body.pg-doc .mb-official-legend {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  margin-top: 0.6rem;
}

body.pg-doc .mb-legend-header {
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 0.25rem;
}

body.pg-doc .mb-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 0.5rem;
}

body.pg-doc .mb-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

body.pg-doc .mb-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

body.pg-doc .mb-legend-text {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

/* Eventos de Transição */
body.pg-doc .mb-transition-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 4px 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-size: 0.73rem;
  color: #991b1b;
  margin-bottom: 4px;
}
body.pg-doc .mb-transition-event-row.is-stable {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Leaflet Popup MapBiomas Style */
body.pg-doc .leaflet-popup-content .popup-mb-wrapper {
  font-family: var(--font-sans);
  padding: 2px;
  width: 290px !important;
  max-width: 290px !important;
  box-sizing: border-box !important;
}
body.pg-doc .popup-mb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 3px;
}
body.pg-doc .popup-mb-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
}
body.pg-doc .popup-mb-strip {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 3px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 6px 0 !important;
  background: #f8fafc;
  padding: 5px 3px !important;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
body.pg-doc .popup-mb-year-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  text-align: center;
}
body.pg-doc .popup-mb-year-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  margin-bottom: 2px !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  line-height: 1 !important;
}
body.pg-doc .popup-mb-year-lbl.is-active {
  color: #184b39 !important;
  font-weight: 800 !important;
  text-decoration: underline;
}
body.pg-doc .popup-mb-rect {
  width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.60rem !important;
  font-weight: 700 !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  line-height: 1 !important;
  text-align: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  cursor: default !important;
}

/* Stacking container para múltiplas legendas raster no mapa */
body.pg-doc .map-legends-stack {
  position: absolute;
  bottom: 24px;
  left: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100% - 24px);
}

body.pg-doc .map-legends-stack > .map-raster-legend {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  pointer-events: auto;
}

/* Legenda Flutuante do Raster MapBiomas no Mapa */
body.pg-doc .map-raster-legend {
  position: absolute;
  bottom: 24px;
  left: 12px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 5px 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font-family: var(--font-sans);
  pointer-events: auto;
  transition: opacity 0.2s ease;
}
body.pg-doc .map-raster-legend__title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-ink);
  margin-bottom: 3px;
}
body.pg-doc .map-raster-legend__items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.pg-doc .mrl-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.70rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}
body.pg-doc .mrl-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: inline-block;
  flex-shrink: 0;
}

/* Legenda Flutuante da Classificação CNN (Sentinel-2) */
body.pg-doc .map-cnn-legend {
  background: rgba(255, 255, 255, 0.96);
  width: max-content;
  max-width: min(460px, calc(100vw - 48px));
  padding: 7px 12px;
}
body.pg-doc .map-cnn-legend .map-cnn-legend__items {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px 12px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  body.pg-doc .map-cnn-legend .map-cnn-legend__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards estatísticos da Mediana do EVI2 (Média da Mediana, Amplitude, Máximo, Mínimo) */
body.pg-doc .evi2-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 0.5rem;
}

body.pg-doc .evi2-stat-card {
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--color-rule, #e2e8f0);
  border-radius: 6px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.pg-doc .evi2-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-muted, #64748b);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

body.pg-doc .evi2-stat-val {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--color-ink, #0f172a);
  font-family: var(--font-sans);
  margin: 1px 0;
  line-height: 1.1;
}

body.pg-doc .evi2-stat-sub {
  font-size: 0.58rem;
  color: var(--color-muted, #64748b);
  font-weight: 500;
  white-space: nowrap;
}

/* Renderização ultra-nítida e sem desfoque para camadas raster MapBiomas e CNN */
body.pg-doc .leaflet-image-layer {
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  image-rendering: pixelated !important;
}



/* ── CAMADAS TEMPORAIS MAPBIOMAS (2020–2025) ── */
body.pg-doc .temporal-card {
  padding: 0.85rem 1rem !important;
}
body.pg-doc .temporal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
body.pg-doc .temporal-card__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--color-ink);
}
body.pg-doc .temporal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
body.pg-doc .temporal-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.42rem 0.52rem;
  border-radius: 6px;
  border: 1px solid var(--color-border, #cbd5e1);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: all 0.16s ease;
}
body.pg-doc .temporal-btn:hover {
  border-color: #18362d;
  background: #f8fafc;
}
body.pg-doc .temporal-btn.active {
  border-color: #18362d;
  background: #eef5ee;
  box-shadow: inset 0 0 0 1px #18362d;
}
body.pg-doc .temporal-btn--mod.active {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: inset 0 0 0 1px #dc2626;
}
body.pg-doc .temporal-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.25);
  flex-shrink: 0;
}
body.pg-doc .temporal-swatch--mod {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 40%, #dc2626 75%, #991b1b 100%);
}
body.pg-doc .temporal-btn__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
body.pg-doc .temporal-btn__name {
  font-size: 0.71rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.pg-doc .temporal-btn__ha {
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 1px;
}
body.pg-doc .temporal-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.70rem;
  color: #475569;
}
body.pg-doc .map-temporal-legend {
  background: rgba(255, 255, 255, 0.96);
  max-width: 340px;
}
body.pg-doc .map-temporal-legend__scale {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #cbd5e1;
}

    body.pg-doc { background: #f8fafc; margin: 0; padding: 0; }
    body.pg-doc .exec-topbar {
      background: #143628;
      color: #ffffff;
      padding: 0.65rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
      border-bottom: 3px solid #2d6a3f;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    body.pg-doc .exec-topbar__brand {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }
    body.pg-doc .exec-topbar__title {
      font-family: var(--font-sans);
      font-size: 1.02rem;
      font-weight: 800;
      letter-spacing: -0.01em;
      color: #ffffff;
      margin: 0;
    }
    body.pg-doc .exec-topbar__sub {
      font-family: var(--font-sans);
      font-size: 0.75rem;
      color: #bbf7d0;
      margin: 2px 0 0 0;
    }
    body.pg-doc .exec-topbar__actions {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    body.pg-doc .exec-btn {
      background: rgba(255,255,255,0.12);
      color: #ffffff;
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 6px;
      padding: 0.4rem 0.85rem;
      font-family: var(--font-sans);
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s ease;
    }
    body.pg-doc .exec-btn:hover {
      background: rgba(255,255,255,0.22);
    }
  

/* ═══ documentacao_base.css — escopo body.pg-documentacao ═══ */
/* ──────────────────────────────────────────────────────────
       DESIGN SYSTEM — tokens (Time2Graze / WRI / LAPIG palette)
    ────────────────────────────────────────────────────────── */
html:has(body.pg-documentacao) {
  --paper: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #edf1eb;
  --ink: #18362d;
  --text: #33453d;
  --muted: #5f7169;
  --forest: #184b39;
  --forest-dark: #10382b;
  --accent-highlight: #dce89b;
  --line: #d7ddd8;

  --color-bg: var(--paper);
  --color-fg: var(--ink);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-rule: var(--line);
  --color-border: var(--line);
  --color-accent: var(--forest);
  --color-accent-soft: #2c5e4c;
  --color-accent-glow: rgba(24, 54, 45, 0.05);
  --color-yellow: #dce89b;
  --color-card-bg: var(--surface);
  --color-card: var(--surface);
  --color-section-bg: var(--surface-soft);
  --font-sans: "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: var(--font-sans);
  --ok: #1f6f46;
  --agora: #c97320;
  --futuro: #8f9d95;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max-width: 1720px;
  --max-width-wide: min(98vw, 1920px);
  --gutter: clamp(18px, 2.5vw, 44px);
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(16, 56, 43, 0.04);
  --shadow-md: 0 12px 32px -16px rgba(16, 56, 43, 0.14);
  --transition: 0.22s cubic-bezier(.22, .61, .36, 1);
}

/* ──────────────────────────────────────────────────────────
       RESET & BASE
    ────────────────────────────────────────────────────────── */
body.pg-documentacao *,
body.pg-documentacao *::before,
body.pg-documentacao *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html:has(body.pg-documentacao) {
  font-size: 120%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body.pg-documentacao {
  background: var(--color-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

/* ──────────────────────────────────────────────────────────
       NAV
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-rule);
}

body.pg-documentacao .site-nav__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

body.pg-documentacao .site-nav__brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  transition: opacity var(--transition);
}

body.pg-documentacao .site-nav__brand-logos:hover {
  opacity: 0.85;
}

body.pg-documentacao .site-nav__logo {
  display: block;
  object-fit: contain;
  width: auto;
}

body.pg-documentacao .site-nav__logo--wri {
  height: 44px;
  width: auto;
  max-width: 225px;
}

body.pg-documentacao .site-nav__logo--ilpf {
  height: 38px;
  width: auto;
  max-width: 140px;
}

body.pg-documentacao .site-nav__logo--lapig {
  height: 37px;
  width: auto;
  max-width: 190px;
}

body.pg-documentacao .site-nav__logo--ufg {
  height: 48px;
  width: auto;
  max-width: 205px;
}

body.pg-documentacao .site-nav__logo-divider {
  width: 1px;
  height: 36px;
  background: var(--color-rule);
}

body.pg-documentacao .site-nav__brand {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-fg);
  text-decoration: none;
  letter-spacing: 0.01em;
}

body.pg-documentacao .site-nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

body.pg-documentacao .site-nav__links a {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-fg);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

body.pg-documentacao .site-nav__links a:hover {
  color: var(--color-muted);
}

/* ──────────────────────────────────────────────────────────
       LANDSCAPE HERO & TOP DIRECTORY (TIME2GRAZE STYLE)
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .landscape-hero {
  position: relative;
  min-height: 640px;
  max-width: var(--max-width-wide);
  padding: 0 var(--gutter) 68px;
  background: var(--paper);
  margin: 0 auto;
}

body.pg-documentacao .landscape-photo {
  position: relative;
  height: 540px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

body.pg-documentacao .landscape-photo::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 56, 43, 0.25), transparent 55%);
}

body.pg-documentacao .landscape-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.95) contrast(1.04);
  display: block;
}

body.pg-documentacao .landscape-photo p {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 1;
  margin: 0;
  padding: 8px 14px;
  background: rgba(16, 56, 43, 0.85);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.pg-documentacao .landscape-card {
  position: absolute;
  bottom: 24px;
  left: calc(var(--gutter) + clamp(28px, 4vw, 64px));
  z-index: 2;
  width: min(760px, calc(100% - 2 * var(--gutter) - 220px));
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.2vw, 44px) clamp(28px, 3.6vw, 52px);
  box-shadow: 0 18px 40px -30px rgba(16, 56, 43, 0.42);
}

body.pg-documentacao .landscape-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

body.pg-documentacao .landscape-eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: var(--accent-highlight);
  box-shadow: 0 1px 0 var(--forest);
}

body.pg-documentacao .landscape-card h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

body.pg-documentacao .landscape-card h1 span {
  display: block;
  margin-top: 0.15em;
  font-size: 0.72em;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

body.pg-documentacao .landscape-intro {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.62;
  text-align: left;
}

body.pg-documentacao .landscape-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body.pg-documentacao .landscape-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 210px;
  padding: 13px 18px;
  background: var(--forest-dark);
  color: #ffffff;
  border: 1px solid var(--forest-dark);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

body.pg-documentacao .landscape-action:hover {
  background: var(--accent-highlight);
  color: var(--forest-dark);
  border-color: var(--forest-dark);
  transform: translateY(-2px);
}

body.pg-documentacao .landscape-action--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

body.pg-documentacao .landscape-action--secondary:hover {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--ink);
}

body.pg-documentacao .landscape-date {
  position: absolute;
  bottom: 24px;
  right: calc(var(--gutter) + clamp(24px, 3.5vw, 56px));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--accent-highlight);
  color: var(--forest-dark);
  border: 1px solid rgba(16, 56, 43, 0.2);
}

body.pg-documentacao .landscape-date strong {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
}

body.pg-documentacao .landscape-date span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  line-height: 1.25;
}

body.pg-documentacao .home-directory {
  position: relative;
  z-index: 1;
  max-width: var(--max-width-wide);
  padding: 0 var(--gutter);
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

body.pg-documentacao .home-directory a {
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  align-items: start;
  gap: 14px;
  min-height: 132px;
  padding: 22px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background var(--transition);
}

body.pg-documentacao .home-directory a:first-child {
  border-left: 1px solid var(--line);
}

body.pg-documentacao .home-directory a:hover {
  background: #f7f9f3;
}

body.pg-documentacao .home-directory-index {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
}

body.pg-documentacao .home-directory a > div {
  display: grid;
}

body.pg-documentacao .home-directory strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

body.pg-documentacao .home-directory small {
  margin-top: 7px;
  max-width: 38ch;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.45;
}

body.pg-documentacao .home-directory em {
  margin-top: 12px;
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

body.pg-documentacao .home-directory svg {
  align-self: center;
  color: var(--muted);
  transition: transform var(--transition);
}

body.pg-documentacao .home-directory a:hover svg {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  body.pg-documentacao .landscape-hero {
    min-height: auto;
    padding-bottom: 24px;
  }
  body.pg-documentacao .landscape-photo {
    height: 380px;
  }
  body.pg-documentacao .landscape-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: -48px;
  }
  body.pg-documentacao .landscape-date {
    display: none;
  }
  body.pg-documentacao .home-directory {
    grid-template-columns: 1fr;
  }
  body.pg-documentacao .home-directory a {
    border-left: 1px solid var(--line);
    min-height: auto;
  }
}

/* ──────────────────────────────────────────────────────────
       SECTION WRAPPERS & STANDARDIZED HEADERS
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .section {
  padding: 3.5rem var(--gutter);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

body.pg-documentacao .section--alt {
  background: var(--color-section-bg);
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  max-width: 100%;
  padding: 3.5rem var(--gutter);
}

body.pg-documentacao .section--alt > .section__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

body.pg-documentacao #visualizacoes > .section__inner,
body.pg-documentacao #comparacao > .section__inner {
  max-width: var(--max-width-wide);
}

body.pg-documentacao .section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 0.45rem;
  text-align: left;
}

body.pg-documentacao .section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 600;
  color: var(--color-fg);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
}

body.pg-documentacao .section__desc {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--text);
  max-width: 960px;
  margin: 0 0 2rem;
  line-height: 1.65;
  text-align: left;
}

/* ──────────────────────────────────────────────────────────
       CARDS GRID
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

body.pg-documentacao .card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
}

body.pg-documentacao .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.pg-documentacao .card__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.45rem;
}

body.pg-documentacao .card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: var(--color-fg);
  line-height: 1.25;
}

body.pg-documentacao .card__desc {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  text-align: left;
}

body.pg-documentacao .card__arrow {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-fg);
  transition: transform var(--transition);
}

body.pg-documentacao .card:hover .card__arrow {
  transform: translateX(4px);
}

/* ──────────────────────────────────────────────────────────
       STATS ROW
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
  margin: 1rem 0;
}

@media (max-width: 1100px) {
  body.pg-documentacao .stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

body.pg-documentacao .stat {
  text-align: left;
  padding: 1.35rem 1.4rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
}

body.pg-documentacao .stat__number {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.1;
}

body.pg-documentacao .stat__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
       CLASSES TABLE
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

body.pg-documentacao .class-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

body.pg-documentacao .class-item:hover {
  box-shadow: var(--shadow-sm);
}

body.pg-documentacao .class-item__swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

body.pg-documentacao .class-item__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-fg);
}

body.pg-documentacao .class-item__desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
  margin-top: 0.2rem;
}

body.pg-documentacao .class-item__count {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-top: 0.3rem;
}

/* ──────────────────────────────────────────────────────────
       IMAGE FIGURE
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .figure {
  margin: 2rem 0;
  text-align: center;
}

body.pg-documentacao .figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-sm);
}

body.pg-documentacao .figure figcaption {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.6rem;
}

/* ──────────────────────────────────────────────────────────
       TIMELINE
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

body.pg-documentacao .timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-rule);
}

body.pg-documentacao .timeline__item {
  position: relative;
  margin-bottom: 1.35rem;
  padding-left: 0.5rem;
}

body.pg-documentacao .timeline__item::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-fg);
  border: 2px solid var(--color-bg);
}

body.pg-documentacao .timeline__item.done::before {
  background: var(--color-fg);
}

body.pg-documentacao .timeline__item.current::before {
  background: var(--accent-highlight);
  border: 3px solid var(--color-fg);
}

body.pg-documentacao .timeline__item.future::before {
  background: var(--color-rule);
}

body.pg-documentacao .timeline__date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.pg-documentacao .timeline__title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-top: 0.15rem;
}

body.pg-documentacao .timeline__desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 0.25rem;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────
       METHODOLOGY PROSE
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .prose {
  max-width: 1480px;
  margin: 2rem auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

body.pg-documentacao .prose p {
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.pg-documentacao .prose strong {
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
       PIPELINE STEPS
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 2rem 0;
  position: relative;
}

body.pg-documentacao .pipeline__step {
  text-align: center;
  padding: 1.2rem 0.8rem;
  position: relative;
}

body.pg-documentacao .pipeline__step::after {
  content: 'â†’';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  color: var(--color-rule);
  font-size: 1.2rem;
}

body.pg-documentacao .pipeline__step:last-child::after {
  display: none;
}

body.pg-documentacao .pipeline__icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

body.pg-documentacao .pipeline__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-fg);
}

body.pg-documentacao .pipeline__sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

/* ──────────────────────────────────────────────────────────
       METHODOLOGY BLOCKS & DETAILS (PREMIUM REDESIGN)
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .method-section {
  position: relative;
}

body.pg-documentacao .method-scope-banner {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

body.pg-documentacao .method-scope-banner__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

body.pg-documentacao .method-scope-banner__content strong {
  color: #92400e;
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────
   METHODOLOGY FLOWCHART — chronological, collapsible boxes
   ────────────────────────────────────────────────────────── */
body.pg-documentacao .flow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow-sm);
}

body.pg-documentacao .flow-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #475569;
}

body.pg-documentacao .flow-legend__title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e293b;
}

body.pg-documentacao .flow-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

body.pg-documentacao .flow-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

body.pg-documentacao .flow-dot--done { background: #22c55e; }
body.pg-documentacao .flow-dot--prelim { background: #f59e0b; }
body.pg-documentacao .flow-dot--dev { background: #f97316; }
body.pg-documentacao .flow-dot--plan { background: #94a3b8; }

body.pg-documentacao .flow-toolbar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pg-documentacao .flow-toolbar__hint {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-right: 0.25rem;
}

body.pg-documentacao .flow-btn {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

body.pg-documentacao .flow-btn:hover {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── Layout ── */
body.pg-documentacao .flow {
  --flow-line: #94a3b8;
  --flow-gap: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

body.pg-documentacao .flow__single {
  width: 100%;
  max-width: 1100px;
}

body.pg-documentacao .flow__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--flow-gap);
  width: 100%;
}

body.pg-documentacao .flow__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.pg-documentacao .flow__col > .fnode {
  flex: 0 0 auto;
}

/* ── Connectors ── */
body.pg-documentacao .fc-fill {
  flex: 1 1 auto;
  min-height: 22px;
  width: 2px;
  align-self: center;
  background: var(--flow-line);
}

body.pg-documentacao .fc-bus {
  position: relative;
  width: 100%;
  height: 2px;
}

body.pg-documentacao .fc-bus::before {
  content: '';
  position: absolute;
  top: 0;
  height: 2px;
  left: calc((100% - var(--flow-gap)) / 4);
  right: calc((100% - var(--flow-gap)) / 4);
  background: var(--flow-line);
}

body.pg-documentacao .fc-bus__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--flow-line);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
}

body.pg-documentacao .fc-arrow {
  position: relative;
  flex-shrink: 0;
  width: 2px;
  height: 46px;
  margin-bottom: 9px;
  align-self: center;
  background: var(--flow-line);
}

body.pg-documentacao .fc-arrow--short {
  height: 26px;
}

body.pg-documentacao .fc-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--flow-line);
}

body.pg-documentacao .fc-arrow__label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-style: italic;
  color: var(--muted);
}

body.pg-documentacao .flow__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 2.5rem 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

body.pg-documentacao .flow__divider::before,
body.pg-documentacao .flow__divider::after {
  content: '';
  flex: 1;
  border-top: 2px dashed #cbd5e1;
}

body.pg-documentacao .flow__row--support {
  row-gap: 1.25rem;
  align-items: start;
}

/* ── Node (box) ── */
body.pg-documentacao .fnode {
  --node-color: var(--ink);
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

body.pg-documentacao .fnode--input { --node-color: var(--ink); }
body.pg-documentacao .fnode--extract { --node-color: var(--ink); }
body.pg-documentacao .fnode--filter { --node-color: var(--ink); }
body.pg-documentacao .fnode--qc { --node-color: var(--ink); }
body.pg-documentacao .fnode--model { --node-color: var(--ink); }
body.pg-documentacao .fnode--valid { --node-color: var(--ink); }
body.pg-documentacao .fnode--support { --node-color: #334155; border-style: dashed; }

body.pg-documentacao .fnode:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

body.pg-documentacao .fnode.is-open {
  border-color: var(--node-color);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-md);
}

body.pg-documentacao .fnode__toggle {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

body.pg-documentacao .fnode__toggle:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: -3px;
}

body.pg-documentacao .fnode__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  background: var(--node-color);
  color: #ffffff;
}

body.pg-documentacao .fnode__num {
  flex-shrink: 0;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.pg-documentacao .fnode__titles {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.pg-documentacao .fnode__phase {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

body.pg-documentacao .fnode__title {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

body.pg-documentacao .fstatus {
  --dot: #94a3b8;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

body.pg-documentacao .fstatus::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--dot);
}

body.pg-documentacao .fstatus--done { --dot: #dce89b; }
body.pg-documentacao .fstatus--prelim { --dot: #fbbf24; }
body.pg-documentacao .fstatus--dev { --dot: #fb923c; }
body.pg-documentacao .fstatus--plan { --dot: #cbd5e1; }

body.pg-documentacao .fnode__chev {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

body.pg-documentacao .fnode.is-open .fnode__chev {
  transform: rotate(180deg);
}

body.pg-documentacao .fnode__summary {
  display: block;
  padding: 0.95rem 1.1rem 0.85rem;
}

body.pg-documentacao .fnode__desc {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

body.pg-documentacao .fnode__kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pg-documentacao .fnode__kpis--inline {
  margin: 0.25rem 0 0.75rem;
}

body.pg-documentacao .fkpi {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

body.pg-documentacao .fkpi__v {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  color: #18362d;
}

body.pg-documentacao .fkpi__l {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  line-height: 1.35;
  color: #64748b;
}

body.pg-documentacao .fnode__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--node-color);
}

body.pg-documentacao .fnode__more .is-open-text,
body.pg-documentacao .fnode.is-open .fnode__more .is-closed-text {
  display: none;
}

body.pg-documentacao .fnode.is-open .fnode__more .is-open-text {
  display: inline;
}

/* Outcome chips (Keep / Analyze / Remove) */
body.pg-documentacao .foutcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

body.pg-documentacao .foutcome {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

body.pg-documentacao .foutcome--keep { background: #dcfce7; color: #166534; border-color: #86efac; }
body.pg-documentacao .foutcome--analyze { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
body.pg-documentacao .foutcome--remove { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* ── Collapsible panel (no padding on the animated element) ── */
body.pg-documentacao .fnode__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.pg-documentacao .fnode.is-open .fnode__panel {
  grid-template-rows: 1fr;
}

body.pg-documentacao .fnode__panel-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}

body.pg-documentacao .fnode.is-open .fnode__panel-inner {
  visibility: visible;
  transition-delay: 0s;
}

body.pg-documentacao .fnode__body {
  padding: 1rem 1.15rem 1.2rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.15);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #334155;
}

body.pg-documentacao .fnode__body p {
  margin: 0 0 0.75rem;
  text-align: left;
}

body.pg-documentacao .fnode__body p:last-child {
  margin-bottom: 0;
}

body.pg-documentacao .fnode__body h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--node-color);
  margin: 1.1rem 0 0.5rem;
}

body.pg-documentacao .fnode__body h4:first-child {
  margin-top: 0;
}

body.pg-documentacao .fnode__body .method-subcard .method-formula {
  margin-bottom: 0;
}

body.pg-documentacao .fnote {
  font-size: 0.76rem;
  font-style: italic;
  color: #64748b;
}

/* Tables inside boxes */
body.pg-documentacao .ftable-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 0.25rem 0 0.85rem;
}

body.pg-documentacao .ftable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  line-height: 1.45;
}

body.pg-documentacao .ftable th,
body.pg-documentacao .ftable td {
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

body.pg-documentacao .ftable th {
  background: #f1f5f1;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e293b;
}

body.pg-documentacao .ftable td:first-child {
  font-weight: 600;
  color: #0f172a;
}

body.pg-documentacao .ftable tbody tr:last-child td {
  border-bottom: none;
}

body.pg-documentacao .ftable__total td {
  background: #f6faf6;
  font-weight: 700;
}

/* md3 cards */
body.pg-documentacao .fmd3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.25rem 0 0.6rem;
}

body.pg-documentacao .fmd3__card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1.5px solid;
  font-size: 0.74rem;
  line-height: 1.4;
}

body.pg-documentacao .fmd3__card strong {
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

body.pg-documentacao .fmd3__n {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.pg-documentacao .fmd3__card--3 { border-color: #86efac; background: #f0fdf4; }
body.pg-documentacao .fmd3__card--3 .fmd3__n { background: #15803d; }
body.pg-documentacao .fmd3__card--2 { border-color: #fcd34d; background: #fffbeb; }
body.pg-documentacao .fmd3__card--2 .fmd3__n { background: #d97706; }
body.pg-documentacao .fmd3__card--1 { border-color: #fca5a5; background: #fef2f2; }
body.pg-documentacao .fmd3__card--1 .fmd3__n { background: #b91c1c; }

/* SOM decision matrix */
body.pg-documentacao .fdecision {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.25rem 0 0.85rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--node-color);
}

body.pg-documentacao .fdecision__step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

body.pg-documentacao .fdecision__q {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 13rem;
}

/* Roadmap list */
body.pg-documentacao .froadmap {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.pg-documentacao .froadmap li::marker {
  font-weight: 800;
  color: var(--node-color);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  body.pg-documentacao .flow__row {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .fc-bus {
    display: none;
  }

  body.pg-documentacao .fc-fill {
    flex: 0 0 22px;
  }

  body.pg-documentacao .flow__row--support .fc-fill {
    display: none;
  }

  body.pg-documentacao .fc-arrow__label {
    display: none;
  }

  body.pg-documentacao .fc-arrow {
    height: 30px;
  }

  body.pg-documentacao .fmd3 {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .flow-toolbar__hint {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body.pg-documentacao .fnode__bar {
    flex-wrap: wrap;
  }

  body.pg-documentacao .fnode__titles {
    order: 3;
    flex-basis: 100%;
  }

  body.pg-documentacao .fstatus {
    margin-left: auto;
  }

  body.pg-documentacao .fdecision__q {
    min-width: 0;
  }
}

/* Redesigned Pipeline Stepper (Legacy support) */
body.pg-documentacao .method-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

@media (max-width: 1100px) {
  body.pg-documentacao .method-stepper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  body.pg-documentacao .method-stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.pg-documentacao .method-step {
  background: var(--color-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

body.pg-documentacao .method-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border-color: rgba(24, 54, 45, 0.3);
}

body.pg-documentacao .method-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

body.pg-documentacao .method-step__icon {
  font-size: 1.3rem;
}

body.pg-documentacao .method-step__status {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

body.pg-documentacao .method-step__status--assembled {
  background: rgba(24, 54, 45, 0.1);
  color: #0f766e;
  border: 1px solid rgba(24, 54, 45, 0.2);
}

body.pg-documentacao .method-step__status--extracted {
  background: rgba(24, 54, 45, 0.1);
  color: #0f766e;
  border: 1px solid rgba(24, 54, 45, 0.2);
}

body.pg-documentacao .method-step__status--preliminary {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

body.pg-documentacao .method-step__status--dev {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

body.pg-documentacao .method-step__status--planning {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

body.pg-documentacao .method-step__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

body.pg-documentacao .method-step__desc {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
}

/* Method Grid & Core Cards */
body.pg-documentacao .method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

@media (max-width: 900px) {
  body.pg-documentacao .method-grid {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .method-card {
    padding: 1.25rem 1.25rem;
  }
}

body.pg-documentacao .method-card {
  background: var(--color-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

body.pg-documentacao .method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: rgba(24, 54, 45, 0.25);
}

body.pg-documentacao .method-card--full {
  grid-column: 1 / -1;
}

body.pg-documentacao .method-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

body.pg-documentacao .method-card__icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(24, 54, 45, 0.07);
  border: 1px solid rgba(24, 54, 45, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

body.pg-documentacao .method-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}

body.pg-documentacao .method-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

body.pg-documentacao .method-card__body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #334155;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

body.pg-documentacao .method-card__body p {
  margin-bottom: 0.85rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.pg-documentacao .method-card__body p:last-child {
  margin-bottom: 0;
}

/* Feature Sub-Blocks inside Cards */
body.pg-documentacao .method-subcard {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0.6rem 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

body.pg-documentacao .method-subcard strong {
  color: #0f172a;
}

body.pg-documentacao .method-subcard--warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.25);
}

body.pg-documentacao .method-subcard--accent {
  background: rgba(24, 54, 45, 0.04);
  border-color: rgba(24, 54, 45, 0.18);
}

body.pg-documentacao .method-list-styled {
  margin: 0.5rem 0 0.8rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.pg-documentacao .method-list-styled li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #334155;
}

body.pg-documentacao .method-list-styled li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: bold;
}

body.pg-documentacao .method-formula {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin: 0.75rem 0;
  color: #0f172a;
  text-align: center;
  line-height: 1.55;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Category & Topic Tags */
body.pg-documentacao .method-tags {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.pg-documentacao .method-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: rgba(24, 54, 45, 0.07);
  color: var(--color-accent);
  border: 1px solid rgba(24, 54, 45, 0.15);
}

/* Risk Dashboard Grid */
body.pg-documentacao .risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0 0.5rem;
}

body.pg-documentacao .risk-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.9rem 1.05rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.pg-documentacao .risk-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

body.pg-documentacao .risk-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.pg-documentacao .risk-card p {
  margin: 0;
  text-align: left;
}

/* Roadmap Grid */
body.pg-documentacao .roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0 0.5rem;
}

body.pg-documentacao .roadmap-card {
  background: #ffffff;
  border: 1px solid rgba(24, 54, 45, 0.2);
  border-radius: 8px;
  padding: 0.9rem 1.05rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #334155;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.pg-documentacao .roadmap-card:hover {
  border-color: rgba(24, 54, 45, 0.45);
  box-shadow: 0 4px 12px rgba(24, 54, 45, 0.08);
  transform: translateY(-1px);
}

body.pg-documentacao .roadmap-card__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

body.pg-documentacao .roadmap-card__content strong {
  display: block;
  color: #1b4d3e;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
}

body.pg-documentacao .roadmap-card__content p {
  margin: 0;
  text-align: left;
}

/* ──────────────────────────────────────────────────────────
       DELIVERABLES
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

body.pg-documentacao .deliverable {
  padding: 1.35rem 1.45rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  text-align: left;
  transition: box-shadow var(--transition);
}

body.pg-documentacao .deliverable:hover {
  box-shadow: var(--shadow-sm);
}

body.pg-documentacao .deliverable__icon {
  color: var(--color-fg);
  margin-bottom: 0.65rem;
}

body.pg-documentacao .deliverable__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-fg);
}

body.pg-documentacao .deliverable__desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.35rem;
  line-height: 1.55;
}

/* ──────────────────────────────────────────────────────────
       FOOTER
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--color-rule);
  margin-top: 2rem;
}

body.pg-documentacao .site-footer__logos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

body.pg-documentacao .site-footer__logos a {
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity var(--transition);
}

body.pg-documentacao .site-footer__logos a:hover {
  opacity: 1;
}

body.pg-documentacao .site-footer__logo {
  display: block;
  object-fit: contain;
  width: auto;
}

body.pg-documentacao .site-footer__logo--wri {
  height: 32px;
  width: auto;
  max-width: 165px;
}

body.pg-documentacao .site-footer__logo--ilpf {
  height: 36px;
  width: auto;
  max-width: 130px;
}

body.pg-documentacao .site-footer__logo--lapig {
  height: 27px;
  width: auto;
  max-width: 140px;
}

body.pg-documentacao .site-footer__logo--ufg {
  height: 35.5px;
  width: auto;
  max-width: 150px;
}

body.pg-documentacao .site-footer__logo-divider {
  width: 1px;
  height: 28px;
  background: var(--color-rule);
}

body.pg-documentacao .site-footer p {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.6;
}

body.pg-documentacao .site-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

body.pg-documentacao .site-footer a:hover {
  text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────
       RESPONSIVE & CROSS-PLATFORM SYSTEM
    ────────────────────────────────────────────────────────── */
@media (max-width: 950px) {
  body.pg-documentacao .site-nav__inner {
    padding: 0.5rem 1.25rem;
    gap: 1rem;
  }

  body.pg-documentacao .site-nav__links {
    gap: 1rem;
  }

  body.pg-documentacao .map-viz {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  body.pg-documentacao .map-container {
    height: 480px;
    min-height: 400px;
  }

  body.pg-documentacao .map-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.pg-documentacao .static-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.pg-documentacao .site-nav__inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.45rem 1rem;
    gap: 0.75rem;
  }

  body.pg-documentacao .site-nav__brand-logos {
    gap: 0.75rem;
  }

  body.pg-documentacao .site-nav__logo--wri {
    height: 25px;
    max-width: 125px;
  }

  body.pg-documentacao .site-nav__logo--lapig {
    height: 21px;
    max-width: 105px;
  }

  body.pg-documentacao .site-nav__logo--ufg {
    height: 28px;
    max-width: 115px;
  }

  body.pg-documentacao .site-nav__logo-divider {
    height: 22px;
  }

  body.pg-documentacao .site-nav__links {
    width: 100%;
    justify-content: center;
    gap: 0.85rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.2rem 0;
  }

  body.pg-documentacao .site-nav__links::-webkit-scrollbar {
    display: none;
  }

  body.pg-documentacao .split-dashboards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  body.pg-documentacao .hero {
    padding: 2.5rem 1rem 1.75rem;
  }

  body.pg-documentacao .hero__subtitle {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }

  body.pg-documentacao .hero__meta {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
  }

  body.pg-documentacao .section,
  body.pg-documentacao .section--alt {
    padding: 2.5rem 1rem;
  }

  body.pg-documentacao .section__desc {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }

  body.pg-documentacao .cards {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  body.pg-documentacao .stats .stat:last-child {
    grid-column: 1 / -1;
  }

  body.pg-documentacao .pipeline {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .pipeline__step::after {
    display: none;
  }

  body.pg-documentacao .classes-grid {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .method-stepper {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  body.pg-documentacao .risk-grid {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .roadmap-grid {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .map-container {
    height: 380px;
    min-height: 320px;
  }

  body.pg-documentacao #map-amostras {
    min-height: 320px;
  }

  body.pg-documentacao .map-controls-overlay {
    top: 8px;
    right: 8px;
    left: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 4px 6px;
  }

  body.pg-documentacao .map-controls-overlay::-webkit-scrollbar {
    display: none;
  }

  body.pg-documentacao .map-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  body.pg-documentacao .split-map-wrapper {
    height: 340px;
  }

  body.pg-documentacao .script-links-grid {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .data-table-wrapper,
  body.pg-documentacao .overlap-table-container {
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
}

@media (max-width: 420px) {
  body.pg-documentacao .method-stepper {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .stats {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .stats .stat:last-child {
    grid-column: auto;
  }
}

/* ──────────────────────────────────────────────────────────
       ANIMATIONS
    ────────────────────────────────────────────────────────── */
@keyframes documentacao-fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.pg-documentacao .fade-up {
  opacity: 0;
  animation: documentacao-fadeUp 0.6s ease forwards;
}

body.pg-documentacao .fade-up:nth-child(2) {
  animation-delay: 0.08s;
}

body.pg-documentacao .fade-up:nth-child(3) {
  animation-delay: 0.16s;
}

body.pg-documentacao .fade-up:nth-child(4) {
  animation-delay: 0.24s;
}

body.pg-documentacao .fade-up:nth-child(5) {
  animation-delay: 0.32s;
}

body.pg-documentacao .fade-up:nth-child(6) {
  animation-delay: 0.40s;
}

/* Scroll-triggered fade-in */
body.pg-documentacao .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.pg-documentacao .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Divider */
body.pg-documentacao hr.divider {
  border: none;
  height: 1px;
  background: var(--color-rule);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
       INTERACTIVE MAP & OVERLAY CONTROLS
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .map-viz {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 1.5rem;
  margin-top: 1.5rem;
  height: 820px;
  max-height: 88vh;
}

@media (max-width: 950px) {
  body.pg-documentacao .map-viz {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
}

body.pg-documentacao .map-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 760px;
}

@media (max-width: 950px) {
  body.pg-documentacao .map-container {
    height: 520px;
    min-height: 520px;
  }
}

body.pg-documentacao #map-amostras {
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 1;
}

/* Map Floating Controls */
body.pg-documentacao .map-controls-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.pg-documentacao .map-btn {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition);
  line-height: 1;
}

body.pg-documentacao .map-btn:hover {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

body.pg-documentacao .map-btn--draw.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

body.pg-documentacao .map-btn--clear-rect {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

body.pg-documentacao .map-btn--clear-rect:hover {
  background: #fecaca;
  color: #991b1b;
  border-color: #f87171;
}

body.pg-documentacao .map-btn--embrapa.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
}

body.pg-documentacao .map-select {
  padding-right: 1.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 0.75rem;
}

/* Custom styling for Leaflet controls */
body.pg-documentacao .leaflet-control-layers {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
}

body.pg-documentacao .leaflet-control-layers-expanded {
  padding: 8px 12px !important;
}

body.pg-documentacao .leaflet-bar {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
}

body.pg-documentacao .leaflet-bar a {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--color-fg) !important;
}

body.pg-documentacao .map-selection-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(24, 54, 45, 0.95);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  animation: documentacao-fadeUp 0.3s ease;
}

/* ──────────────────────────────────────────────────────────
       MAP PANEL & FILTER ACCORDION
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .map-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  max-height: 820px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

@media (max-width: 950px) {
  body.pg-documentacao .map-panel {
    height: auto;
    max-height: none;
  }
}

/* Custom Sleek Scrollbar for Panel */
body.pg-documentacao .map-panel::-webkit-scrollbar {
  width: 6px;
}

body.pg-documentacao .map-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

body.pg-documentacao .map-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

body.pg-documentacao .map-panel::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

body.pg-documentacao .map-panel__card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

body.pg-documentacao .map-panel__title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-fg);
}

body.pg-documentacao .map-counter {
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-rule);
}

body.pg-documentacao .map-counter__number {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1;
}

body.pg-documentacao .map-counter__label {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--color-fg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

body.pg-documentacao .map-counter__sub {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

/* Filter Card Header */
body.pg-documentacao .filter-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-documentacao .filter-card__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-fg);
}

body.pg-documentacao .filter-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--color-fg);
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  border: 1px solid var(--color-rule);
}

body.pg-documentacao .btn-clear-filters {
  background: none;
  border: 1px solid var(--color-rule);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
}

body.pg-documentacao .btn-clear-filters:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* Dataset Selector Group (50k vs 11k) */
body.pg-documentacao .dataset-select-group {
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-documentacao .dataset-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.35rem;
}

body.pg-documentacao .dataset-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.3rem;
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.2;
}

body.pg-documentacao .dataset-chip strong {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-fg);
}

body.pg-documentacao .dataset-chip small {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  color: var(--color-muted);
}

body.pg-documentacao .dataset-chip:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
}

body.pg-documentacao .dataset-chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

body.pg-documentacao .dataset-chip.active strong,
body.pg-documentacao .dataset-chip.active small {
  color: #ffffff;
}

/* Filter Accordion */
body.pg-documentacao .filter-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.pg-documentacao .filter-item {
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg);
}

body.pg-documentacao .filter-item__header {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.02);
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-fg);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

body.pg-documentacao .filter-item__header:hover {
  background: var(--color-accent-glow);
}

body.pg-documentacao .filter-item__icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  color: var(--color-muted);
}

body.pg-documentacao .filter-item.open .filter-item__icon {
  transform: rotate(180deg);
}

body.pg-documentacao .filter-item__body {
  padding: 0.75rem;
  display: none;
  border-top: 1px solid var(--color-rule);
  background: #ffffff;
}

body.pg-documentacao .filter-item.open .filter-item__body {
  display: block;
}

/* Year Selector Grid */
body.pg-documentacao .year-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

body.pg-documentacao .year-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.pg-documentacao .year-chip,
body.pg-documentacao .mb-year-chip,
body.pg-documentacao .change-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
}

body.pg-documentacao .year-chip input,
body.pg-documentacao .mb-year-chip input,
body.pg-documentacao .change-chip input {
  display: none;
}

body.pg-documentacao .year-chip:hover,
body.pg-documentacao .mb-year-chip:hover,
body.pg-documentacao .change-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-section-bg);
}

body.pg-documentacao .year-chip.active,
body.pg-documentacao .mb-year-chip.active,
body.pg-documentacao .change-chip.active {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 1px var(--color-accent);
}

body.pg-documentacao .filter-note {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
  font-style: italic;
}

/* Vigor Checkboxes */
body.pg-documentacao .vigor-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.pg-documentacao .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  cursor: pointer;
  user-select: none;
}

body.pg-documentacao .vigor-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

body.pg-documentacao .vigor-1 {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

body.pg-documentacao .vigor-2 {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
}

body.pg-documentacao .vigor-3 {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

body.pg-documentacao .vigor-desc {
  color: var(--color-muted);
  font-size: 0.68rem;
  margin-left: auto;
}

/* Md3 Slider & Chips */
body.pg-documentacao .md3-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.pg-documentacao .md3-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--color-fg);
}

body.pg-documentacao .md3-slider-label strong {
  color: var(--color-accent);
}

body.pg-documentacao .md3-slider {
  width: 100%;
  cursor: pointer;
  accent-color: var(--color-accent);
}

body.pg-documentacao .md3-chips {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

body.pg-documentacao .md3-chip {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--color-rule);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
}

body.pg-documentacao .md3-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

body.pg-documentacao .md3-chip.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

/* Filter classes actions */
body.pg-documentacao .filter-classes-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

body.pg-documentacao .filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.pg-documentacao .filter-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  transition: background var(--transition);
}

body.pg-documentacao .filter-list li:hover {
  background: var(--color-accent-glow);
}

body.pg-documentacao .filter-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.pg-documentacao .filter-count {
  margin-left: auto;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

/* Dual Charts */
body.pg-documentacao .chart-card {
  padding: 1rem 1.2rem;
}

body.pg-documentacao .chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

body.pg-documentacao .chart-badge {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-accent-glow);
  color: var(--color-accent);
  padding: 0.15rem 0.4rem;
  border-radius: 100px;
}

body.pg-documentacao .chart-badge--ref {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

body.pg-documentacao .chart-card--embrapa {
  background: #fbfbf9;
  border-color: #e2e8f0;
}

body.pg-documentacao .chart-container {
  position: relative;
  width: 100%;
  height: 180px;
}

/* Leaflet popup customization */
body.pg-documentacao .leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font-sans) !important;
}

body.pg-documentacao .leaflet-popup-content {
  margin: 12px 16px !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

body.pg-documentacao .popup-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--color-fg);
}

body.pg-documentacao .popup-class {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

body.pg-documentacao .popup-class__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

body.pg-documentacao .popup-meta {
  color: var(--color-muted);
  font-size: 0.75rem;
}

body.pg-documentacao .map-caption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  font-style: italic;
  margin: 0.8rem auto 0;
  max-width: 1020px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ──────────────────────────────────────────────────────────
       OVERLAP TABLE & SEARCH & FILTERS
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .overlap-table-header {
  padding: 0.8rem 1rem;
  background: var(--color-section-bg);
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pg-documentacao .overlap-table-header h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-fg);
  text-align: left;
}

body.pg-documentacao .overlap-table-header small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-muted);
}

body.pg-documentacao .search-container {
  margin-bottom: 0.6rem;
}

body.pg-documentacao .search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  background: var(--color-bg);
  color: var(--color-fg);
  transition: border-color var(--transition);
}

body.pg-documentacao .search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

body.pg-documentacao .overlap-table-container {
  margin-top: 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-height: 480px;
  overflow-y: auto;
  overflow-x: auto;
  display: none;
}

/* Custom Sleek Scrollbar for Table */
body.pg-documentacao .overlap-table-container::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

body.pg-documentacao .overlap-table-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}

body.pg-documentacao .overlap-table-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

body.pg-documentacao .overlap-table-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

body.pg-documentacao .overlap-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  min-width: 800px;
}

body.pg-documentacao .overlap-table th,
body.pg-documentacao .overlap-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-documentacao .overlap-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #edf1eb;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.pg-documentacao .overlap-table tr:last-child td {
  border-bottom: none;
}

body.pg-documentacao .overlap-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

body.pg-documentacao .class-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
  color: #000000;
}

/* Pie marker icon styles */
body.pg-documentacao .pie-marker-icon {
  background: none;
  border: none;
}

body.pg-documentacao .pie-marker-icon svg {
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  background: #fff;
}

/* Reset button on map */
body.pg-documentacao .map-reset-btn {
  position: absolute;
  top: 80px;
  left: 10px;
  z-index: 1000;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-fg);
  transition: background var(--transition);
  line-height: 1;
}

body.pg-documentacao .map-reset-btn:hover {
  background: var(--color-accent-glow);
}

@media (max-width: 800px) {
  body.pg-documentacao .map-viz {
    grid-template-columns: 1fr;
  }

  body.pg-documentacao .map-container {
    min-height: 380px;
  }

  body.pg-documentacao #map-amostras {
    min-height: 380px;
  }
}

/* ──────────────────────────────────────────────────────────
       SPLIT MAP & DASHBOARDS
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .split-map-wrapper {
  position: relative;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

body.pg-documentacao #split-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

body.pg-documentacao .split-dashboards {
  display: flex;
  gap: 1.5rem;
}

body.pg-documentacao .split-dashboard {
  flex: 1;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.pg-documentacao .dashboard-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  text-align: center;
}

body.pg-documentacao .dashboard-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

body.pg-documentacao .legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

body.pg-documentacao .legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.pg-documentacao .dashboard-chart {
  position: relative;
  width: 100%;
  height: 150px;
}

@media (max-width: 800px) {
  body.pg-documentacao .split-dashboards {
    flex-direction: column;
  }
}

body.pg-documentacao .leaflet-sbs-range::-webkit-slider-thumb {
  width: 80px !important;
  height: 80px !important;
  background: transparent !important;
  cursor: ew-resize !important;
}

body.pg-documentacao .leaflet-sbs-range::-moz-range-thumb {
  width: 80px !important;
  height: 80px !important;
  background: transparent !important;
  cursor: ew-resize !important;
}

/* ──────────────────────────────────────────────────────────
       PAGE HEADER & BACK BUTTON (SUB-PAGES)
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .page-header {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem var(--gutter) 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

body.pg-documentacao .page-header .back-button {
  align-self: flex-start;
}

body.pg-documentacao .back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-fg);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.1rem;
  transition: all var(--transition);
  line-height: 1;
}

body.pg-documentacao .back-button svg {
  transition: transform var(--transition);
  stroke: currentColor;
}

body.pg-documentacao .back-button:hover {
  background: var(--color-fg);
  color: #ffffff;
  border-color: var(--color-fg);
  transform: translateX(-2px);
}

body.pg-documentacao .back-button:hover svg {
  transform: translateX(-2px);
}

body.pg-documentacao .page-header__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
  text-align: left;
}

body.pg-documentacao .page-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 3.2vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 0.5rem;
  color: var(--color-fg);
  text-align: left;
}

body.pg-documentacao .page-header__desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  max-width: 1080px;
  margin: 0;
  line-height: 1.62;
  text-align: left;
}

@media (max-width: 700px) {
  body.pg-documentacao .page-header {
    padding: 2rem 1rem 1rem;
  }

  body.pg-documentacao .page-header__desc {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

/* ──────────────────────────────────────────────────────────
       PRODUTOS ESTÃTICOS — STYLES
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .static-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  body.pg-documentacao .static-products-grid {
    grid-template-columns: 1fr;
  }
}

body.pg-documentacao .static-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

body.pg-documentacao .static-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(24, 54, 45, 0.3);
}

body.pg-documentacao .static-card--wide {
  grid-column: 1 / -1;
}

body.pg-documentacao .static-card__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

body.pg-documentacao .static-card__icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(24, 54, 45, 0.15);
}

body.pg-documentacao .static-card__badge {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  display: block;
}

body.pg-documentacao .static-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-top: 0.1rem;
}

body.pg-documentacao .static-card__desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-word;
}

body.pg-documentacao .static-card__actions {
  margin-top: auto;
}

body.pg-documentacao .btn-static-download {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

body.pg-documentacao .btn-static-download--disabled {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  cursor: not-allowed;
}

body.pg-documentacao .badge-status {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
}

body.pg-documentacao .badge-status--ready {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

body.pg-documentacao .btn-static-download:hover:not(.btn-static-download--disabled) {
  background: #10382b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 54, 45, 0.25);
}

/* Asset List GEE */
body.pg-documentacao .asset-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

body.pg-documentacao .asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 6px;
}

@media (max-width: 700px) {
  body.pg-documentacao .asset-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.pg-documentacao .asset-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.pg-documentacao .asset-item__info strong {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-fg);
}

body.pg-documentacao .asset-item__info code {
  font-family: monospace;
  font-size: 0.72rem;
  color: #0f766e;
  word-break: break-all;
  background: rgba(15, 118, 110, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

body.pg-documentacao .btn-copy-asset {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}

body.pg-documentacao .btn-copy-asset:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

/* Script Links Grid */
body.pg-documentacao .static-subheading {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-top: 0.8rem;
  margin-bottom: 0.6rem;
}

body.pg-documentacao .script-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.6rem;
}

body.pg-documentacao .script-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-fg);
  transition: all var(--transition);
}

body.pg-documentacao .script-link-item:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
  transform: translateX(2px);
}

body.pg-documentacao .script-link-item--github:hover {
  border-color: #4338ca;
  background: #eef2ff;
}

body.pg-documentacao .script-link-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.pg-documentacao .script-link-item__text strong {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
}

body.pg-documentacao .script-link-item__text small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-muted);
}

body.pg-documentacao .script-link-item__arrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

body.pg-documentacao .script-link-item--github .script-link-item__arrow {
  color: #4338ca;
}

/* Static Data Table */
body.pg-documentacao .data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  margin-top: 0.5rem;
}

body.pg-documentacao .static-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  min-width: 600px;
}

body.pg-documentacao .static-data-table th,
body.pg-documentacao .static-data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-documentacao .static-data-table th {
  background: var(--color-section-bg);
  font-weight: 700;
  color: var(--color-fg);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.pg-documentacao .static-data-table tbody tr:last-child td {
  border-bottom: none;
}

body.pg-documentacao .static-data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

body.pg-documentacao .download-links-cell {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

body.pg-documentacao .data-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

body.pg-documentacao .data-badge--csv {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

body.pg-documentacao .data-badge--csv:hover {
  background: #0284c7;
  color: #ffffff;
}

body.pg-documentacao .data-badge--json {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

body.pg-documentacao .data-badge--json:hover {
  background: #ca8a04;
  color: #ffffff;
}

body.pg-documentacao .data-badge--parquet {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

body.pg-documentacao .data-badge--parquet:hover {
  background: #9333ea;
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────
       SOM — SELF-ORGANIZING MAPS SECTION
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .som-development-card {
  background: var(--color-card-bg);
  border: 1px dashed var(--color-rule);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.pg-documentacao .som-development-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  animation: documentacao-pulse 2.5s infinite ease-in-out;
}

body.pg-documentacao .som-development-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 0.6rem;
  text-align: center;
}

body.pg-documentacao .som-development-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0.4rem auto 0.8rem;
}

body.pg-documentacao .som-development-status {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-align: center;
}

body.pg-documentacao .som-development-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.5;
  text-align: center;
}

@keyframes documentacao-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}


/* ──────────────────────────────────────────────────────────
       GLOBAL FONT STANDARDIZATION & TEXT JUSTIFICATION
    ────────────────────────────────────────────────────────── */
body.pg-documentacao,
body.pg-documentacao h1,
body.pg-documentacao h2,
body.pg-documentacao h3,
body.pg-documentacao h4,
body.pg-documentacao h5,
body.pg-documentacao h6,
body.pg-documentacao p,
body.pg-documentacao li,
body.pg-documentacao td,
body.pg-documentacao th,
body.pg-documentacao span,
body.pg-documentacao div,
body.pg-documentacao a,
body.pg-documentacao button,
body.pg-documentacao input,
body.pg-documentacao select,
body.pg-documentacao .section__title,
body.pg-documentacao .card__title,
body.pg-documentacao .stat__number,
body.pg-documentacao .page-header__title,
body.pg-documentacao .landscape-card h1,
body.pg-documentacao .landscape-date strong,
body.pg-documentacao .home-directory strong,
body.pg-documentacao .map-counter__number,
body.pg-documentacao .method-formula {
  font-family: var(--font-sans);
}

body.pg-documentacao .landscape-intro,
body.pg-documentacao .section__desc,
body.pg-documentacao .card__desc,
body.pg-documentacao .class-item__desc,
body.pg-documentacao .deliverable__desc,
body.pg-documentacao .timeline__desc,
body.pg-documentacao .method-scope-banner__content,
body.pg-documentacao .fnode__desc,
body.pg-documentacao .fnode__body p,
body.pg-documentacao .method-list-styled li,
body.pg-documentacao .method-subcard,
body.pg-documentacao .froadmap li,
body.pg-documentacao .page-header__desc,
body.pg-documentacao .static-card__desc,
body.pg-documentacao .map-caption,
body.pg-documentacao .home-directory small,
body.pg-documentacao .risk-card p,
body.pg-documentacao .roadmap-card__content p,
body.pg-documentacao .status-card .sub,
body.pg-documentacao .detalhe-etapa__obj,
body.pg-documentacao .detalhe-etapa__list li,
body.pg-documentacao .etapa-card__desc,
body.pg-documentacao .prod-item span {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.pg-documentacao .section__desc,
body.pg-documentacao .page-header__desc {
  max-width: 100%;
}

/* ──────────────────────────────────────────────────────────
       COMPACT MINIMIZED TIMELINE (STATUS CARD + MILESTONE BAR)
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .status-section {
  padding-top: 1.5rem;
  padding-bottom: 2.25rem;
}

body.pg-documentacao .status-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 2.25rem;
  border: 1px solid var(--line);
  align-items: center;
}

body.pg-documentacao .agora-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--agora);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.pg-documentacao .pulso {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--agora);
  box-shadow: 0 0 0 0 rgba(201, 115, 32, 0.6);
  animation: documentacao-pulsoStatus 1.8s infinite;
}

@keyframes documentacao-pulsoStatus {
  70% {
    box-shadow: 0 0 0 12px rgba(201, 115, 32, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 115, 32, 0);
  }
}

body.pg-documentacao .status-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.4rem 0 0.45rem;
  line-height: 1.25;
}

body.pg-documentacao .status-card .sub {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

body.pg-documentacao .status-card__actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.pg-documentacao .linha-tempo {
  position: relative;
  padding-top: 0.5rem;
}

body.pg-documentacao .lt-trilho {
  position: relative;
  height: 8px;
  background: #dfe5df;
  border-radius: 99px;
  margin: 52px 32px 0;
}

body.pg-documentacao .lt-prog {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--ink), #3b7a57);
  border-radius: 99px;
}

body.pg-documentacao .lt-hoje {
  position: absolute;
  top: -34px;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--agora);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.pg-documentacao .lt-hoje::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 2px;
  height: 24px;
  background: var(--agora);
}

body.pg-documentacao .marco {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--futuro);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--futuro);
  cursor: default;
}

body.pg-documentacao .marco.ok {
  border-color: var(--ok);
  background: var(--ok);
  color: #ffffff;
}

body.pg-documentacao .marco.agora {
  border-color: var(--agora);
  color: var(--agora);
  width: 28px;
  height: 28px;
  box-shadow: 0 0 0 5px rgba(201, 115, 32, 0.18);
}

body.pg-documentacao .marco-rot {
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.25;
  width: 96px;
  color: var(--muted);
}

body.pg-documentacao .marco-rot b {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

body.pg-documentacao .marco-rot.cima {
  top: auto;
  bottom: 22px;
}

body.pg-documentacao .lt-legenda {
  display: flex;
  gap: 1.25rem;
  margin-top: 64px;
  font-size: 0.76rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}

body.pg-documentacao .lt-legenda span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}

body.pg-documentacao .lt-legenda .l-ok::before {
  background: var(--ok);
}

body.pg-documentacao .lt-legenda .l-ag::before {
  background: var(--agora);
}

body.pg-documentacao .lt-legenda .l-fu::before {
  background: var(--futuro);
}

/* ──────────────────────────────────────────────────────────
       FULL TIMELINE PAGE (/cronograma/) — STAGES & PRODUCTS
    ────────────────────────────────────────────────────────── */
body.pg-documentacao .fluxo-etapas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  position: relative;
}

body.pg-documentacao .etapa-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
  opacity: 0.72;
}

body.pg-documentacao .etapa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

body.pg-documentacao .etapa-card.is-selected {
  opacity: 1;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-md);
}

body.pg-documentacao .etapa-card__icone {
  width: 78px;
  height: 78px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2.5px solid var(--futuro);
  color: var(--ink);
  transition: transform var(--transition);
}

body.pg-documentacao .etapa-card__icone svg {
  width: 38px;
  height: 38px;
}

body.pg-documentacao .etapa-card.ok .etapa-card__icone {
  border-color: var(--ok);
  background: #eaf4ee;
  color: var(--ok);
}

body.pg-documentacao .etapa-card.agora .etapa-card__icone {
  border-color: var(--agora);
  background: #fff4e8;
  color: var(--agora);
  box-shadow: 0 0 0 6px rgba(201, 115, 32, 0.14);
}

body.pg-documentacao .etapa-card.parcial .etapa-card__icone {
  border-color: var(--forest);
  border-style: dashed;
  color: var(--forest);
}

body.pg-documentacao .etapa-card__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

body.pg-documentacao .etapa-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.35rem 0 0.45rem;
}

body.pg-documentacao .etapa-card__desc {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

body.pg-documentacao .selo-etapa {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.pg-documentacao .selo-etapa.ok {
  background: #e1f1e5;
  color: var(--ok);
}

body.pg-documentacao .selo-etapa.agora {
  background: #ffe9d1;
  color: #9e5311;
}

body.pg-documentacao .selo-etapa.parcial {
  background: #e8f0ec;
  color: var(--forest);
}

body.pg-documentacao .selo-etapa.fu {
  background: #eceeed;
  color: #5f6d66;
}

body.pg-documentacao .aqui-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--agora);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

body.pg-documentacao .detalhe-etapa {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.25rem;
  box-shadow: var(--shadow-sm);
}

body.pg-documentacao .detalhe-etapa__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

body.pg-documentacao .detalhe-etapa__periodo {
  display: inline-block;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.2rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

body.pg-documentacao .detalhe-etapa__obj {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.6;
}

body.pg-documentacao .detalhe-etapa__how-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

body.pg-documentacao .detalhe-etapa__list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

body.pg-documentacao .detalhe-etapa__list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

body.pg-documentacao .detalhe-etapa__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 700;
}

body.pg-documentacao .detalhe-etapa__meta {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--text);
}

body.pg-documentacao .subpassos {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

body.pg-documentacao .subpassos__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

body.pg-documentacao .sp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text);
}

body.pg-documentacao .sp i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
}

body.pg-documentacao .sp.ok i {
  background: var(--ok);
}

body.pg-documentacao .sp.agora i {
  background: var(--agora);
}

body.pg-documentacao .sp.fu i {
  background: #cbd5e1;
}

body.pg-documentacao .produtos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

body.pg-documentacao .prod-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.pg-documentacao .prod-item--active {
  border-color: var(--agora);
  box-shadow: 0 0 0 1px rgba(201, 115, 32, 0.25);
}

body.pg-documentacao .prod-item b {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

body.pg-documentacao .prod-item--active b {
  color: var(--agora);
}

body.pg-documentacao .prod-item span {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.45;
}

@media (max-width: 1024px) {
  body.pg-documentacao .status-card,
  body.pg-documentacao .detalhe-etapa {
    grid-template-columns: 1fr;
  }
  body.pg-documentacao .fluxo-etapas {
    grid-template-columns: repeat(2, 1fr);
  }
  body.pg-documentacao .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body.pg-documentacao .fluxo-etapas,
  body.pg-documentacao .produtos-grid {
    grid-template-columns: 1fr;
  }
  body.pg-documentacao .marco-rot {
    font-size: 0.64rem;
    width: 66px;
  }
  body.pg-documentacao .marco-rot b {
    font-size: 0.68rem;
  }
}


/* ──────────────────────────────────────────────────────────
       CARD OVERFLOW & LAYOUT CONTAINMENT FIXES
    ────────────────────────────────────────────────────────── */
/* 1. Hero Card & Top Directory Containment */
body.pg-documentacao .landscape-hero {
  min-height: 690px;
}

body.pg-documentacao .landscape-photo {
  height: 590px;
}

body.pg-documentacao .landscape-card {
  width: min(820px, calc(100% - 2 * var(--gutter) - 210px));
  padding: clamp(22px, 2.4vw, 34px) clamp(24px, 2.8vw, 42px);
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-documentacao .landscape-card h1 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.12;
}

body.pg-documentacao .landscape-intro {
  max-width: 100%;
  font-size: 0.96rem;
  line-height: 1.58;
}

body.pg-documentacao .home-directory a {
  min-width: 0;
  overflow: hidden;
}

body.pg-documentacao .home-directory a > div {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-documentacao .home-directory small {
  max-width: 100%;
  text-align: left !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* 2. Interactive Map Panel Cards (Prevent Flexbox Squashing & Text Overflow) */
body.pg-documentacao .map-viz {
  grid-template-columns: minmax(0, 1fr) 460px;
}

@media (max-width: 1080px) {
  body.pg-documentacao .map-viz {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
}

body.pg-documentacao .map-panel {
  min-width: 0;
}

body.pg-documentacao .map-panel__card {
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-documentacao .dataset-chips {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

body.pg-documentacao .dataset-chip {
  min-width: 0;
  padding: 0.5rem 0.45rem;
  text-align: center !important;
  overflow: hidden;
}

body.pg-documentacao .dataset-chip strong,
body.pg-documentacao .dataset-chip small {
  text-align: center !important;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  display: block;
  width: 100%;
}

body.pg-documentacao .filter-item__header {
  white-space: normal;
  gap: 0.5rem;
  line-height: 1.3;
}

body.pg-documentacao .checkbox-label {
  flex-wrap: wrap;
  min-width: 0;
}

body.pg-documentacao .filter-list li {
  min-width: 0;
  overflow-wrap: break-word;
}

body.pg-documentacao .chart-card {
  flex-shrink: 0;
}

/* 3. Timeline Status Card & General Card Overflow Protection */
body.pg-documentacao .status-card {
  overflow: hidden;
  min-width: 0;
}

body.pg-documentacao .status-card > * {
  min-width: 0;
}

body.pg-documentacao .lt-trilho {
  margin: 54px 52px 0;
}

body.pg-documentacao .marco-rot {
  text-align: center !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  width: 90px;
}

body.pg-documentacao .card,
body.pg-documentacao .class-item,
body.pg-documentacao .class-item > div,
body.pg-documentacao .deliverable,
body.pg-documentacao .static-card,
body.pg-documentacao .prod-item,
body.pg-documentacao .detalhe-etapa > div {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-documentacao .etapa-card {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-documentacao .etapa-card__desc {
  text-align: center !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* ──────────────────────────────────────────────────────────
   FERRAMENTA DE VISUALIZAÇÃO DE TRANSIÇÕES (MAPBIOMAS)
   ────────────────────────────────────────────────────────── */
body.pg-documentacao .change-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--color-border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
body.pg-documentacao .change-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
body.pg-documentacao .change-chip.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

body.pg-documentacao .inspector-tab {
  background: none;
  border: none;
  padding: 0.32rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.18s ease;
}
body.pg-documentacao .inspector-tab:hover {
  background: var(--color-section-bg);
  color: var(--color-ink);
}
body.pg-documentacao .inspector-tab.active {
  background: var(--color-accent);
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────
   REPRESENTAÇÃO TEMPORAL MAPBIOMAS (LINHA POR ANOS & RETÂNGULOS)
   ────────────────────────────────────────────────────────── */
body.pg-documentacao .mb-annual-strip-container {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px;
  margin: 0.35rem 0 0.5rem 0;
}

body.pg-documentacao .mb-year-cell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  position: relative;
}

body.pg-documentacao .mb-year-header {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
  text-align: center;
  width: 100%;
}

body.pg-documentacao .mb-year-header.is-active {
  color: #184b39;
  font-weight: 800;
  text-decoration: underline;
}

body.pg-documentacao .mb-year-rect {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  cursor: default;
}
body.pg-documentacao .mb-year-rect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Indicador visual de transição entre anos */
body.pg-documentacao .mb-year-cell.has-transition::after {
  content: "➔";
  position: absolute;
  right: -6px;
  top: calc(50% + 9px);
  transform: translateY(-50%);
  font-size: 0.60rem;
  font-weight: 900;
  color: #dc2626;
  background: #ffffff;
  border: 1px solid #dc2626;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 3;
}

/* Legenda Oficial MapBiomas */
body.pg-documentacao .mb-official-legend {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  margin-top: 0.6rem;
}

body.pg-documentacao .mb-legend-header {
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 0.25rem;
}

body.pg-documentacao .mb-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 0.5rem;
}

body.pg-documentacao .mb-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

body.pg-documentacao .mb-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

body.pg-documentacao .mb-legend-text {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

/* Eventos de Transição */
body.pg-documentacao .mb-transition-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 4px 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-size: 0.73rem;
  color: #991b1b;
  margin-bottom: 4px;
}
body.pg-documentacao .mb-transition-event-row.is-stable {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Leaflet Popup MapBiomas Style */
body.pg-documentacao .leaflet-popup-content .popup-mb-wrapper {
  font-family: var(--font-sans);
  padding: 2px;
  width: 290px !important;
  max-width: 290px !important;
  box-sizing: border-box !important;
}
body.pg-documentacao .popup-mb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 3px;
}
body.pg-documentacao .popup-mb-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
}
body.pg-documentacao .popup-mb-strip {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 3px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 6px 0 !important;
  background: #f8fafc;
  padding: 5px 3px !important;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
body.pg-documentacao .popup-mb-year-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  text-align: center;
}
body.pg-documentacao .popup-mb-year-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  margin-bottom: 2px !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  line-height: 1 !important;
}
body.pg-documentacao .popup-mb-year-lbl.is-active {
  color: #184b39 !important;
  font-weight: 800 !important;
  text-decoration: underline;
}
body.pg-documentacao .popup-mb-rect {
  width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.60rem !important;
  font-weight: 700 !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  line-height: 1 !important;
  text-align: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  cursor: default !important;
}

/* Stacking container para múltiplas legendas raster no mapa */
body.pg-documentacao .map-legends-stack {
  position: absolute;
  bottom: 24px;
  left: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100% - 24px);
}

body.pg-documentacao .map-legends-stack > .map-raster-legend {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  pointer-events: auto;
}

/* Legenda Flutuante do Raster MapBiomas no Mapa */
body.pg-documentacao .map-raster-legend {
  position: absolute;
  bottom: 24px;
  left: 12px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 5px 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font-family: var(--font-sans);
  pointer-events: auto;
  transition: opacity 0.2s ease;
}
body.pg-documentacao .map-raster-legend__title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-ink);
  margin-bottom: 3px;
}
body.pg-documentacao .map-raster-legend__items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.pg-documentacao .mrl-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.70rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}
body.pg-documentacao .mrl-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: inline-block;
  flex-shrink: 0;
}

/* Legenda Flutuante da Classificação CNN (Sentinel-2) */
body.pg-documentacao .map-cnn-legend {
  background: rgba(255, 255, 255, 0.96);
  width: max-content;
  max-width: min(460px, calc(100vw - 48px));
  padding: 7px 12px;
}
body.pg-documentacao .map-cnn-legend .map-cnn-legend__items {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px 12px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  body.pg-documentacao .map-cnn-legend .map-cnn-legend__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards estatísticos da Mediana do EVI2 (Média da Mediana, Amplitude, Máximo, Mínimo) */
body.pg-documentacao .evi2-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 0.5rem;
}

body.pg-documentacao .evi2-stat-card {
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--color-rule, #e2e8f0);
  border-radius: 6px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.pg-documentacao .evi2-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-muted, #64748b);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

body.pg-documentacao .evi2-stat-val {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--color-ink, #0f172a);
  font-family: var(--font-sans);
  margin: 1px 0;
  line-height: 1.1;
}

body.pg-documentacao .evi2-stat-sub {
  font-size: 0.58rem;
  color: var(--color-muted, #64748b);
  font-weight: 500;
  white-space: nowrap;
}

/* Renderização ultra-nítida e sem desfoque para camadas raster MapBiomas e CNN */
body.pg-documentacao .leaflet-image-layer {
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  image-rendering: pixelated !important;
}



/* ── CAMADAS TEMPORAIS MAPBIOMAS (2020–2025) ── */
body.pg-documentacao .temporal-card { padding: 0.85rem 1rem !important; }
body.pg-documentacao .temporal-card__header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
body.pg-documentacao .temporal-card__title { display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-sans); font-size: 0.84rem; font-weight: 800; color: var(--color-ink); }
body.pg-documentacao .temporal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.5rem; }
body.pg-documentacao .temporal-btn { display: flex; align-items: center; gap: 0.45rem; width: 100%; padding: 0.42rem 0.52rem; border-radius: 6px; border: 1px solid var(--color-border, #cbd5e1); background: #ffffff; cursor: pointer; text-align: left; font-family: var(--font-sans); transition: all 0.16s ease; }
body.pg-documentacao .temporal-btn:hover { border-color: #18362d; background: #f8fafc; }
body.pg-documentacao .temporal-btn.active { border-color: #18362d; background: #eef5ee; box-shadow: inset 0 0 0 1px #18362d; }
body.pg-documentacao .temporal-btn--mod.active { border-color: #dc2626; background: #fef2f2; box-shadow: inset 0 0 0 1px #dc2626; }
body.pg-documentacao .temporal-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.25); flex-shrink: 0; }
body.pg-documentacao .temporal-swatch--mod { background: linear-gradient(135deg, #fb923c 0%, #f97316 40%, #dc2626 75%, #991b1b 100%); }
body.pg-documentacao .temporal-btn__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
body.pg-documentacao .temporal-btn__name { font-size: 0.71rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pg-documentacao .temporal-btn__ha { font-size: 0.62rem; font-weight: 600; color: #64748b; margin-top: 1px; }
body.pg-documentacao .temporal-controls-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.55rem; padding-top: 0.5rem; border-top: 1px dashed #e2e8f0; font-size: 0.70rem; color: #475569; }
body.pg-documentacao .map-temporal-legend { background: rgba(255, 255, 255, 0.96); max-width: 340px; }
body.pg-documentacao .map-temporal-legend__scale { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; padding-top: 4px; border-top: 1px dashed #cbd5e1; }


/* ═══ bernard_0.css — escopo body.pg-documentacao ═══ */

  /* Estilos escopados para os componentes internos do bloco Temp_CNN (#step-tempcnn)
     seguindo estritamente a paleta, tipografia e cartões do portal Rede ILPF / LAPIG */
  body.pg-documentacao #step-tempcnn .tcnn-intro-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, #f6faf6 0%, #ffffff 100%);
    border: 1px solid #d5e3d5;
    border-left: 4px solid #18362d;
    border-radius: 8px;
    margin-bottom: 1.1rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-intro-main {
    flex: 1 1 420px;
  }
  body.pg-documentacao #step-tempcnn .tcnn-kicker {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #15803d;
    margin-bottom: 0.25rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-headline {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 0.35rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-dek {
    font-family: var(--font-sans);
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 0.6rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #eef5ee;
    border: 1px solid #cbd5e1;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    color: #18362d;
  }
  body.pg-documentacao #step-tempcnn .tcnn-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 0.55rem;
    flex: 0 1 440px;
  }
  @media (max-width: 820px) {
    body.pg-documentacao #step-tempcnn .tcnn-icons-grid {
      grid-template-columns: repeat(2, 1fr);
      flex: 1 1 100%;
    }
  }
  body.pg-documentacao #step-tempcnn .tcnn-icon-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  body.pg-documentacao #step-tempcnn .tcnn-icon-card svg {
    width: 100%;
    max-width: 96px;
    height: 46px;
    color: #18362d;
    margin-bottom: 0.2rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-icon-card .sigla {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
  }
  body.pg-documentacao #step-tempcnn .tcnn-icon-card .nome {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.2;
    margin-top: 0.1rem;
  }

  /* Barra de controle das subcaixas internas */
  body.pg-documentacao #step-tempcnn .tcnn-subtoolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.85rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-subtoolbar__label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #334155;
  }
  body.pg-documentacao #step-tempcnn .tcnn-subtoolbar__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-subbtn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  body.pg-documentacao #step-tempcnn .tcnn-subbtn:hover {
    background: #eef5ee;
    border-color: #18362d;
    color: #18362d;
  }

  /* Subcaixas expansíveis/recolhíveis no mesmo padrão .fnode */
  body.pg-documentacao #step-tempcnn .tcnn-sublist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box.is-open {
    border-color: #18362d;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }
  body.pg-documentacao #step-tempcnn .tcnn-box__toggle {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.95rem;
    background: #f1f5f1;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box.is-open .tcnn-box__toggle {
    background: #18362d;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }
  body.pg-documentacao #step-tempcnn .tcnn-box__toggle:hover {
    background: #e4ede4;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box.is-open .tcnn-box__toggle:hover {
    background: #1f4539;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box__num {
    flex-shrink: 0;
    padding: 0.18rem 0.5rem;
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 800;
    background: #18362d;
    color: #ffffff;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box.is-open .tcnn-box__num {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  body.pg-documentacao #step-tempcnn .tcnn-box__titles {
    flex: 1 1 auto;
    min-width: 0;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box__eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #475569;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box.is-open .tcnn-box__eyebrow {
    color: rgba(255, 255, 255, 0.78);
  }
  body.pg-documentacao #step-tempcnn .tcnn-box__title {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box.is-open .tcnn-box__title {
    color: #ffffff;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box__chev {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box.is-open .tcnn-box__chev {
    background: rgba(255, 255, 255, 0.16);
    transform: rotate(180deg);
  }
  body.pg-documentacao #step-tempcnn .tcnn-box__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  body.pg-documentacao #step-tempcnn .tcnn-box.is-open .tcnn-box__panel {
    grid-template-rows: 1fr;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box__inner {
    min-height: 0;
    overflow: hidden;
  }
  body.pg-documentacao #step-tempcnn .tcnn-box__body {
    padding: 1rem 1.15rem;
  }

  /* ── CAIXA EXPANSÍVEL DE GRÁFICO INDIVIDUAL (100% LARGURA, PROPORÇÃO NÍTIDA) ── */
  body.pg-documentacao #step-tempcnn .tcnn-chart-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.75rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box.is-open {
    border-color: #2d5a47;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    background: #f8fafc;
    border-bottom: 1px solid transparent;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box.is-open .tcnn-chart-box__header {
    background: #eef5ee;
    border-bottom-color: #d5e3d5;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__toggle {
    all: unset;
    box-sizing: border-box;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    text-align: left;
    min-width: 0;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__badge {
    flex-shrink: 0;
    padding: 0.16rem 0.5rem;
    border-radius: 4px;
    background: #18362d;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__label {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__zoom {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 0.22rem 0.55rem;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    color: #18362d;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__zoom:hover {
    background: #18362d;
    border-color: #18362d;
    color: #ffffff;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__state {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #18362d;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__state .txt-open,
  body.pg-documentacao #step-tempcnn .tcnn-chart-box.is-open .tcnn-chart-box__state .txt-closed {
    display: none;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box.is-open .tcnn-chart-box__state .txt-open {
    display: inline;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box.is-open .tcnn-chart-box__panel {
    grid-template-rows: 1fr;
  }
  body.pg-documentacao #step-tempcnn .tcnn-chart-box__inner {
    min-height: 0;
    overflow: hidden;
  }
  body.pg-documentacao #step-tempcnn .tcnn-fig {
    margin: 0;
    background: #ffffff;
    padding: 0.9rem 1rem 0.85rem;
    text-align: center;
  }
  body.pg-documentacao #step-tempcnn .tcnn-fig img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    border: 1px solid #f1f5f9;
  }
  body.pg-documentacao #step-tempcnn .tcnn-fig figcaption {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: #475569;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #e2e8f0;
    line-height: 1.5;
    text-align: left;
  }

  /* Linha do tempo Split 70/30 + SSL + Fine-Tuning */
  body.pg-documentacao #step-tempcnn .tcnn-timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.85rem 0 0.5rem;
  }
  @media (max-width: 960px) {
    body.pg-documentacao #step-tempcnn .tcnn-timeline {
      grid-template-columns: 1fr;
    }
  }
  body.pg-documentacao #step-tempcnn .tcnn-tl-step {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.4;
    position: relative;
  }
  body.pg-documentacao #step-tempcnn .tcnn-tl-step.ssl {
    background: #f0f9ff;
    border-color: #7dd3fc;
  }
  body.pg-documentacao #step-tempcnn .tcnn-tl-step.ft {
    background: #f0fdf4;
    border-color: #86efac;
  }
  body.pg-documentacao #step-tempcnn .tcnn-tl-step .num {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: #18362d;
    color: #ffffff;
    margin-bottom: 0.3rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-tl-step b {
    display: block;
    font-size: 0.82rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
  }
  body.pg-documentacao #step-tempcnn .tcnn-tl-dots {
    display: inline-flex;
    gap: 0.25rem;
    margin: 0.25rem 0;
  }
  body.pg-documentacao #step-tempcnn .tcnn-tl-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    display: inline-block;
  }
  body.pg-documentacao #step-tempcnn .tcnn-tl-branch {
    margin-top: 0.55rem;
    padding: 0.6rem 0.85rem;
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    color: #92400e;
  }

  /* Swatch de classe na tabela de métricas */
  body.pg-documentacao #step-tempcnn .tcnn-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 0.4rem;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.15);
  }

  /* Lightbox Modal de Tela Cheia para inspeção em alta definição */
  body.pg-documentacao .tcnn-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  body.pg-documentacao .tcnn-lightbox.is-active {
    display: flex;
  }
  body.pg-documentacao .tcnn-lightbox__content {
    position: relative;
    max-width: 96vw;
    max-height: 92vh;
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem 1.2rem 0.9rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  body.pg-documentacao .tcnn-lightbox__close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    background: #18362d;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
  }
  body.pg-documentacao .tcnn-lightbox__img {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
  }
  body.pg-documentacao .tcnn-lightbox__caption {
    margin-top: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: #1e293b;
    text-align: center;
    max-width: 90ch;
  }


/* ═══ metodologia_0.css — escopo body.pg-metodologia ═══ */

/* ──────────────────────────────────────────────────────────
       DESIGN SYSTEM — tokens (Time2Graze / WRI / LAPIG palette)
    ────────────────────────────────────────────────────────── */
html:has(body.pg-metodologia) {
  --paper: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #edf1eb;
  --ink: #18362d;
  --text: #33453d;
  --muted: #5f7169;
  --forest: #184b39;
  --forest-dark: #10382b;
  --accent-highlight: #dce89b;
  --line: #d7ddd8;

  --color-bg: var(--paper);
  --color-fg: var(--ink);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-rule: var(--line);
  --color-border: var(--line);
  --color-accent: var(--forest);
  --color-accent-soft: #2c5e4c;
  --color-accent-glow: rgba(24, 54, 45, 0.05);
  --color-yellow: #dce89b;
  --color-card-bg: var(--surface);
  --color-card: var(--surface);
  --color-section-bg: var(--surface-soft);
  --font-sans: "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: var(--font-sans);
  --ok: #1f6f46;
  --agora: #c97320;
  --futuro: #8f9d95;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max-width: 1720px;
  --max-width-wide: min(98vw, 1920px);
  --gutter: clamp(18px, 2.5vw, 44px);
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(16, 56, 43, 0.04);
  --shadow-md: 0 12px 32px -16px rgba(16, 56, 43, 0.14);
  --transition: 0.22s cubic-bezier(.22, .61, .36, 1);
}

/* ──────────────────────────────────────────────────────────
       RESET & BASE
    ────────────────────────────────────────────────────────── */
body.pg-metodologia *,
body.pg-metodologia *::before,
body.pg-metodologia *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html:has(body.pg-metodologia) {
  font-size: 120%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body.pg-metodologia {
  background: var(--color-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

/* ──────────────────────────────────────────────────────────
       NAV
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-rule);
}

body.pg-metodologia .site-nav__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

body.pg-metodologia .site-nav__brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  transition: opacity var(--transition);
}

body.pg-metodologia .site-nav__brand-logos:hover {
  opacity: 0.85;
}

body.pg-metodologia .site-nav__logo {
  display: block;
  object-fit: contain;
  width: auto;
}

body.pg-metodologia .site-nav__logo--wri {
  height: 44px;
  width: auto;
  max-width: 225px;
}

body.pg-metodologia .site-nav__logo--ilpf {
  height: 38px;
  width: auto;
  max-width: 140px;
}

body.pg-metodologia .site-nav__logo--lapig {
  height: 37px;
  width: auto;
  max-width: 190px;
}

body.pg-metodologia .site-nav__logo--ufg {
  height: 48px;
  width: auto;
  max-width: 205px;
}

body.pg-metodologia .site-nav__logo-divider {
  width: 1px;
  height: 36px;
  background: var(--color-rule);
}

body.pg-metodologia .site-nav__brand {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-fg);
  text-decoration: none;
  letter-spacing: 0.01em;
}

body.pg-metodologia .site-nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

body.pg-metodologia .site-nav__links a {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-fg);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

body.pg-metodologia .site-nav__links a:hover {
  color: var(--color-muted);
}

/* ──────────────────────────────────────────────────────────
       LANDSCAPE HERO & TOP DIRECTORY (TIME2GRAZE STYLE)
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .landscape-hero {
  position: relative;
  min-height: 640px;
  max-width: var(--max-width-wide);
  padding: 0 var(--gutter) 68px;
  background: var(--paper);
  margin: 0 auto;
}

body.pg-metodologia .landscape-photo {
  position: relative;
  height: 540px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

body.pg-metodologia .landscape-photo::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 56, 43, 0.25), transparent 55%);
}

body.pg-metodologia .landscape-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.95) contrast(1.04);
  display: block;
}

body.pg-metodologia .landscape-photo p {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 1;
  margin: 0;
  padding: 8px 14px;
  background: rgba(16, 56, 43, 0.85);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.pg-metodologia .landscape-card {
  position: absolute;
  bottom: 24px;
  left: calc(var(--gutter) + clamp(28px, 4vw, 64px));
  z-index: 2;
  width: min(760px, calc(100% - 2 * var(--gutter) - 220px));
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.2vw, 44px) clamp(28px, 3.6vw, 52px);
  box-shadow: 0 18px 40px -30px rgba(16, 56, 43, 0.42);
}

body.pg-metodologia .landscape-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

body.pg-metodologia .landscape-eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: var(--accent-highlight);
  box-shadow: 0 1px 0 var(--forest);
}

body.pg-metodologia .landscape-card h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

body.pg-metodologia .landscape-card h1 span {
  display: block;
  margin-top: 0.15em;
  font-size: 0.72em;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

body.pg-metodologia .landscape-intro {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.62;
  text-align: left;
}

body.pg-metodologia .landscape-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body.pg-metodologia .landscape-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 210px;
  padding: 13px 18px;
  background: var(--forest-dark);
  color: #ffffff;
  border: 1px solid var(--forest-dark);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

body.pg-metodologia .landscape-action:hover {
  background: var(--accent-highlight);
  color: var(--forest-dark);
  border-color: var(--forest-dark);
  transform: translateY(-2px);
}

body.pg-metodologia .landscape-action--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

body.pg-metodologia .landscape-action--secondary:hover {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--ink);
}

body.pg-metodologia .landscape-date {
  position: absolute;
  bottom: 24px;
  right: calc(var(--gutter) + clamp(24px, 3.5vw, 56px));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--accent-highlight);
  color: var(--forest-dark);
  border: 1px solid rgba(16, 56, 43, 0.2);
}

body.pg-metodologia .landscape-date strong {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
}

body.pg-metodologia .landscape-date span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  line-height: 1.25;
}

body.pg-metodologia .home-directory {
  position: relative;
  z-index: 1;
  max-width: var(--max-width-wide);
  padding: 0 var(--gutter);
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

body.pg-metodologia .home-directory a {
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  align-items: start;
  gap: 14px;
  min-height: 132px;
  padding: 22px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background var(--transition);
}

body.pg-metodologia .home-directory a:first-child {
  border-left: 1px solid var(--line);
}

body.pg-metodologia .home-directory a:hover {
  background: #f7f9f3;
}

body.pg-metodologia .home-directory-index {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
}

body.pg-metodologia .home-directory a > div {
  display: grid;
}

body.pg-metodologia .home-directory strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

body.pg-metodologia .home-directory small {
  margin-top: 7px;
  max-width: 38ch;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.45;
}

body.pg-metodologia .home-directory em {
  margin-top: 12px;
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

body.pg-metodologia .home-directory svg {
  align-self: center;
  color: var(--muted);
  transition: transform var(--transition);
}

body.pg-metodologia .home-directory a:hover svg {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  body.pg-metodologia .landscape-hero {
    min-height: auto;
    padding-bottom: 24px;
  }
  body.pg-metodologia .landscape-photo {
    height: 380px;
  }
  body.pg-metodologia .landscape-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: -48px;
  }
  body.pg-metodologia .landscape-date {
    display: none;
  }
  body.pg-metodologia .home-directory {
    grid-template-columns: 1fr;
  }
  body.pg-metodologia .home-directory a {
    border-left: 1px solid var(--line);
    min-height: auto;
  }
}

/* ──────────────────────────────────────────────────────────
       SECTION WRAPPERS & STANDARDIZED HEADERS
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .section {
  padding: 3.5rem var(--gutter);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

body.pg-metodologia .section--alt {
  background: var(--color-section-bg);
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  max-width: 100%;
  padding: 3.5rem var(--gutter);
}

body.pg-metodologia .section--alt > .section__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

body.pg-metodologia #visualizacoes > .section__inner,
body.pg-metodologia #comparacao > .section__inner {
  max-width: var(--max-width-wide);
}

body.pg-metodologia .section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 0.45rem;
  text-align: left;
}

body.pg-metodologia .section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 600;
  color: var(--color-fg);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
}

body.pg-metodologia .section__desc {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--text);
  max-width: 960px;
  margin: 0 0 2rem;
  line-height: 1.65;
  text-align: left;
}

/* ──────────────────────────────────────────────────────────
       CARDS GRID
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

body.pg-metodologia .card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
}

body.pg-metodologia .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.pg-metodologia .card__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.45rem;
}

body.pg-metodologia .card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: var(--color-fg);
  line-height: 1.25;
}

body.pg-metodologia .card__desc {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  text-align: left;
}

body.pg-metodologia .card__arrow {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-fg);
  transition: transform var(--transition);
}

body.pg-metodologia .card:hover .card__arrow {
  transform: translateX(4px);
}

/* ──────────────────────────────────────────────────────────
       STATS ROW
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
  margin: 1rem 0;
}

@media (max-width: 1100px) {
  body.pg-metodologia .stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

body.pg-metodologia .stat {
  text-align: left;
  padding: 1.35rem 1.4rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
}

body.pg-metodologia .stat__number {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.1;
}

body.pg-metodologia .stat__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
       CLASSES TABLE
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

body.pg-metodologia .class-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

body.pg-metodologia .class-item:hover {
  box-shadow: var(--shadow-sm);
}

body.pg-metodologia .class-item__swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

body.pg-metodologia .class-item__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-fg);
}

body.pg-metodologia .class-item__desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
  margin-top: 0.2rem;
}

body.pg-metodologia .class-item__count {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-top: 0.3rem;
}

/* ──────────────────────────────────────────────────────────
       IMAGE FIGURE
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .figure {
  margin: 2rem 0;
  text-align: center;
}

body.pg-metodologia .figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-sm);
}

body.pg-metodologia .figure figcaption {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.6rem;
}

/* ──────────────────────────────────────────────────────────
       TIMELINE
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

body.pg-metodologia .timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-rule);
}

body.pg-metodologia .timeline__item {
  position: relative;
  margin-bottom: 1.35rem;
  padding-left: 0.5rem;
}

body.pg-metodologia .timeline__item::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-fg);
  border: 2px solid var(--color-bg);
}

body.pg-metodologia .timeline__item.done::before {
  background: var(--color-fg);
}

body.pg-metodologia .timeline__item.current::before {
  background: var(--accent-highlight);
  border: 3px solid var(--color-fg);
}

body.pg-metodologia .timeline__item.future::before {
  background: var(--color-rule);
}

body.pg-metodologia .timeline__date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.pg-metodologia .timeline__title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-top: 0.15rem;
}

body.pg-metodologia .timeline__desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 0.25rem;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────
       METHODOLOGY PROSE
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .prose {
  max-width: 1480px;
  margin: 2rem auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

body.pg-metodologia .prose p {
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.pg-metodologia .prose strong {
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
       PIPELINE STEPS
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 2rem 0;
  position: relative;
}

body.pg-metodologia .pipeline__step {
  text-align: center;
  padding: 1.2rem 0.8rem;
  position: relative;
}

body.pg-metodologia .pipeline__step::after {
  content: 'â†’';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  color: var(--color-rule);
  font-size: 1.2rem;
}

body.pg-metodologia .pipeline__step:last-child::after {
  display: none;
}

body.pg-metodologia .pipeline__icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

body.pg-metodologia .pipeline__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-fg);
}

body.pg-metodologia .pipeline__sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

/* ──────────────────────────────────────────────────────────
       METHODOLOGY BLOCKS & DETAILS (PREMIUM REDESIGN)
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .method-section {
  position: relative;
}

body.pg-metodologia .method-scope-banner {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

body.pg-metodologia .method-scope-banner__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

body.pg-metodologia .method-scope-banner__content strong {
  color: #92400e;
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────
   METHODOLOGY FLOWCHART — chronological, collapsible boxes
   ────────────────────────────────────────────────────────── */
body.pg-metodologia .flow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow-sm);
}

body.pg-metodologia .flow-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #475569;
}

body.pg-metodologia .flow-legend__title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e293b;
}

body.pg-metodologia .flow-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

body.pg-metodologia .flow-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

body.pg-metodologia .flow-dot--done { background: #22c55e; }
body.pg-metodologia .flow-dot--prelim { background: #f59e0b; }
body.pg-metodologia .flow-dot--dev { background: #f97316; }
body.pg-metodologia .flow-dot--plan { background: #94a3b8; }

body.pg-metodologia .flow-toolbar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pg-metodologia .flow-toolbar__hint {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-right: 0.25rem;
}

body.pg-metodologia .flow-btn {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

body.pg-metodologia .flow-btn:hover {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── Layout ── */
body.pg-metodologia .flow {
  --flow-line: #94a3b8;
  --flow-gap: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

body.pg-metodologia .flow__single {
  width: 100%;
  max-width: 1100px;
}

body.pg-metodologia .flow__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--flow-gap);
  width: 100%;
}

body.pg-metodologia .flow__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.pg-metodologia .flow__col > .fnode {
  flex: 0 0 auto;
}

/* ── Connectors ── */
body.pg-metodologia .fc-fill {
  flex: 1 1 auto;
  min-height: 22px;
  width: 2px;
  align-self: center;
  background: var(--flow-line);
}

body.pg-metodologia .fc-bus {
  position: relative;
  width: 100%;
  height: 2px;
}

body.pg-metodologia .fc-bus::before {
  content: '';
  position: absolute;
  top: 0;
  height: 2px;
  left: calc((100% - var(--flow-gap)) / 4);
  right: calc((100% - var(--flow-gap)) / 4);
  background: var(--flow-line);
}

body.pg-metodologia .fc-bus__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--flow-line);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
}

body.pg-metodologia .fc-arrow {
  position: relative;
  flex-shrink: 0;
  width: 2px;
  height: 46px;
  margin-bottom: 9px;
  align-self: center;
  background: var(--flow-line);
}

body.pg-metodologia .fc-arrow--short {
  height: 26px;
}

body.pg-metodologia .fc-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--flow-line);
}

body.pg-metodologia .fc-arrow__label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-style: italic;
  color: var(--muted);
}

body.pg-metodologia .flow__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 2.5rem 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

body.pg-metodologia .flow__divider::before,
body.pg-metodologia .flow__divider::after {
  content: '';
  flex: 1;
  border-top: 2px dashed #cbd5e1;
}

body.pg-metodologia .flow__row--support {
  row-gap: 1.25rem;
  align-items: start;
}

/* ── Node (box) ── */
body.pg-metodologia .fnode {
  --node-color: var(--ink);
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

body.pg-metodologia .fnode--input { --node-color: var(--ink); }
body.pg-metodologia .fnode--extract { --node-color: var(--ink); }
body.pg-metodologia .fnode--filter { --node-color: var(--ink); }
body.pg-metodologia .fnode--qc { --node-color: var(--ink); }
body.pg-metodologia .fnode--model { --node-color: var(--ink); }
body.pg-metodologia .fnode--valid { --node-color: var(--ink); }
body.pg-metodologia .fnode--support { --node-color: #334155; border-style: dashed; }

body.pg-metodologia .fnode:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

body.pg-metodologia .fnode.is-open {
  border-color: var(--node-color);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-md);
}

body.pg-metodologia .fnode__toggle {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

body.pg-metodologia .fnode__toggle:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: -3px;
}

body.pg-metodologia .fnode__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  background: var(--node-color);
  color: #ffffff;
}

body.pg-metodologia .fnode__num {
  flex-shrink: 0;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.pg-metodologia .fnode__titles {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.pg-metodologia .fnode__phase {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

body.pg-metodologia .fnode__title {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

body.pg-metodologia .fstatus {
  --dot: #94a3b8;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

body.pg-metodologia .fstatus::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--dot);
}

body.pg-metodologia .fstatus--done { --dot: #dce89b; }
body.pg-metodologia .fstatus--prelim { --dot: #fbbf24; }
body.pg-metodologia .fstatus--dev { --dot: #fb923c; }
body.pg-metodologia .fstatus--plan { --dot: #cbd5e1; }

body.pg-metodologia .fnode__chev {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

body.pg-metodologia .fnode.is-open .fnode__chev {
  transform: rotate(180deg);
}

body.pg-metodologia .fnode__summary {
  display: block;
  padding: 0.95rem 1.1rem 0.85rem;
}

body.pg-metodologia .fnode__desc {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

body.pg-metodologia .fnode__kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pg-metodologia .fnode__kpis--inline {
  margin: 0.25rem 0 0.75rem;
}

body.pg-metodologia .fkpi {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

body.pg-metodologia .fkpi__v {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  color: #18362d;
}

body.pg-metodologia .fkpi__l {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  line-height: 1.35;
  color: #64748b;
}

body.pg-metodologia .fnode__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--node-color);
}

body.pg-metodologia .fnode__more .is-open-text,
body.pg-metodologia .fnode.is-open .fnode__more .is-closed-text {
  display: none;
}

body.pg-metodologia .fnode.is-open .fnode__more .is-open-text {
  display: inline;
}

/* Outcome chips (Keep / Analyze / Remove) */
body.pg-metodologia .foutcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

body.pg-metodologia .foutcome {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

body.pg-metodologia .foutcome--keep { background: #dcfce7; color: #166534; border-color: #86efac; }
body.pg-metodologia .foutcome--analyze { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
body.pg-metodologia .foutcome--remove { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* ── Collapsible panel (no padding on the animated element) ── */
body.pg-metodologia .fnode__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.pg-metodologia .fnode.is-open .fnode__panel {
  grid-template-rows: 1fr;
}

body.pg-metodologia .fnode__panel-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}

body.pg-metodologia .fnode.is-open .fnode__panel-inner {
  visibility: visible;
  transition-delay: 0s;
}

body.pg-metodologia .fnode__body {
  padding: 1rem 1.15rem 1.2rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.15);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #334155;
}

body.pg-metodologia .fnode__body p {
  margin: 0 0 0.75rem;
  text-align: left;
}

body.pg-metodologia .fnode__body p:last-child {
  margin-bottom: 0;
}

body.pg-metodologia .fnode__body h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--node-color);
  margin: 1.1rem 0 0.5rem;
}

body.pg-metodologia .fnode__body h4:first-child {
  margin-top: 0;
}

body.pg-metodologia .fnode__body .method-subcard .method-formula {
  margin-bottom: 0;
}

body.pg-metodologia .fnote {
  font-size: 0.76rem;
  font-style: italic;
  color: #64748b;
}

/* Tables inside boxes */
body.pg-metodologia .ftable-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 0.25rem 0 0.85rem;
}

body.pg-metodologia .ftable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  line-height: 1.45;
}

body.pg-metodologia .ftable th,
body.pg-metodologia .ftable td {
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

body.pg-metodologia .ftable th {
  background: #f1f5f1;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e293b;
}

body.pg-metodologia .ftable td:first-child {
  font-weight: 600;
  color: #0f172a;
}

body.pg-metodologia .ftable tbody tr:last-child td {
  border-bottom: none;
}

body.pg-metodologia .ftable__total td {
  background: #f6faf6;
  font-weight: 700;
}

/* md3 cards */
body.pg-metodologia .fmd3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.25rem 0 0.6rem;
}

body.pg-metodologia .fmd3__card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1.5px solid;
  font-size: 0.74rem;
  line-height: 1.4;
}

body.pg-metodologia .fmd3__card strong {
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

body.pg-metodologia .fmd3__n {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.pg-metodologia .fmd3__card--3 { border-color: #86efac; background: #f0fdf4; }
body.pg-metodologia .fmd3__card--3 .fmd3__n { background: #15803d; }
body.pg-metodologia .fmd3__card--2 { border-color: #fcd34d; background: #fffbeb; }
body.pg-metodologia .fmd3__card--2 .fmd3__n { background: #d97706; }
body.pg-metodologia .fmd3__card--1 { border-color: #fca5a5; background: #fef2f2; }
body.pg-metodologia .fmd3__card--1 .fmd3__n { background: #b91c1c; }

/* SOM decision matrix */
body.pg-metodologia .fdecision {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.25rem 0 0.85rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--node-color);
}

body.pg-metodologia .fdecision__step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

body.pg-metodologia .fdecision__q {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 13rem;
}

/* Roadmap list */
body.pg-metodologia .froadmap {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.pg-metodologia .froadmap li::marker {
  font-weight: 800;
  color: var(--node-color);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  body.pg-metodologia .flow__row {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .fc-bus {
    display: none;
  }

  body.pg-metodologia .fc-fill {
    flex: 0 0 22px;
  }

  body.pg-metodologia .flow__row--support .fc-fill {
    display: none;
  }

  body.pg-metodologia .fc-arrow__label {
    display: none;
  }

  body.pg-metodologia .fc-arrow {
    height: 30px;
  }

  body.pg-metodologia .fmd3 {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .flow-toolbar__hint {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body.pg-metodologia .fnode__bar {
    flex-wrap: wrap;
  }

  body.pg-metodologia .fnode__titles {
    order: 3;
    flex-basis: 100%;
  }

  body.pg-metodologia .fstatus {
    margin-left: auto;
  }

  body.pg-metodologia .fdecision__q {
    min-width: 0;
  }
}

/* Redesigned Pipeline Stepper (Legacy support) */
body.pg-metodologia .method-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

@media (max-width: 1100px) {
  body.pg-metodologia .method-stepper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  body.pg-metodologia .method-stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.pg-metodologia .method-step {
  background: var(--color-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

body.pg-metodologia .method-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border-color: rgba(24, 54, 45, 0.3);
}

body.pg-metodologia .method-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

body.pg-metodologia .method-step__icon {
  font-size: 1.3rem;
}

body.pg-metodologia .method-step__status {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

body.pg-metodologia .method-step__status--assembled {
  background: rgba(24, 54, 45, 0.1);
  color: #0f766e;
  border: 1px solid rgba(24, 54, 45, 0.2);
}

body.pg-metodologia .method-step__status--extracted {
  background: rgba(24, 54, 45, 0.1);
  color: #0f766e;
  border: 1px solid rgba(24, 54, 45, 0.2);
}

body.pg-metodologia .method-step__status--preliminary {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

body.pg-metodologia .method-step__status--dev {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

body.pg-metodologia .method-step__status--planning {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

body.pg-metodologia .method-step__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

body.pg-metodologia .method-step__desc {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
}

/* Method Grid & Core Cards */
body.pg-metodologia .method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

@media (max-width: 900px) {
  body.pg-metodologia .method-grid {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .method-card {
    padding: 1.25rem 1.25rem;
  }
}

body.pg-metodologia .method-card {
  background: var(--color-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

body.pg-metodologia .method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: rgba(24, 54, 45, 0.25);
}

body.pg-metodologia .method-card--full {
  grid-column: 1 / -1;
}

body.pg-metodologia .method-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

body.pg-metodologia .method-card__icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(24, 54, 45, 0.07);
  border: 1px solid rgba(24, 54, 45, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

body.pg-metodologia .method-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}

body.pg-metodologia .method-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

body.pg-metodologia .method-card__body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #334155;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

body.pg-metodologia .method-card__body p {
  margin-bottom: 0.85rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.pg-metodologia .method-card__body p:last-child {
  margin-bottom: 0;
}

/* Feature Sub-Blocks inside Cards */
body.pg-metodologia .method-subcard {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0.6rem 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

body.pg-metodologia .method-subcard strong {
  color: #0f172a;
}

body.pg-metodologia .method-subcard--warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.25);
}

body.pg-metodologia .method-subcard--accent {
  background: rgba(24, 54, 45, 0.04);
  border-color: rgba(24, 54, 45, 0.18);
}

body.pg-metodologia .method-list-styled {
  margin: 0.5rem 0 0.8rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.pg-metodologia .method-list-styled li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #334155;
}

body.pg-metodologia .method-list-styled li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: bold;
}

body.pg-metodologia .method-formula {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin: 0.75rem 0;
  color: #0f172a;
  text-align: center;
  line-height: 1.55;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Category & Topic Tags */
body.pg-metodologia .method-tags {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.pg-metodologia .method-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: rgba(24, 54, 45, 0.07);
  color: var(--color-accent);
  border: 1px solid rgba(24, 54, 45, 0.15);
}

/* Risk Dashboard Grid */
body.pg-metodologia .risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0 0.5rem;
}

body.pg-metodologia .risk-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.9rem 1.05rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.pg-metodologia .risk-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

body.pg-metodologia .risk-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.pg-metodologia .risk-card p {
  margin: 0;
  text-align: left;
}

/* Roadmap Grid */
body.pg-metodologia .roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0 0.5rem;
}

body.pg-metodologia .roadmap-card {
  background: #ffffff;
  border: 1px solid rgba(24, 54, 45, 0.2);
  border-radius: 8px;
  padding: 0.9rem 1.05rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #334155;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.pg-metodologia .roadmap-card:hover {
  border-color: rgba(24, 54, 45, 0.45);
  box-shadow: 0 4px 12px rgba(24, 54, 45, 0.08);
  transform: translateY(-1px);
}

body.pg-metodologia .roadmap-card__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

body.pg-metodologia .roadmap-card__content strong {
  display: block;
  color: #1b4d3e;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
}

body.pg-metodologia .roadmap-card__content p {
  margin: 0;
  text-align: left;
}

/* ──────────────────────────────────────────────────────────
       DELIVERABLES
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

body.pg-metodologia .deliverable {
  padding: 1.35rem 1.45rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  text-align: left;
  transition: box-shadow var(--transition);
}

body.pg-metodologia .deliverable:hover {
  box-shadow: var(--shadow-sm);
}

body.pg-metodologia .deliverable__icon {
  color: var(--color-fg);
  margin-bottom: 0.65rem;
}

body.pg-metodologia .deliverable__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-fg);
}

body.pg-metodologia .deliverable__desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.35rem;
  line-height: 1.55;
}

/* ──────────────────────────────────────────────────────────
       FOOTER
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--color-rule);
  margin-top: 2rem;
}

body.pg-metodologia .site-footer__logos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

body.pg-metodologia .site-footer__logos a {
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity var(--transition);
}

body.pg-metodologia .site-footer__logos a:hover {
  opacity: 1;
}

body.pg-metodologia .site-footer__logo {
  display: block;
  object-fit: contain;
  width: auto;
}

body.pg-metodologia .site-footer__logo--wri {
  height: 32px;
  width: auto;
  max-width: 165px;
}

body.pg-metodologia .site-footer__logo--ilpf {
  height: 36px;
  width: auto;
  max-width: 130px;
}

body.pg-metodologia .site-footer__logo--lapig {
  height: 27px;
  width: auto;
  max-width: 140px;
}

body.pg-metodologia .site-footer__logo--ufg {
  height: 35.5px;
  width: auto;
  max-width: 150px;
}

body.pg-metodologia .site-footer__logo-divider {
  width: 1px;
  height: 28px;
  background: var(--color-rule);
}

body.pg-metodologia .site-footer p {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.6;
}

body.pg-metodologia .site-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

body.pg-metodologia .site-footer a:hover {
  text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────
       RESPONSIVE & CROSS-PLATFORM SYSTEM
    ────────────────────────────────────────────────────────── */
@media (max-width: 950px) {
  body.pg-metodologia .site-nav__inner {
    padding: 0.5rem 1.25rem;
    gap: 1rem;
  }

  body.pg-metodologia .site-nav__links {
    gap: 1rem;
  }

  body.pg-metodologia .map-viz {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  body.pg-metodologia .map-container {
    height: 480px;
    min-height: 400px;
  }

  body.pg-metodologia .map-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.pg-metodologia .static-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.pg-metodologia .site-nav__inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.45rem 1rem;
    gap: 0.75rem;
  }

  body.pg-metodologia .site-nav__brand-logos {
    gap: 0.75rem;
  }

  body.pg-metodologia .site-nav__logo--wri {
    height: 25px;
    max-width: 125px;
  }

  body.pg-metodologia .site-nav__logo--lapig {
    height: 21px;
    max-width: 105px;
  }

  body.pg-metodologia .site-nav__logo--ufg {
    height: 28px;
    max-width: 115px;
  }

  body.pg-metodologia .site-nav__logo-divider {
    height: 22px;
  }

  body.pg-metodologia .site-nav__links {
    width: 100%;
    justify-content: center;
    gap: 0.85rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.2rem 0;
  }

  body.pg-metodologia .site-nav__links::-webkit-scrollbar {
    display: none;
  }

  body.pg-metodologia .split-dashboards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  body.pg-metodologia .hero {
    padding: 2.5rem 1rem 1.75rem;
  }

  body.pg-metodologia .hero__subtitle {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }

  body.pg-metodologia .hero__meta {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
  }

  body.pg-metodologia .section,
  body.pg-metodologia .section--alt {
    padding: 2.5rem 1rem;
  }

  body.pg-metodologia .section__desc {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }

  body.pg-metodologia .cards {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  body.pg-metodologia .stats .stat:last-child {
    grid-column: 1 / -1;
  }

  body.pg-metodologia .pipeline {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .pipeline__step::after {
    display: none;
  }

  body.pg-metodologia .classes-grid {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .method-stepper {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  body.pg-metodologia .risk-grid {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .roadmap-grid {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .map-container {
    height: 380px;
    min-height: 320px;
  }

  body.pg-metodologia #map-amostras {
    min-height: 320px;
  }

  body.pg-metodologia .map-controls-overlay {
    top: 8px;
    right: 8px;
    left: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 4px 6px;
  }

  body.pg-metodologia .map-controls-overlay::-webkit-scrollbar {
    display: none;
  }

  body.pg-metodologia .map-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  body.pg-metodologia .split-map-wrapper {
    height: 340px;
  }

  body.pg-metodologia .script-links-grid {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .data-table-wrapper,
  body.pg-metodologia .overlap-table-container {
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
}

@media (max-width: 420px) {
  body.pg-metodologia .method-stepper {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .stats {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .stats .stat:last-child {
    grid-column: auto;
  }
}

/* ──────────────────────────────────────────────────────────
       ANIMATIONS
    ────────────────────────────────────────────────────────── */
@keyframes metodologia-fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.pg-metodologia .fade-up {
  opacity: 0;
  animation: metodologia-fadeUp 0.6s ease forwards;
}

body.pg-metodologia .fade-up:nth-child(2) {
  animation-delay: 0.08s;
}

body.pg-metodologia .fade-up:nth-child(3) {
  animation-delay: 0.16s;
}

body.pg-metodologia .fade-up:nth-child(4) {
  animation-delay: 0.24s;
}

body.pg-metodologia .fade-up:nth-child(5) {
  animation-delay: 0.32s;
}

body.pg-metodologia .fade-up:nth-child(6) {
  animation-delay: 0.40s;
}

/* Scroll-triggered fade-in */
body.pg-metodologia .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.pg-metodologia .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Divider */
body.pg-metodologia hr.divider {
  border: none;
  height: 1px;
  background: var(--color-rule);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
       INTERACTIVE MAP & OVERLAY CONTROLS
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .map-viz {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 1.5rem;
  margin-top: 1.5rem;
  height: 820px;
  max-height: 88vh;
}

@media (max-width: 950px) {
  body.pg-metodologia .map-viz {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
}

body.pg-metodologia .map-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 760px;
}

@media (max-width: 950px) {
  body.pg-metodologia .map-container {
    height: 520px;
    min-height: 520px;
  }
}

body.pg-metodologia #map-amostras {
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 1;
}

/* Map Floating Controls */
body.pg-metodologia .map-controls-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.pg-metodologia .map-btn {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition);
  line-height: 1;
}

body.pg-metodologia .map-btn:hover {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

body.pg-metodologia .map-btn--draw.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

body.pg-metodologia .map-btn--clear-rect {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

body.pg-metodologia .map-btn--clear-rect:hover {
  background: #fecaca;
  color: #991b1b;
  border-color: #f87171;
}

body.pg-metodologia .map-btn--embrapa.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
}

body.pg-metodologia .map-select {
  padding-right: 1.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 0.75rem;
}

/* Custom styling for Leaflet controls */
body.pg-metodologia .leaflet-control-layers {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
}

body.pg-metodologia .leaflet-control-layers-expanded {
  padding: 8px 12px !important;
}

body.pg-metodologia .leaflet-bar {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
}

body.pg-metodologia .leaflet-bar a {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--color-fg) !important;
}

body.pg-metodologia .map-selection-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(24, 54, 45, 0.95);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  animation: metodologia-fadeUp 0.3s ease;
}

/* ──────────────────────────────────────────────────────────
       MAP PANEL & FILTER ACCORDION
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .map-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  max-height: 820px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

@media (max-width: 950px) {
  body.pg-metodologia .map-panel {
    height: auto;
    max-height: none;
  }
}

/* Custom Sleek Scrollbar for Panel */
body.pg-metodologia .map-panel::-webkit-scrollbar {
  width: 6px;
}

body.pg-metodologia .map-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

body.pg-metodologia .map-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

body.pg-metodologia .map-panel::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

body.pg-metodologia .map-panel__card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

body.pg-metodologia .map-panel__title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-fg);
}

body.pg-metodologia .map-counter {
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-rule);
}

body.pg-metodologia .map-counter__number {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1;
}

body.pg-metodologia .map-counter__label {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--color-fg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

body.pg-metodologia .map-counter__sub {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

/* Filter Card Header */
body.pg-metodologia .filter-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-metodologia .filter-card__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-fg);
}

body.pg-metodologia .filter-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--color-fg);
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  border: 1px solid var(--color-rule);
}

body.pg-metodologia .btn-clear-filters {
  background: none;
  border: 1px solid var(--color-rule);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
}

body.pg-metodologia .btn-clear-filters:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* Dataset Selector Group (50k vs 11k) */
body.pg-metodologia .dataset-select-group {
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-metodologia .dataset-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.35rem;
}

body.pg-metodologia .dataset-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.3rem;
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.2;
}

body.pg-metodologia .dataset-chip strong {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-fg);
}

body.pg-metodologia .dataset-chip small {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  color: var(--color-muted);
}

body.pg-metodologia .dataset-chip:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
}

body.pg-metodologia .dataset-chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

body.pg-metodologia .dataset-chip.active strong,
body.pg-metodologia .dataset-chip.active small {
  color: #ffffff;
}

/* Filter Accordion */
body.pg-metodologia .filter-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.pg-metodologia .filter-item {
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg);
}

body.pg-metodologia .filter-item__header {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.02);
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-fg);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

body.pg-metodologia .filter-item__header:hover {
  background: var(--color-accent-glow);
}

body.pg-metodologia .filter-item__icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  color: var(--color-muted);
}

body.pg-metodologia .filter-item.open .filter-item__icon {
  transform: rotate(180deg);
}

body.pg-metodologia .filter-item__body {
  padding: 0.75rem;
  display: none;
  border-top: 1px solid var(--color-rule);
  background: #ffffff;
}

body.pg-metodologia .filter-item.open .filter-item__body {
  display: block;
}

/* Year Selector Grid */
body.pg-metodologia .year-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

body.pg-metodologia .year-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.pg-metodologia .year-chip,
body.pg-metodologia .mb-year-chip,
body.pg-metodologia .change-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
}

body.pg-metodologia .year-chip input,
body.pg-metodologia .mb-year-chip input,
body.pg-metodologia .change-chip input {
  display: none;
}

body.pg-metodologia .year-chip:hover,
body.pg-metodologia .mb-year-chip:hover,
body.pg-metodologia .change-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-section-bg);
}

body.pg-metodologia .year-chip.active,
body.pg-metodologia .mb-year-chip.active,
body.pg-metodologia .change-chip.active {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 1px var(--color-accent);
}

body.pg-metodologia .filter-note {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
  font-style: italic;
}

/* Vigor Checkboxes */
body.pg-metodologia .vigor-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.pg-metodologia .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  cursor: pointer;
  user-select: none;
}

body.pg-metodologia .vigor-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

body.pg-metodologia .vigor-1 {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

body.pg-metodologia .vigor-2 {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
}

body.pg-metodologia .vigor-3 {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

body.pg-metodologia .vigor-desc {
  color: var(--color-muted);
  font-size: 0.68rem;
  margin-left: auto;
}

/* Md3 Slider & Chips */
body.pg-metodologia .md3-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.pg-metodologia .md3-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--color-fg);
}

body.pg-metodologia .md3-slider-label strong {
  color: var(--color-accent);
}

body.pg-metodologia .md3-slider {
  width: 100%;
  cursor: pointer;
  accent-color: var(--color-accent);
}

body.pg-metodologia .md3-chips {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

body.pg-metodologia .md3-chip {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--color-rule);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
}

body.pg-metodologia .md3-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

body.pg-metodologia .md3-chip.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

/* Filter classes actions */
body.pg-metodologia .filter-classes-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

body.pg-metodologia .filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.pg-metodologia .filter-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  transition: background var(--transition);
}

body.pg-metodologia .filter-list li:hover {
  background: var(--color-accent-glow);
}

body.pg-metodologia .filter-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.pg-metodologia .filter-count {
  margin-left: auto;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

/* Dual Charts */
body.pg-metodologia .chart-card {
  padding: 1rem 1.2rem;
}

body.pg-metodologia .chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

body.pg-metodologia .chart-badge {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-accent-glow);
  color: var(--color-accent);
  padding: 0.15rem 0.4rem;
  border-radius: 100px;
}

body.pg-metodologia .chart-badge--ref {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

body.pg-metodologia .chart-card--embrapa {
  background: #fbfbf9;
  border-color: #e2e8f0;
}

body.pg-metodologia .chart-container {
  position: relative;
  width: 100%;
  height: 180px;
}

/* Leaflet popup customization */
body.pg-metodologia .leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font-sans) !important;
}

body.pg-metodologia .leaflet-popup-content {
  margin: 12px 16px !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

body.pg-metodologia .popup-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--color-fg);
}

body.pg-metodologia .popup-class {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

body.pg-metodologia .popup-class__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

body.pg-metodologia .popup-meta {
  color: var(--color-muted);
  font-size: 0.75rem;
}

body.pg-metodologia .map-caption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  font-style: italic;
  margin: 0.8rem auto 0;
  max-width: 1020px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ──────────────────────────────────────────────────────────
       OVERLAP TABLE & SEARCH & FILTERS
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .overlap-table-header {
  padding: 0.8rem 1rem;
  background: var(--color-section-bg);
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.pg-metodologia .overlap-table-header h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-fg);
  text-align: left;
}

body.pg-metodologia .overlap-table-header small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-muted);
}

body.pg-metodologia .search-container {
  margin-bottom: 0.6rem;
}

body.pg-metodologia .search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  background: var(--color-bg);
  color: var(--color-fg);
  transition: border-color var(--transition);
}

body.pg-metodologia .search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

body.pg-metodologia .overlap-table-container {
  margin-top: 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-height: 480px;
  overflow-y: auto;
  overflow-x: auto;
  display: none;
}

/* Custom Sleek Scrollbar for Table */
body.pg-metodologia .overlap-table-container::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

body.pg-metodologia .overlap-table-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}

body.pg-metodologia .overlap-table-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

body.pg-metodologia .overlap-table-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

body.pg-metodologia .overlap-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  min-width: 800px;
}

body.pg-metodologia .overlap-table th,
body.pg-metodologia .overlap-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-metodologia .overlap-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #edf1eb;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.pg-metodologia .overlap-table tr:last-child td {
  border-bottom: none;
}

body.pg-metodologia .overlap-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

body.pg-metodologia .class-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
  color: #000000;
}

/* Pie marker icon styles */
body.pg-metodologia .pie-marker-icon {
  background: none;
  border: none;
}

body.pg-metodologia .pie-marker-icon svg {
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  background: #fff;
}

/* Reset button on map */
body.pg-metodologia .map-reset-btn {
  position: absolute;
  top: 80px;
  left: 10px;
  z-index: 1000;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-fg);
  transition: background var(--transition);
  line-height: 1;
}

body.pg-metodologia .map-reset-btn:hover {
  background: var(--color-accent-glow);
}

@media (max-width: 800px) {
  body.pg-metodologia .map-viz {
    grid-template-columns: 1fr;
  }

  body.pg-metodologia .map-container {
    min-height: 380px;
  }

  body.pg-metodologia #map-amostras {
    min-height: 380px;
  }
}

/* ──────────────────────────────────────────────────────────
       SPLIT MAP & DASHBOARDS
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .split-map-wrapper {
  position: relative;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

body.pg-metodologia #split-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

body.pg-metodologia .split-dashboards {
  display: flex;
  gap: 1.5rem;
}

body.pg-metodologia .split-dashboard {
  flex: 1;
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.pg-metodologia .dashboard-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  text-align: center;
}

body.pg-metodologia .dashboard-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

body.pg-metodologia .legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

body.pg-metodologia .legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.pg-metodologia .dashboard-chart {
  position: relative;
  width: 100%;
  height: 150px;
}

@media (max-width: 800px) {
  body.pg-metodologia .split-dashboards {
    flex-direction: column;
  }
}

body.pg-metodologia .leaflet-sbs-range::-webkit-slider-thumb {
  width: 80px !important;
  height: 80px !important;
  background: transparent !important;
  cursor: ew-resize !important;
}

body.pg-metodologia .leaflet-sbs-range::-moz-range-thumb {
  width: 80px !important;
  height: 80px !important;
  background: transparent !important;
  cursor: ew-resize !important;
}

/* ──────────────────────────────────────────────────────────
       PAGE HEADER & BACK BUTTON (SUB-PAGES)
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .page-header {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem var(--gutter) 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

body.pg-metodologia .page-header .back-button {
  align-self: flex-start;
}

body.pg-metodologia .back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-fg);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.1rem;
  transition: all var(--transition);
  line-height: 1;
}

body.pg-metodologia .back-button svg {
  transition: transform var(--transition);
  stroke: currentColor;
}

body.pg-metodologia .back-button:hover {
  background: var(--color-fg);
  color: #ffffff;
  border-color: var(--color-fg);
  transform: translateX(-2px);
}

body.pg-metodologia .back-button:hover svg {
  transform: translateX(-2px);
}

body.pg-metodologia .page-header__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
  text-align: left;
}

body.pg-metodologia .page-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 3.2vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 0.5rem;
  color: var(--color-fg);
  text-align: left;
}

body.pg-metodologia .page-header__desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  max-width: 1080px;
  margin: 0;
  line-height: 1.62;
  text-align: left;
}

@media (max-width: 700px) {
  body.pg-metodologia .page-header {
    padding: 2rem 1rem 1rem;
  }

  body.pg-metodologia .page-header__desc {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

/* ──────────────────────────────────────────────────────────
       PRODUTOS ESTÃTICOS — STYLES
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .static-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  body.pg-metodologia .static-products-grid {
    grid-template-columns: 1fr;
  }
}

body.pg-metodologia .static-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

body.pg-metodologia .static-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(24, 54, 45, 0.3);
}

body.pg-metodologia .static-card--wide {
  grid-column: 1 / -1;
}

body.pg-metodologia .static-card__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

body.pg-metodologia .static-card__icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(24, 54, 45, 0.15);
}

body.pg-metodologia .static-card__badge {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  display: block;
}

body.pg-metodologia .static-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-top: 0.1rem;
}

body.pg-metodologia .static-card__desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-word;
}

body.pg-metodologia .static-card__actions {
  margin-top: auto;
}

body.pg-metodologia .btn-static-download {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

body.pg-metodologia .btn-static-download--disabled {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  cursor: not-allowed;
}

body.pg-metodologia .badge-status {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
}

body.pg-metodologia .badge-status--ready {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

body.pg-metodologia .btn-static-download:hover:not(.btn-static-download--disabled) {
  background: #10382b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 54, 45, 0.25);
}

/* Asset List GEE */
body.pg-metodologia .asset-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

body.pg-metodologia .asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 6px;
}

@media (max-width: 700px) {
  body.pg-metodologia .asset-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.pg-metodologia .asset-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.pg-metodologia .asset-item__info strong {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-fg);
}

body.pg-metodologia .asset-item__info code {
  font-family: monospace;
  font-size: 0.72rem;
  color: #0f766e;
  word-break: break-all;
  background: rgba(15, 118, 110, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

body.pg-metodologia .btn-copy-asset {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}

body.pg-metodologia .btn-copy-asset:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

/* Script Links Grid */
body.pg-metodologia .static-subheading {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-top: 0.8rem;
  margin-bottom: 0.6rem;
}

body.pg-metodologia .script-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.6rem;
}

body.pg-metodologia .script-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-fg);
  transition: all var(--transition);
}

body.pg-metodologia .script-link-item:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
  transform: translateX(2px);
}

body.pg-metodologia .script-link-item--github:hover {
  border-color: #4338ca;
  background: #eef2ff;
}

body.pg-metodologia .script-link-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.pg-metodologia .script-link-item__text strong {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
}

body.pg-metodologia .script-link-item__text small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-muted);
}

body.pg-metodologia .script-link-item__arrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

body.pg-metodologia .script-link-item--github .script-link-item__arrow {
  color: #4338ca;
}

/* Static Data Table */
body.pg-metodologia .data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  margin-top: 0.5rem;
}

body.pg-metodologia .static-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  min-width: 600px;
}

body.pg-metodologia .static-data-table th,
body.pg-metodologia .static-data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-rule);
}

body.pg-metodologia .static-data-table th {
  background: var(--color-section-bg);
  font-weight: 700;
  color: var(--color-fg);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.pg-metodologia .static-data-table tbody tr:last-child td {
  border-bottom: none;
}

body.pg-metodologia .static-data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

body.pg-metodologia .download-links-cell {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

body.pg-metodologia .data-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

body.pg-metodologia .data-badge--csv {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

body.pg-metodologia .data-badge--csv:hover {
  background: #0284c7;
  color: #ffffff;
}

body.pg-metodologia .data-badge--json {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

body.pg-metodologia .data-badge--json:hover {
  background: #ca8a04;
  color: #ffffff;
}

body.pg-metodologia .data-badge--parquet {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

body.pg-metodologia .data-badge--parquet:hover {
  background: #9333ea;
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────
       SOM — SELF-ORGANIZING MAPS SECTION
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .som-development-card {
  background: var(--color-card-bg);
  border: 1px dashed var(--color-rule);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.pg-metodologia .som-development-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  animation: metodologia-pulse 2.5s infinite ease-in-out;
}

body.pg-metodologia .som-development-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 0.6rem;
  text-align: center;
}

body.pg-metodologia .som-development-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0.4rem auto 0.8rem;
}

body.pg-metodologia .som-development-status {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-align: center;
}

body.pg-metodologia .som-development-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.5;
  text-align: center;
}

@keyframes metodologia-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}


/* ──────────────────────────────────────────────────────────
       GLOBAL FONT STANDARDIZATION & TEXT JUSTIFICATION
    ────────────────────────────────────────────────────────── */
body.pg-metodologia,
body.pg-metodologia h1,
body.pg-metodologia h2,
body.pg-metodologia h3,
body.pg-metodologia h4,
body.pg-metodologia h5,
body.pg-metodologia h6,
body.pg-metodologia p,
body.pg-metodologia li,
body.pg-metodologia td,
body.pg-metodologia th,
body.pg-metodologia span,
body.pg-metodologia div,
body.pg-metodologia a,
body.pg-metodologia button,
body.pg-metodologia input,
body.pg-metodologia select,
body.pg-metodologia .section__title,
body.pg-metodologia .card__title,
body.pg-metodologia .stat__number,
body.pg-metodologia .page-header__title,
body.pg-metodologia .landscape-card h1,
body.pg-metodologia .landscape-date strong,
body.pg-metodologia .home-directory strong,
body.pg-metodologia .map-counter__number,
body.pg-metodologia .method-formula {
  font-family: var(--font-sans);
}

body.pg-metodologia .landscape-intro,
body.pg-metodologia .section__desc,
body.pg-metodologia .card__desc,
body.pg-metodologia .class-item__desc,
body.pg-metodologia .deliverable__desc,
body.pg-metodologia .timeline__desc,
body.pg-metodologia .method-scope-banner__content,
body.pg-metodologia .fnode__desc,
body.pg-metodologia .fnode__body p,
body.pg-metodologia .method-list-styled li,
body.pg-metodologia .method-subcard,
body.pg-metodologia .froadmap li,
body.pg-metodologia .page-header__desc,
body.pg-metodologia .static-card__desc,
body.pg-metodologia .map-caption,
body.pg-metodologia .home-directory small,
body.pg-metodologia .risk-card p,
body.pg-metodologia .roadmap-card__content p,
body.pg-metodologia .status-card .sub,
body.pg-metodologia .detalhe-etapa__obj,
body.pg-metodologia .detalhe-etapa__list li,
body.pg-metodologia .etapa-card__desc,
body.pg-metodologia .prod-item span {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.pg-metodologia .section__desc,
body.pg-metodologia .page-header__desc {
  max-width: 100%;
}

/* ──────────────────────────────────────────────────────────
       COMPACT MINIMIZED TIMELINE (STATUS CARD + MILESTONE BAR)
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .status-section {
  padding-top: 1.5rem;
  padding-bottom: 2.25rem;
}

body.pg-metodologia .status-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 2.25rem;
  border: 1px solid var(--line);
  align-items: center;
}

body.pg-metodologia .agora-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--agora);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.pg-metodologia .pulso {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--agora);
  box-shadow: 0 0 0 0 rgba(201, 115, 32, 0.6);
  animation: metodologia-pulsoStatus 1.8s infinite;
}

@keyframes metodologia-pulsoStatus {
  70% {
    box-shadow: 0 0 0 12px rgba(201, 115, 32, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 115, 32, 0);
  }
}

body.pg-metodologia .status-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.4rem 0 0.45rem;
  line-height: 1.25;
}

body.pg-metodologia .status-card .sub {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

body.pg-metodologia .status-card__actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.pg-metodologia .linha-tempo {
  position: relative;
  padding-top: 0.5rem;
}

body.pg-metodologia .lt-trilho {
  position: relative;
  height: 8px;
  background: #dfe5df;
  border-radius: 99px;
  margin: 52px 32px 0;
}

body.pg-metodologia .lt-prog {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--ink), #3b7a57);
  border-radius: 99px;
}

body.pg-metodologia .lt-hoje {
  position: absolute;
  top: -34px;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--agora);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.pg-metodologia .lt-hoje::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 2px;
  height: 24px;
  background: var(--agora);
}

body.pg-metodologia .marco {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--futuro);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--futuro);
  cursor: default;
}

body.pg-metodologia .marco.ok {
  border-color: var(--ok);
  background: var(--ok);
  color: #ffffff;
}

body.pg-metodologia .marco.agora {
  border-color: var(--agora);
  color: var(--agora);
  width: 28px;
  height: 28px;
  box-shadow: 0 0 0 5px rgba(201, 115, 32, 0.18);
}

body.pg-metodologia .marco-rot {
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.25;
  width: 96px;
  color: var(--muted);
}

body.pg-metodologia .marco-rot b {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

body.pg-metodologia .marco-rot.cima {
  top: auto;
  bottom: 22px;
}

body.pg-metodologia .lt-legenda {
  display: flex;
  gap: 1.25rem;
  margin-top: 64px;
  font-size: 0.76rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}

body.pg-metodologia .lt-legenda span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}

body.pg-metodologia .lt-legenda .l-ok::before {
  background: var(--ok);
}

body.pg-metodologia .lt-legenda .l-ag::before {
  background: var(--agora);
}

body.pg-metodologia .lt-legenda .l-fu::before {
  background: var(--futuro);
}

/* ──────────────────────────────────────────────────────────
       FULL TIMELINE PAGE (/cronograma/) — STAGES & PRODUCTS
    ────────────────────────────────────────────────────────── */
body.pg-metodologia .fluxo-etapas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  position: relative;
}

body.pg-metodologia .etapa-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
  opacity: 0.72;
}

body.pg-metodologia .etapa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

body.pg-metodologia .etapa-card.is-selected {
  opacity: 1;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-md);
}

body.pg-metodologia .etapa-card__icone {
  width: 78px;
  height: 78px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2.5px solid var(--futuro);
  color: var(--ink);
  transition: transform var(--transition);
}

body.pg-metodologia .etapa-card__icone svg {
  width: 38px;
  height: 38px;
}

body.pg-metodologia .etapa-card.ok .etapa-card__icone {
  border-color: var(--ok);
  background: #eaf4ee;
  color: var(--ok);
}

body.pg-metodologia .etapa-card.agora .etapa-card__icone {
  border-color: var(--agora);
  background: #fff4e8;
  color: var(--agora);
  box-shadow: 0 0 0 6px rgba(201, 115, 32, 0.14);
}

body.pg-metodologia .etapa-card.parcial .etapa-card__icone {
  border-color: var(--forest);
  border-style: dashed;
  color: var(--forest);
}

body.pg-metodologia .etapa-card__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

body.pg-metodologia .etapa-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.35rem 0 0.45rem;
}

body.pg-metodologia .etapa-card__desc {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

body.pg-metodologia .selo-etapa {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.pg-metodologia .selo-etapa.ok {
  background: #e1f1e5;
  color: var(--ok);
}

body.pg-metodologia .selo-etapa.agora {
  background: #ffe9d1;
  color: #9e5311;
}

body.pg-metodologia .selo-etapa.parcial {
  background: #e8f0ec;
  color: var(--forest);
}

body.pg-metodologia .selo-etapa.fu {
  background: #eceeed;
  color: #5f6d66;
}

body.pg-metodologia .aqui-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--agora);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

body.pg-metodologia .detalhe-etapa {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.25rem;
  box-shadow: var(--shadow-sm);
}

body.pg-metodologia .detalhe-etapa__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

body.pg-metodologia .detalhe-etapa__periodo {
  display: inline-block;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.2rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

body.pg-metodologia .detalhe-etapa__obj {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.6;
}

body.pg-metodologia .detalhe-etapa__how-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

body.pg-metodologia .detalhe-etapa__list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

body.pg-metodologia .detalhe-etapa__list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

body.pg-metodologia .detalhe-etapa__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 700;
}

body.pg-metodologia .detalhe-etapa__meta {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--text);
}

body.pg-metodologia .subpassos {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

body.pg-metodologia .subpassos__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

body.pg-metodologia .sp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text);
}

body.pg-metodologia .sp i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
}

body.pg-metodologia .sp.ok i {
  background: var(--ok);
}

body.pg-metodologia .sp.agora i {
  background: var(--agora);
}

body.pg-metodologia .sp.fu i {
  background: #cbd5e1;
}

body.pg-metodologia .produtos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

body.pg-metodologia .prod-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.pg-metodologia .prod-item--active {
  border-color: var(--agora);
  box-shadow: 0 0 0 1px rgba(201, 115, 32, 0.25);
}

body.pg-metodologia .prod-item b {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

body.pg-metodologia .prod-item--active b {
  color: var(--agora);
}

body.pg-metodologia .prod-item span {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.45;
}

@media (max-width: 1024px) {
  body.pg-metodologia .status-card,
  body.pg-metodologia .detalhe-etapa {
    grid-template-columns: 1fr;
  }
  body.pg-metodologia .fluxo-etapas {
    grid-template-columns: repeat(2, 1fr);
  }
  body.pg-metodologia .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body.pg-metodologia .fluxo-etapas,
  body.pg-metodologia .produtos-grid {
    grid-template-columns: 1fr;
  }
  body.pg-metodologia .marco-rot {
    font-size: 0.64rem;
    width: 66px;
  }
  body.pg-metodologia .marco-rot b {
    font-size: 0.68rem;
  }
}


/* ──────────────────────────────────────────────────────────
       CARD OVERFLOW & LAYOUT CONTAINMENT FIXES
    ────────────────────────────────────────────────────────── */
/* 1. Hero Card & Top Directory Containment */
body.pg-metodologia .landscape-hero {
  min-height: 690px;
}

body.pg-metodologia .landscape-photo {
  height: 590px;
}

body.pg-metodologia .landscape-card {
  width: min(820px, calc(100% - 2 * var(--gutter) - 210px));
  padding: clamp(22px, 2.4vw, 34px) clamp(24px, 2.8vw, 42px);
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-metodologia .landscape-card h1 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.12;
}

body.pg-metodologia .landscape-intro {
  max-width: 100%;
  font-size: 0.96rem;
  line-height: 1.58;
}

body.pg-metodologia .home-directory a {
  min-width: 0;
  overflow: hidden;
}

body.pg-metodologia .home-directory a > div {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-metodologia .home-directory small {
  max-width: 100%;
  text-align: left !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* 2. Interactive Map Panel Cards (Prevent Flexbox Squashing & Text Overflow) */
body.pg-metodologia .map-viz {
  grid-template-columns: minmax(0, 1fr) 460px;
}

@media (max-width: 1080px) {
  body.pg-metodologia .map-viz {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
}

body.pg-metodologia .map-panel {
  min-width: 0;
}

body.pg-metodologia .map-panel__card {
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-metodologia .dataset-chips {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

body.pg-metodologia .dataset-chip {
  min-width: 0;
  padding: 0.5rem 0.45rem;
  text-align: center !important;
  overflow: hidden;
}

body.pg-metodologia .dataset-chip strong,
body.pg-metodologia .dataset-chip small {
  text-align: center !important;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  display: block;
  width: 100%;
}

body.pg-metodologia .filter-item__header {
  white-space: normal;
  gap: 0.5rem;
  line-height: 1.3;
}

body.pg-metodologia .checkbox-label {
  flex-wrap: wrap;
  min-width: 0;
}

body.pg-metodologia .filter-list li {
  min-width: 0;
  overflow-wrap: break-word;
}

body.pg-metodologia .chart-card {
  flex-shrink: 0;
}

/* 3. Timeline Status Card & General Card Overflow Protection */
body.pg-metodologia .status-card {
  overflow: hidden;
  min-width: 0;
}

body.pg-metodologia .status-card > * {
  min-width: 0;
}

body.pg-metodologia .lt-trilho {
  margin: 54px 52px 0;
}

body.pg-metodologia .marco-rot {
  text-align: center !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  width: 90px;
}

body.pg-metodologia .card,
body.pg-metodologia .class-item,
body.pg-metodologia .class-item > div,
body.pg-metodologia .deliverable,
body.pg-metodologia .static-card,
body.pg-metodologia .prod-item,
body.pg-metodologia .detalhe-etapa > div {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-metodologia .etapa-card {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.pg-metodologia .etapa-card__desc {
  text-align: center !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* ──────────────────────────────────────────────────────────
   FERRAMENTA DE VISUALIZAÇÃO DE TRANSIÇÕES (MAPBIOMAS)
   ────────────────────────────────────────────────────────── */
body.pg-metodologia .change-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--color-border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
body.pg-metodologia .change-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
body.pg-metodologia .change-chip.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

body.pg-metodologia .inspector-tab {
  background: none;
  border: none;
  padding: 0.32rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.18s ease;
}
body.pg-metodologia .inspector-tab:hover {
  background: var(--color-section-bg);
  color: var(--color-ink);
}
body.pg-metodologia .inspector-tab.active {
  background: var(--color-accent);
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────
   REPRESENTAÇÃO TEMPORAL MAPBIOMAS (LINHA POR ANOS & RETÂNGULOS)
   ────────────────────────────────────────────────────────── */
body.pg-metodologia .mb-annual-strip-container {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px;
  margin: 0.35rem 0 0.5rem 0;
}

body.pg-metodologia .mb-year-cell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  position: relative;
}

body.pg-metodologia .mb-year-header {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
  text-align: center;
  width: 100%;
}

body.pg-metodologia .mb-year-header.is-active {
  color: #184b39;
  font-weight: 800;
  text-decoration: underline;
}

body.pg-metodologia .mb-year-rect {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  cursor: default;
}
body.pg-metodologia .mb-year-rect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Indicador visual de transição entre anos */
body.pg-metodologia .mb-year-cell.has-transition::after {
  content: "➔";
  position: absolute;
  right: -6px;
  top: calc(50% + 9px);
  transform: translateY(-50%);
  font-size: 0.60rem;
  font-weight: 900;
  color: #dc2626;
  background: #ffffff;
  border: 1px solid #dc2626;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 3;
}

/* Legenda Oficial MapBiomas */
body.pg-metodologia .mb-official-legend {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  margin-top: 0.6rem;
}

body.pg-metodologia .mb-legend-header {
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 0.25rem;
}

body.pg-metodologia .mb-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 0.5rem;
}

body.pg-metodologia .mb-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

body.pg-metodologia .mb-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

body.pg-metodologia .mb-legend-text {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

/* Eventos de Transição */
body.pg-metodologia .mb-transition-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 4px 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-size: 0.73rem;
  color: #991b1b;
  margin-bottom: 4px;
}
body.pg-metodologia .mb-transition-event-row.is-stable {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Leaflet Popup MapBiomas Style */
body.pg-metodologia .leaflet-popup-content .popup-mb-wrapper {
  font-family: var(--font-sans);
  padding: 2px;
  width: 290px !important;
  max-width: 290px !important;
  box-sizing: border-box !important;
}
body.pg-metodologia .popup-mb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 3px;
}
body.pg-metodologia .popup-mb-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
}
body.pg-metodologia .popup-mb-strip {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 3px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 6px 0 !important;
  background: #f8fafc;
  padding: 5px 3px !important;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
body.pg-metodologia .popup-mb-year-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  text-align: center;
}
body.pg-metodologia .popup-mb-year-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  margin-bottom: 2px !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  line-height: 1 !important;
}
body.pg-metodologia .popup-mb-year-lbl.is-active {
  color: #184b39 !important;
  font-weight: 800 !important;
  text-decoration: underline;
}
body.pg-metodologia .popup-mb-rect {
  width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.60rem !important;
  font-weight: 700 !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  line-height: 1 !important;
  text-align: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  cursor: default !important;
}

/* Stacking container para múltiplas legendas raster no mapa */
body.pg-metodologia .map-legends-stack {
  position: absolute;
  bottom: 24px;
  left: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100% - 24px);
}

body.pg-metodologia .map-legends-stack > .map-raster-legend {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  pointer-events: auto;
}

/* Legenda Flutuante do Raster MapBiomas no Mapa */
body.pg-metodologia .map-raster-legend {
  position: absolute;
  bottom: 24px;
  left: 12px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 5px 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font-family: var(--font-sans);
  pointer-events: auto;
  transition: opacity 0.2s ease;
}
body.pg-metodologia .map-raster-legend__title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-ink);
  margin-bottom: 3px;
}
body.pg-metodologia .map-raster-legend__items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.pg-metodologia .mrl-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.70rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}
body.pg-metodologia .mrl-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: inline-block;
  flex-shrink: 0;
}

/* Legenda Flutuante da Classificação CNN (Sentinel-2) */
body.pg-metodologia .map-cnn-legend {
  background: rgba(255, 255, 255, 0.95);
  max-width: 330px;
}
body.pg-metodologia .map-cnn-legend .map-cnn-legend__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px 6px;
  margin-top: 3px;
}
@media (max-width: 600px) {
  body.pg-metodologia .map-cnn-legend .map-cnn-legend__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards estatísticos da Mediana do EVI2 (Média da Mediana, Amplitude, Máximo, Mínimo) */
body.pg-metodologia .evi2-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 0.5rem;
}

body.pg-metodologia .evi2-stat-card {
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--color-rule, #e2e8f0);
  border-radius: 6px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.pg-metodologia .evi2-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-muted, #64748b);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

body.pg-metodologia .evi2-stat-val {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--color-ink, #0f172a);
  font-family: var(--font-sans);
  margin: 1px 0;
  line-height: 1.1;
}

body.pg-metodologia .evi2-stat-sub {
  font-size: 0.58rem;
  color: var(--color-muted, #64748b);
  font-weight: 500;
  white-space: nowrap;
}

/* Renderização ultra-nítida e sem desfoque para camadas raster MapBiomas e CNN */
body.pg-metodologia .leaflet-image-layer {
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  image-rendering: pixelated !important;
}


  

/* ═══ metodologia_1.css — escopo body.pg-metodologia ═══ */

  /* Estilos escopados para os componentes internos do bloco Temp_CNN (#step-tempcnn)
     seguindo estritamente a paleta, tipografia e cartões do portal Rede ILPF / LAPIG */
  body.pg-metodologia #step-tempcnn .tcnn-intro-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, #f6faf6 0%, #ffffff 100%);
    border: 1px solid #d5e3d5;
    border-left: 4px solid #18362d;
    border-radius: 8px;
    margin-bottom: 1.1rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-intro-main {
    flex: 1 1 420px;
  }
  body.pg-metodologia #step-tempcnn .tcnn-kicker {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #15803d;
    margin-bottom: 0.25rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-headline {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 0.35rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-dek {
    font-family: var(--font-sans);
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 0.6rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #eef5ee;
    border: 1px solid #cbd5e1;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    color: #18362d;
  }
  body.pg-metodologia #step-tempcnn .tcnn-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 0.55rem;
    flex: 0 1 440px;
  }
  @media (max-width: 820px) {
    body.pg-metodologia #step-tempcnn .tcnn-icons-grid {
      grid-template-columns: repeat(2, 1fr);
      flex: 1 1 100%;
    }
  }
  body.pg-metodologia #step-tempcnn .tcnn-icon-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  body.pg-metodologia #step-tempcnn .tcnn-icon-card svg {
    width: 100%;
    max-width: 96px;
    height: 46px;
    color: #18362d;
    margin-bottom: 0.2rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-icon-card .sigla {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
  }
  body.pg-metodologia #step-tempcnn .tcnn-icon-card .nome {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.2;
    margin-top: 0.1rem;
  }

  /* Barra de controle das subcaixas internas */
  body.pg-metodologia #step-tempcnn .tcnn-subtoolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.85rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-subtoolbar__label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #334155;
  }
  body.pg-metodologia #step-tempcnn .tcnn-subtoolbar__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-subbtn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  body.pg-metodologia #step-tempcnn .tcnn-subbtn:hover {
    background: #eef5ee;
    border-color: #18362d;
    color: #18362d;
  }

  /* Subcaixas expansíveis/recolhíveis no mesmo padrão .fnode */
  body.pg-metodologia #step-tempcnn .tcnn-sublist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box.is-open {
    border-color: #18362d;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }
  body.pg-metodologia #step-tempcnn .tcnn-box__toggle {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.95rem;
    background: #f1f5f1;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box.is-open .tcnn-box__toggle {
    background: #18362d;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }
  body.pg-metodologia #step-tempcnn .tcnn-box__toggle:hover {
    background: #e4ede4;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box.is-open .tcnn-box__toggle:hover {
    background: #1f4539;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box__num {
    flex-shrink: 0;
    padding: 0.18rem 0.5rem;
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 800;
    background: #18362d;
    color: #ffffff;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box.is-open .tcnn-box__num {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  body.pg-metodologia #step-tempcnn .tcnn-box__titles {
    flex: 1 1 auto;
    min-width: 0;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box__eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #475569;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box.is-open .tcnn-box__eyebrow {
    color: rgba(255, 255, 255, 0.78);
  }
  body.pg-metodologia #step-tempcnn .tcnn-box__title {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box.is-open .tcnn-box__title {
    color: #ffffff;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box__chev {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box.is-open .tcnn-box__chev {
    background: rgba(255, 255, 255, 0.16);
    transform: rotate(180deg);
  }
  body.pg-metodologia #step-tempcnn .tcnn-box__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  body.pg-metodologia #step-tempcnn .tcnn-box.is-open .tcnn-box__panel {
    grid-template-rows: 1fr;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box__inner {
    min-height: 0;
    overflow: hidden;
  }
  body.pg-metodologia #step-tempcnn .tcnn-box__body {
    padding: 1rem 1.15rem;
  }

  /* ── CAIXA EXPANSÍVEL DE GRÁFICO INDIVIDUAL (100% LARGURA, PROPORÇÃO NÍTIDA) ── */
  body.pg-metodologia #step-tempcnn .tcnn-chart-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.75rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box.is-open {
    border-color: #2d5a47;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    background: #f8fafc;
    border-bottom: 1px solid transparent;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box.is-open .tcnn-chart-box__header {
    background: #eef5ee;
    border-bottom-color: #d5e3d5;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__toggle {
    all: unset;
    box-sizing: border-box;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    text-align: left;
    min-width: 0;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__badge {
    flex-shrink: 0;
    padding: 0.16rem 0.5rem;
    border-radius: 4px;
    background: #18362d;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__label {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__zoom {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 0.22rem 0.55rem;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    color: #18362d;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__zoom:hover {
    background: #18362d;
    border-color: #18362d;
    color: #ffffff;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__state {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #18362d;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__state .txt-open,
  body.pg-metodologia #step-tempcnn .tcnn-chart-box.is-open .tcnn-chart-box__state .txt-closed {
    display: none;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box.is-open .tcnn-chart-box__state .txt-open {
    display: inline;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box.is-open .tcnn-chart-box__panel {
    grid-template-rows: 1fr;
  }
  body.pg-metodologia #step-tempcnn .tcnn-chart-box__inner {
    min-height: 0;
    overflow: hidden;
  }
  body.pg-metodologia #step-tempcnn .tcnn-fig {
    margin: 0;
    background: #ffffff;
    padding: 0.9rem 1rem 0.85rem;
    text-align: center;
  }
  body.pg-metodologia #step-tempcnn .tcnn-fig img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    border: 1px solid #f1f5f9;
  }
  body.pg-metodologia #step-tempcnn .tcnn-fig figcaption {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: #475569;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #e2e8f0;
    line-height: 1.5;
    text-align: left;
  }

  /* Linha do tempo Split 70/30 + SSL + Fine-Tuning */
  body.pg-metodologia #step-tempcnn .tcnn-timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.85rem 0 0.5rem;
  }
  @media (max-width: 960px) {
    body.pg-metodologia #step-tempcnn .tcnn-timeline {
      grid-template-columns: 1fr;
    }
  }
  body.pg-metodologia #step-tempcnn .tcnn-tl-step {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.4;
    position: relative;
  }
  body.pg-metodologia #step-tempcnn .tcnn-tl-step.ssl {
    background: #f0f9ff;
    border-color: #7dd3fc;
  }
  body.pg-metodologia #step-tempcnn .tcnn-tl-step.ft {
    background: #f0fdf4;
    border-color: #86efac;
  }
  body.pg-metodologia #step-tempcnn .tcnn-tl-step .num {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: #18362d;
    color: #ffffff;
    margin-bottom: 0.3rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-tl-step b {
    display: block;
    font-size: 0.82rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
  }
  body.pg-metodologia #step-tempcnn .tcnn-tl-dots {
    display: inline-flex;
    gap: 0.25rem;
    margin: 0.25rem 0;
  }
  body.pg-metodologia #step-tempcnn .tcnn-tl-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    display: inline-block;
  }
  body.pg-metodologia #step-tempcnn .tcnn-tl-branch {
    margin-top: 0.55rem;
    padding: 0.6rem 0.85rem;
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    color: #92400e;
  }

  /* Swatch de classe na tabela de métricas */
  body.pg-metodologia #step-tempcnn .tcnn-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 0.4rem;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.15);
  }

  /* Lightbox Modal de Tela Cheia para inspeção em alta definição */
  body.pg-metodologia .tcnn-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  body.pg-metodologia .tcnn-lightbox.is-active {
    display: flex;
  }
  body.pg-metodologia .tcnn-lightbox__content {
    position: relative;
    max-width: 96vw;
    max-height: 92vh;
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem 1.2rem 0.9rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  body.pg-metodologia .tcnn-lightbox__close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    background: #18362d;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
  }
  body.pg-metodologia .tcnn-lightbox__img {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
  }
  body.pg-metodologia .tcnn-lightbox__caption {
    margin-top: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: #1e293b;
    text-align: center;
    max-width: 90ch;
  }


/* ═══ Estilos que estavam em atributos style="" (agora classes e-*; a repetição do seletor mantém a prioridade do inline, e o JS ainda pode sobrescrever) ═══*/
body.pg-doc .e-be7ab91.e-be7ab91.e-be7ab91{padding-top: 1.5rem;}
body.pg-doc .e-ec0f7ff.e-ec0f7ff.e-ec0f7ff{margin-top: 0;}
body.pg-doc .e-abe84e9.e-abe84e9.e-abe84e9{vertical-align: -2px; margin-right: 4px;}
body.pg-doc .e-5790ffb.e-5790ffb.e-5790ffb{display: none;}
body.pg-doc .e-0e022a7.e-0e022a7.e-0e022a7{background: rgba(45, 106, 63, 0.9); color: #fff;}
body.pg-doc .e-301fe0e.e-301fe0e.e-301fe0e{background:#eddc4b;}
body.pg-doc .e-f31529e.e-f31529e.e-f31529e{background:#2fc912;}
body.pg-doc .e-04f3b06.e-04f3b06.e-04f3b06{background:#3c4d0a;}
body.pg-doc .e-38d1db3.e-38d1db3.e-38d1db3{background:#b2f323;}
body.pg-doc .e-1fadf79.e-1fadf79.e-1fadf79{background:#f02907;}
body.pg-doc .e-88af336.e-88af336.e-88af336{background:#d67910;}
body.pg-doc .e-7dfa102.e-7dfa102.e-7dfa102{background:#bcb915;}
body.pg-doc .e-e9a145a.e-e9a145a.e-e9a145a{background:#718096;}
body.pg-doc .e-0474f24.e-0474f24.e-0474f24{background:#1b4332;}
body.pg-doc .e-b312bd9.e-b312bd9.e-b312bd9{font-size:0.65rem; font-weight:700; color:#475569; margin-right:2px;}
body.pg-doc .e-c71ad08.e-c71ad08.e-c71ad08{background:#fb923c;}
body.pg-doc .e-afd074a.e-afd074a.e-afd074a{background:#f97316;}
body.pg-doc .e-cafe7c6.e-cafe7c6.e-cafe7c6{background:#dc2626;}
body.pg-doc .e-abf768c.e-abf768c.e-abf768c{background:#991b1b;}
body.pg-doc .e-8bacedd.e-8bacedd.e-8bacedd{background:#665a3a;}
body.pg-doc .e-4df8984.e-4df8984.e-4df8984{background:#ffd966;}
body.pg-doc .e-506ab28.e-506ab28.e-506ab28{background:#e974ed;}
body.pg-doc .e-c2d0399.e-c2d0399.e-c2d0399{background:#ffefc3;}
body.pg-doc .e-19ddde1.e-19ddde1.e-19ddde1{font-size: 0.70rem; color: var(--color-muted); line-height: 1.35;}
body.pg-doc .e-e3ec02a.e-e3ec02a.e-e3ec02a{font-weight:700;}
body.pg-doc .e-ea59105.e-ea59105.e-ea59105{flex:1; accent-color:#18362d; cursor:pointer;}
body.pg-doc .e-4afd86e.e-4afd86e.e-4afd86e{font-weight:700; min-width:2.3rem; text-align:right;}
body.pg-doc .e-405d448.e-405d448.e-405d448{padding: 0.75rem 1rem 0.25rem 1rem;}
body.pg-doc .e-7c9f4ee.e-7c9f4ee.e-7c9f4ee{margin-top: 0.25rem;}
body.pg-doc .e-b8e245c.e-b8e245c.e-b8e245c{font-size: 0.72rem; color: var(--color-muted); margin-bottom: 0.4rem; line-height: 1.3;}
body.pg-doc .e-9edd6fe.e-9edd6fe.e-9edd6fe{margin-top: 0.65rem; padding-top: 0.5rem; border-top: 1px dashed var(--color-border); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;}
body.pg-doc .e-944080d.e-944080d.e-944080d{font-size: 0.74rem; color: var(--color-muted); font-weight: 500;}
body.pg-doc .e-923fb3a.e-923fb3a.e-923fb3a{font-size: 0.74rem; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--color-border); background: var(--surface); color: var(--color-ink); cursor: pointer;}
body.pg-doc .e-71ebcfa.e-71ebcfa.e-71ebcfa{display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem;}
body.pg-doc .e-33f2a66.e-33f2a66.e-33f2a66{min-width: 0;}
body.pg-doc .e-7f85bb0.e-7f85bb0.e-7f85bb0{font-size: 0.92rem; font-weight: 700; color: var(--color-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
body.pg-doc .e-b181a2a.e-b181a2a.e-b181a2a{font-size: 0.76rem; color: var(--color-muted); margin-top: 2px;}
body.pg-doc .e-dcd7ee5.e-dcd7ee5.e-dcd7ee5{background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--color-muted); line-height: 1; padding: 2px 6px;}
body.pg-doc .e-7289239.e-7289239.e-7289239{display: flex; gap: 0.35rem; margin: 0.75rem 0 0.5rem 0; border-bottom: 1px solid var(--color-border); padding-bottom: 0.4rem;}
body.pg-doc .e-9b05c0e.e-9b05c0e.e-9b05c0e{display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.45rem;}
body.pg-doc .e-e4a7b82.e-e4a7b82.e-e4a7b82{font-size: 0.74rem; font-weight: 700; text-transform: uppercase; color: var(--color-ink); letter-spacing: 0.4px;}
body.pg-doc .e-2380101.e-2380101.e-2380101{font-size: 0.70rem; font-weight: 600; padding: 2px 7px; border-radius: 4px;}
body.pg-doc .e-52d4f76.e-52d4f76.e-52d4f76{margin-top: 0.55rem;}
body.pg-doc .e-4977d27.e-4977d27.e-4977d27{background-color: #665a3a;}
body.pg-doc .e-7dc9b86.e-7dc9b86.e-7dc9b86{background-color: #ffd966;}
body.pg-doc .e-7b49c8e.e-7b49c8e.e-7b49c8e{background-color: #e974ed;}
body.pg-doc .e-df37b96.e-df37b96.e-df37b96{background-color: #ffefc3;}
body.pg-doc .e-c929825.e-c929825.e-c929825{background-color: #b4b4b4;}
body.pg-doc .e-84f268d.e-84f268d.e-84f268d{display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem;}
body.pg-doc .e-6e2077d.e-6e2077d.e-6e2077d{font-size: 0.76rem; font-weight: 700; text-transform: uppercase; color: var(--color-ink); letter-spacing: 0.3px;}
body.pg-doc .e-9682ccb.e-9682ccb.e-9682ccb{font-size: 0.68rem; color: var(--color-muted); font-weight: 600;}
body.pg-doc .e-a2e1748.e-a2e1748.e-a2e1748{font-size: 0.72rem; color: var(--color-muted); margin-bottom: 0.55rem; line-height: 1.35;}
body.pg-doc .e-ae159bf.e-ae159bf.e-ae159bf{height: 170px; margin-top: 0.4rem;}
body.pg-doc .e-44e53f8.e-44e53f8.e-44e53f8{font-size: 0.77rem; line-height: 1.55; color: var(--text);}
body.pg-doc .e-92cb257.e-92cb257.e-92cb257{margin-bottom: 1.5rem;}
body.pg-doc .e-54c2afb.e-54c2afb.e-54c2afb{text-align:right;}
body.pg-doc .e-41476a9.e-41476a9.e-41476a9{margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 0.9rem 1.25rem; background: #ffffff; border: 1px solid var(--color-rule); border-radius: 8px; box-shadow: var(--shadow-sm);}
body.pg-doc .e-822ed19.e-822ed19.e-822ed19{font-family: var(--font-sans); font-size: 0.88rem; color: #475569;}
body.pg-doc .e-b612074.e-b612074.e-b612074{color: var(--color-fg);}
body.pg-doc .e-e0b0d8a.e-e0b0d8a.e-e0b0d8a{display: block; font-size: 0.76rem; color: var(--color-muted); margin-top: 2px;}
body.pg-doc .e-904e85a.e-904e85a.e-904e85a{display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-accent); color: #ffffff; border: 1px solid rgba(0,0,0,0.1); padding: 0.55rem 1.2rem; border-radius: 6px; font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease;}
body.pg-documentacao .e-be7ab91.e-be7ab91.e-be7ab91{padding-top: 1.5rem;}
body.pg-documentacao .e-b71f74e.e-b71f74e.e-b71f74e{margin-bottom: 2.5rem;}
body.pg-documentacao .e-dd1379d.e-dd1379d.e-dd1379d{display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem;}
body.pg-documentacao .e-2c55aa1.e-2c55aa1.e-2c55aa1{padding: 0.45rem 0.9rem; font-size: 0.82rem;}
body.pg-documentacao .e-a6cb65c.e-a6cb65c.e-a6cb65c{margin-top: 1rem;}
body.pg-documentacao .e-f31529e.e-f31529e.e-f31529e{background:#2fc912;}
body.pg-documentacao .e-301fe0e.e-301fe0e.e-301fe0e{background:#eddc4b;}
body.pg-documentacao .e-1fadf79.e-1fadf79.e-1fadf79{background:#f02907;}
body.pg-documentacao .e-38d1db3.e-38d1db3.e-38d1db3{background:#b2f323;}
body.pg-documentacao .e-366622e.e-366622e.e-366622e{margin-top: 0.75rem;}
body.pg-documentacao .e-ec0f7ff.e-ec0f7ff.e-ec0f7ff{margin-top: 0;}
body.pg-documentacao .e-e9a145a.e-e9a145a.e-e9a145a{background:#718096;}
body.pg-documentacao .e-88af336.e-88af336.e-88af336{background:#d67910;}
body.pg-documentacao .e-04f3b06.e-04f3b06.e-04f3b06{background:#3c4d0a;}
body.pg-documentacao .e-0474f24.e-0474f24.e-0474f24{background:#1b4332;}
body.pg-documentacao .e-7dfa102.e-7dfa102.e-7dfa102{background:#bcb915;}
body.pg-documentacao .e-fc215b9.e-fc215b9.e-fc215b9{margin-top: 0.5rem;}
body.pg-documentacao .e-5225a27.e-5225a27.e-5225a27{max-width: 820px;}
body.pg-documentacao .e-9420460.e-9420460.e-9420460{margin-bottom: 0.75rem;}
body.pg-documentacao .e-11029a0.e-11029a0.e-11029a0{height: 38px; width: auto; object-fit: contain;}
body.pg-documentacao .e-8ac3b40.e-8ac3b40.e-8ac3b40{height: 36px; width: auto;}
body.pg-documentacao .e-d2ff6a6.e-d2ff6a6.e-d2ff6a6{margin-top: 0.8rem; font-size: 0.82rem; color: var(--color-muted); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;}
body.pg-documentacao .e-ab31ef9.e-ab31ef9.e-ab31ef9{display: inline-flex; align-items: center; gap: 0.35rem; color: inherit; text-decoration: underline;}
body.pg-documentacao .e-f53f6ea.e-f53f6ea.e-f53f6ea{height: 20px; vertical-align: middle;}
body.pg-documentacao .e-abe84e9.e-abe84e9.e-abe84e9{vertical-align: -2px; margin-right: 4px;}
body.pg-documentacao .e-5790ffb.e-5790ffb.e-5790ffb{display: none;}
body.pg-documentacao .e-0e022a7.e-0e022a7.e-0e022a7{background: rgba(45, 106, 63, 0.9); color: #fff;}
body.pg-documentacao .e-b312bd9.e-b312bd9.e-b312bd9{font-size:0.65rem; font-weight:700; color:#475569; margin-right:2px;}
body.pg-documentacao .e-c71ad08.e-c71ad08.e-c71ad08{background:#fb923c;}
body.pg-documentacao .e-afd074a.e-afd074a.e-afd074a{background:#f97316;}
body.pg-documentacao .e-cafe7c6.e-cafe7c6.e-cafe7c6{background:#dc2626;}
body.pg-documentacao .e-abf768c.e-abf768c.e-abf768c{background:#991b1b;}
body.pg-documentacao .e-8bacedd.e-8bacedd.e-8bacedd{background:#665a3a;}
body.pg-documentacao .e-4df8984.e-4df8984.e-4df8984{background:#ffd966;}
body.pg-documentacao .e-506ab28.e-506ab28.e-506ab28{background:#e974ed;}
body.pg-documentacao .e-c2d0399.e-c2d0399.e-c2d0399{background:#ffefc3;}
body.pg-documentacao .e-19ddde1.e-19ddde1.e-19ddde1{font-size: 0.70rem; color: var(--color-muted); line-height: 1.35;}
body.pg-documentacao .e-e3ec02a.e-e3ec02a.e-e3ec02a{font-weight:700;}
body.pg-documentacao .e-ea59105.e-ea59105.e-ea59105{flex:1; accent-color:#18362d; cursor:pointer;}
body.pg-documentacao .e-4afd86e.e-4afd86e.e-4afd86e{font-weight:700; min-width:2.3rem; text-align:right;}
body.pg-documentacao .e-405d448.e-405d448.e-405d448{padding: 0.75rem 1rem 0.25rem 1rem;}
body.pg-documentacao .e-7c9f4ee.e-7c9f4ee.e-7c9f4ee{margin-top: 0.25rem;}
body.pg-documentacao .e-b8e245c.e-b8e245c.e-b8e245c{font-size: 0.72rem; color: var(--color-muted); margin-bottom: 0.4rem; line-height: 1.3;}
body.pg-documentacao .e-9edd6fe.e-9edd6fe.e-9edd6fe{margin-top: 0.65rem; padding-top: 0.5rem; border-top: 1px dashed var(--color-border); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;}
body.pg-documentacao .e-944080d.e-944080d.e-944080d{font-size: 0.74rem; color: var(--color-muted); font-weight: 500;}
body.pg-documentacao .e-923fb3a.e-923fb3a.e-923fb3a{font-size: 0.74rem; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--color-border); background: var(--surface); color: var(--color-ink); cursor: pointer;}
body.pg-documentacao .e-71ebcfa.e-71ebcfa.e-71ebcfa{display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem;}
body.pg-documentacao .e-33f2a66.e-33f2a66.e-33f2a66{min-width: 0;}
body.pg-documentacao .e-7f85bb0.e-7f85bb0.e-7f85bb0{font-size: 0.92rem; font-weight: 700; color: var(--color-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
body.pg-documentacao .e-b181a2a.e-b181a2a.e-b181a2a{font-size: 0.76rem; color: var(--color-muted); margin-top: 2px;}
body.pg-documentacao .e-dcd7ee5.e-dcd7ee5.e-dcd7ee5{background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--color-muted); line-height: 1; padding: 2px 6px;}
body.pg-documentacao .e-7289239.e-7289239.e-7289239{display: flex; gap: 0.35rem; margin: 0.75rem 0 0.5rem 0; border-bottom: 1px solid var(--color-border); padding-bottom: 0.4rem;}
body.pg-documentacao .e-9b05c0e.e-9b05c0e.e-9b05c0e{display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.45rem;}
body.pg-documentacao .e-e4a7b82.e-e4a7b82.e-e4a7b82{font-size: 0.74rem; font-weight: 700; text-transform: uppercase; color: var(--color-ink); letter-spacing: 0.4px;}
body.pg-documentacao .e-2380101.e-2380101.e-2380101{font-size: 0.70rem; font-weight: 600; padding: 2px 7px; border-radius: 4px;}
body.pg-documentacao .e-52d4f76.e-52d4f76.e-52d4f76{margin-top: 0.55rem;}
body.pg-documentacao .e-4977d27.e-4977d27.e-4977d27{background-color: #665a3a;}
body.pg-documentacao .e-7dc9b86.e-7dc9b86.e-7dc9b86{background-color: #ffd966;}
body.pg-documentacao .e-7b49c8e.e-7b49c8e.e-7b49c8e{background-color: #e974ed;}
body.pg-documentacao .e-df37b96.e-df37b96.e-df37b96{background-color: #ffefc3;}
body.pg-documentacao .e-c929825.e-c929825.e-c929825{background-color: #b4b4b4;}
body.pg-documentacao .e-84f268d.e-84f268d.e-84f268d{display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem;}
body.pg-documentacao .e-6e2077d.e-6e2077d.e-6e2077d{font-size: 0.76rem; font-weight: 700; text-transform: uppercase; color: var(--color-ink); letter-spacing: 0.3px;}
body.pg-documentacao .e-9682ccb.e-9682ccb.e-9682ccb{font-size: 0.68rem; color: var(--color-muted); font-weight: 600;}
body.pg-documentacao .e-a2e1748.e-a2e1748.e-a2e1748{font-size: 0.72rem; color: var(--color-muted); margin-bottom: 0.55rem; line-height: 1.35;}
body.pg-documentacao .e-ae159bf.e-ae159bf.e-ae159bf{height: 170px; margin-top: 0.4rem;}
body.pg-documentacao .e-44e53f8.e-44e53f8.e-44e53f8{font-size: 0.77rem; line-height: 1.55; color: var(--text);}
body.pg-documentacao .e-92cb257.e-92cb257.e-92cb257{margin-bottom: 1.5rem;}
body.pg-documentacao .e-54c2afb.e-54c2afb.e-54c2afb{text-align:right;}
body.pg-documentacao .e-41476a9.e-41476a9.e-41476a9{margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 0.9rem 1.25rem; background: #ffffff; border: 1px solid var(--color-rule); border-radius: 8px; box-shadow: var(--shadow-sm);}
body.pg-documentacao .e-822ed19.e-822ed19.e-822ed19{font-family: var(--font-sans); font-size: 0.88rem; color: #475569;}
body.pg-documentacao .e-b612074.e-b612074.e-b612074{color: var(--color-fg);}
body.pg-documentacao .e-e0b0d8a.e-e0b0d8a.e-e0b0d8a{display: block; font-size: 0.76rem; color: var(--color-muted); margin-top: 2px;}
body.pg-documentacao .e-904e85a.e-904e85a.e-904e85a{display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-accent); color: #ffffff; border: 1px solid rgba(0,0,0,0.1); padding: 0.55rem 1.2rem; border-radius: 6px; font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease;}
body.pg-documentacao .e-a66f410.e-a66f410.e-a66f410{grid-column: 1 / -1;}
body.pg-documentacao .e-b0ec9d7.e-b0ec9d7.e-b0ec9d7{height: 28px; width: auto; object-fit: contain;}
body.pg-documentacao .e-fecd22f.e-fecd22f.e-fecd22f{height: 28px; width: auto;}
body.pg-documentacao .e-e3acd0d.e-e3acd0d.e-e3acd0d{margin-left: 0.5rem; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; color: var(--color-accent); letter-spacing: -0.01em;}
body.pg-documentacao .e-e17a83b.e-e17a83b.e-e17a83b{width: 45%;}
body.pg-documentacao .e-ee0b8c3.e-ee0b8c3.e-ee0b8c3{margin-bottom: 3rem;}
body.pg-documentacao .e-52515a8.e-52515a8.e-52515a8{margin-top: 1.5rem; margin-bottom: 3.5rem;}
body.pg-documentacao .e-821464c.e-821464c.e-821464c{margin-top: 4rem;}
body.pg-documentacao .e-daaaf95.e-daaaf95.e-daaaf95{margin-top: 2rem;}
body.pg-metodologia .e-a66f410.e-a66f410.e-a66f410{grid-column: 1 / -1;}
body.pg-metodologia .e-f31529e.e-f31529e.e-f31529e{background:#2fc912;}
body.pg-metodologia .e-301fe0e.e-301fe0e.e-301fe0e{background:#eddc4b;}
body.pg-metodologia .e-1fadf79.e-1fadf79.e-1fadf79{background:#f02907;}
body.pg-metodologia .e-38d1db3.e-38d1db3.e-38d1db3{background:#b2f323;}
body.pg-metodologia .e-366622e.e-366622e.e-366622e{margin-top: 0.75rem;}
body.pg-metodologia .e-ec0f7ff.e-ec0f7ff.e-ec0f7ff{margin-top: 0;}
body.pg-metodologia .e-e9a145a.e-e9a145a.e-e9a145a{background:#718096;}
body.pg-metodologia .e-88af336.e-88af336.e-88af336{background:#d67910;}
body.pg-metodologia .e-04f3b06.e-04f3b06.e-04f3b06{background:#3c4d0a;}
body.pg-metodologia .e-0474f24.e-0474f24.e-0474f24{background:#1b4332;}
body.pg-metodologia .e-7dfa102.e-7dfa102.e-7dfa102{background:#bcb915;}
body.pg-metodologia .e-fc215b9.e-fc215b9.e-fc215b9{margin-top: 0.5rem;}
body.pg-metodologia .e-5225a27.e-5225a27.e-5225a27{max-width: 820px;}
body.pg-metodologia .e-9420460.e-9420460.e-9420460{margin-bottom: 0.75rem;}
