/* =========================================================
   YEB | CELULAR E TABLET
   Carregado por ÚLTIMO em todas as páginas (depois de cantos.css).
   Só contém regras dentro de @media: não altera o computador.

   Índice
   1. Cabeçalho + menu lateral (≤1180px)
   2. Base de leitura no celular (≤760px)
   3. Home
   4. Listas de notícias (Notícias, páginas de produto, Análises)
   5. Matéria
   6. Produtos e Serviços
   7. Sobre a Yeb
   8. Carreiras
   9. Newsletters
   10. Espaços publicitários, formulários e rodapé
========================================================= */

/* =========================================================
   1. CABEÇALHO + MENU LATERAL
========================================================= */

/* Botão ☰ e gaveta só existem em telas menores */
.yeb-menu-btn,
.yeb-gaveta,
.yeb-gaveta-fundo {
  display: none;
}

/* Notebooks (1181–1320px): "Acessar YebIN" vira só o ícone para o menu caber numa linha */
@media (min-width: 1181px) and (max-width: 1320px) {
  .yeb-topbar .yeb-plataforma-btn {
    width: 46px;
    padding: 0;
    justify-content: center;
  }

  .yeb-topbar .yeb-plataforma-btn span {
    display: none;
  }

  .yeb-topbar .yeb-news-header-inner {
    flex-wrap: nowrap;
    gap: 16px;
  }

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

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

  .yeb-topbar .yeb-news-actions {
    margin-left: auto;
  }
}

@media (max-width: 1180px) {
  /* Barra compacta: logo à esquerda; busca e menu à direita */
  .yeb-topbar .yeb-news-header {
    padding: 12px 0;
  }

  .yeb-topbar .yeb-news-header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .yeb-topbar .yeb-news-brand-nav {
    flex-direction: row;
    width: auto;
    gap: 0;
  }

  .yeb-topbar .yeb-news-nav,
  .yeb-mega {
    display: none !important;
  }

  .yeb-topbar .yeb-news-logo img {
    width: 84px;
    height: auto;
  }

  .yeb-topbar .yeb-news-actions,
  .yeb-topbar.is-compacto .yeb-news-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
  }

  .yeb-topbar .yeb-plataforma-btn,
  .yeb-topbar .yeb-subscribe-btn {
    flex: 0 0 auto;
  }

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

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

  .yeb-menu-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #071c54;
    color: #ffffff;
    cursor: pointer;
  }

  .yeb-menu-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
  }

  /* ---------- Gaveta ---------- */
  .yeb-gaveta-fundo {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 14, 58, .45);
    opacity: 0;
    transition: opacity .25s ease;
  }

  .yeb-gaveta-fundo[hidden] {
    display: none;
  }

  .yeb-gaveta {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    width: min(380px, 88vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #ffffff;
    box-shadow: -20px 0 50px rgba(5, 14, 58, .2);
    font-family: Arial, Helvetica, sans-serif;
    color: #071c54;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
  }

  .yeb-gaveta-aberta,
  .yeb-gaveta-aberta body {
    overflow: hidden;
  }

  .yeb-gaveta-aberta .yeb-gaveta-fundo {
    opacity: 1;
  }

  .yeb-gaveta-aberta .yeb-gaveta {
    transform: none;
    visibility: visible;
    transition: transform .28s ease, visibility 0s;
  }

  .yeb-gaveta-topo {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #edf2f7;
    background: #ffffff;
  }

  .yeb-gaveta-logo img {
    display: block;
    width: 78px;
    height: auto;
  }

  .yeb-gaveta-fechar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f1f5fb;
    color: #071c54;
    cursor: pointer;
  }

  .yeb-gaveta-fechar svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
  }

  .yeb-gaveta-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 18px;
  }

  .yeb-gaveta-nav > a,
  .yeb-gaveta-grupo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid #eef2f8;
    background: none;
    color: #071c54;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .yeb-gaveta-nav > a.active,
  .yeb-gaveta-grupo.active {
    color: #0737d5;
  }

  .yeb-gaveta-seta {
    color: #9fb0cc;
    font-size: 24px;
    line-height: 1;
  }

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

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

  .yeb-gaveta-sub {
    padding: 12px 0 14px;
    border-bottom: 1px solid #eef2f8;
  }

  .yeb-gaveta-sub[hidden] {
    display: none;
  }

  .yeb-gaveta-portais {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .yeb-gaveta-portal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid #e3ebf7;
    border-radius: 12px;
    background: #f7faff;
    color: #071c54;
    text-decoration: none;
  }

  .yeb-gaveta-portal.active {
    border-color: #0737d5;
  }

  .yeb-gaveta-portal-logo {
    display: flex;
    align-items: center;
    height: 26px;
  }

  .yeb-gaveta-portal-logo img {
    max-width: 100%;
    max-height: 26px;
    object-fit: contain;
  }

  .yeb-gaveta-portal strong {
    display: block;
    font-size: 14px;
  }

  .yeb-gaveta-portal small {
    display: block;
    color: #627296;
    font-size: 11.5px;
  }

  .yeb-gaveta-sublink {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    color: #33466f;
    font-size: 15px;
    text-decoration: none;
  }

  .yeb-gaveta-sublink.active {
    color: #0737d5;
    font-weight: 700;
  }

  .yeb-gaveta-acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 18px;
    background: #f5f9ff;
  }

  .yeb-gaveta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, #082565, #0737d5);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .yeb-gaveta-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
  }

  .yeb-gaveta-btn-linha {
    border: 1.5px solid #c9d7ef;
    background: #ffffff;
    color: #071c54;
    font-weight: 500;
  }

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

  .yeb-gaveta-btn-linha svg {
    stroke: #0737d5;
  }

  .yeb-gaveta-contato {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 6px;
  }

  .yeb-gaveta-contato a {
    color: #627296;
    font-size: 13px;
    text-decoration: none;
  }

  /* Busca abaixo do cabeçalho */
  .yeb-busca-painel-inner {
    width: calc(100% - 32px);
    gap: 8px;
    padding: 12px 0 14px;
  }

  .yeb-topbar .yeb-busca-painel .yeb-news-search {
    height: 50px;
  }
}

/* Textos alternativos: "ao lado" no computador, "abaixo" no celular */
.so-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .so-desktop {
    display: none;
  }

  .so-mobile {
    display: inline;
  }
}

/* Celular: no cabeçalho ficam só logo, lupa e menu (YebIN e Inscrever-se vão para a gaveta) */
@media (max-width: 760px) {
  .yeb-topbar .yeb-plataforma-btn,
  .yeb-topbar .yeb-subscribe-btn {
    display: none;
  }

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

  .yeb-busca-btn,
  .yeb-menu-btn {
    width: 44px;
    height: 44px;
  }

  .yeb-busca-painel .yeb-news-search input {
    font-size: 16px; /* evita o zoom automático do iPhone ao tocar no campo */
  }
}

@media (prefers-reduced-motion: reduce) {
  .yeb-gaveta,
  .yeb-gaveta-fundo {
    transition: none;
  }
}

/* =========================================================
   2. BASE DE LEITURA NO CELULAR
========================================================= */
@media (max-width: 760px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  /* Margem lateral igual em todas as páginas */
  .yeb-news-container,
  .yeb-news-section-02 .yeb-news-container,
  .yeb-analyses-container,
  .yeb-gcp-container,
  .yeb-portal-preview-container,
  .yeb-diesel-container,
  .yeb-globalkem-container,
  .yeb-final-container,
  .yeb-prod-container,
  .yeb-article-container,
  .yeb-newsletters-container,
  .sb-container,
  .so-container,
  .ag-container,
  .ag-divisor,
  .ag-hero {
    width: calc(100% - 32px) !important;
  }

  .yeb-analises-page-container {
    width: calc(100% - 32px) !important;
  }

  /* Botão "voltar ao topo" menor e afastado da borda */
  .yeb-topo-btn {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  /* Filtros em uma linha só, deslizando para o lado (em vez de 3–4 linhas de botões) */
  .yeb-filtros,
  .yeb-filtros-cat,
  .sb-filtros {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    margin-left: -16px;
    margin-right: -16px;
    padding: 2px 16px 6px;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .yeb-filtros::-webkit-scrollbar,
  .yeb-filtros-cat::-webkit-scrollbar,
  .sb-filtros::-webkit-scrollbar {
    display: none;
  }

  .yeb-filtros > *,
  .yeb-filtros-cat > *,
  .sb-filtros > * {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* =========================================================
   3. HOME
========================================================= */
/* Título "Últimas Notícias" extra, só para o celular (fica entre o quadro e os destaques) */
.yeb-titulo-celular {
  display: none;
}

@media (max-width: 760px) {
  .yeb-featured-grid .yeb-titulo-celular {
    display: block;
    margin: 18px 0 2px;
  }

  /* O título original (mais abaixo) some: destaques + últimas viram uma lista contínua */
  .yeb-latest-column > .yeb-section-title {
    display: none;
  }

  .yeb-news-section-02 {
    padding-top: 0 !important;
  }

  /* Destaques com o mesmo visual da lista de últimas notícias */
  .yeb-side-stories {
    gap: 0 !important;
  }

  .yeb-side-stories .yeb-side-story {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 16px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e3eaf3 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .yeb-side-stories .yeb-side-story-image,
  .yeb-side-stories .yeb-side-story-image img {
    width: 112px;
    height: 84px !important;
    border-radius: var(--r-p, 12px);
  }

  .yeb-side-stories .yeb-side-story-title {
    margin: 4px 0 6px !important;
    font-size: 16px !important;
    -webkit-line-clamp: 3;
  }

  .yeb-side-stories .yeb-category-tag {
    border: 0 !important;
    background: #eaf1ff !important;
  }

  /* Seção "Análises Yeb" oculta no celular (continua no menu e na página Análises) */
  .yeb-analyses-section {
    display: none !important;
  }

  /* 1ª notícia das "últimas" continua a lista sem espaço extra */
  .yeb-latest-list .yeb-latest-item:first-child {
    padding-top: 16px;
  }
}
@media (max-width: 760px) {
  .yeb-news-home {
    padding-top: 12px;
  }

  /* Quadro principal: degradê mais leve em cima para a fachada aparecer */
  /* Fachada visível na parte de cima; o azul começa pouco antes da metade, onde fica o texto */
  /* Card no tamanho anterior, foto no card inteiro e degradê lateral (da esquerda até o meio) */
  .yeb-hero-banner {
    min-height: 460px;
  }

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

  .yeb-hero-banner::after {
    background: linear-gradient(90deg,
      rgba(5, 14, 58, .95) 0%,
      rgba(8, 27, 110, .86) 34%,
      rgba(8, 27, 110, .55) 52%,
      rgba(10, 40, 160, .15) 66%,
      rgba(10, 40, 160, 0) 76%) !important;
  }

  /* Leitura garantida onde o texto passa sobre a foto */
  .yeb-hero-banner-title,
  .yeb-hero-banner-text {
    text-shadow: 0 2px 12px rgba(3, 10, 40, .65);
  }

  .yeb-hero-banner-content {
    left: 22px;
    right: 22px;
    bottom: 48px;
  }

  .yeb-hero-paises {
    margin-bottom: 16px;
  }

  .yeb-hero-banner-text {
    max-width: none;
    margin: 14px 0 20px;
    font-size: 14px;
  }

  /* 4 destaques: cards baixos, título até 3 linhas, sem buraco no meio */
  .yeb-side-stories {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .yeb-side-story {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center;
    padding: 8px;
  }

  .yeb-side-story-image {
    height: 92px;
    min-height: 0;
  }

  .yeb-side-story-image img {
    height: 92px;
    min-height: 0 !important;
  }

  .yeb-side-story-content {
    justify-content: center;
    gap: 4px;
  }

  .yeb-side-story-title {
    margin: 2px 0 4px;
    font-size: 15px !important;
    line-height: 1.28;
    -webkit-line-clamp: 3;
  }

  .yeb-side-story-bottom {
    margin-top: 0;
    font-size: 11.5px;
  }

  .yeb-side-story .yeb-side-arrow {
    display: none;
  }

  /* Últimas notícias: lista compacta (miniatura à esquerda) */
  .yeb-section-title {
    font-size: 24px;
  }

  .yeb-latest-item {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .yeb-latest-image {
    width: 112px !important;
    height: 84px !important;
  }

  .yeb-latest-title {
    margin: 4px 0 6px;
    font-size: 16px !important;
    line-height: 1.28;
  }

  .yeb-latest-description {
    display: none;
  }

  .yeb-latest-meta {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .yeb-latest-meta-divider {
    display: none;
  }

  .yeb-most-read {
    padding: 22px 18px;
  }

  .yeb-most-read-title {
    font-size: 20px;
  }

  /* Análises */
  .yeb-analyses-box {
    padding: 22px 16px !important;
  }

  .yeb-analyses-title {
    font-size: 24px;
  }

  /* Prévias dos 4 produtos */
  .yeb-gcp-box,
  .yeb-portal-preview-box,
  .yeb-diesel-box,
  .yeb-globalkem-box {
    padding: 20px 16px !important;
  }

  .yeb-gcp-header,
  .yeb-portal-preview-header,
  .yeb-diesel-header,
  .yeb-globalkem-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px !important;
  }

  .yeb-previa-marca {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: 0;
  }

  .yeb-previa-mercado {
    font-size: 18px !important;
  }

  .yeb-previa-divisor {
    height: 24px !important;
  }

  .yeb-previa-por {
    margin-right: -2px;
    padding-top: 0;
    font-size: 11px;
    align-self: center;
  }

  .yeb-previa-marca img {
    width: auto !important;
    max-width: 110px;
    height: 28px !important;
    object-fit: contain;
    object-position: left center;
  }

  /* "Ver todas" vai para o fim da seção, como botão de largura total
     (o cabeçalho vira "transparente" para o botão poder descer) */
  .yeb-gcp-box,
  .yeb-portal-preview-box,
  .yeb-diesel-box,
  .yeb-globalkem-box {
    display: flex !important;
    flex-direction: column;
  }

  .yeb-gcp-header,
  .yeb-portal-preview-header,
  .yeb-diesel-header,
  .yeb-globalkem-header {
    display: contents !important;
  }

  .yeb-gcp-header .yeb-previa-marca,
  .yeb-portal-preview-header .yeb-previa-marca,
  .yeb-diesel-header .yeb-previa-marca,
  .yeb-globalkem-header .yeb-previa-marca {
    order: 0;
    margin-bottom: 16px;
  }

  .yeb-gcp-grid,
  .yeb-portal-grid,
  .yeb-diesel-grid,
  .yeb-globalkem-grid {
    order: 1;
  }

  .yeb-gcp-view-all,
  .yeb-portal-view-all,
  .yeb-diesel-view-all,
  .yeb-globalkem-view-all {
    order: 2;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    width: 100%;
    min-height: 46px;
    margin: 18px 0 0 !important;
    padding: 0 18px !important;
    border: 1.5px solid #c9d7ef;
    border-radius: 999px;
    background: #ffffff;
    color: #0737d5 !important;
    font-size: 14px !important;
    font-weight: 700;
    text-decoration: none;
    justify-self: auto !important;
  }

  .yeb-gcp-view-all span,
  .yeb-portal-view-all span,
  .yeb-diesel-view-all span,
  .yeb-globalkem-view-all span {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1;
  }

  .yeb-previa-marca img {
    max-width: 96px !important;
  }

  .yeb-gcp-grid,
  .yeb-portal-grid,
  .yeb-diesel-grid,
  .yeb-globalkem-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .yeb-gcp-main-image,
  .yeb-portal-main-image,
  .yeb-diesel-main-image,
  .yeb-globalkem-main-image {
    height: 200px !important;
  }

  .yeb-gcp-main-title,
  .yeb-portal-main-title,
  .yeb-diesel-main-title,
  .yeb-globalkem-main-title {
    margin: 14px 0 8px !important;
    font-size: 20px !important;
    line-height: 1.22 !important;
  }

  .yeb-gcp-main-summary,
  .yeb-portal-main-summary,
  .yeb-diesel-main-summary,
  .yeb-globalkem-main-summary {
    font-size: 14px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .yeb-gcp-side-item,
  .yeb-portal-side-item,
  .yeb-diesel-side-item,
  .yeb-globalkem-side-item {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
  }

  .yeb-gcp-side-image,
  .yeb-portal-side-image,
  .yeb-diesel-side-image,
  .yeb-globalkem-side-image {
    width: 96px !important;
    height: 72px !important;
  }

  .yeb-gcp-side-title,
  .yeb-portal-side-title,
  .yeb-diesel-side-title,
  .yeb-globalkem-side-title {
    margin: 0 0 4px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .yeb-gcp-side-date,
  .yeb-portal-side-date,
  .yeb-diesel-side-date,
  .yeb-globalkem-side-date {
    font-size: 11.5px !important;
  }

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

  /* Yeb AG */
  .yeb-ag-box {
    padding: 26px 18px !important;
  }

  .yeb-ag-intro h2 {
    font-size: 22px;
    line-height: 1.22;
  }

  .yeb-ag-intro p {
    font-size: 14.5px;
  }

  .yeb-ag-botoes {
    flex-wrap: wrap;
    gap: 10px;
  }

  .yeb-ag-numeros {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .yeb-ag-numeros div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 10px !important;
  }

  .yeb-ag-numeros strong {
    font-size: 18px !important;
    white-space: nowrap;
  }

  .yeb-ag-numeros span {
    font-size: 11.5px !important;
    line-height: 1.3;
  }

  /* Artigos em carrossel deslizante (em vez de 4 cards empilhados) */
  .yeb-ag-artigos {
    display: flex !important;
    gap: 12px !important;
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 18px;
    scrollbar-width: none;
  }

  .yeb-ag-artigos::-webkit-scrollbar {
    display: none;
  }

  .yeb-ag-artigo {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .yeb-ag-artigos .yeb-feed-mensagem {
    flex: 1 0 100%;
  }

  /* Bloco final "Soluções Yeb" + formulário */
  .yeb-final-section {
    padding-top: 36px;
  }

  .yeb-solutions-cta {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
    min-height: 0;
    padding: 26px 12px 12px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 55%, #e6f0fb 100%);
  }

  .yeb-solutions-cta::before,
  .yeb-solutions-bg,
  .yeb-solutions-overlay {
    display: none;
  }

  .yeb-solutions-title {
    font-size: 26px !important;
    line-height: 1.15;
  }

  .yeb-solutions-description {
    font-size: 15px;
  }

  .yeb-solutions-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 22px;
  }

  .yeb-solution-benefit {
    padding: 0 2px;
  }

  .yeb-solution-benefit:not(:last-child)::after {
    display: none;
  }

  .yeb-benefit-icon {
    width: 40px;
    height: 40px;
  }

  .yeb-benefit-text {
    font-size: 12px;
  }

  .yeb-solutions-form-area {
    box-sizing: border-box;
    max-width: none;
    padding: 0 !important;
    justify-self: stretch;
  }

  .yeb-contact-form-box {
    box-sizing: border-box;
    padding: 20px 14px 16px !important;
  }

  .yeb-contact-form-title {
    font-size: 21px !important;
  }
}

/* =========================================================
   4. LISTAS DE NOTÍCIAS (Notícias, produtos, Análises)
========================================================= */
/* Colunas em 1 só: não podem crescer com a linha de filtros deslizante */
@media (max-width: 1100px) {
  .yeb-prod-featured-grid,
  .yeb-prod-latest-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .yeb-prod-latest-main,
  .yeb-prod-sidebar {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .yeb-prod-featured-section {
    padding-top: 12px;
  }

  /* Notícia principal do produto */
  .yeb-prod-main-image {
    height: 210px !important;
  }

  .yeb-prod-main-content h2,
  .yeb-prod-main-content h3 {
    font-size: 21px !important;
    line-height: 1.22 !important;
  }

  /* Lista: miniatura à esquerda, título forte, sem resumo */
  .yeb-prod-latest-item {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start;
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
  }

  .yeb-prod-latest-image {
    width: 112px !important;
    height: 84px !important;
  }

  .yeb-prod-latest-content h3,
  .yeb-prod-latest-content h2 {
    margin: 4px 0 6px !important;
    font-size: 16px !important;
    line-height: 1.28 !important;
  }

  .yeb-prod-latest-content p {
    display: none;
  }

  .yeb-prod-side-story {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 10px !important;
  }

  .yeb-prod-side-image {
    width: 104px !important;
    height: 92px !important;
  }

  .yeb-prod-side-content h3,
  .yeb-prod-side-content h4 {
    font-size: 15px !important;
    line-height: 1.28 !important;
  }

  /* Títulos de seção das páginas internas */
  .yeb-prod-section-title,
  .yeb-lista-pagina h1 {
    font-size: 24px !important;
  }

  /* Análises */
  .yeb-analises-hero {
    padding: 24px 0 !important;
  }

  .yeb-analises-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .yeb-analises-row-image {
    height: 190px !important;
  }

  .yeb-analises-row-content h2,
  .yeb-analises-row-content h3 {
    font-size: 21px !important;
    line-height: 1.22 !important;
  }
}

/* =========================================================
   5. MATÉRIA
========================================================= */
@media (max-width: 760px) {
  /* Texto ocupa a largura toda (sem card com borda em volta) */
  .yeb-article-main {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .yeb-article-heading {
    padding: 8px 0 20px !important;
  }

  .yeb-article-body {
    padding: 0 0 20px !important;
  }

  .yeb-article-source {
    margin: 0 !important;
  }

  .yeb-article-hero {
    width: 100% !important;
    height: 220px !important;
    margin: 0 0 22px !important;
  }

  .yeb-article-title {
    font-size: 26px !important;
    line-height: 1.18 !important;
  }

  .yeb-article-summary {
    font-size: 16px !important;
  }

  .yeb-article-body {
    font-size: 16.5px;
    line-height: 1.7;
  }

  .yeb-article-body h2 {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  .yeb-article-body blockquote {
    margin-left: 0;
    margin-right: 0;
  }

  .yeb-article-breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .yeb-compartilhar {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .yeb-compartilhar a,
  .yeb-compartilhar button {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .yeb-compartilhar-rotulo {
    font-size: 12px;
  }

  .yeb-related-articles-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .yeb-related-article-image {
    height: 180px !important;
  }

  .yeb-portal-identity-inner {
    min-height: 0 !important;
    padding: 12px 0 !important;
  }
}

/* =========================================================
   6. PRODUTOS E SERVIÇOS
========================================================= */
/* Tablet: "Dúvidas" (texto + mapa + formulário) empilhado, em vez de 2 colunas espremidas */
@media (max-width: 1023px) {
  .ag-duvidas {
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0 !important;
  }
}

@media (max-width: 767px) {
  .ag-hero {
    margin: 16px auto 40px !important;
  }

  .ag-hero-texto {
    padding: 8px 0 0 !important;
  }

  .ag-hero h1 {
    font-size: 26px !important;
  }

  .ag-hero p {
    font-size: 15px;
  }

  .ag-hero img {
    height: 240px !important;
  }

  .ag-titulo h2 {
    font-size: 26px !important;
  }

  /* Nossos Clientes: números em 2 colunas */
  .ag-contadores {
    grid-template-columns: 1fr 1fr !important;
    gap: 26px 14px !important;
  }

  .ag-contadores > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .ag-contadores strong {
    font-size: 34px !important;
  }

  .ag-contadores p {
    font-size: 13px !important;
  }

  /* Marcas e soluções: cards que giram (como no site oficial), um por linha.
     Giram sozinhos ao passar pelo meio da tela (js/pages/produtos-servicos.js) */
  .ag-marcas {
    gap: 12px !important;
    margin: 40px auto !important;
  }

  .ag-cards {
    flex-direction: column;
    gap: 12px !important;
  }

  .ag-card {
    flex: none !important;
    height: 260px !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* No toque, quem manda é o .is-virado (o :hover "gruda" no celular) */
  .ag-card:hover .ag-card-giro,
  .ag-card:focus-within .ag-card-giro {
    transform: none;
  }

  .ag-card.is-virado .ag-card-giro {
    transform: rotateY(180deg) !important;
  }

  .ag-card-giro {
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
  }

  .ag-card-frente,
  .ag-card-verso {
    border-radius: var(--r-m, 18px);
  }

  .ag-card-frente img {
    max-width: 190px !important;
    height: 70% !important;
  }

  .ag-card-verso {
    justify-content: center;
    padding: 22px 22px !important;
    font-size: 13.5px !important;
    line-height: 1.55;
  }

  .ag-card-verso p {
    margin-bottom: 12px !important;
  }

  .ag-card-verso a {
    font-weight: 700;
  }

  .ag-divisor {
    margin: 36px auto !important;
  }

  .ag-yebag h2 {
    font-size: 23px !important;
  }

  .ag-duvidas h2 {
    font-size: 30px;
  }
}

/* =========================================================
   7. SOBRE A YEB
========================================================= */
@media (max-width: 760px) {
  .so-hero {
    padding: 28px 0 36px !important;
  }

  .so-hero h1 {
    font-size: 34px !important;
  }

  .so-hero-lead {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
  }

  .so-hero-foto {
    min-height: 240px;
  }

  .so-secao {
    padding: 52px 0 !important;
  }

  .so-titulo {
    font-size: 27px !important;
  }

  .so-bloco {
    padding: 24px 20px !important;
  }

  .so-bloco p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .so-meta {
    padding: 56px 20px 24px !important;
  }

  .so-meta p {
    font-size: 17px !important;
  }

  /* Linha do tempo: no celular desliza com o dedo (sem prender a tela) */
  .so-linha-scroll,
  .so-linha-scroll.is-ativo {
    height: auto !important;
  }

  .so-linha-scroll.is-ativo .so-linha,
  .so-linha {
    position: relative !important;
    top: 0 !important;
    min-height: 0 !important;
    padding: 52px 0 !important;
  }

  .so-linha-topo {
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px !important;
  }

  .so-ano-grande {
    font-size: 110px !important;
    top: -20px !important;
  }

  .so-trilha {
    grid-auto-columns: 76% !important;
    gap: 12px !important;
    margin-right: -16px;
    padding-right: 16px !important;
  }

  .so-marco {
    padding: 20px 18px !important;
  }

  /* Valores: cards mais compactos */
  .so-valor {
    padding: 14px 16px !important;
  }

  .so-proposito {
    grid-template-columns: auto 1fr !important;
    gap: 14px !important;
    padding: 20px 18px !important;
  }

  .so-proposito-icone {
    width: 52px;
    height: 52px;
  }

  .so-proposito p {
    font-size: 17px !important;
  }

  .so-cabecalho .so-ambiente-texto {
    font-size: 15px !important;
    line-height: 1.6;
  }

  .so-time-rodape {
    margin-top: 28px !important;
    gap: 12px !important;
  }

  .so-topico {
    min-height: 240px !important;
    padding: 22px !important;
  }

  .so-topico-texto h3 {
    font-size: 22px !important;
  }
}

/* =========================================================
   8. CARREIRAS
========================================================= */
@media (max-width: 760px) {
  .sb-section {
    padding: 52px 0 !important;
  }

  .sb-heading h2 {
    font-size: 27px !important;
    line-height: 1.18 !important;
  }

  .in-hero h1 {
    font-size: 30px !important;
    line-height: 1.12 !important;
  }

  /* Topo de Carreiras: foto da equipe em cima (placa da Yeb + pessoas), texto abaixo no azul */
  .in-hero {
    align-items: flex-end;
    padding: 250px 0 44px !important;
  }

  .in-hero-img {
    inset: 0 0 auto 0 !important;
    height: 300px !important;
    object-position: 58% 42% !important;
  }

  .in-hero::after {
    background: linear-gradient(180deg,
      rgba(6, 22, 73, 0) 0,
      rgba(6, 22, 73, .1) 140px,
      rgba(6, 22, 73, .78) 230px,
      #061649 300px,
      #061649 100%) !important;
  }

  /* Benefícios: 2 colunas compactas (eram 8 cards altos empilhados) */
  .sb-pilares {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .sb-pilar {
    padding: 16px 14px !important;
  }

  .sb-pilar .sb-icone {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 12px !important;
  }

  .sb-pilar .sb-icone svg {
    width: 20px;
    height: 20px;
  }

  .sb-pilar h3 {
    margin-bottom: 4px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .sb-pilar p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .in-vagas-barra {
    gap: 12px !important;
  }

  .in-vaga {
    padding: 18px !important;
  }

  .in-vaga h3 {
    font-size: 18px !important;
  }

  .in-cta {
    padding: 26px 20px !important;
  }
}

/* =========================================================
   9. NEWSLETTERS
========================================================= */
@media (max-width: 760px) {
  .yeb-newsletters-hero-inner {
    padding: 28px 0 !important;
  }

  .yeb-newsletters-hero h1 {
    font-size: 34px !important;
  }

  .yeb-newsletters-grid {
    gap: 14px !important;
  }

  /* Cards sem o espaço vazio fixo */
  .yeb-newsletter-card-body {
    min-height: 0 !important;
    padding-bottom: 18px !important;
  }

  .yeb-newsletter-card-actions {
    margin-top: 0 !important;
  }

  .yeb-newsletters-benefits {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 22px 18px !important;
  }

  .yeb-newsletters-benefit-item {
    min-height: 0 !important;
  }

  /* Ícone do e-mail acima do texto (ao lado, espremia o título) */
  .yeb-newsletters-benefits-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .yeb-newsletters-mail-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  .yeb-newsletters-mail-icon svg {
    width: 26px;
  }

  .yeb-newsletters-tabs button {
    min-width: 0 !important;
    padding-left: 14px;
    padding-right: 14px;
    white-space: nowrap;
  }
}

/* Análises: no celular basta um espaço "Anuncie aqui" no fim da lista */
@media (max-width: 760px) {
  .yeb-analises-ad.small,
  .yeb-article-side-ad + .yeb-article-side-ad {
    display: none !important;
  }
}

/* =========================================================
   10. ANÚNCIOS, FORMULÁRIOS E RODAPÉ
========================================================= */
/* Tablet: formulário da home ocupa o card todo (ficava com 480px e recuo de 50px da RD) */
@media (max-width: 1100px) {
  .yeb-contact-form-slot [id^="rd-section"] {
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    background: transparent !important;
  }

  .yeb-contact-form-slot [id^="rd-column"] > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* A linha da RD tem máximo de 480px e fica centralizada */
  .yeb-contact-form-slot [id^="rd-row"],
  .yeb-contact-form-slot [id^="rd-column"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .yeb-contact-form-slot [id^="rd-column"] > div > div,
  .yeb-contact-form-slot [id^="rd-form"],
  .yeb-contact-form-slot form,
  .yeb-contact-form-slot [id^="rdstation-bricks-embeddable-form"],
  .yeb-contact-form-slot .bricks--component-embeddable-form,
  .yeb-contact-form-slot > div > section,
  .yeb-contact-form-slot > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Tablet também é toque: campos e botão com altura confortável */
  [id^="rd-form"] input[type="text"],
  [id^="rd-form"] input[type="email"],
  [id^="rd-form"] input[type="tel"],
  [id^="rd-form"] input[type="number"],
  [id^="rd-form"] select,
  [id^="rd-form"] .bricks-form__input {
    height: 46px !important;
    min-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 16px !important;
    line-height: 46px !important;
  }

  [id^="rd-form"] button,
  [id^="rd-button"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 50px !important;
    padding: 0 22px !important;
    line-height: 1.2 !important;
  }

  .yeb-contact-form-slot [id^="rd-button"] {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  /* Banner largo "Anuncie aqui": numa linha só (o ícone ficava cortado) */
  .yeb-anuncie-largo {
    flex-direction: row !important;
    gap: 12px !important;
    min-height: 72px;
    padding: 12px 14px !important;
    text-align: left !important;
  }

  .yeb-anuncie-largo .yeb-anuncie-icone {
    flex-shrink: 0;
  }

  .yeb-anuncie-largo .yeb-anuncie-texto {
    flex: 1;
    min-width: 0;
  }

  .yeb-anuncie-largo .yeb-anuncie-texto strong {
    font-size: 16px !important;
    white-space: nowrap;
  }

  .yeb-anuncie-largo .yeb-anuncie-texto span {
    display: none;
  }

  .yeb-anuncie-largo .yeb-anuncie-cta {
    padding: 7px 12px;
    font-size: 12px;
  }

  .yeb-prod-top-ad,
  .yeb-article-ad-slot,
  .yeb-ad-slot {
    height: auto !important;
    min-height: 72px;
  }

  /* Formulários da RD Station nunca passam da tela */
  [id^="rd-section"],
  [id^="rd-section"] *,
  .yeb-contact-form-slot,
  .yeb-contact-form-slot * {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  [id^="rd-section"] .bricks--column,
  [id^="rd-section"] .bricks--row,
  [id^="rd-section"] .bricks--section > div {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* A RD põe 50px de recuo de cada lado e uma caixa interna fixa de 360px */
  [id^="rd-column"] > div {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Dentro do card branco da home o card já tem recuo próprio */
  .yeb-contact-form-slot [id^="rd-column"] > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  [id^="rd-column"] > div > div {
    flex: 1 1 auto;
    width: 100% !important;
  }

  [id^="rd-form"] input,
  [id^="rd-form"] select,
  [id^="rd-form"] textarea {
    font-size: 16px !important; /* evita o zoom automático do iPhone */
  }

  /* Um campo por linha, largura toda (a RD punha Nome/E-mail e Empresa/Cargo lado a lado, estreitos) */
  [id^="rd-form"] .bricks-form__fieldset {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  [id^="rd-form"] .bricks-form__field {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 12px !important;
  }

  [id^="rd-form"] .bricks-form__field label,
  [id^="rd-form"] .bricks-form__label {
    margin-bottom: 4px !important;
    font-size: 14px !important;
  }

  /* Campos com altura confortável para o dedo (eram 33–36px) */
  [id^="rd-form"] input[type="text"],
  [id^="rd-form"] input[type="email"],
  [id^="rd-form"] input[type="tel"],
  [id^="rd-form"] input[type="number"],
  [id^="rd-form"] select,
  [id^="rd-form"] .bricks-form__input {
    height: 46px !important;
    min-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 46px !important;
  }

  [id^="rd-form"] textarea {
    min-height: 96px !important;
    line-height: 1.4 !important;
  }

  [id^="rd-form"] .phone-input-group {
    display: flex !important;
    align-items: stretch;
    width: 100% !important;
  }

  [id^="rd-form"] .phone-input-group input[type="tel"] {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Botão de envio: texto centralizado (antes descia para fora) e altura de toque */
  [id^="rd-form"] button,
  [id^="rd-button"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 50px !important;
    padding: 0 18px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  /* Home: o formulário já fica num card branco; sem a 2ª borda da RD em volta */
  .yeb-contact-form-slot [id^="rd-section"] {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .yeb-contact-form-slot [id^="rd-form"] {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .yeb-contact-form-slot {
    min-height: 0 !important;
  }

  .yeb-contact-form-title br {
    display: none;
  }

  /* Rodapé: Institucional e Notícias lado a lado; links com área de toque maior */
  .yeb-footer .yeb-footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px 18px !important;
    padding: 36px 0 28px !important;
  }

  .yeb-footer-brand,
  .yeb-footer-contact {
    grid-column: 1 / -1;
  }

  .yeb-footer-brand img {
    width: 110px;
  }

  .yeb-footer-brand-text {
    max-width: 320px;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .yeb-footer-links {
    gap: 2px !important;
  }

  .yeb-footer-links a {
    display: flex;
    align-items: center;
    min-height: 34px;
    font-size: 14px !important;
  }

  .yeb-footer-links small {
    display: none;
  }

  .yeb-footer-contact p {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
  }

  .yeb-footer-copy {
    padding: 16px 16px 20px !important;
    font-size: 12px !important;
    line-height: 1.5;
  }
}
