/*
 * Visual novo (v2): cabeçalho, menu Entrar, busca do celular, menu lateral, rodapé e newsletter — todas as páginas.
 * Carregado só quando "Visual novo (v2)" está ligado (functions/visual-v2.php), depois do style.css, dflt.css e
 * cstm.css. Nada daqueles arquivos é editado: as regras aqui valem sob body.ea-v2 e sobrescrevem as antigas.
 * A marcação e o JavaScript continuam os mesmos (mobile-menu-active, .abre, .mostra); muda só a aparência.
 *
 * Cores: as de cada site (--cor-primaria e --cor-segundaria das Opções do Tema). Os tons --ea-* são derivados delas.
 */

/* ---------------------------------------------------------------- fonte (peso 500 da Roboto, arquivo variável) */
@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Roboto Medium'), local('Roboto-Medium'), url(../fonts/google/roboto.woff2) format('woff2');
}

/* ---------------------------------------------------------------- tokens (claro) */
body.ea-v2 {
    --ea-cor1: rgb(var(--cor-primaria));
    --ea-cor1-texto: rgb(var(--cor-primaria-texto));
    --ea-cor2: rgb(var(--cor-segundaria));
    --ea-cor2-texto: rgb(var(--cor-segundaria-texto));
    --ea-branco: var(--branco);
    --ea-superficie: #fefefe;
    --ea-quase-branco: var(--quase-branco);
    --ea-meio-preto: var(--meio-preto);
    --ea-texto-sobre-cor: var(--texto-sobre-cor);
    --ea-texto-forte: #222222;
    --ea-texto: #444444;
    --ea-texto-suave: #5f6670;
    --ea-borda-controle: #8a929c;
    /* derivados da cor de cada site */
    --ea-laranja-texto: var(--ea-cor2);
    --ea-marca-laranja: var(--ea-cor2-texto); /* a cor secundária do site, como no logo antigo */
    --ea-texto-sobre-laranja: var(--ea-cor1);
    --ea-foco: var(--ea-cor1-texto);
    --ea-foco-sobre-cor: var(--ea-cor2);
    --ea-cor-rodape: var(--ea-cor1);
    --ea-rodape-direitos: var(--ea-cor-rodape); /* faixa de direitos na cor do rodapé (antes laranja) */
    --ea-texto-direitos: rgba(255, 255, 255, .88);
    --ea-sobreposicao-banner: rgba(27, 26, 70, 0.62);
    --ea-foto-ausente: #eef1f4;
    --ea-anuncio-fundo: #f6f9fa;
    --ea-sombra: var(--sombra);
    --ea-sombra-card: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --ea-sombra-menu: 0 12px 32px rgba(16, 24, 40, .18);
    --ea-esp-1: 4px;
    --ea-esp-2: 8px;
    --ea-esp-3: 12px;
    --ea-esp-4: 16px;
    --ea-esp-5: 24px;
    --ea-esp-6: 32px;
    --ea-esp-7: 48px;
    --ea-esp-8: 64px;
    --ea-raio-sm: 4px;
    --ea-raio-md: 8px;
    --ea-raio-lg: 12px;
    --ea-raio-pill: 999px;
    --ea-largura-conteudo: 1140px;
    --ea-font-sans: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --ea-font-marca: Impact, fonteencontra, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

/* Laranja legível como texto (ícones, aspas) e laranja da marca sobre branco: a cor secundária escurecida. */
@supports (color: color-mix(in srgb, red, blue)) {
    body.ea-v2 {
        --ea-laranja-texto: color-mix(in srgb, var(--ea-cor2) 68%, #000);
        --ea-sobreposicao-banner: color-mix(in srgb, var(--ea-cor1) 62%, transparent);
    }
}

/* ---------------------------------------------------------------- tokens (escuro)
   Tom do modelo do novo layout: azul-marinho quase preto. As variáveis base do escuro.css (--branco, --superficie...)
   também mudam aqui, só com o v2 ligado, para o resto do tema (style.css) acompanhar sem editar o escuro.css. */
@media (prefers-color-scheme: dark) {
    body.ea-v2 {
        --branco: #191823;          /* fundo da página */
        --preto: #f5f1ff;           /* texto */
        --superficie: #232233;      /* cartões */
        --quase-branco: #302945;    /* caixas leves */
        --meio-preto: #3c3950;      /* bordas e divisórias */
        --ea-superficie: #232233;
        --ea-quase-branco: #302945;
        --ea-meio-preto: #3c3950;
        --ea-texto-forte: #f5f1ff;
        --ea-texto: #e4dff0;
        --ea-texto-suave: #c3bed2;
        --ea-borda-controle: #6f6a88;
        --ea-laranja-texto: #ffc46b;
        --ea-marca-laranja: var(--ea-cor2-texto);
        --ea-texto-sobre-laranja: #1d1c4a;
        --ea-foco: var(--ea-cor1-texto);
        --ea-foco-sobre-cor: var(--ea-cor2-texto);
        --ea-cor-rodape: #211d43;
        --ea-rodape-direitos: var(--ea-cor-rodape);
        --ea-texto-direitos: rgba(255, 255, 255, .88);
        --ea-sobreposicao-banner: rgba(10, 20, 24, .66);
        --ea-foto-ausente: #151329;
        --ea-anuncio-fundo: #232233;
        --ea-sombra: 0 4px 16px rgba(0, 0, 0, .45);
        --ea-sombra-card: 0 1px 2px rgba(0, 0, 0, .3);
        --ea-sombra-menu: 0 12px 32px rgba(0, 0, 0, .6);
    }
}

/* ---------------------------------------------------------------- base */
body.ea-v2 #cabecalho,
body.ea-v2 #secondary-navigation,
body.ea-v2 #site-footer {
    font-family: var(--ea-font-sans);
}

body.ea-v2 .ea-ico {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.125em;
}

body.ea-v2 .ea-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body.ea-v2 #cabecalho :focus-visible,
body.ea-v2 #secondary-navigation :focus-visible {
    outline: 2px solid var(--ea-foco);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    body.ea-v2 #cabecalho *,
    body.ea-v2 #secondary-navigation *,
    body.ea-v2 #site-footer * {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------------------------------------------------------------- cabeçalho: barra branca (rola com a página, não fica
   fixa no topo). Fica acima do véu do menu (z-index 49), para o X e a busca continuarem à mão com o menu aberto. */
body.ea-v2 #cabecalho.main-header,
body.ea-v2 #cabecalho.main-header.nav.navbar-default {
    position: relative;
    top: auto;
    z-index: 50;
    max-width: none;
    margin: 0;
    background: var(--ea-branco);
    background-image: none;
    border: 0;
    border-top: 0;
    border-bottom: 1px solid var(--ea-meio-preto);
    border-radius: 0;
    box-shadow: none;
    filter: none;
}

/* No escuro a barra fica um tom acima do fundo da página, como no modelo. */
@media (prefers-color-scheme: dark) {
    body.ea-v2 #cabecalho.main-header,
    body.ea-v2 #cabecalho.main-header.nav.navbar-default {
        background: var(--ea-superficie);
    }
}

body.ea-v2 #cabecalho #catcher {
    display: none;
}

/*
 * Alinhamento do cabeçalho:
 * - home (todas as larguras) e celular (até 865px, todas as páginas): eixo do v2 (1140px) e barra em flex;
 * - páginas internas a partir de 866px: o mesmo contêiner e a mesma grade do visual antigo (proporções do
 *   cstm.css de cada site), alinhados com o corpo: menu na borda da coluna principal, busca até o fim dela e
 *   "Entrar" no fim da coluna lateral.
 */
body.ea-v2.ea-inicio #cabecalho > .container {
    width: 100%;
    max-width: calc(var(--ea-largura-conteudo) + 2 * var(--ea-esp-5));
    margin: 0 auto;
    padding: 0 var(--ea-esp-4);
}

body.ea-v2.ea-inicio #cabecalho > .container > .row {
    margin: 0;
}

body.ea-v2.ea-inicio #cabecalho #header {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--ea-esp-3);
    height: 56px;
    padding: 0;
    grid-template-columns: none;
    grid-template-areas: none;
    justify-items: normal;
}

@media (min-width: 768px) {
    body.ea-v2.ea-inicio #cabecalho > .container {
        padding: 0 var(--ea-esp-5);
    }

    body.ea-v2.ea-inicio #cabecalho #header {
        height: 64px;
        gap: var(--ea-esp-4);
    }
}

@media (max-width: 865px) {
    body.ea-v2:not(.ea-inicio) #cabecalho > .container {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 0 var(--ea-esp-4);
    }

    body.ea-v2:not(.ea-inicio) #cabecalho > .container > .row {
        margin: 0;
    }

    body.ea-v2:not(.ea-inicio) #cabecalho #header {
        position: relative;
        display: flex;
        align-items: center;
        gap: var(--ea-esp-3);
        height: 56px;
        padding: 0;
        grid-template-columns: none;
        grid-template-areas: none;
        justify-items: normal;
    }
}

@media (min-width: 768px) and (max-width: 865px) {
    body.ea-v2:not(.ea-inicio) #cabecalho > .container {
        padding: 0 var(--ea-esp-5);
    }

    body.ea-v2:not(.ea-inicio) #cabecalho #header {
        height: 64px;
        gap: var(--ea-esp-4);
    }
}

/* páginas internas no computador: grade antiga (colunas do cstm.css), cada item ocupa a sua coluna */
@media (min-width: 866px) {
    body.ea-v2:not(.ea-inicio) #cabecalho #header {
        position: relative;
        display: grid;
        align-items: center;
        height: 64px;
        padding: 0;
    }

    body.ea-v2:not(.ea-inicio) #cabecalho .searchform {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    body.ea-v2:not(.ea-inicio) #cabecalho #logar {
        justify-self: end;
        margin: 0 -7px 0 0; /* o texto termina junto com a coluna lateral (que fica 5px antes do fim da grade) */
    }
}

/* botão do menu (#pull): o mesmo SVG animado, agora na cor do texto azul */
body.ea-v2 #cabecalho .links-menu-mobile {
    display: block;
    flex: none;
    width: auto;
    margin-left: calc(-1 * var(--ea-esp-3));
    grid-area: auto;
}

body.ea-v2 #cabecalho #pull {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--ea-raio-sm);
    color: var(--ea-cor1-texto);
}

body.ea-v2 #cabecalho #pull:hover {
    background: var(--ea-quase-branco);
}

body.ea-v2 #cabecalho #pull svg {
    width: 36px;
    height: 36px;
}

body.ea-v2 #cabecalho #pull .line {
    stroke: currentColor;
}

/* marca */
body.ea-v2 #cabecalho .logo-wrap {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    text-align: left;
    line-height: normal;
    grid-area: auto;
}

body.ea-v2 #cabecalho .logo-wrap h1 {
    margin: 0;
    font-size: inherit;
    line-height: 1;
    font-weight: inherit;
}

body.ea-v2 #cabecalho .logo-wrap #logo {
    position: static;
    left: auto;
    display: inline-block;
    font-family: var(--ea-font-marca);
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    color: var(--ea-cor1-texto) !important;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0;
}

body.ea-v2 #cabecalho .logo-wrap #logo span {
    color: var(--ea-marca-laranja);
}

@media (min-width: 768px) {
    body.ea-v2 #cabecalho .logo-wrap #logo {
        font-size: 28px;
        /* as maiúsculas do Impact ficavam ~1px abaixo do meio do botão do menu, e a perna do "p" (Apucarana...) puxava o
           olho mais para baixo: ~2px acima (proporcional à letra: 2px com 28px, 1,4px com 20px), o nome fica no meio do menu */
        transform: translateY(-.07em);
    }
}

/* botão de notícias (functions/tema-escolha.php): só no celular */
body.ea-v2 #cabecalho .ea-cab-noticias {
    display: none;
}

/* Celular: menu + notícias (esquerda), o nome no meio, busca + Entrar (direita), todos na mesma linha (centro vertical).
   Botões de 40px colados dois a dois; os das pontas encostam a área de toque na margem (o ícone fica alinhado ao
   conteúdo). O Entrar mostra só o ícone (ou a foto de quem está logado) e abre o mesmo menu do computador
   (Cadastrar empresa, Criar conta...).
   O nome ocupa o que sobra: 100vw - 32px (margens) - 160px (4 botões) + 20px (pontas) - 12px (folga do nome) - 2px =
   100vw - 186px, e "Encontra Cidade" tem ~10 vezes a altura da letra de largura. Vai de 15px (telas de 320px) a 30px;
   se um nome de cidade muito longo ainda não couber, é cortado com "…". */
@media (max-width: 767px) {
    body.ea-v2.ea-inicio #cabecalho #header,
    body.ea-v2:not(.ea-inicio) #cabecalho #header {
        gap: 0;
    }

    body.ea-v2 #cabecalho .links-menu-mobile {
        order: 0;
        margin-left: -10px;
    }

    body.ea-v2 #cabecalho #pull {
        width: 40px;
        height: 40px;
    }

    body.ea-v2 #cabecalho #pull svg {
        width: 34px;
        height: 34px;
    }

    body.ea-v2 #cabecalho .ea-cab-noticias {
        order: 1;
        flex: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--ea-raio-sm);
        color: var(--ea-cor1-texto);
        text-decoration: none;
    }

    body.ea-v2 #cabecalho .ea-cab-noticias:hover {
        background: var(--ea-quase-branco);
    }

    body.ea-v2 #cabecalho .ea-cab-noticias .ea-ico {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.ea-v2 #cabecalho .logo-wrap {
        order: 2;
        flex: 1 1 auto;
        align-self: center;
        margin: 0 6px;
        overflow: hidden;
        text-align: center;
    }

    body.ea-v2 #cabecalho .logo-wrap #logo {
        display: block;
        max-width: 100%;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(15px, calc((100vw - 186px) / 10.2), 30px);
        line-height: 1.15; /* um pouco de folga: o Impact não fica cortado em cima/embaixo pelo overflow */
    }
    /* busca e Entrar do celular: mais abaixo, depois das regras deles (lupa do celular / Entrar) */
}

/* busca do topo (computador): Google CSE ___gcse_0 compacto, entre a marca e o Entrar */
body.ea-v2 #cabecalho .searchform {
    display: block;
    visibility: visible;
    position: static;
    top: auto;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 480px;
    max-height: none;
    margin: 0 var(--ea-esp-3);
}

@media (min-width: 1024px) {
    body.ea-v2 #cabecalho .searchform {
        margin: 0 var(--ea-esp-5);
    }
}

body.ea-v2 #cabecalho .searchform form.gsc-search-box,
body.ea-v2 #formulario_pesquisa form.gsc-search-box {
    margin: 0 !important;
}

body.ea-v2 #cabecalho table.gsc-search-box {
    border: 1px solid var(--ea-borda-controle);
    border-radius: var(--ea-raio-md);
    border-collapse: separate;
    background: var(--ea-branco);
    overflow: hidden;
    margin: 0 !important;
}

body.ea-v2 #cabecalho table.gsc-search-box:focus-within {
    outline: 2px solid var(--ea-foco);
    outline-offset: 2px;
}

/* altura do campo = altura do logo (28px + 1px de borda em cima e embaixo) */
body.ea-v2 #cabecalho .gsc-input-box {
    height: 28px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 var(--ea-esp-3) !important;
    display: flex;
    align-items: center;
}

/* A lupa do Google é só um fundo da célula do campo (.gsib_a; no escuro, a do escuro.css): parece botão mas não é
   clicável (no celular confundia). No v2 ela sai; o texto começa no início do campo. */
body.ea-v2 #cabecalho .gsib_a,
body.ea-v2 #formulario_pesquisa .gsib_a,
body.ea-v2 #home_formulario_pesquisa .gsib_a {
    padding: 0 8px 0 4px !important;
    background-image: none !important;
}

body.ea-v2 #cabecalho .gsib_b {
    height: auto !important;
    padding: 0 !important;
}

body.ea-v2 #cabecalho input.gsc-input {
    background: transparent !important;
    font: 400 15px/20px var(--ea-font-sans) !important;
    color: var(--ea-texto-forte) !important;
}

body.ea-v2 #cabecalho td.gsc-search-button {
    padding: 0 !important;
}

body.ea-v2 #cabecalho .gsc-search-button-v2 {
    height: 32px;
    margin: 4px !important;
    padding: 0 var(--ea-esp-3) !important;
    border: 0 !important;
    border-radius: var(--ea-raio-sm) !important;
    background-color: var(--ea-cor2) !important;
    cursor: pointer;
}

body.ea-v2 #cabecalho .gsc-search-button-v2 svg {
    fill: var(--ea-texto-sobre-laranja) !important;
}

/* Entrar (#logar) e o menu dele (#header_logar) */
body.ea-v2 #cabecalho #logar {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: var(--ea-esp-2);
    min-height: 44px;
    margin: 0 0 0 auto;
    padding: 0 var(--ea-esp-3);
    border: 0;
    border-radius: var(--ea-raio-pill);
    background: none;
    color: var(--ea-cor1-texto);
    font: 500 15px/20px var(--ea-font-sans);
    cursor: pointer;
}

body.ea-v2 #cabecalho #logar:hover,
body.ea-v2 #cabecalho #logar[aria-expanded="true"] {
    background: var(--ea-quase-branco);
}

body.ea-v2 #cabecalho #logar :where(.fa, .fa-solid) {
    font-size: 22px;
    color: inherit;
}

body.ea-v2 #cabecalho #logar :where(.fa, .fa-solid).colore {
    color: var(--ea-laranja-texto);
}

body.ea-v2 #cabecalho #logar .so_desktop {
    font-size: 15px;
    vertical-align: baseline;
}

body.ea-v2 #cabecalho #logar img {
    width: 30px;
    height: 30px;
    position: static;
}

body.ea-v2 #cabecalho #header #header_logar {
    display: none;
    position: absolute;
    top: calc(100% + var(--ea-esp-2));
    right: 0;
    left: auto;
    width: auto;
    min-width: 220px;
    max-width: calc(100vw - 2 * var(--ea-esp-4));
    max-height: none;
    height: auto;
    overflow: visible;
    padding: var(--ea-esp-2) 0;
    background: var(--ea-branco);
    border: 1px solid var(--ea-meio-preto);
    border-radius: var(--ea-raio-md);
    box-shadow: var(--ea-sombra-menu);
    z-index: 55;
}

body.ea-v2 #cabecalho #header #header_logar.abre {
    display: block;
    max-height: none;
    padding: var(--ea-esp-2) 0;
}

body.ea-v2 #cabecalho #header #header_logar .member_link {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.ea-v2 #cabecalho #header #header_logar .member_link li {
    margin: 0;
}

body.ea-v2 #cabecalho #header #header_logar .member_link a {
    display: flex;
    align-items: center;
    gap: var(--ea-esp-3);
    min-height: 44px;
    padding: 0 var(--ea-esp-4);
    color: var(--ea-texto-forte) !important;
    font: 500 15px/20px var(--ea-font-sans);
    text-decoration: none;
    white-space: nowrap;
}

body.ea-v2 #cabecalho #header #header_logar .member_link a :where(.fa, .fa-solid, .fa-regular) {
    width: 1.25em;
    text-align: center;
    color: var(--ea-cor1-texto);
}

body.ea-v2 #cabecalho #header #header_logar .member_link a:hover {
    background: var(--ea-quase-branco);
    color: var(--ea-cor1-texto) !important;
}

body.ea-v2 #cabecalho #header #header_logar .member_link a:focus-visible {
    outline-offset: -2px;
}

/* lupa do celular (#pesquisar) e a linha de busca (#formulario_pesquisa) */
body.ea-v2 #cabecalho #pesquisar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 calc(-1 * var(--ea-esp-3)) 0 0;
    padding: 0;
    border: 0;
    border-radius: var(--ea-raio-sm);
    background: none;
    position: static;
    grid-area: auto;
}

body.ea-v2 #cabecalho #pesquisar[aria-expanded="true"],
body.ea-v2 #cabecalho #pesquisar:hover {
    background: var(--ea-quase-branco);
}

body.ea-v2 #cabecalho .search-icon {
    width: 26px;
    height: 26px;
    transform: scale(.87);
}

body.ea-v2 #cabecalho .search-line {
    background: var(--ea-cor1-texto);
}

body.ea-v2 #cabecalho .search-circle {
    border-color: var(--ea-cor1-texto);
}

body.ea-v2 #cabecalho #formulario_pesquisa {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--ea-esp-4));
    right: calc(-1 * var(--ea-esp-4));
    width: auto;
    height: auto;
    display: block;
    padding: 0 var(--ea-esp-4);
    background: var(--ea-branco);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    z-index: 49;
}

body.ea-v2 #cabecalho #formulario_pesquisa.mostra {
    padding: var(--ea-esp-2) var(--ea-esp-4) var(--ea-esp-3);
    border-bottom: 1px solid var(--ea-meio-preto);
    box-shadow: var(--ea-sombra-card);
}

body.ea-v2.ea-inicio #cabecalho #formulario_pesquisa {
    top: 100%;
}

/* As duas buscas estão sempre no HTML do v2 (header.php): pela largura da tela, a partir de 768px o campo do
   computador (.searchform) e até 767px a lupa (#pesquisar) com a linha que abre (#formulario_pesquisa). Assim o
   cabeçalho muda ao redimensionar a janela, sem recarregar a página. */
@media (min-width: 768px) {
    body.ea-v2 #cabecalho #header #pesquisar,
    body.ea-v2 #cabecalho #header #formulario_pesquisa {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body.ea-v2 #cabecalho #header .searchform {
        display: none !important;
    }
}

/* Celular (continuação do bloco do cabeçalho do celular, mais acima): busca e Entrar à direita, botões de 40px */
@media (max-width: 767px) {
    body.ea-v2 #cabecalho #pesquisar {
        order: 3;
        width: 40px;
        height: 40px;
        margin: 0;
    }

    body.ea-v2 #cabecalho #logar,
    body.ea-v2 #cabecalho .ea-cab-acoes {
        order: 4;
    }

    body.ea-v2 #cabecalho #logar {
        justify-content: center;
        width: 40px;
        min-height: 40px;
        height: 40px;
        margin: 0 -10px 0 0;
        padding: 0;
        border-radius: var(--ea-raio-sm);
    }

    body.ea-v2 #cabecalho #logar .so_desktop {
        display: none;
    }

    body.ea-v2 #cabecalho #logar :where(.fa, .fa-solid) {
        font-size: 24px;
    }

    body.ea-v2 #cabecalho #logar img {
        width: 28px;
        height: 28px;
        border-radius: 50%;
    }

    /* menu do Entrar: abre logo abaixo da barra, alinhado à direita da tela */
    body.ea-v2 #cabecalho #header #header_logar {
        top: 100%;
        right: -10px;
    }
}

body.ea-v2 #formulario_pesquisa #___gcse_0,
body.ea-v2 #formulario_pesquisa.mostra #___gcse_0 {
    width: 100%;
}

body.ea-v2 #formulario_pesquisa table.gsc-search-box {
    border: 1px solid var(--ea-borda-controle);
    border-radius: var(--ea-raio-lg);
    border-collapse: separate;
    background: var(--ea-branco);
    overflow: hidden;
}

body.ea-v2 #formulario_pesquisa .gsc-input-box {
    height: 40px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 var(--ea-esp-3) !important;
    display: flex;
    align-items: center;
}

body.ea-v2 #formulario_pesquisa input.gsc-input {
    background: transparent !important;
    font: 400 16px/20px var(--ea-font-sans) !important;
    color: var(--ea-texto-forte) !important;
}

body.ea-v2 #formulario_pesquisa .gsc-search-button-v2 {
    height: 32px;
    width: auto !important;
    margin: 4px !important;
    padding: 0 var(--ea-esp-3) !important;
    border: 0 !important;
    border-radius: var(--ea-raio-sm) !important;
    background-color: var(--ea-cor2) !important;
}

body.ea-v2 #formulario_pesquisa .gsc-search-button-v2 svg {
    fill: var(--ea-texto-sobre-laranja) !important;
}

body.ea-v2 #formulario_pesquisa td.gsc-search-button {
    width: auto !important;
    padding: 0 !important;
}

/* ---------------------------------------------------------------- menu (#pull): como antes, abre logo abaixo do
   botão (lista que desce, alinhada à esquerda do conteúdo), agora num cartão branco com cantos arredondados.
   O #secondary-navigation vem logo depois do cabeçalho, com altura 0: o menu fica por cima da página. */
/* Sem z-index aqui (não cria camada própria): o véu (#mobile-menu-overlay, que fica dentro deste bloco) e o menu
   disputam com o cabeçalho na página toda: véu 49 < cabeçalho 50 < menu 60. */
body.ea-v2 #secondary-navigation {
    position: relative;
    z-index: auto;
    height: 0;
}

/* mesmo eixo do cabeçalho na home e no celular (nas páginas internas do computador os dois já usam o .container) */
body.ea-v2.ea-inicio #secondary-navigation {
    width: 100%;
    max-width: calc(var(--ea-largura-conteudo) + 2 * var(--ea-esp-5));
    margin: 0 auto;
    padding: 0 var(--ea-esp-4);
}

@media (min-width: 768px) {
    body.ea-v2.ea-inicio #secondary-navigation {
        padding: 0 var(--ea-esp-5);
    }
}

@media (max-width: 865px) {
    body.ea-v2:not(.ea-inicio) #secondary-navigation {
        width: 100%;
        max-width: none;
        padding: 0 var(--ea-esp-4);
    }
}

body.ea-v2 #secondary-navigation .navigation.mobile-only,
body.ea-v2 #secondary-navigation #menu-desktop {
    position: absolute;
    top: var(--ea-esp-2);
    left: auto; /* fica onde estaria na página: na borda esquerda do conteúdo, embaixo do botão do menu */
    right: auto;
    bottom: auto;
    z-index: 60;
    width: min(320px, calc(100vw - 2 * var(--ea-esp-4)));
    max-width: none;
    height: auto;
    max-height: calc(100vh - 96px);
    margin: 0;
    padding: var(--ea-esp-2) 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--ea-superficie);
    border: 1px solid var(--ea-meio-preto);
    border-radius: var(--ea-raio-md);
    box-shadow: var(--ea-sombra-menu);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease-out, transform .16s ease-out, visibility 0s linear .16s;
    animation: none;
    flex-direction: column;
}

/* computador: o cartão começa na borda esquerda do botão do menu (o botão fica 12px antes do conteúdo, para o ícone
   alinhar com ele) */
@media (min-width: 768px) {
    body.ea-v2 #secondary-navigation .navigation.mobile-only,
    body.ea-v2 #secondary-navigation #menu-desktop {
        margin-left: calc(-1 * var(--ea-esp-3));
    }
}

body.ea-v2.mobile-menu-active #secondary-navigation .navigation.mobile-only,
body.ea-v2.mobile-menu-active #secondary-navigation #menu-desktop {
    top: var(--ea-esp-2);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .16s ease-out, transform .16s ease-out, visibility 0s linear 0s;
}

body.ea-v2 #secondary-navigation .navigation ul {
    list-style: none;
    margin: 0 !important;
    padding: 0;
}

body.ea-v2 #secondary-navigation .navigation ul li,
body.ea-v2 #secondary-navigation .navigation ul li:not(.widget ul li:last-child),
body.ea-v2 #secondary-navigation #menu-desktop li:not(#cadastre):not(#sair) {
    width: 100%;
    margin: 0;
    border: 0;
    line-height: 20px;
    position: relative;
    float: none;
}

body.ea-v2 #secondary-navigation .navigation ul li a,
body.ea-v2 #secondary-navigation .navigation.mobile-only ul li a,
body.ea-v2 #secondary-navigation #menu-desktop li a {
    display: flex;
    align-items: center;
    gap: var(--ea-esp-3);
    min-height: 48px;
    width: 100%;
    padding: 0 var(--ea-esp-4);
    color: var(--ea-texto-forte) !important;
    font: 500 15px/20px var(--ea-font-sans);
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    background: none;
    text-align: left;
    grid-template-columns: none;
}

body.ea-v2 #secondary-navigation .navigation ul li a :where(.fa, .fa-solid, .fa-regular) {
    position: static;
    top: auto;
    width: 1.25em;
    text-align: center;
    color: var(--ea-cor1-texto);
}

body.ea-v2 #secondary-navigation .navigation ul li a:hover {
    background: var(--ea-quase-branco);
    color: var(--ea-cor1-texto) !important;
}

body.ea-v2 #secondary-navigation .navigation ul li a:focus-visible {
    outline-offset: -2px;
}

body.ea-v2 #secondary-navigation .navigation ul .current-menu-item > a,
body.ea-v2 #secondary-navigation .navigation ul li a[aria-current="page"] {
    background: none;
    color: var(--ea-cor1-texto) !important;
    box-shadow: inset 3px 0 0 var(--ea-cor2);
}

/* divisória entre o menu do site e os links da conta (o widget member_link), como os dois grupos que já existem */
body.ea-v2 #secondary-navigation .navigation .widget {
    margin: var(--ea-esp-2) 0 0;
    padding: var(--ea-esp-2) 0 0;
    border-top: 1px solid var(--ea-meio-preto);
}

body.ea-v2 #secondary-navigation .navigation ul .sub-menu,
body.ea-v2 #secondary-navigation .navigation ul .children {
    padding-left: var(--ea-esp-5);
}

body.ea-v2 #secondary-navigation .navigation ul li .toggle-caret {
    position: absolute;
    right: var(--ea-esp-2);
    top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--ea-texto-suave);
    cursor: pointer;
}

/* véu sobre a página com o menu aberto (clicar nele fecha); o cabeçalho fica por cima, com o X à mão */
body.ea-v2 #mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 49;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-image: none;
}

body.ea-v2 .links-menu-mobile.opened {
    z-index: auto;
}

/* ---------------------------------------------------------------- rodapé */
body.ea-v2 #site-footer {
    background: var(--ea-cor-rodape);
    background-image: none;
    color: var(--ea-texto-sobre-cor);
}

body.ea-v2 #site-footer .footer-widgets {
    padding: var(--ea-esp-7) 0;
}

/* Largura do rodapé: como o cabeçalho. Na home, o eixo das seções (1140px); nas páginas internas a partir de
   866px, o mesmo contêiner do corpo (o do visual antigo), alinhado com a coluna principal e a lateral. */
body.ea-v2.ea-inicio #site-footer .container {
    width: 100%;
    max-width: calc(var(--ea-largura-conteudo) + 2 * var(--ea-esp-5));
    margin: 0 auto;
    padding: 0 var(--ea-esp-4);
}

@media (min-width: 768px) {
    body.ea-v2.ea-inicio #site-footer .container {
        padding: 0 var(--ea-esp-5);
    }
}

@media (max-width: 865px) {
    body.ea-v2:not(.ea-inicio) #site-footer .container {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 0 var(--ea-esp-4);
    }
}

@media (min-width: 768px) and (max-width: 865px) {
    body.ea-v2:not(.ea-inicio) #site-footer .container {
        padding: 0 var(--ea-esp-5);
    }
}

/* o corpo antigo começa 7px antes e termina 3px depois do recuo do contêiner: o rodapé acompanha. Nas páginas do
   layout novo (.ea-pagina-v2: empresa, categoria, notícias, busca...), os cartões ficam no recuo do contêiner, e o
   rodapé também (sem os -7px/-3px). A home (.ea-inicio) tem regra própria. */
@media (min-width: 866px) {
    body.ea-v2:not(.ea-inicio):not(.ea-pagina-v2) #site-footer .footer-widgets .row {
        margin: 0 -3px 0 -7px;
    }
}

body.ea-v2 #site-footer .footer-widgets .row {
    display: grid;
    gap: var(--ea-esp-6);
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
}

body.ea-v2 #site-footer .footer-widgets .row::before,
body.ea-v2 #site-footer .footer-widgets .row::after {
    display: none;
}

@media (min-width: 768px) {
    body.ea-v2 #site-footer .footer-widgets .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    body.ea-v2 #site-footer .widgets-num-3 .row {
        grid-template-columns: 1.3fr 1fr 1.2fr;
        gap: var(--ea-esp-7);
    }

    body.ea-v2 #site-footer .widgets-num-4 .row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--ea-esp-6);
    }
}

body.ea-v2 #site-footer .f-widget,
body.ea-v2 #site-footer .widgets-num-3 .f-widget-1,
body.ea-v2 #site-footer .widgets-num-3 .f-widget-2,
body.ea-v2 #site-footer .widgets-num-3 .f-widget-3,
body.ea-v2 #site-footer .widgets-num-2 .f-widget {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    min-width: 0;
    border: 0;
    color: var(--ea-texto-sobre-cor);
}

body.ea-v2 #site-footer .f-widget .widget + .widget {
    margin-top: var(--ea-esp-4);
}

body.ea-v2 #site-footer .f-widget h3,
body.ea-v2 #site-footer .f-widget h3.widget-title {
    display: block;
    width: auto;
    margin: 0 0 var(--ea-esp-3);
    font: 700 16px/22px var(--ea-font-sans);
    text-transform: none;
    letter-spacing: 0;
    color: var(--ea-texto-sobre-cor) !important;
}

/* título com a marca ("Encontra <span>Cidade</span>"): letra da marca, sem caixa alta */
body.ea-v2 #site-footer .f-widget h3:has(> span),
body.ea-v2 #site-footer .f-widget h3.widget-title:has(> span) {
    font: 400 22px/26px var(--ea-font-marca);
    letter-spacing: .01em;
}

body.ea-v2 #site-footer .f-widget h3::after {
    content: "";
    display: block;
    position: static;
    width: 32px;
    height: 3px;
    margin-top: var(--ea-esp-2);
    border-radius: 2px;
    background: var(--ea-cor2-texto);
}

body.ea-v2 #site-footer .f-widget h3 span {
    color: var(--ea-cor2-texto) !important;
}

body.ea-v2 #site-footer .f-widget p,
body.ea-v2 #site-footer .f-widget li {
    margin: 0 0 var(--ea-esp-3);
    font: 400 14px/22px var(--ea-font-sans);
    color: var(--ea-texto-sobre-cor);
}

body.ea-v2 #site-footer .f-widget p a,
body.ea-v2 #site-footer .f-widget a,
body.ea-v2 #site-footer .f-widget .links-rapidos a {
    font-size: 14px;
    color: var(--ea-texto-sobre-cor) !important;
}

body.ea-v2 #site-footer .f-widget a:hover {
    color: var(--ea-cor2-texto) !important;
}

body.ea-v2 #site-footer .links-rapidos p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ea-esp-2);
}

body.ea-v2 #site-footer .links-rapidos :where(.fa, .fa-solid, .fa-regular) {
    width: 1.25em;
    text-align: center;
    color: var(--ea-cor2-texto);
}

body.ea-v2 #site-footer .links-rapidos p a[style] {
    margin-left: 0 !important;
}

body.ea-v2 #site-footer :focus-visible {
    outline: 2px solid var(--ea-foco-sobre-cor);
    outline-offset: 2px;
}

/* ícones sociais: círculos de 44px */
body.ea-v2 #site-footer .social-profile-icons ul {
    display: flex;
    gap: var(--ea-esp-2);
    margin: var(--ea-esp-4) 0 0;
    padding: 0;
}

body.ea-v2 #site-footer .social-profile-icons ul li {
    margin: 0;
}

body.ea-v2 #site-footer .social-profile-icons ul li a,
body.ea-v2 #site-footer .social-profile-icons ul li[class^="social-"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    top: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: var(--ea-raio-pill);
    background: transparent;
    box-shadow: none;
    color: var(--ea-texto-sobre-cor) !important;
    font-size: 17px;
}

body.ea-v2 #site-footer .social-profile-icons ul li a:hover,
body.ea-v2 #site-footer .social-profile-icons ul li a:focus {
    top: 0;
    text-decoration: none;
    background: rgba(255, 255, 255, .12);
    box-shadow: none;
}

/* newsletter (plugin Newsletter): só o visual; formulário, campos e mensagens são os do plugin */
body.ea-v2 #site-footer .tnp-widget form,
body.ea-v2 #site-footer div.tnp-subscription form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ea-esp-2);
    margin: 0;
}

body.ea-v2 #site-footer .tnp-subscription div.tnp-field {
    width: auto;
    margin: 0;
}

body.ea-v2 #site-footer .tnp-subscription div.tnp-field-email {
    flex: 1 1 200px;
    min-width: 0;
}

body.ea-v2 #site-footer .tnp-widget input[type=email],
body.ea-v2 #site-footer .tnp-widget input[type=text] {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 var(--ea-esp-3);
    border: 1px solid var(--ea-borda-controle);
    border-radius: var(--ea-raio-sm);
    background: var(--ea-branco);
    color: var(--ea-texto-forte);
    font: 400 15px/20px var(--ea-font-sans);
    box-sizing: border-box;
}

body.ea-v2 #site-footer .tnp-widget input[type=email]::placeholder {
    color: var(--ea-texto-suave);
}

body.ea-v2 #site-footer .tnp-widget input[type=email]:focus-visible {
    outline: 2px solid var(--ea-foco-sobre-cor);
    outline-offset: 2px;
}

body.ea-v2 #site-footer .tnp-widget input[type=email][aria-invalid="true"],
body.ea-v2 #site-footer .tnp-widget input[type=email]:user-invalid {
    border: 2px solid var(--ea-cor2);
}

body.ea-v2 #site-footer .tnp-widget input.tnp-submit {
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0 var(--ea-esp-5);
    border: 0;
    border-radius: var(--ea-raio-sm);
    background: var(--ea-cor2);
    color: var(--ea-texto-sobre-laranja);
    font: 700 15px/20px var(--ea-font-sans);
    box-shadow: none;
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
}

body.ea-v2 #site-footer .tnp-widget input.tnp-submit:hover {
    box-shadow: var(--ea-sombra);
    transform: translateY(-1px);
}

/* mensagens do plugin depois do envio (caixa de retorno), sem textos novos */
body.ea-v2 #site-footer .tnp-widget .tnp-message,
body.ea-v2 #site-footer .ea-news__retorno {
    flex-basis: 100%;
    margin: var(--ea-esp-2) 0 0;
    padding: var(--ea-esp-2) var(--ea-esp-3);
    border-radius: var(--ea-raio-sm);
    font: 400 14px/20px var(--ea-font-sans);
    background: rgba(255, 255, 255, .1);
    color: var(--ea-texto-sobre-cor);
}

body.ea-v2 #site-footer .ea-news__retorno[data-tipo="erro"] {
    background: var(--ea-branco);
    color: var(--ea-texto-forte);
    box-shadow: inset 0 0 0 2px var(--ea-cor2);
}

/* newsletter pelo Mautic (functions/newsletter.php; base em style.css): consentimento e aviso de privacidade */
body.ea-v2 #site-footer .guia-nl .guia-nl__consentimento label {
    gap: var(--ea-esp-2);
    margin: var(--ea-esp-1) 0 0;
    font: 400 12px/1.45 var(--ea-font-sans);
    color: var(--ea-texto-sobre-cor);
    align-items: flex-end;
}

body.ea-v2 #site-footer .guia-nl .guia-nl__consentimento input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ea-cor2);
}

body.ea-v2 #site-footer .guia-nl .guia-nl__consentimento input[aria-invalid="true"] {
    outline-color: var(--ea-cor2);
}

body.ea-v2 #site-footer .guia-nl .guia-nl__privacidade {
    font: 400 12px/1.45 var(--ea-font-sans);
    color: var(--ea-texto-sobre-cor);
    opacity: .82;
}

body.ea-v2 #site-footer .guia-nl .guia-nl__privacidade a {
    font: inherit; /* os links do rodapé têm fonte maior */
    color: inherit;
    text-decoration: underline;
}

body.ea-v2 #site-footer .guia-nl .guia-nl__retorno {
    margin: var(--ea-esp-1) 0 0;
}

/* faixa de direitos (Termos | Privacidade | Sitemap) */
body.ea-v2 #site-footer .copyrights,
body.ea-v2 .copyrights {
    border-top: 1px solid rgba(255, 255, 255, .19); /* a faixa tem a cor do rodapé: a linha separa os dois */
    background: var(--ea-rodape-direitos) !important;
    color: var(--ea-texto-direitos);
}

body.ea-v2 #site-footer #copyright-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--ea-esp-1);
    margin: 0;
    padding: var(--ea-esp-3) 0;
    font: 400 13px/18px var(--ea-font-sans);
}

body.ea-v2 #site-footer #copyright-note,
body.ea-v2 #site-footer #copyright-note a,
body.ea-v2 #site-footer #copyright-note .to-top {
    color: var(--ea-texto-direitos) !important;
}

body.ea-v2 #site-footer #copyright-note .to-top {
    text-align: center;
}

body.ea-v2 #site-footer #copyright-note :focus-visible {
    outline-color: var(--ea-foco);
}

/* ---------------------------------------------------------------- trilha de navegação (empresa e categoria)
   Faixa logo abaixo do cabeçalho, de ponta a ponta, com o texto no eixo do conteúdo (functions/empresa-v2.php). */
body.ea-v2 .ea-trilha-faixa {
    border-bottom: 1px solid var(--ea-meio-preto);
    background: var(--ea-superficie);
    font-family: var(--ea-font-sans);
}

body.ea-v2 .ea-trilha-faixa .ea-trilha {
    margin: 0;
    padding: 9px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ea-texto-suave);
}

body.ea-v2 .ea-trilha-faixa .ea-trilha ol {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.ea-v2 .ea-trilha-faixa .ea-trilha li {
    margin: 0;
}

body.ea-v2 .ea-trilha-faixa .ea-trilha li + li::before {
    content: "›";
    margin: 0 8px;
    color: var(--ea-texto-suave);
}

body.ea-v2 .ea-trilha-faixa .ea-trilha a {
    color: var(--ea-cor1-texto);
    text-underline-offset: 3px;
}

body.ea-v2 .ea-trilha-faixa .ea-trilha__inicio a {
    display: inline-flex;
    align-items: center;
    vertical-align: -2px;
    font-size: 16px;
}

body.ea-v2 .ea-trilha-faixa .ea-trilha [aria-current] {
    color: var(--ea-texto-forte);
}

body.ea-v2 .ea-trilha-faixa .ea-trilha a:focus-visible {
    outline: 2px solid var(--ea-foco);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- empresa e categoria (layout novo): o ícone do menu
   começa na borda esquerda do conteúdo e o "Entrar" termina na borda direita. O conteúdo tem 7px de margem dentro do
   contêiner e o botão do menu tem 10px de folga em volta do ícone; daí os ajustes (medidos de 1024 a 1600px).
   Abaixo de 1024px a coluna do menu é estreita demais para isso: fica como nas outras páginas. */
@media (min-width: 1024px) {
    body.ea-v2.ea-pagina-v2 #cabecalho .links-menu-mobile {
        /* a borda visível do ícone (as linhas começam a 20% do SVG; traço de 2,2px) na borda esquerda do conteúdo,
           junto do card e da casinha da trilha; medido de 1024 a 1920px. Com 3px ficava 7px para dentro. */
        margin-left: -3px;
    }

    body.ea-v2.ea-pagina-v2 #cabecalho .logo-wrap {
        margin-left: 20px; /* acompanha o menu, que andou 15px, e deixa folga entre o ícone e o logo */
    }

    body.ea-v2.ea-pagina-v2:not(.ea-inicio) #cabecalho #logar {
        margin-right: -4px; /* era -7px: o texto passava 3px da coluna lateral */
    }
}

/* Páginas internas no computador: entre 866 e 1279px o logo de 28px passava da coluna dele e invadia o começo da
   busca. Ele diminui junto com a tela (20px em 900px, 21,5px em 1024px) e volta aos 28px a partir de ~1340px. */
@media (min-width: 866px) {
    body.ea-v2:not(.ea-inicio) #cabecalho .logo-wrap #logo {
        font-size: clamp(20px, 2.1vw, 28px);
    }
}

/* ---------------------------------------------------------------- ações do cabeçalho (computador; functions/tema-escolha.php):
   "Cadastrar empresa", chave de tema claro/escuro (desligada por enquanto: guia_tema_chave_ativa) e o Entrar, juntos
   no fim da barra (na coluna lateral das páginas internas). Telas menores: só o ícone da loja. Celular: o cadastro sai
   (fica no menu do Entrar). */
body.ea-v2 #cabecalho .ea-cab-acoes {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: flex-end;
    gap: var(--ea-esp-2);
    min-width: 0;
    margin-left: auto;
}

@media (min-width: 866px) {
    body.ea-v2:not(.ea-inicio) #cabecalho .ea-cab-acoes {
        justify-self: stretch;
        margin-left: 0;
    }
}

body.ea-v2 #cabecalho .ea-cab-acoes #logar {
    margin-left: 0;
}

/* "Cadastrar empresa": botão neutro, de contorno (como os botões secundários do v2). --ea-cab-cad-fundo é o fundo
   do botão e também o contorno do selo do ícone (separa o selo do desenho da loja). */
body.ea-v2 #cabecalho .ea-cab-cadastro {
    --ea-cab-cad-fundo: var(--ea-branco);
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px 0 11px;
    box-sizing: border-box;
    border: 1px solid var(--ea-meio-preto);
    border-radius: var(--ea-raio-pill);
    background: var(--ea-cab-cad-fundo);
    color: var(--ea-texto);
    font: 500 14px/1 var(--ea-font-sans);
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s, border-color .15s;
}

body.ea-v2 #cabecalho .ea-cab-cadastro:hover,
body.ea-v2 #cabecalho .ea-cab-cadastro:focus-visible {
    --ea-cab-cad-fundo: var(--ea-quase-branco);
    border-color: var(--ea-borda-controle);
    color: var(--ea-texto-forte);
    text-decoration: none;
}

body.ea-v2 #cabecalho .ea-cab-cadastro:focus-visible {
    outline: 2px solid var(--ea-foco);
    outline-offset: 2px;
}

/* ícone todo em cinza, sem cor do site: loja na cor do texto e um selo cinza com o "+" vazado (na cor do fundo) */
body.ea-v2 #cabecalho .ea-cab-cadastro__ico {
    display: block;
    flex: none;
    width: 22px;
    height: 22px;
    overflow: visible;
}

body.ea-v2 #cabecalho .ea-cab-cadastro__loja {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.ea-v2 #cabecalho .ea-cab-cadastro__selo {
    fill: var(--ea-texto-suave);
    stroke: var(--ea-cab-cad-fundo);
    stroke-width: 1.5;
    transition: stroke .15s;
}

body.ea-v2 #cabecalho .ea-cab-cadastro__mais {
    fill: none;
    stroke: var(--ea-cab-cad-fundo);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke .15s;
}

/* escuro: o fundo do botão é o da barra (um tom acima da página); texto e ícone em cinza claro (os --ea-texto do escuro) */
@media (prefers-color-scheme: dark) {
    body.ea-v2 #cabecalho .ea-cab-cadastro {
        --ea-cab-cad-fundo: var(--ea-superficie);
    }

    body.ea-v2 #cabecalho .ea-cab-cadastro:hover,
    body.ea-v2 #cabecalho .ea-cab-cadastro:focus-visible {
        --ea-cab-cad-fundo: var(--ea-quase-branco);
    }
}

/* chave: trilho com a bolinha (sol no claro, lua no escuro). Só aparece com o script do <head> rodando. */
body.ea-v2 #cabecalho .ea-tema {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--ea-raio-pill);
    background: none;
    cursor: pointer;
}

html.guia-tema-js body.ea-v2 #cabecalho .ea-tema {
    display: inline-flex;
}

body.ea-v2 #cabecalho .ea-tema__trilho {
    position: relative;
    display: block;
    width: 42px;
    height: 24px;
    box-sizing: border-box;
    border: 1px solid var(--ea-borda-controle);
    border-radius: var(--ea-raio-pill);
    background: var(--ea-quase-branco);
}

body.ea-v2 #cabecalho .ea-tema__bola {
    position: absolute;
    top: 2px;
    left: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ea-cor1-texto);
    color: var(--ea-branco);
    transition: transform .2s;
}

body.ea-v2 #cabecalho .ea-tema svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

body.ea-v2 #cabecalho .ea-tema .ea-tema__lua {
    display: none;
    fill: currentColor;
    stroke: none;
}

body.ea-v2 #cabecalho .ea-tema:hover .ea-tema__trilho {
    border-color: var(--ea-cor1-texto);
}

/* Escuro: a bolinha vai para a direita e vira lua. A escolha da chave (claro/escuro) vale aqui também. */
@media (prefers-color-scheme: dark) {
    body.ea-v2 #cabecalho .ea-tema__bola {
        transform: translateX(18px);
    }

    body.ea-v2 #cabecalho .ea-tema .ea-tema__sol {
        display: none;
    }

    body.ea-v2 #cabecalho .ea-tema .ea-tema__lua {
        display: block;
    }
}

/* páginas internas, abaixo de 1100px: a coluna lateral fica estreita e o botão fica só com o ícone */
@media (max-width: 1099px) {
    body.ea-v2:not(.ea-inicio) #cabecalho .ea-cab-cadastro {
        width: 38px;
        padding: 0;
    }

    body.ea-v2:not(.ea-inicio) #cabecalho .ea-cab-cadastro__texto {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    body.ea-v2 #cabecalho .ea-cab-cadastro,
    html.guia-tema-js body.ea-v2 #cabecalho .ea-tema {
        display: none;
    }
}


/* listas do texto das páginas comuns (page.php) e das notícias: marcador na cor da marca (base em style.css) */
body.ea-v2 :is(.post-content.entry-content, .post-single-content .thecontent) li::marker {
    color: var(--ea-marca-laranja);
}

/* busca do WordPress (sites sem a do Google: functions/busca.php) no topo e no celular, com o visual da caixa do Google
   acima (a da home: home-v2.css; a da página 404 tem a própria em erro-v2.css) */
body.ea-v2 :is(#cabecalho, #formulario_pesquisa, #home_formulario_pesquisa) #searchform.search-form fieldset {
    border: 1px solid var(--ea-borda-controle);
    border-radius: var(--ea-raio-md);
    background: var(--ea-branco);
    overflow: hidden;
}

body.ea-v2 :is(#cabecalho, #formulario_pesquisa, #home_formulario_pesquisa) #searchform.search-form fieldset:focus-within {
    outline: 2px solid var(--ea-foco);
    outline-offset: 2px;
}

body.ea-v2 :is(#cabecalho, #formulario_pesquisa, #home_formulario_pesquisa) #searchform.search-form input#s {
    height: 40px;
    padding: 0 var(--ea-esp-3);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ea-texto-forte);
    font: 400 15px/20px var(--ea-font-sans);
    outline: none;
}

body.ea-v2 :is(#cabecalho, #formulario_pesquisa, #home_formulario_pesquisa) #searchform.search-form #search-image {
    width: auto;
    height: 32px;
    margin: 4px;
    padding: 0 var(--ea-esp-3);
    border-radius: var(--ea-raio-sm);
    background: var(--ea-cor2);
    color: var(--ea-texto-sobre-laranja);
}

/* ---------------------------------------------------------------- busca do v2 (functions/busca-v2.php,
   assets/js/busca-v2.js): campo de texto com a lupa dentro, e as sugestões numa lista logo abaixo. Mesma caixa no
   cabeçalho, na linha de busca do celular, na abertura da home (home-v2.css) e na 404 (erro-v2.css). */
body.ea-v2 .ea-busca {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ea-borda-controle);
    border-radius: var(--ea-raio-pill);
    background: var(--ea-branco);
    color: var(--ea-texto-forte);
    text-align: left;
    transition: border-color .15s, box-shadow .15s;
}

body.ea-v2 .ea-busca:hover {
    border-color: var(--ea-cor1-texto);
}

body.ea-v2 .ea-busca:focus-within {
    border-color: var(--ea-cor1-texto);
    box-shadow: 0 0 0 3px rgba(var(--cor-primaria-texto), .18);
}

body.ea-v2 .ea-busca__rotulo {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

body.ea-v2 .ea-busca .ea-busca__campo {
    flex: 1 1 auto;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 4px 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ea-texto-forte);
    font: 400 15px/20px var(--ea-font-sans);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* o anel de foco é o da caixa inteira (:focus-within acima); o contorno quadrado das regras gerais de foco sai */
body.ea-v2 .ea-busca .ea-busca__campo:focus,
body.ea-v2 .ea-busca .ea-busca__campo:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

body.ea-v2 .ea-busca .ea-busca__campo::placeholder {
    color: var(--ea-texto-suave);
    opacity: 1;
}

body.ea-v2 .ea-busca .ea-busca__campo::-webkit-search-cancel-button,
body.ea-v2 .ea-busca .ea-busca__campo::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

body.ea-v2 .ea-busca .ea-busca__botao {
    flex: none;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    margin: 0 3px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: var(--ea-cor1-texto);
    cursor: pointer;
    transition: background-color .15s;
}

body.ea-v2 .ea-busca .ea-busca__botao:hover,
body.ea-v2 .ea-busca .ea-busca__botao:focus-visible {
    background: var(--ea-quase-branco);
}

body.ea-v2 .ea-busca .ea-busca__botao:focus-visible {
    outline: 2px solid var(--ea-foco);
    outline-offset: 1px;
}

body.ea-v2 .ea-busca__lupa {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

/* carregando: a lupa pulsa de leve */
body.ea-v2 .ea-busca--carregando .ea-busca__lupa {
    animation: ea-busca-pulso .8s ease-in-out infinite alternate;
}

@keyframes ea-busca-pulso {
    to { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    body.ea-v2 .ea-busca--carregando .ea-busca__lupa {
        animation: none;
    }
}

/* lista de sugestões */
body.ea-v2 .ea-busca__lista {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 60;
    box-sizing: border-box;
    width: max(100%, 340px);
    max-width: calc(100vw - 24px);
    max-height: min(70vh, 540px);
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--ea-meio-preto);
    border-radius: 14px;
    background: var(--ea-superficie);
    box-shadow: var(--ea-sombra-menu);
    font: 400 15px/1.3 var(--ea-font-sans);
    color: var(--ea-texto);
}

body.ea-v2 .ea-busca__lista[hidden] {
    display: none;
}

body.ea-v2 .ea-busca__grupo {
    margin: 0;
    padding: 10px 10px 4px;
    font: 700 11.5px/1.2 var(--ea-font-sans);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ea-texto-suave);
}

body.ea-v2 .ea-busca__grupo:not(:first-child) {
    margin-top: 4px;
    border-top: 1px solid var(--ea-meio-preto);
}

body.ea-v2 .ea-busca .ea-busca__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 10px;
    color: var(--ea-texto-forte);
    text-decoration: none;
    cursor: pointer;
}

body.ea-v2 .ea-busca .ea-busca__item:hover,
body.ea-v2 .ea-busca .ea-busca__item[aria-selected="true"] {
    background: var(--ea-quase-branco);
    color: var(--ea-texto-forte);
    text-decoration: none;
}

body.ea-v2 .ea-busca .ea-busca__item[aria-selected="true"] {
    box-shadow: inset 3px 0 0 var(--ea-cor1-texto);
}

body.ea-v2 .ea-busca__ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--ea-quase-branco);
    color: var(--ea-cor1-texto);
}

body.ea-v2 .ea-busca__item:hover .ea-busca__ico,
body.ea-v2 .ea-busca__item[aria-selected="true"] .ea-busca__ico {
    background: var(--ea-superficie);
}

body.ea-v2 .ea-busca__ico svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.ea-v2 .ea-busca__texto {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.ea-v2 .ea-busca__nome {
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ea-v2 .ea-busca__nome mark {
    padding: 0;
    background: none;
    color: inherit;
    font-weight: 700;
}

body.ea-v2 .ea-busca__sub {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ea-texto-suave);
}

body.ea-v2 .ea-busca .ea-busca__todos {
    margin-top: 6px;
    padding-top: 9px;
    padding-bottom: 9px;
    border-top: 1px solid var(--ea-meio-preto);
    border-radius: 0 0 10px 10px;
    color: var(--ea-cor1-texto);
}

body.ea-v2 .ea-busca__todos .ea-busca__ico {
    background: none;
}

body.ea-v2 .ea-busca__nada {
    margin: 0;
    padding: 12px 10px 6px;
    font-size: 14px;
    color: var(--ea-texto-suave);
}

/* cabeçalho no computador: a caixa ocupa a coluna da busca */
body.ea-v2 #cabecalho .searchform .ea-busca {
    max-width: 100%;
}

/* celular: a linha de busca (#formulario_pesquisa) aberta não corta a lista; campo com 16px (o iPhone não dá zoom) */
body.ea-v2 #cabecalho #formulario_pesquisa.mostra {
    max-height: none !important;
    overflow: visible;
}

body.ea-v2 #formulario_pesquisa .ea-busca {
    height: 44px;
}

body.ea-v2 #formulario_pesquisa .ea-busca__lista {
    width: 100%;
    max-width: none;
    max-height: 62vh;
}

@media (max-width: 767px) {
    body.ea-v2 .ea-busca .ea-busca__campo {
        font-size: 16px;
    }
}
