/* =========================================================
   YEB NEWS | COMPLEMENTOS
   Estilos dos elementos criados para o site dinâmico
   (mensagens, paginação, busca, anúncios, rodapé).
   Carregar DEPOIS do CSS da página.
========================================================= */

[hidden] {
  display: none !important;
}

/* =========================================================
   FUNDO AZUL DAS SEÇÕES (tom bem claro, mais moderno)
   Para ajustar o tom no site todo, mude só estas duas cores.
========================================================= */
:root {
  --yeb-fundo-secao: #f5f9ff;   /* antes: #eaf6ff */
  --yeb-borda-secao: #e3edf9;
}

.yeb-gcp-box,
.yeb-portal-preview-box,
.yeb-diesel-box,
.yeb-globalkem-box,
.yeb-analyses-box,
.yeb-most-read,
.yeb-prod-most-read {
  background: var(--yeb-fundo-secao);
  border: 1px solid var(--yeb-borda-secao);
}

.yeb-analises-hero {
  background: var(--yeb-fundo-secao);
  border-bottom: 1px solid var(--yeb-borda-secao);
}

/* =========================================================
   PRÉVIAS DE PRODUTO NA HOME (as 4 seções iguais)
   Notícia principal à esquerda (inalterada) +
   lateral com 3 notícias compactas e o espaço publicitário.
========================================================= */
.yeb-gcp-side,
.yeb-portal-side,
.yeb-diesel-side,
.yeb-globalkem-side {
  gap: 16px;
}

.yeb-gcp-ad,
.yeb-portal-ad,
.yeb-diesel-ad,
.yeb-globalkem-ad {
  display: block;
  width: 100%;
  margin-top: auto;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
}

.yeb-gcp-ad .yeb-ad-placeholder,
.yeb-portal-ad .yeb-ad-placeholder,
.yeb-diesel-ad .yeb-ad-placeholder,
.yeb-globalkem-ad .yeb-ad-placeholder {
  border-radius: 12px;
  background: #ffffff;
}

@media (min-width: 1001px) {
  .yeb-gcp-side-item,
  .yeb-portal-side-item,
  .yeb-diesel-side-item,
  .yeb-globalkem-side-item {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .yeb-gcp-side-image,
  .yeb-portal-side-image,
  .yeb-diesel-side-image,
  .yeb-globalkem-side-image {
    width: 124px;
    height: 82px;
  }

  .yeb-gcp-side-title,
  .yeb-portal-side-title,
  .yeb-diesel-side-title,
  .yeb-globalkem-side-title {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .yeb-gcp-ad,
  .yeb-portal-ad,
  .yeb-diesel-ad,
  .yeb-globalkem-ad {
    height: 150px;
  }
}

/* Cabeçalho das prévias: "Fertilizantes | por [logo GlobalFert]" */
.yeb-previa-marca {
  gap: 16px;
}

.yeb-previa-mercado {
  color: #071c54;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.yeb-previa-divisor {
  width: 1px;
  height: 38px;
  background: #ccd5df;
}

.yeb-previa-por {
  margin-right: -6px;
  color: #627296;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  align-self: flex-start;
  padding-top: 4px;
}

.yeb-previa-marca:hover .yeb-previa-mercado {
  color: #0737d5;
}

@media (max-width: 600px) {
  .yeb-previa-marca {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .yeb-previa-mercado {
    font-size: 21px;
  }

  .yeb-previa-divisor {
    height: 28px;
  }
}

/* Sem anúncio: as notícias laterais se distribuem pela altura da principal */
@media (min-width: 1001px) {
  .yeb-previa-sem-anuncio > div {
    flex: 1;
    justify-content: space-between;
  }

  .yeb-previa-sem-anuncio > div > a:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  /* 4 notícias laterais compactas, distribuídas pela altura da principal */
  .yeb-previa-sem-anuncio [class$="-side-item"] {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
  }

  .yeb-previa-sem-anuncio [class$="-side-image"] {
    width: 150px;
    height: 98px;
  }

  .yeb-previa-sem-anuncio [class$="-side-title"] {
    font-size: 16px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 1000px) {
  .yeb-diesel-ad,
  .yeb-globalkem-ad {
    height: auto;
    aspect-ratio: 3.5 / 1;
  }
}

/* =========================================================
   MAIS ACESSADOS (home, produtos e listagem)
   Texto maior, números em destaque e área de clique confortável
========================================================= */
.yeb-most-read,
.yeb-prod-most-read {
  padding: 24px 20px 12px;
}

.yeb-most-read-title,
.yeb-prod-most-read > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #071c54;
  font-size: 20px;
  font-weight: 800;
}

.yeb-most-read-title::before,
.yeb-prod-most-read > h2::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: #0737d5;
}

.yeb-most-read-item,
.yeb-prod-most-read-item {
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0 -10px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--yeb-borda-secao);
  border-radius: 12px;
  transition: background .2s ease;
}

.yeb-most-read-item:hover,
.yeb-prod-most-read-item:hover {
  background: #ffffff;
}

.yeb-most-read-number,
.yeb-prod-most-read-number {
  width: 34px;
  height: 34px;
  background: #0737d5;
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(7, 55, 213, .22);
}

.yeb-most-read-headline,
.yeb-prod-most-read-item h3 {
  margin: 0 0 6px;
  color: #071c54;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  transition: color .2s ease;
}

.yeb-most-read-item:hover .yeb-most-read-headline,
.yeb-prod-most-read-item:hover h3 {
  color: #0737d5;
}

.yeb-most-read-date,
.yeb-prod-most-read-item div span {
  color: #627296;
  font-size: 12.5px;
}

body {
  margin: 0;
}

.yeb-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Mensagens de carregamento / vazio / erro */
.yeb-feed-mensagem {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 20px;
  border: 1px dashed #c2cfdf;
  border-radius: 12px;
  background: #f7f9fc;
  color: #627296;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  text-align: center;
}

/* =========================================================
   QUADRO PRINCIPAL DA HOME (fachada Yeb + frase + botão)
========================================================= */
.yeb-hero-banner {
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(8, 20, 70, .22);
}

/* Degradê: azul profundo à esquerda (leitura do texto), fachada visível à direita */
.yeb-hero-banner::after {
  background:
    linear-gradient(95deg, rgba(5, 14, 58, .95) 0%, rgba(8, 27, 110, .84) 36%, rgba(10, 40, 160, .30) 64%, rgba(10, 40, 160, 0) 84%),
    linear-gradient(0deg, rgba(5, 14, 58, .35) 0%, rgba(5, 14, 58, 0) 30%);
}

/* Brilho sutil na borda */
.yeb-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  pointer-events: none;
}

.yeb-hero-banner .yeb-main-story-image img {
  object-position: 85% 40%;
}

.yeb-hero-banner-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: min(520px, 68%);
  font-family: Arial, Helvetica, sans-serif;
}

/* Selo Brasil · Estados Unidos */
.yeb-hero-paises {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.yeb-hero-pais {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Bandeira dos EUA: leva à seção Yeb AG na home */
.yeb-hero-pais-link {
  margin: -4px -8px -4px -4px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  transition: background .2s;
}

.yeb-hero-pais-link::after {
  content: "↓";
  font-size: 11px;
  opacity: .7;
  transition: transform .2s;
}

.yeb-hero-pais-link:hover,
.yeb-hero-pais-link:focus-visible {
  background: rgba(255, 255, 255, .16);
}

.yeb-hero-pais-link:hover::after {
  transform: translateY(2px);
}

/* O botão agora é o link para Produtos e Serviços */
a.yeb-main-image-button {
  text-decoration: none;
}

a.yeb-main-image-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}

a.yeb-main-image-button:hover .yeb-hero-seta {
  transform: translateX(3px);
}

.yeb-hero-paises i {
  width: 1px;
  height: 14px;
  margin: 0 4px;
  background: rgba(255, 255, 255, .35);
}

.yeb-hero-paises .yeb-bandeira {
  width: 16px;
  height: 11px;
  border-radius: 2px;
}

.yeb-hero-banner-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-transform: none;
}

.yeb-hero-banner-title span {
  display: block;
  margin-top: 4px;
  color: #d2eaff;
  text-shadow: 0 2px 14px rgba(0, 10, 40, .45);
}

/* Frase de apoio: mais estreita (acompanha a largura do título) e justificada */
.yeb-hero-banner-text {
  max-width: 340px;
  margin: 16px 0 26px;
  color: rgba(255, 255, 255, .86);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
}

/* Botão */
.yeb-main-image-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #082565;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.yeb-hero-seta {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0737d5;
  color: #ffffff;
  font-size: 15px;
  transition: transform .25s ease;
}

.yeb-hero-banner:hover .yeb-main-image-button {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}

.yeb-hero-banner:hover .yeb-hero-seta {
  transform: translateX(3px);
}

.yeb-hero-banner:hover .yeb-main-story-image img {
  transform: scale(1.03);
}

@media (max-width: 700px) {
  .yeb-hero-banner {
    min-height: 470px;
  }

  /* No celular o texto justificado abre buracos entre as palavras */
  .yeb-hero-banner-text {
    text-align: left;
  }

  .yeb-hero-banner::after {
    background: linear-gradient(180deg, rgba(5, 14, 58, .45) 0%, rgba(5, 14, 58, .88) 45%, rgba(5, 14, 58, .96) 100%);
  }

  .yeb-hero-banner-content {
    left: 20px;
    right: 20px;
    bottom: 28px;
    max-width: none;
    justify-content: flex-end;
  }

}

/* =========================================================
   YEB AG NA HOME (Estados Unidos)
========================================================= */
.yeb-ag-home {
  margin: 34px 0 10px;
  font-family: Arial, Helvetica, sans-serif;
}

.yeb-ag-box {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(5, 14, 58, .97) 0%, rgba(13, 30, 110, .93) 55%, rgba(20, 60, 170, .82) 100%),
    url("../assets/images/yebag/lavoura-eua.jpg") center / cover no-repeat;
  color: #ffffff;
}

.yeb-ag-topo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.yeb-ag-marca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.yeb-ag-marca img {
  width: 150px;
  height: auto;
}

.yeb-ag-pais {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.yeb-ag-pais .yeb-bandeira {
  width: 20px;
  height: 14px;
}

.yeb-ag-intro h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}

.yeb-ag-intro p {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.6;
}

.yeb-ag-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.yeb-ag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #a8d2ee;
  color: #071c54;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

.yeb-ag-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.yeb-ag-btn-linha {
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: #ffffff;
}

.yeb-ag-btn-linha:hover {
  background: rgba(255, 255, 255, .12);
}

.yeb-ag-numeros {
  display: grid;
  gap: 12px;
}

.yeb-ag-numeros div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}

.yeb-ag-numeros strong {
  min-width: 104px;
  color: #a8d2ee;
  font-size: 26px;
  font-weight: 800;
  white-space: nowrap;
}

.yeb-ag-numeros span {
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  line-height: 1.4;
}

.yeb-ag-artigos-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 36px 0 16px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.yeb-ag-artigos-topo h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.yeb-ag-artigos-topo span {
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
}

.yeb-ag-artigos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.yeb-ag-artigos .yeb-feed-mensagem,
.yeb-ag-artigos .yeb-skel {
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .8);
}

.yeb-ag-artigos .yeb-feed-mensagem a {
  color: #a8d2ee;
}

.yeb-ag-artigo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  color: #071c54;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}

.yeb-ag-artigo:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .3);
}

.yeb-ag-artigo-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe7f3;
}

.yeb-ag-artigo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.yeb-ag-artigo:hover .yeb-ag-artigo-img img {
  transform: scale(1.05);
}

.yeb-ag-artigo-corpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.yeb-ag-artigo-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  font-size: 11.5px;
}

.yeb-ag-artigo-meta span {
  color: #0737d5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.yeb-ag-artigo-meta time {
  color: #7f8ca5;
}

.yeb-ag-artigo h4 {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yeb-ag-artigo p {
  margin: 8px 0 0;
  color: #627296;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yeb-ag-ler {
  margin-top: auto;
  padding-top: 12px;
  color: #0737d5;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .yeb-ag-topo {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .yeb-ag-artigos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .yeb-ag-box {
    padding: 26px 18px;
  }

  .yeb-ag-artigos {
    grid-template-columns: 1fr;
  }

  .yeb-ag-numeros strong {
    min-width: 88px;
    font-size: 22px;
  }
}

/* Imagem de anúncio dentro de qualquer slot */
[data-yeb-anuncio] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Anúncio real: o espaço segue o formato da arte (nada é cortado)
   e a imagem nunca é ampliada além do tamanho original. */
[data-yeb-anuncio].yeb-slot-anuncio {
  height: auto !important;
  min-height: 0 !important;
}

[data-yeb-anuncio].yeb-slot-anuncio img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* =========================================================
   RITMO VERTICAL: respiro padronizado entre anúncios e conteúdo
   (32–40px antes e depois de cada espaço publicitário)
========================================================= */

/* Home */
.yeb-news-section-02 {
  padding-top: 36px;
}

.yeb-ad-slot,
.yeb-ad-slot .yeb-ad-placeholder {
  border-radius: 14px;
}

.yeb-ad-top {
  margin-bottom: 32px;
}

.yeb-ad-bottom {
  margin-top: 40px;
}

.yeb-analyses-section {
  padding-top: 40px;
}

.yeb-gcp-preview {
  margin-top: 32px;
}

/* Páginas de produto e listagem */
.yeb-prod-ad-section {
  padding-top: 28px;
}

.yeb-prod-featured-section {
  padding-top: 32px;
}

/* Página da notícia */
.yeb-article-top-ad {
  padding-top: 28px;
}

.yeb-article-content-section {
  padding-top: 32px;
}

/* Botão "Carregar mais" */
.yeb-carregar-mais {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 0;
  padding: 13px 34px;
  border: 1px solid #0737d5;
  border-radius: 999px;
  background: #ffffff;
  color: #0737d5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.yeb-prod-latest-main .yeb-carregar-mais {
  display: flex;
}

.yeb-carregar-mais:hover {
  background: #0737d5;
  color: #ffffff;
}

a.yeb-portal-market {
  text-decoration: none;
}

/* Link "Visitar site" na faixa de identidade do produto */
.yeb-portal-site {
  margin-left: 8px;
  padding: 8px 16px;
  border: 1px solid #d8e3f1;
  border-radius: 999px;
  color: #0737d5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.yeb-portal-site:hover {
  background: #eaf4ff;
}

@media (max-width: 700px) {
  .yeb-portal-identity-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 0;
  }
}

/* Página de listagem / busca */
.yeb-lista-pagina {
  padding-top: 24px;
}

.yeb-lista-pagina h1 {
  margin: 0;
  color: #071c54;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
}

.yeb-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 28px;
}

.yeb-filtros a,
.yeb-filtros button {
  padding: 8px 18px;
  border: 1px solid #d8e3f1;
  border-radius: 999px;
  background: #ffffff;
  color: #071c54;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.yeb-filtros-cat {
  margin: 0 0 22px;
}

.yeb-filtros a:hover,
.yeb-filtros button:hover,
.yeb-filtros button.ativo,
.yeb-filtros a.ativo {
  border-color: #0737d5;
  background: #0737d5;
  color: #ffffff;
}

.yeb-lista-contagem {
  margin: 0 0 16px;
  color: #627296;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

/* Autor na página da matéria (análises) */
.yeb-article-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 6px;
  font-family: Arial, Helvetica, sans-serif;
}

.yeb-article-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.yeb-article-author strong {
  display: block;
  color: #071c54;
  font-size: 15px;
}

.yeb-article-author span {
  color: #627296;
  font-size: 13px;
}

.yeb-article-body img {
  max-width: 100%;
  height: auto;
}

.yeb-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.yeb-article-body th,
.yeb-article-body td {
  padding: 8px 10px;
  border: 1px solid #d8e3f1;
  text-align: left;
}

/* Rodapé */
.yeb-footer {
  font-family: Arial, Helvetica, sans-serif;
}

@media (min-width: 1101px) {
  .yeb-footer .yeb-footer-inner {
    grid-template-columns: 1.25fr .8fr 1fr 1.55fr;
    gap: 44px;
  }
}

.yeb-footer-sede + .yeb-footer-sede {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.yeb-footer-sede p + p {
  margin-top: 4px;
}

.yeb-footer .yeb-footer-pais {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.yeb-bandeira {
  width: 24px;
  height: 17px;
  flex-shrink: 0;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}

.yeb-footer-contact a {
  color: inherit;
  text-decoration: none;
}

.yeb-footer-contact a:hover {
  text-decoration: underline;
}

.yeb-footer-copy {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .65);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  text-align: center;
}


/* =========================================================
   EXPERIÊNCIA DO USUÁRIO
========================================================= */

html {
  scroll-padding-top: 120px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Foco visível ao navegar pelo teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #8fb4ff;
  outline-offset: 2px;
}

/* ---------- Barra de topo (header fixo inteligente) ---------- */
.yeb-topbar {
  --yeb-border: #d8e3f1;
  --yeb-text: #071c54;
  --yeb-blue-2: #0737d5;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  font-family: Arial, Helvetica, sans-serif;
  color: #071c54;
  transition: transform .3s ease, box-shadow .3s ease;
}

@supports (backdrop-filter: blur(8px)) {
  .yeb-topbar {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
  }
}

.yeb-topbar-inner {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.yeb-topbar .yeb-news-header {
  padding: 20px 0 18px;
}

/* ---------- Ações do cabeçalho: lupa · Acessar YebIN · Inscrever-se ---------- */
.yeb-topbar .yeb-news-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.yeb-busca-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid #d8e3f1;
  border-radius: 12px;
  background: #ffffff;
  color: #071c54;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.yeb-busca-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

.yeb-busca-btn:hover,
.yeb-busca-btn[aria-expanded="true"] {
  border-color: #0737d5;
  background: #f5f9ff;
  color: #0737d5;
}

.yeb-plataforma-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  flex-shrink: 0;
  border: 1.5px solid #c9d7ef;
  border-radius: 12px;
  background: #ffffff;
  color: #071c54;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}

.yeb-plataforma-btn strong {
  font-weight: 800;
  color: #0737d5;
}

.yeb-plataforma-btn svg {
  width: 18px;
  height: 18px;
  stroke: #0737d5;
}

.yeb-plataforma-btn:hover {
  transform: translateY(-1px);
  border-color: #0737d5;
  background: #f5f9ff;
  box-shadow: 0 8px 18px rgba(7, 55, 213, .12);
}

/* Inscrever-se: estilo original (degradê, ícone separado e seta), em versão menor */
.yeb-topbar .yeb-subscribe-btn {
  height: 46px;
  padding: 0 14px 0 0;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.yeb-topbar .yeb-subscribe-icon {
  width: 40px;
  height: 46px;
  margin-right: 12px;
}

.yeb-topbar .yeb-subscribe-icon svg {
  width: 18px;
  height: 18px;
}

.yeb-topbar .yeb-subscribe-arrow {
  margin-left: 10px;
  font-size: 18px;
}

/* Barra de busca abaixo do cabeçalho */
.yeb-busca-painel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 115;
  border-top: 1px solid #edf2f7;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(7, 28, 84, .12);
  animation: yeb-surgir .18s ease;
}

.yeb-busca-painel-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0 20px;
}

.yeb-topbar .yeb-busca-painel .yeb-news-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  width: auto;
  height: 56px;
  padding: 0 8px 0 18px;
  border: 1.5px solid #c9d7ef;
  border-radius: 14px !important;
  background: #ffffff;
  transition: border-color .2s, box-shadow .2s;
}

.yeb-topbar .yeb-busca-painel .yeb-news-search:focus-within {
  border-color: #0737d5;
  box-shadow: 0 0 0 4px rgba(7, 55, 213, .10);
}

.yeb-busca-painel .yeb-news-search > svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-right: 12px;
  stroke: #0737d5;
}

.yeb-busca-painel .yeb-news-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #071c54;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.yeb-busca-painel .yeb-news-search input:focus-visible {
  outline: none;
}

.yeb-busca-enviar {
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #0737d5;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.yeb-busca-enviar:hover {
  background: #082565;
}

.yeb-busca-fechar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5fb;
  color: #627296;
  font-size: 15px;
  cursor: pointer;
}

.yeb-busca-fechar:hover {
  background: #e3ebf7;
  color: #071c54;
}

/* Sugestões ocupam a largura do campo */
.yeb-busca-painel .yeb-sugestoes {
  left: 0;
  right: 0;
  width: auto;
  top: calc(100% + 8px);
}

/* Telas menores: botões menores, textos curtos */
@media (max-width: 1180px) {
  .yeb-topbar .yeb-news-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 850px) {
  .yeb-topbar .yeb-news-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .yeb-topbar .yeb-plataforma-btn,
  .yeb-topbar .yeb-subscribe-btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }

  .yeb-busca-painel-inner {
    width: calc(100% - 32px);
    gap: 8px;
  }

  .yeb-busca-enviar {
    display: none;
  }
}

@media (max-width: 480px) {
  .yeb-plataforma-btn span {
    display: none;
  }

  .yeb-topbar .yeb-plataforma-btn {
    flex: 0 0 46px;
    padding: 0;
    justify-content: center;
  }
}

/* Telas grandes: espaçamento do menu para caber na largura de 1200px */
@media (min-width: 1301px) {
  .yeb-topbar .yeb-news-brand-nav {
    gap: 26px;
  }

  .yeb-topbar .yeb-news-nav {
    gap: 22px;
  }

  .yeb-topbar .yeb-news-header-inner {
    gap: 20px;
  }
}

/* ---------- Menu: botão "Notícias" (igual aos links) ---------- */
.yeb-nav-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 14px 0;
  border: 0;
  background: none;
  color: #071c54;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}

.yeb-nav-drop:hover,
.yeb-nav-drop[aria-expanded="true"],
.yeb-nav-drop.active {
  color: #0737d5;
}

.yeb-nav-drop.active {
  font-weight: 700;
}

.yeb-nav-drop.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 20px;
  background: #0737d5;
}

.yeb-nav-chevron {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  transition: transform .2s ease;
}

.yeb-nav-drop[aria-expanded="true"] .yeb-nav-chevron {
  transform: rotate(180deg);
}

/* ---------- Painel de Notícias (portais) ---------- */
.yeb-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 110;
  border-top: 1px solid #edf2f7;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(7, 28, 84, .14);
  animation: yeb-surgir .18s ease;
}

.yeb-mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 0 30px;
}

.yeb-mega-titulo {
  margin: 0 0 14px;
  color: #627296;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.yeb-mega-portais {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.yeb-mega-portal {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e3edf9;
  border-radius: 14px;
  color: #071c54;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.yeb-mega-portal:hover,
.yeb-mega-portal.active {
  border-color: #b8cdf3;
  box-shadow: 0 10px 26px rgba(7, 28, 84, .08);
  transform: translateY(-2px);
}

.yeb-mega-logo {
  display: grid;
  place-items: center;
  flex: 0 0 130px;
  height: 52px;
}

.yeb-mega-logo img {
  max-width: 130px;
  max-height: 46px;
  object-fit: contain;
}

.yeb-mega-texto strong {
  display: block;
  font-size: 16px;
}

.yeb-mega-texto span {
  color: #627296;
  font-size: 13px;
}

.yeb-mega-links {
  display: flex;
  flex-direction: column;
  padding-left: 32px;
  border-left: 1px solid #edf2f7;
}

.yeb-mega-links a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
  color: #071c54;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.yeb-mega-links a:hover,
.yeb-mega-links a.active {
  color: #0737d5;
}

@media (max-width: 1180px) {
  .yeb-mega-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 0 22px;
  }

  .yeb-mega-links {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .yeb-mega-inner {
    width: calc(100% - 32px);
  }

  .yeb-mega-portais {
    grid-template-columns: 1fr;
  }

  .yeb-mega-logo {
    flex-basis: 96px;
  }

  .yeb-mega-logo img {
    max-width: 96px;
  }
}

/* Rodapé: marca do portal ao lado do nome */
.yeb-footer-links small {
  opacity: .65;
  font-size: .85em;
}

.yeb-topbar.is-compacto {
  box-shadow: 0 6px 24px rgba(7, 28, 84, .08);
}

/* Telas menores: ao rolar, o header fixo mostra só logo + menu */
@media (max-width: 1180px) {
  .yeb-topbar.is-compacto .yeb-news-actions {
    display: none;
  }

  .yeb-topbar.is-compacto .yeb-news-header {
    padding: 10px 0 8px;
  }

  .yeb-topbar.is-compacto .yeb-news-brand-nav {
    gap: 8px;
  }

  .yeb-topbar.is-compacto .yeb-news-logo img {
    width: 64px;
  }
}

@media (max-width: 850px) {
  .yeb-topbar-inner {
    width: calc(100% - 32px);
  }
}

/* ---------- Busca com sugestões ---------- */
.yeb-news-search {
  position: relative;
}

.yeb-sugestoes {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: min(440px, 92vw);
  padding: 8px;
  border: 1px solid #d8e3f1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(7, 28, 84, .16);
  font-family: Arial, Helvetica, sans-serif;
  animation: yeb-surgir .18s ease;
}

@media (max-width: 1180px) {
  .yeb-sugestoes {
    left: 0;
    right: auto;
    width: 100%;
  }
}

.yeb-sugestao {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #071c54;
  text-decoration: none;
}

.yeb-sugestao:hover,
.yeb-sugestao.is-ativo {
  background: #eaf4ff;
}

.yeb-sugestao-tag {
  grid-row: span 2;
  align-self: start;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eaf4ff;
  color: #0737d5;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.yeb-sugestao-titulo {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.yeb-sugestao-titulo mark {
  background: #fff1b8;
  color: inherit;
  border-radius: 2px;
}

.yeb-sugestao-data {
  color: #7f8ca5;
  font-size: 12px;
}

.yeb-sugestao-vazio {
  margin: 0;
  padding: 14px 12px;
  color: #627296;
  font-size: 14px;
}

.yeb-sugestao-todas {
  display: block;
  margin-top: 4px;
  padding: 11px 12px;
  border-top: 1px solid #edf2f7;
  color: #0737d5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.yeb-sugestao-todas:hover,
.yeb-sugestao-todas.is-ativo {
  background: #eaf4ff;
  border-radius: 10px;
}

@keyframes yeb-surgir {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Esqueleto de carregamento ---------- */
.yeb-skel {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  padding: 12px 0;
}

.yeb-skel-img,
.yeb-skel-linhas i {
  display: block;
  border-radius: 10px;
  background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: yeb-brilho 1.3s linear infinite;
}

.yeb-skel-img {
  flex: 0 0 34%;
  max-width: 220px;
  height: 110px;
}

.yeb-skel-linhas {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.yeb-skel-linhas i {
  height: 14px;
}

.yeb-skel-linhas i:nth-child(1) { width: 30%; }
.yeb-skel-linhas i:nth-child(2) { width: 90%; height: 20px; }
.yeb-skel-linhas i:nth-child(3) { width: 65%; }

@keyframes yeb-brilho {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- Entrada suave dos cards ---------- */
.yeb-anim {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--atraso, 0s);
}

.yeb-anim.is-visivel {
  opacity: 1;
  transform: none;
}

/* ---------- Compartilhar (página da notícia) ---------- */
.yeb-compartilhar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: Arial, Helvetica, sans-serif;
}

.yeb-compartilhar-rotulo {
  margin-right: 4px;
  color: #627296;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.yeb-compartilhar a,
.yeb-compartilhar button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d8e3f1;
  border-radius: 50%;
  background: #ffffff;
  color: #071c54;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}

.yeb-compartilhar svg {
  width: 18px;
  height: 18px;
}

.yeb-compartilhar a:hover,
.yeb-compartilhar button:hover {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: transparent;
}

.yeb-compartilhar .wa:hover { background: #25d366; }
.yeb-compartilhar .li:hover { background: #0a66c2; }
.yeb-compartilhar .em:hover,
.yeb-compartilhar .cp:hover { background: #0737d5; }

/* ---------- Progresso de leitura ---------- */
.yeb-progresso {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  height: 3px;
  background: linear-gradient(90deg, #0737d5, #6ee7ff);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Voltar ao topo ---------- */
.yeb-topo-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #0737d5;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(7, 55, 213, .35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
}

.yeb-topo-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.yeb-topo-btn.is-visivel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.yeb-topo-btn:hover {
  background: #082565;
}

@media (max-width: 600px) {
  .yeb-topo-btn {
    right: 16px;
    bottom: 16px;
  }
}

/* ---------- Aviso (toast) ---------- */
.yeb-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 140;
  padding: 12px 20px;
  border-radius: 999px;
  background: #071c54;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(7, 28, 84, .3);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}

.yeb-toast.is-visivel {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Acessibilidade: sem animações se o usuário pediu ---------- */
@media (prefers-reduced-motion: reduce) {
  .yeb-topbar,
  .yeb-anim,
  .yeb-skel-img,
  .yeb-skel-linhas i,
  .yeb-sugestoes,
  .yeb-topo-btn,
  .yeb-toast {
    animation: none !important;
    transition: none !important;
  }

  .yeb-anim {
    opacity: 1;
    transform: none;
  }
}

/* Celular: botão do quadro principal em uma linha só */
@media (max-width: 420px) {
  a.yeb-main-image-button {
    gap: 10px;
    font-size: 13.5px;
    white-space: nowrap;
  }
}
