/*
Theme Name: Asaas Blog
Theme URI: https://j1studio.com.br
Author: J1 Studio
Author URI: https://j1studio.com.br
Description: Tema para WordPress feito para a Asaas usando Tailpress. Mantido pela J1 Studio.
Version: 0.1.33
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: asaas-blog
*/

/* =============================================================================
   CSS complementar ao css/app.css (Tailwind compilado e purgado; não recompilar).
   Tudo aqui usa o prefixo .j1- e é carregado depois do app.css.

   Índice
     1. Base: container, seções, botões, tag
     2. Cabeçalho: comum, mobile (< 1200px), desktop (>= 1200px)
     3. Home: faixa azul e destaque
     4. Cards e grades
     5. Autores (home, /autores/ e arquivo de autor)
     6. Newsletter
     7. Rodapé
     8. Categorias (/categorias/ e arquivo de categoria)

   Tokens
     azul #0038E5 (hover #002BB0), azul-claro #D6EAFF, azul-médio #488AF5,
     preto #000A2B, bege #F8F8F1, cinza #E8E8E5.
   Breakpoints
     conteúdo: 640px, 768px e 1024px; cabeçalho: 1200px (xl do tema).
   ========================================================================== */


/* 1. Base
   ========================================================================== */

.j1-wrap {
  margin-left: auto;
  margin-right: auto;
  max-width: 982px;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
}

.j1-sec {
  padding: 48px 0;
}

.j1-sec--bege {
  background-color: #F8F8F1;
}

.j1-sec--sem-base {
  padding-bottom: 0;
}

.j1-sec--sem-topo {
  padding-top: 0;
}

.j1-sec__titulo {
  color: #000A2B;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  margin-bottom: 32px;
}

.j1-sec__cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.j1-btn-azul {
  align-items: center;
  background-color: #0038E5;
  border-radius: 40px;
  color: #fff;
  display: inline-flex;
  fill: #fff;
  font-size: 16px;
  font-weight: 700;
  gap: 16px;
  line-height: 27px;
  padding: 16px 24px;
  transition: background-color .2s;
}

.j1-btn-azul:hover,
.j1-btn-azul:focus-visible {
  background-color: #002BB0;
}

.j1-link-seta {
  align-items: center;
  color: #0038E5;
  display: inline-flex;
  fill: #0038E5;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  line-height: 27px;
}

.j1-link-seta:hover {
  text-decoration: underline;
}

.j1-tag {
  background-color: #D6EAFF;
  border-radius: 16px;
  color: #0038E5;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  padding: 6px 12px;
  width: fit-content;
}

a.j1-tag:hover {
  background-color: #0038E5;
  color: #fff;
}

.j1-vazio {
  text-align: center;
}

/* O header ocupa espaço no fluxo; zera o deslocamento que os templates faziam
   para o header fixo antigo (autores, author, glossário).
   j1-corte: sobrescreve utilitário do Tailwind; remover as classes dos
   templates quando eles forem revisados. */
.mt-\[62px\],
.lg\:mt-\[79px\] {
  margin-top: 0;
}

@media (min-width: 1014px) {
  .j1-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1024px) {
  .j1-sec {
    padding: 64px 0;
  }

  .j1-sec__cta {
    margin-top: 56px;
  }
}


/* 2. Cabeçalho
   Duas linhas: barra (logo, busca, CTA) e menu. Os ganchos js-* são os do
   app.js compilado, que abre e fecha o menu (classe hidden na nav e
   data-open nos itens).
   ========================================================================== */

/* 2.1 Comum */

.j1-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.j1-hd {
  background-color: #fff;
}

.j1-hd__bar {
  align-items: center;
  display: flex;
  gap: 16px;
  min-height: 64px;
  position: relative;
}

.j1-hd__logo {
  display: block;
  flex: none;
  width: 124px;
}

.j1-hd__logo svg {
  height: auto;
  width: 100%;
}

.j1-hd__actions {
  align-items: center;
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.j1-hd__cta {
  display: none;
}

.j1-hd__field {
  align-items: center;
  display: flex;
  gap: 12px;
  width: 100%;
}

.j1-hd__field svg {
  flex: none;
}

.j1-hd__input {
  background: transparent;
  color: #000A2B;
  font-weight: 400;
}

.j1-hd__input::placeholder {
  font-weight: 400;
}

/* O ícone menu.svg vem com fill="white" fixo no path (herança do header azul
   antigo) e sumia no cabeçalho branco. */
.js-primary-menu-toggle svg:first-child path {
  fill: #0038E5;
}

/* 2.2 Mobile: busca em faixa azul-clara abaixo da logo; menu em painel azul
   de tela cheia, com acordeão e subgrupos sempre abertos. */
@media (max-width: 1199px) {
  /* A busca quebra para a 2ª linha; sem gap vertical para não abrir faixa
     branca entre a logo e a busca. */
  .j1-hd__bar {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .j1-hd__logo,
  .j1-hd__actions {
    align-items: center;
    display: flex;
    min-height: 64px;
  }

  .j1-hd__search {
    background-color: #D6EAFF;
    flex: 0 0 calc(100% + 32px);
    margin: 0 -16px;
    order: 3;
    width: 100%;
  }

  .j1-hd__field {
    padding: 12px 16px;
  }

  .j1-hd__field svg {
    fill: #0038E5;
  }

  .j1-hd__input::placeholder {
    color: #000A2B;
  }

  .j1-hd__nav {
    background-color: #0038E5;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    left: 0;
    overflow-y: auto;
    padding: 8px 0 48px;
    position: absolute;
    top: 100%;
    width: 100%;
  }

  /* Fade do painel ao abrir e fechar (180ms, opacidade e 8px de deslocamento).
     O app.js alterna a classe hidden (display: none); allow-discrete e
     @starting-style animam a entrada e a saída. Navegador sem suporte abre
     e fecha seco, como antes. */
  .j1-hd {
    transition: background-color .18s ease;
  }

  .j1-hd__nav {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, display .18s allow-discrete;
  }

  .j1-hd__nav.hidden {
    opacity: 0;
    transform: translateY(-8px);
  }

  @starting-style {
    .j1-hd__nav:not(.hidden) {
      opacity: 0;
      transform: translateY(-8px);
    }
  }

  /* Troca suave entre o hambúrguer e o X. */
  .js-primary-menu-toggle svg {
    transition: opacity .18s ease;
  }

  @starting-style {
    .js-primary-menu-toggle svg:not(.hidden) {
      opacity: 0;
    }
  }

  /* Menu aberto: cabeçalho inteiro azul, logo e X brancos, sem a busca. */
  .j1-hd:has(.j1-hd__nav:not(.hidden)) {
    background-color: #0038E5;
  }

  .j1-hd:has(.j1-hd__nav:not(.hidden)) .j1-hd__search {
    display: none;
  }

  .j1-hd:has(.j1-hd__nav:not(.hidden)) .j1-hd__logo,
  .j1-hd:has(.j1-hd__nav:not(.hidden)) .j1-hd__logo *,
  .j1-hd:has(.j1-hd__nav:not(.hidden)) .js-primary-menu-toggle svg {
    fill: #fff;
  }

  .j1-hd__menu > ul > li {
    border-color: rgba(255, 255, 255, .25);
  }

  .j1-hd__menu a,
  .j1-hd__menu button {
    color: #fff;
    fill: #fff;
  }

  .j1-hd__menu > ul > li > a,
  .j1-hd__menu > ul > li > button {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    padding: 20px 0;
  }

  .j1-hd__menu > ul > li[data-open="true"] > button svg {
    transform: rotate(180deg);
  }

  .j1-hd__menu .sub-menu {
    gap: 4px;
    padding-bottom: 20px;
  }

  .j1-hd__menu .sub-menu a {
    font-size: 15px;
    line-height: 22px;
    padding: 6px 0;
    white-space: normal;
  }

  .j1-hd__menu .sub-menu a:hover {
    text-decoration: underline;
  }

  /* Subgrupos (3º nível): título fixo, lista sempre aberta. */
  .j1-hd__menu .sub-menu > li > button {
    cursor: default;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 0 4px;
    pointer-events: none;
  }

  .j1-hd__menu .sub-menu > li > button svg {
    display: none;
  }

  .j1-hd__menu .sub-menu .sub-menu {
    display: flex !important;
    padding-bottom: 8px;
  }

  .j1-hd__cta-mobile {
    display: flex;
    justify-content: center;
    padding: 40px 0;
  }

  .j1-hd__cta-mob {
    background-color: #488AF5;
    border-radius: 40px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    padding: 14px 24px;
  }
}

@media (max-width: 1199px) and (prefers-reduced-motion: reduce) {
  .j1-hd,
  .j1-hd__nav,
  .js-primary-menu-toggle svg {
    transition: none;
  }
}

/* 2.3 Desktop: busca centralizada na barra; linha do menu azul-clara;
   dropdowns brancos. Menu com subgrupos (ex.: Comece a usar) abre em colunas,
   com o título do grupo fixo e os links sempre visíveis. */
@media (min-width: 1200px) {
  .j1-hd__bar {
    min-height: 96px;
  }

  .j1-hd__logo {
    width: 160px;
  }

  .j1-hd__cta {
    display: block;
  }

  .j1-hd__cta-mobile {
    display: none;
  }

  .j1-hd__search {
    display: flex;
    left: 50%;
    max-width: 480px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
  }

  .j1-hd__field {
    background-color: #fff;
    border: 1px solid #E8E8E5;
    border-radius: 9999px;
    padding: 13px 24px;
  }

  .j1-hd__field svg {
    fill: #000A2B;
  }

  .j1-hd__input::placeholder {
    color: #718096;
  }

  .j1-hd__nav {
    /* asaas-lighter-blue a 40% sobre branco */
    background-color: rgba(214, 234, 255, 0.4);
    display: flex;
  }

  .j1-hd__nav-inner {
    width: 100%;
  }

  .j1-hd__menu > ul {
    gap: 32px;
    justify-content: center;
  }

  .j1-hd__menu > ul > li > a,
  .j1-hd__menu > ul > li > button {
    padding: 24px 0;
  }

  .j1-hd__menu > ul > li > button:hover,
  .j1-hd__menu > ul > li > a:hover,
  .j1-hd__menu > ul > li[data-open="true"] > button {
    color: #0038E5;
    fill: #0038E5;
  }

  .j1-hd__menu .sub-menu {
    border-radius: 0 0 24px 24px;
    box-shadow: 0 12px 24px rgba(0, 10, 43, .08);
    gap: 4px;
    left: 0;
    min-width: 240px;
    padding: 24px 32px;
    top: 100%;
  }

  .j1-hd__menu .sub-menu a {
    display: block;
    font-size: 14px;
    line-height: 20px;
    padding: 4px 0;
  }

  .j1-hd__menu .sub-menu a:hover {
    color: #0038E5;
  }

  .j1-hd__menu > ul > li > .sub-menu:has(.sub-menu) {
    column-gap: 56px;
    flex-direction: row;
    padding: 32px 48px;
  }

  .j1-hd__menu > ul > li > .sub-menu:has(.sub-menu):not(.hidden) {
    display: flex;
  }

  .j1-hd__menu .sub-menu > li > button {
    cursor: default;
    font-size: 14px;
    font-weight: 700;
    padding: 0 0 16px;
    pointer-events: none;
  }

  .j1-hd__menu .sub-menu > li > button svg {
    display: none;
  }

  .j1-hd__menu .sub-menu .sub-menu {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex !important;
    left: auto;
    padding: 0;
    position: static;
    top: auto;
  }
}


/* 3. Home
   ========================================================================== */

/* 3.1 Faixa azul do topo (H1) */

.j1-faixa {
  background-color: #0038E5;
  overflow: hidden;
  position: relative;
}

.j1-faixa .j1-wrap {
  padding-bottom: 40px;
  padding-top: 40px;
  position: relative;
  z-index: 1;
}

.j1-faixa__titulo {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

/* 3.2 Destaque: 1 principal + 3 laterais */

.j1-destaque {
  padding-bottom: 16px;
}

.j1-destaque__grid {
  display: grid;
  gap: 48px;
}

.j1-destaque__lista > li {
  border-bottom: 1px solid #E8E8E5;
  padding: 24px 0;
}

.j1-destaque__lista > li:first-child {
  padding-top: 0;
}

.j1-destaque__lista > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  .j1-faixa::after {
    background: url("images/home/j1-faixa-home.webp") right center / auto 100% no-repeat;
    content: "";
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 465px;
  }

  .j1-faixa .j1-wrap {
    padding-bottom: 48px;
    padding-top: 48px;
  }

  .j1-faixa__titulo {
    font-size: 28px;
    line-height: 36px;
    max-width: 640px;
    text-align: left;
  }

  .j1-destaque__grid {
    align-items: start;
    grid-template-columns: 522fr 412fr;
  }
}


/* 4. Cards e grades
   ========================================================================== */

/* 4.1 Card de post (variantes: grade, principal, lateral) */

.j1-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.j1-card__img {
  aspect-ratio: 306 / 152;
  background-color: #E8E8E5;
  border-radius: 24px;
  display: block;
  overflow: hidden;
}

.j1-card__img img {
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  width: 100%;
}

.j1-card:hover .j1-card__img img {
  transform: scale(1.03);
}

.j1-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.j1-card__title {
  color: #000A2B;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

/* O app.css pinta links de azul; o título fica preto e azula no hover. */
.j1-card__title a,
.j1-card__title a:visited {
  color: #000A2B;
}

.j1-card__title a:hover {
  color: #0038E5;
}

.j1-card__meta {
  color: #000A2B;
  font-size: 10px;
  line-height: 15px;
}

.j1-card__meta a {
  color: #0038E5;
  text-decoration: underline;
}

/* Selo "Conteúdo criado por humano": oculto, produção não usa. */
.j1-card__selo {
  display: none !important;
}

.j1-card--principal {
  background-color: #D6EAFF;
  border-radius: 24px;
  gap: 0;
  overflow: hidden;
}

.j1-card--principal .j1-card__img {
  aspect-ratio: 522 / 290;
  border-radius: 0;
}

.j1-card--principal .j1-card__body {
  gap: 16px;
  padding: 24px;
}

.j1-card--principal .j1-tag {
  background-color: #0038E5;
  color: #fff;
}

.j1-card--principal .j1-card__title {
  font-size: 20px;
  line-height: 26px;
}

.j1-card--lateral {
  align-items: flex-start;
  flex-direction: row;
  gap: 16px;
}

.j1-card--lateral .j1-card__img {
  aspect-ratio: 146 / 110;
  border-radius: 16px;
  flex: none;
  width: 110px;
}

.j1-card--lateral .j1-card__body {
  min-width: 0;
}

/* 4.2 Grade de 3 colunas e banners do Advanced Ads */

.j1-grid {
  display: grid;
  gap: 40px;
}

.j1-grid__ad {
  border-radius: 24px;
  overflow: hidden;
}

.j1-grid__ad img {
  height: auto;
  width: 100%;
}

.j1-banner-h {
  border-radius: 24px;
  overflow: hidden;
}

.j1-banner-h img {
  border-radius: 24px;
  height: auto;
  width: 100%;
}

@media (min-width: 640px) {
  .j1-grid {
    gap: 48px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .j1-card--principal .j1-card__body {
    padding: 32px;
  }

  .j1-card--principal .j1-card__title {
    font-size: 24px;
    line-height: 30px;
  }

  .j1-card--lateral .j1-card__img {
    width: 146px;
  }

  .j1-grid {
    gap: 56px 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* 5. Autores
   ========================================================================== */

/* 5.1 Bloco "Autores do Asaas" na home */

.j1-autores {
  display: grid;
  gap: 48px;
}

.j1-autor {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.j1-autor__foto {
  border-radius: 9999px;
  height: 120px;
  overflow: hidden;
  width: 120px;
}

.j1-autor__foto img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.j1-autor__topo {
  align-items: center;
  border-bottom: 1px solid #E8E8E5;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.j1-autor__nome {
  color: #000A2B;
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
}

.j1-autor__in {
  align-items: center;
  background-color: #D6EAFF;
  border-radius: 9999px;
  display: flex;
  flex: none;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.j1-autor__bio {
  color: #000A2B;
  font-size: 16px;
  line-height: 27px;
}

.j1-autor .j1-link-seta {
  margin-top: auto;
}

@media (min-width: 768px) {
  .j1-autores {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 5.2 Página /autores/ e arquivo de autor (ago/2026) */

.j1-band {
  background-color: #f7f4ee;
}

.j1-avatar {
  flex: none;
  height: 112px;
  width: 112px;
}

.j1-avatar img {
  border-radius: 9999px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.j1-avatar--lg {
  height: 145px;
  width: 145px;
}

.j1-chip {
  align-items: center;
  display: flex;
  flex: none;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.j1-btn {
  padding-bottom: 12px;
  padding-top: 12px;
}

.j1-divider {
  border-top: 1px solid rgb(232 232 229);
  margin-top: 16px;
  padding-top: 16px;
}

.j1-mt-auto {
  margin-top: auto;
  padding-top: 24px;
}

/* Menu com fundo azul no topo das páginas de autores. Vale só no estado
   inicial (xl:bg-transparent); ao rolar, o app.js troca para xl:bg-white. */
@media (min-width: 1280px) {
  body.j1-autores .js-primary-menu.xl\:bg-transparent,
  body.author .js-primary-menu.xl\:bg-transparent {
    background-color: rgb(0 56 229);
  }
}


/* 6. Newsletter (antes do rodapé, em todas as páginas)
   ========================================================================== */

.j1-news-wrap {
  background: linear-gradient(to bottom, #fff 50%, #F8F8F1 50%);
  padding: 48px 16px 0;
}

.j1-news {
  background-color: #0038E5;
  border-radius: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0 auto;
  max-width: 982px;
  padding: 32px 24px;
  text-align: center;
}

.j1-news__texto {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.j1-news__titulo {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.j1-news__desc {
  font-size: 16px;
  line-height: 27px;
}

.j1-news__form {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.j1-news__campo {
  position: relative;
  width: 100%;
}

.j1-news__input {
  background-color: #fff;
  border-radius: 40px;
  color: #000A2B;
  font-size: 14px;
  height: 52px;
  padding: 0 24px;
  width: 100%;
}

.j1-news__input::placeholder {
  color: #000A2B;
}

.j1-news__input:focus {
  outline: 2px solid #D6EAFF;
  outline-offset: 2px;
}

.j1-news__aviso {
  font-size: 10px;
  line-height: 15px;
}

.j1-news__aviso a {
  color: #8FB8FF;
  text-decoration: underline;
}

.j1-news__erro {
  background-color: #fff;
  border-radius: 8px;
  color: #C8102E;
  font-size: 12px;
  line-height: 16px;
  margin-top: 8px;
  padding: 6px 12px;
  text-align: left;
}

.j1-news__btn {
  align-items: center;
  background-color: #488AF5;
  border-radius: 40px;
  color: #fff;
  display: inline-flex;
  fill: #fff;
  font-size: 16px;
  font-weight: 700;
  gap: 16px;
  line-height: 27px;
  padding: 16px 24px;
  transition: background-color .2s;
}

.j1-news__btn:hover,
.j1-news__btn:focus-visible {
  background-color: #2F6FE0;
}

.j1-news__btn:disabled {
  opacity: .6;
}

.j1-news__ok {
  font-size: 16px;
  line-height: 27px;
}

@media (min-width: 1024px) {
  .j1-news-wrap {
    padding-top: 64px;
  }

  .j1-news {
    align-items: center;
    flex-direction: row;
    gap: 56px;
    justify-content: space-between;
    padding: 40px 48px;
    text-align: left;
  }

  .j1-news__texto {
    flex: 0 1 412px;
  }

  .j1-news__form {
    align-items: flex-end;
    flex: 0 1 418px;
  }

  .j1-news__aviso {
    align-self: center;
    text-align: center;
  }
}


/* 7. Rodapé
   ========================================================================== */

.j1-ft {
  background-color: #F8F8F1;
  color: #000A2B;
  padding: 48px 0 40px;
}

.j1-ft__sup {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
}

.j1-ft__marca {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.j1-ft__logo {
  display: block;
  fill: #0038E5;
  width: 195px;
}

.j1-ft__logo svg {
  height: auto;
  width: 100%;
}

.j1-ft__desc {
  color: #000A2B;
}

.j1-ft__desc,
.j1-ft__desc p {
  font-size: 14px;
  line-height: 20px;
}

.j1-ft__lojas {
  display: flex;
  gap: 12px;
}

.j1-ft__loja {
  align-items: center;
  background-color: #000A2B;
  border-radius: 8px;
  display: flex;
  height: 48px;
  justify-content: center;
  width: 148px;
}

.j1-ft__loja:hover {
  background-color: #0038E5;
}

.j1-ft__links {
  columns: 2;
  column-gap: 24px;
}

.j1-ft__col {
  display: contents;
}

.j1-ft__bloco {
  break-inside: avoid;
  margin-bottom: 32px;
}

.j1-ft__titulo {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  margin-bottom: 16px;
}

.j1-ft__bloco ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.j1-ft__bloco a {
  color: #000A2B;
  font-size: 14px;
  line-height: 20px;
}

.j1-ft__bloco a:hover {
  color: #0038E5;
  text-decoration: underline;
}

.j1-ft__inf {
  align-items: center;
  border-top: 1px solid #E8E8E5;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 40px;
}

.j1-ft__legal {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 8px;
  line-height: 15px;
  text-align: center;
}

.j1-ft__redes {
  color: #0038E5;
  display: flex;
  gap: 16px;
}

.j1-ft__redes a:hover {
  color: #002BB0;
}

@media (min-width: 1024px) {
  .j1-ft__sup {
    flex-direction: row;
    justify-content: space-between;
  }

  .j1-ft__marca {
    align-items: flex-start;
    flex: 0 0 278px;
    gap: 40px;
    text-align: left;
  }

  .j1-ft__lojas {
    flex-direction: column;
  }

  .j1-ft__links {
    columns: auto;
    display: grid;
    flex: 0 1 580px;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .j1-ft__col {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .j1-ft__bloco {
    margin-bottom: 0;
  }

  .j1-ft__inf {
    flex-direction: row;
    justify-content: space-between;
  }

  .j1-ft__legal {
    text-align: left;
  }
}


/* 8. Categorias
   ========================================================================== */

.j1-cat__topo {
  padding: 32px 0;
}

.j1-breadcrumb {
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 24px;
}

.j1-cat__titulo {
  color: #0038E5;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

/* Filtro "Filtrar por" com lista de links para o arquivo de cada categoria */

.j1-filtro {
  align-items: center;
  border: 1px solid #E8E8E5;
  border-radius: 40px;
  display: flex;
  gap: 16px;
  margin: 40px auto 0;
  padding: 8px 8px 8px 24px;
  position: relative;
  width: fit-content;
}

.j1-filtro__label {
  color: #0038E5;
  font-size: 14px;
  font-weight: 700;
}

.j1-filtro__btn {
  align-items: center;
  background-color: #D6EAFF;
  border-radius: 40px;
  color: #0038E5;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 16px;
  justify-content: space-between;
  min-width: 210px;
  padding: 12px 24px;
}

.j1-filtro__btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.j1-filtro__lista {
  background-color: #D6EAFF;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 10, 43, .12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px;
  position: absolute;
  right: 8px;
  top: calc(100% + 8px);
  z-index: 30;
}

.j1-filtro__lista[hidden] {
  display: none;
}

.j1-filtro__lista a {
  border-radius: 16px;
  color: #0038E5;
  display: block;
  font-size: 14px;
  font-weight: 700;
  opacity: .5;
  padding: 8px 12px;
  white-space: nowrap;
}

.j1-filtro__lista a:hover,
.j1-filtro__lista a:focus-visible,
.j1-filtro__lista a[aria-current="page"] {
  opacity: 1;
}

.j1-paginacao {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* Texto da categoria, vindo da descrição do termo */

.j1-cat__desc {
  color: #000A2B;
  font-size: 16px;
  line-height: 27px;
  max-width: 760px;
}

.j1-cat__desc h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  margin: 32px 0 16px;
}

.j1-cat__desc h2:first-child {
  margin-top: 0;
}

.j1-cat__desc p {
  margin-bottom: 16px;
}

/* Os <br> do texto criavam linha extra entre parágrafos. */
.j1-cat .j1-sec br {
  display: none;
}

@media (max-width: 479px) {
  .j1-filtro {
    padding-left: 16px;
    width: 100%;
  }

  .j1-filtro__btn {
    flex: 1;
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  .j1-cat__topo {
    padding: 48px 0 56px;
  }

  .j1-cat__titulo {
    font-size: 32px;
    line-height: 40px;
  }

  .j1-filtro {
    margin-top: 64px;
  }
}

/* ==========================================================
   Comentários e respostas (J1 Studio, 24/11/2026)
   Marcação do walker do tema (comment-body, comment-meta, children)
   ========================================================== */
.comments-area .comments-title {
  margin-bottom: 24px;
}

.comments-area .comment-list,
.comments-area .comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comments-area .comment-list > li.comment {
  border-top: 1px solid #E8E8E5;
  padding: 32px 0;
}

/* app.css dá 48px de margem em cada li e 24px de respiro no topo das respostas */
.comments-area .comment-list li.comment {
  margin-bottom: 0 !important;
}

.comments-area .comment-list .children {
  padding-top: 0 !important;
}

.comments-area .comment-list .avatar {
  margin-bottom: 0;
}

.comments-area .comment-list > li.comment:last-child {
  border-bottom: 1px solid #E8E8E5;
}

.comments-area .comment-body {
  min-height: 48px;
  padding-left: 64px;
  position: relative;
}

.comments-area .comment-author {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comments-area .comment-author .avatar {
  border-radius: 9999px;
  height: 48px;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 48px;
}

.comments-area .comment-author .fn {
  color: #000A2B;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.comments-area .comment-author .fn a {
  color: inherit;
}

.comments-area .comment-author .j1-com__selo {
  background-color: #0038E5;
  border-radius: 16px;
  color: #fff !important; /* app.css pinta span do autor de azul-escuro */
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  padding: 4px 8px;
}

.comments-area .comment-metadata {
  color: #718096;
  font-size: 14px;
  line-height: 24px;
}

.comments-area .comment-metadata .edit-link a {
  color: #0038E5;
  margin-left: 8px;
}

.comments-area .comment-awaiting-moderation {
  color: #718096;
  display: block;
  font-size: 14px;
  margin-top: 8px;
}

.comments-area .comment-content {
  color: #000A2B;
  font-size: 16px;
  line-height: 24px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.comments-area .comment-content p + p {
  margin-top: 8px;
}

.comments-area .comment-content a {
  color: #0038E5;
  text-decoration: underline;
}

.comments-area .reply {
  margin-top: 16px;
}

.comments-area .comment-reply-link {
  align-items: center;
  border: 1px solid #D6EAFF;
  border-radius: 9999px;
  color: #0038E5;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  line-height: 16px;
  padding: 8px 16px;
  transition: background-color .2s, color .2s;
}

.comments-area .comment-reply-link::before {
  background-color: currentColor;
  content: "";
  height: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 16px;
}

.comments-area .comment-reply-link:hover {
  background-color: #D6EAFF;
}

/* Respostas: recuo alinhado ao texto do comentário, com linha de conversa */
.comments-area .children {
  border-left: 2px solid #D6EAFF;
  margin: 24px 0 0 24px !important;
  padding-left: 16px !important;
}

.comments-area .children > li.comment + li.comment {
  margin-top: 16px;
}

.comments-area .children .comment-body {
  background-color: #F8F8F1;
  border-radius: 24px;
  padding: 24px 24px 24px 88px;
}

.comments-area .children .comment-author .avatar {
  left: 24px;
  top: 24px;
}

.comments-area .children li.byuser > .comment-body {
  background-color: #EEF5FF;
}

/* Formulário: em cartão; ao responder, abre embaixo do comentário */
.comments-area .comment-respond {
  border: 1px solid #D6EAFF;
  border-radius: 24px;
  margin-top: 48px;
  padding: 32px;
}

.comments-area .comment .comment-respond {
  background-color: #fff;
  margin: 24px 0 0;
}

.comments-area .comment-reply-title small {
  display: block;
  margin-top: 8px;
}

.comments-area #cancel-comment-reply-link {
  color: #C8102E;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.comments-area .comment-form-cookies-consent {
  align-items: flex-start;
  display: flex;
  font-size: 14px;
  gap: 8px;
  line-height: 24px;
}

.comments-area .comment-form-cookies-consent input {
  accent-color: #0038E5;
  flex-shrink: 0;
  height: 16px;
  margin-top: 4px;
  width: 16px;
}

@media (max-width: 767px) {
  .comments-area .comment-body {
    padding-left: 56px;
  }

  .comments-area .children {
    margin-left: 8px !important;
    padding-left: 8px !important;
  }

  .comments-area .children .comment-body {
    padding: 16px 16px 16px 64px;
  }

  .comments-area .children .comment-author .avatar {
    height: 40px;
    left: 16px;
    top: 16px;
    width: 40px;
  }

  .comments-area .comment-respond {
    padding: 24px 16px;
  }
}
