/* Ajustes do tema para o Ghost: o que o tema WordPress não tinha (botões no lugar de spans,
   busca nativa, cards do editor Koenig, "Carregar mais" fora da página de categoria). */

/* Fontes escolhidas em Configurações > Design (se houver); sem escolha, as do tema original. */
body { font-family: var(--gh-font-body, "Ubuntu", sans-serif); }
h1, h2, h3, h4, h5, h6 { font-family: var(--gh-font-heading, 'Playfair Display', serif); }

/* ---------- Cabeçalho ---------- */
.toggleMenu {
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
#header .wrapper .menu_logo .toggleMenu { justify-self: end; }
#header .content .search { display: none; }
@media (min-width: 64rem) {
    #header .content .search { display: block; }
    #menu .menu-busca { display: none; }
}
#header .content .search .icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
#header .links { justify-self: end; white-space: nowrap; }
#header .links .login.login-sempre { display: unset; }
#header .content h1 { margin: 0; }
#header #menu-menu-secundario { width: auto; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
#header #menu-menu-secundario::-webkit-scrollbar { display: none; }
#header #menu-menu-secundario li { white-space: nowrap; }
#header #menu-menu-secundario li.current-menu-item a { color: var(--color-orange); }
#menu .wrapper .nav ul li.current-menu-item > a { color: var(--color-orange); }

/* ---------- Listas ---------- */
.secao .content .title h2 a,
.chapeu a { color: inherit; }
.secao.secao-mais { background: transparent; }
.secao-mais .content:has(.js-feed-more:empty) .title { display: none; }
.js-dedupe.is-deduped > article.is-dup { display: none; }
.js-dedupe.is-deduped > article.is-first { border-top: 0; }
.carregarmais {
    margin: min(1.875rem + 0.625 * ((100vw - 20rem) / 70), 2.5rem) auto 0;
    text-align: center;
}
.carregarmais .carregar {
    display: inline-block;
    background: transparent;
    color: var(--color-orange);
    border: 1px solid var(--color-orange);
    font-family: 'Poppins', sans-serif;
    font-size: min(0.61rem + 0.265 * ((100vw - 20rem) / 70), 0.875rem);
    border-radius: 4px;
    letter-spacing: 0.12rem;
    font-weight: 500;
    min-width: min(7rem + 3.625 * ((100vw - 20rem) / 70), 10.625rem);
    padding: 10px 16px;
}
.carregarmais .carregar:hover { background: var(--color-orange); color: var(--color-white); }
.carregarmais .carregar.is-loading { opacity: .5; pointer-events: none; }
.secao .posts + .secao.assine,
.secao .content > .secao.assine {
    margin: min(1.875rem + 0.625 * ((100vw - 20rem) / 70), 2.5rem) calc(50% - 50vw);
    width: 100vw;
}
.posts .post { padding: min(0.9375rem + 0.9375 * ((100vw - 20rem) / 70), 1.875rem) 0; }
.posts .post h2 a:hover,
.posts .post-padrao h2 a:hover,
.post-destaque-1 h2 a:hover { color: var(--color-orange); }
.category .secao.secaocategorias .content .category_description p {
    font-family: 'Poppins', sans-serif;
    color: var(--color-grey-font);
}

/* ---------- Matéria ---------- */
.main .header .content figure.image { margin: 0 auto; }
.main .header .content figure.image img { width: auto; max-width: 100%; max-height: 37.5rem; }
.main .header .content figure.image figcaption,
.gh-content figcaption {
    margin-top: .75rem;
    font-family: 'Poppins', sans-serif;
    font-size: .75rem;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
    color: var(--color-light-grey-font);
}
.main .header .content .infos .share .links a {
    display: grid;
    place-items: center;
    color: var(--color-orange);
}
.main .header .content .infos .share .links a.is-copied { color: var(--color-dark-brown); }
.main .header .content .infos2 { padding-top: .5rem; }

.gh-content { min-width: 0; }
.gh-content > * + * { margin-top: 0; }
.gh-content h2, .gh-content h3, .gh-content h4 { margin-top: 1.2em; }
.gh-content > h2:first-child, .gh-content > h3:first-child { margin-top: 0; }
.gh-content ul, .gh-content ol {
    margin: 0 0 min(1.875rem + 0.625 * ((100vw - 20rem) / 70), 2.5rem);
    padding-left: 1.5em;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.04rem;
    color: var(--color-grey-font);
}
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li + li { margin-top: .5em; }
.gh-content li::marker { color: var(--color-orange); }
.gh-content figure { margin: 0 0 min(1.875rem + 0.625 * ((100vw - 20rem) / 70), 2.5rem); }
.gh-content figure img { margin: 0 auto; }
.gh-content hr { margin: 2.5rem 0; border: 0; border-top: 1px solid rgba(38, 22, 31, 0.11); }
.gh-content iframe { max-width: 100%; }
.main .single .content .conteudo .kg-card div,
.main .single .content .conteudo .kg-gallery-image { width: auto !important; }
.kg-width-wide { margin-left: -4%; margin-right: -4%; }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.kg-width-full img { width: 100%; }
.page .conteudo h1 { margin-bottom: 1.5rem; }

/* ---------- Rodapé ---------- */
#footer .topo .content .description p { margin: 0; }

/* ---------- 404 (error-404.hbs) ----------
   O 404.css original vinha do template-base da agência (roxo e amarelo). Aqui ele usa as cores do Portfolio. */
.error404 .main.erro {
    padding: min(3.75rem + 2.5 * ((100vw - 20rem) / 70), 6.25rem) 0;
    text-align: center;
    background: var(--color-light-salmon);
}
.error404 .main.erro .codigo {
    font-family: 'Playfair Display', serif;
    font-size: min(4rem + 4 * ((100vw - 20rem) / 70), 8rem);
    line-height: 1;
    color: var(--color-orange);
}
.error404 .main.erro p { font-family: 'Poppins', sans-serif; color: var(--color-grey-font); }
.error404 .main.erro .btn-voltar {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 10px 16px;
    color: var(--color-white);
    background: var(--color-orange);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: min(0.61rem + 0.265 * ((100vw - 20rem) / 70), 0.875rem);
    font-weight: 700;
    letter-spacing: 0.12rem;
}
