/* Tema claro do site (escolhido pelo sistema do visitante ou pelo botão). */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f7f2e9;
  --bg-soft:#efe6d6;
  --bg-card:#fffdf8;
  --bg-card-2:#f6eee1;
  --ink:#1f1611;
  --ink-2:#3b2f26;
  --ink-3:#5f5144;
  --ink-4:#6a5b4b;
  --gold-1:#6e5013;
  --gold-2:#785818;
  --gold-3:#7a5a17;
  --gold-4:#80601c;
  --line:rgba(150,112,38,.32);
  --line-soft:rgba(70,48,22,.12);
}
html[data-theme="light"] body{background:var(--bg);color:var(--ink-2)}
html[data-theme="light"] ::selection{background:rgba(150,112,38,.22);color:var(--ink)}

/* Botão de tema */
.tema-btn{
  flex-shrink:0;width:40px;height:40px;border-radius:50%;padding:0;margin-left:10px;
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
  border:1px solid var(--line);background:transparent;color:var(--gold-1);
  transition:border-color .2s,background .2s,transform .2s;
}
.tema-btn:hover{border-color:var(--gold-3);background:rgba(201,169,97,.08);transform:translateY(-1px)}
.tema-btn:focus-visible{outline:2px solid var(--gold-2);outline-offset:3px}
.tema-btn svg{width:18px;height:18px;display:block}
@media (max-width:1180px){.tema-btn{margin-left:auto;width:44px;height:44px}}
@media (max-width:760px){.tema-btn{margin-left:auto;margin-right:8px}}

/* Barra do topo, menu do celular e hero ficam escuros também no tema claro. */
html[data-theme="light"] :is(.topbar,.menu-mobile,.hero){
  color-scheme:dark;
  --bg:#0a0606;
  --bg-soft:#120808;
  --bg-card:#1a0d0d;
  --bg-card-2:#221010;
  --ink:#f3ead8;
  --ink-2:#d4c8b0;
  --ink-3:#9a8e76;
  --ink-4:#8e826d;
  --gold-1:#f0d99d;
  --gold-2:#dcc07a;
  --gold-3:#c9a961;
  --gold-4:#a98a48;
  --line:rgba(201,169,97,.18);
  --line-soft:rgba(244,236,224,.06);
}
html[data-theme="light"] .hero{background:#0a0606;color:var(--ink-2)}
html[data-theme="light"].pg-home .eyebrow{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-home .btn-wa{box-shadow:0 12px 32px rgba(37,211,102,0.138)}
html[data-theme="light"].pg-home .btn-wa:hover{box-shadow:0 16px 40px rgba(37,211,102,0.193)}
html[data-theme="light"].pg-home .area-card{background:linear-gradient(180deg, rgba(255,252,246,0.5), rgba(255,252,246,0.4))}
html[data-theme="light"].pg-home .area-icon{background:rgba(120,88,24,0.09)}
html[data-theme="light"].pg-home .area-list li{background:rgba(70,48,22,0.018)}
html[data-theme="light"].pg-home .area-list li:hover{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-home .dif-card{background:linear-gradient(180deg, rgba(255,252,246,0.4), rgba(255,252,246,0.3))}
html[data-theme="light"].pg-home .dif-icon{background:rgba(120,88,24,0.09)}
html[data-theme="light"].pg-home .how-card{background:linear-gradient(180deg, rgba(255,252,246,0.4), rgba(255,252,246,0.3))}
html[data-theme="light"].pg-home .how-num{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-home .dep-card{background:linear-gradient(180deg, rgba(255,252,246,0.4), rgba(255,252,246,0.3))}
html[data-theme="light"].pg-home .dep-avatar{background:rgba(120,88,24,0.12)}
html[data-theme="light"].pg-home .sobre-photo{box-shadow:0 30px 80px rgba(70,48,22,0.21), inset 0 0 0 1px rgba(120,88,24,0.15)}
html[data-theme="light"].pg-home .sobre-photo-tag{background:rgba(247,242,233,0.9)}
html[data-theme="light"].pg-home .pill-tag{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-home .final::before{background:radial-gradient(ellipse 60% 60% at 50% 50%, rgba(37,211,102,0.055), transparent 70%),
      radial-gradient(ellipse 50% 50% at 50% 50%, rgba(150,60,40,0.135), transparent 70%)}
html[data-theme="light"].pg-home .final-watermark{color:rgba(120,88,24,0.045)}
html[data-theme="light"].pg-home .final-inner{background:linear-gradient(180deg, rgba(70,48,22,0.064), rgba(70,48,22,0.024));box-shadow:0 30px 80px rgba(70,48,22,0.14), inset 0 1px 0 rgba(70,48,22,0.064)}
html[data-theme="light"].pg-home .final-cta{box-shadow:0 0 0 1px rgba(70,48,22,0.06) inset,
      0 8px 24px rgba(37,211,102,0.248),
      0 0 60px rgba(37,211,102,0.193),
      0 0 120px rgba(37,211,102,0.099)}
html[data-theme="light"].pg-home .float-wa{box-shadow:0 8px 28px rgba(37,211,102,0.248), 0 0 0 0 rgba(37,211,102,0.275)}
html[data-theme="light"].pg-home #sticky-mobile{background:rgba(247,242,233,0.85)}
html[data-theme="light"].pg-home .sticky-btn{box-shadow:0 10px 30px rgba(37,211,102,0.22), 0 0 40px rgba(37,211,102,0.138)}
html[data-theme="light"].pg-home .hp-more a:hover{background:rgba(120,88,24,0.09)}
html[data-theme="light"].pg-familia .eyebrow{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-familia .btn-wa{box-shadow:0 12px 32px rgba(37,211,102,0.138)}
html[data-theme="light"].pg-familia .btn-wa:hover{box-shadow:0 16px 40px rgba(37,211,102,0.193)}
html[data-theme="light"].pg-familia .area-card{background:linear-gradient(180deg, rgba(255,252,246,0.5), rgba(255,252,246,0.4))}
html[data-theme="light"].pg-familia .area-icon{background:rgba(120,88,24,0.09)}
html[data-theme="light"].pg-familia .area-list li{background:rgba(70,48,22,0.018)}
html[data-theme="light"].pg-familia .area-list li:hover{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-familia .dif-card{background:linear-gradient(180deg, rgba(255,252,246,0.4), rgba(255,252,246,0.3))}
html[data-theme="light"].pg-familia .dif-icon{background:rgba(120,88,24,0.09)}
html[data-theme="light"].pg-familia .how-card{background:linear-gradient(180deg, rgba(255,252,246,0.4), rgba(255,252,246,0.3))}
html[data-theme="light"].pg-familia .how-num{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-familia .dep-card{background:linear-gradient(180deg, rgba(255,252,246,0.4), rgba(255,252,246,0.3))}
html[data-theme="light"].pg-familia .dep-avatar{background:rgba(120,88,24,0.12)}
html[data-theme="light"].pg-familia .sobre-photo{box-shadow:0 30px 80px rgba(70,48,22,0.21), inset 0 0 0 1px rgba(120,88,24,0.15)}
html[data-theme="light"].pg-familia .sobre-photo-tag{background:rgba(247,242,233,0.9)}
html[data-theme="light"].pg-familia .pill-tag{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-familia .final::before{background:radial-gradient(ellipse 60% 60% at 50% 50%, rgba(37,211,102,0.055), transparent 70%),
      radial-gradient(ellipse 50% 50% at 50% 50%, rgba(150,60,40,0.135), transparent 70%)}
html[data-theme="light"].pg-familia .final-watermark{color:rgba(120,88,24,0.045)}
html[data-theme="light"].pg-familia .final-inner{background:linear-gradient(180deg, rgba(70,48,22,0.064), rgba(70,48,22,0.024));box-shadow:0 30px 80px rgba(70,48,22,0.14), inset 0 1px 0 rgba(70,48,22,0.064)}
html[data-theme="light"].pg-familia .final-cta{box-shadow:0 0 0 1px rgba(70,48,22,0.06) inset,
      0 8px 24px rgba(37,211,102,0.248),
      0 0 60px rgba(37,211,102,0.193),
      0 0 120px rgba(37,211,102,0.099)}
html[data-theme="light"].pg-familia .float-wa{box-shadow:0 8px 28px rgba(37,211,102,0.248), 0 0 0 0 rgba(37,211,102,0.275)}
html[data-theme="light"].pg-familia #sticky-mobile{background:rgba(247,242,233,0.85)}
html[data-theme="light"].pg-familia .sticky-btn{box-shadow:0 10px 30px rgba(37,211,102,0.22), 0 0 40px rgba(37,211,102,0.138)}
html[data-theme="light"].pg-artigo .eyebrow{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-artigo .artigo-corpo a{border-bottom:1px solid rgba(120,88,24,0.525)}
html[data-theme="light"].pg-artigo .artigo-corpo a.cta-wa,html[data-theme="light"].pg-artigo a.cta-wa{box-shadow:0 6px 26px rgba(37,211,102,0.165)}
html[data-theme="light"].pg-artigo .artigo-corpo a.cta-wa:hover,html[data-theme="light"].pg-artigo a.cta-wa:hover{box-shadow:0 10px 32px rgba(37,211,102,0.231)}
html[data-theme="light"].pg-artigo .blog-search summary:hover,html[data-theme="light"].pg-artigo .blog-search[open] summary{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-artigo .blog-search-field{box-shadow:0 10px 34px rgba(70,48,22,0.056)}
html[data-theme="light"].pg-artigo .blog-search-field:focus-within{box-shadow:0 0 0 3px rgba(120,88,24,0.15),0 10px 34px rgba(70,48,22,0.07)}
html[data-theme="light"].pg-artigo .blog-search-clear:hover{background:rgba(120,88,24,0.12)}
html[data-theme="light"].pg-artigo .pagination-nav:hover,html[data-theme="light"].pg-artigo .pagination-page:hover{background:rgba(120,88,24,0.075)}
html[data-theme="light"].pg-artigo .pagination-page.is-current{color:#fffaf0}
@media (min-width:901px){html[data-theme="light"].pg-artigo .post-card:first-child{background:radial-gradient(circle at 92% 8%,rgba(120,88,24,0.135),transparent 34%),
      linear-gradient(135deg,var(--bg-card),var(--bg-card-2))}}
@media (max-width:600px){html[data-theme="light"].pg-artigo .post-grid{scrollbar-color:var(--gold-4) rgba(70,48,22,0.08)}html[data-theme="light"].pg-artigo .post-grid::-webkit-scrollbar-track{background:rgba(70,48,22,0.08)}}
html[data-theme="light"].pg-artigo a.float-wa{box-shadow:0 8px 28px rgba(37,211,102,0.248)}
html[data-theme="light"].pg-artigo #sticky-mobile{background:rgba(247,242,233,0.85)}
html[data-theme="light"].pg-artigo a.sticky-btn{box-shadow:0 6px 24px rgba(37,211,102,0.187)}
@media (max-width:760px){html[data-theme="light"].pg-artigo body.blog-index a.sticky-btn{box-shadow:0 8px 28px rgba(70,48,22,0.133),0 6px 22px rgba(37,211,102,0.165)}}
html[data-theme="light"].pg-artigo .fontes{background:rgba(255,252,246,0.55)}
html[data-theme="light"].pg-artigo .artigo-corpo .fontes a,html[data-theme="light"].pg-artigo .fontes a{border-bottom:1px solid rgba(120,88,24,0.525)}
html[data-theme="light"].pg-artigo .news-tabs a{border:1px solid rgba(120,88,24,0.525)}
html[data-theme="light"].pg-artigo .news-tabs a[aria-current=page]{background:#785818;color:#fffcf6}
html[data-theme="light"].pg-artigo .news-card{border:1px solid rgba(120,88,24,0.36);background:rgba(70,48,22,0.011)}
html[data-theme="light"].pg-artigo .news-card h2 a:hover,html[data-theme="light"].pg-artigo .news-read:hover{color:#785818}
html[data-theme="light"].pg-artigo .news-card small,html[data-theme="light"].pg-artigo .news-origin{color:#6a5f52}
html[data-theme="light"].pg-artigo .news-read{color:#785818}
html[data-theme="light"].pg-artigo .news-source{border:1px solid rgba(120,88,24,0.45)}
html[data-theme="light"].pg-artigo .news-source a{color:#785818}
html[data-theme="light"].pg-artigo .news-pagination a{color:#785818}
html[data-theme="light"].pg-artigo .news-policy{color:#6a5f52}
html[data-theme="light"].pg-artigo .news-policy a{color:#785818}
html[data-theme="light"].pg-artigo .content-filters button{border:1px solid rgba(120,88,24,0.6)}
html[data-theme="light"].pg-artigo .content-filters button[aria-pressed="true"]{border-color:#785818;color:#785818;background:rgba(120,88,24,0.135)}
html[data-theme="light"].pg-artigo .content-filters button:focus-visible{outline:2px solid #785818}
html[data-theme="light"].pg-artigo .content-filter-status{color:#6a5f52}
html[data-theme="light"].pg-guias .eyebrow{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-guias .artigo-corpo a{border-bottom:1px solid rgba(120,88,24,0.525)}
html[data-theme="light"].pg-guias .artigo-corpo a.cta-wa,html[data-theme="light"].pg-guias a.cta-wa{box-shadow:0 6px 26px rgba(37,211,102,0.165)}
html[data-theme="light"].pg-guias .artigo-corpo a.cta-wa:hover,html[data-theme="light"].pg-guias a.cta-wa:hover{box-shadow:0 10px 32px rgba(37,211,102,0.231)}
html[data-theme="light"].pg-guias .blog-search summary:hover,html[data-theme="light"].pg-guias .blog-search[open] summary{background:rgba(120,88,24,0.06)}
html[data-theme="light"].pg-guias .blog-search-field{box-shadow:0 10px 34px rgba(70,48,22,0.056)}
html[data-theme="light"].pg-guias .blog-search-field:focus-within{box-shadow:0 0 0 3px rgba(120,88,24,0.15),0 10px 34px rgba(70,48,22,0.07)}
html[data-theme="light"].pg-guias .blog-search-clear:hover{background:rgba(120,88,24,0.12)}
html[data-theme="light"].pg-guias .pagination-nav:hover,html[data-theme="light"].pg-guias .pagination-page:hover{background:rgba(120,88,24,0.075)}
html[data-theme="light"].pg-guias .pagination-page.is-current{color:#fffaf0}
@media (min-width:901px){html[data-theme="light"].pg-guias .post-card:first-child{background:radial-gradient(circle at 92% 8%,rgba(120,88,24,0.135),transparent 34%),
      linear-gradient(135deg,var(--bg-card),var(--bg-card-2))}}
@media (max-width:600px){html[data-theme="light"].pg-guias .post-grid{scrollbar-color:var(--gold-4) rgba(70,48,22,0.08)}html[data-theme="light"].pg-guias .post-grid::-webkit-scrollbar-track{background:rgba(70,48,22,0.08)}}
html[data-theme="light"].pg-guias a.float-wa{box-shadow:0 8px 28px rgba(37,211,102,0.248)}
html[data-theme="light"].pg-guias #sticky-mobile{background:rgba(247,242,233,0.85)}
html[data-theme="light"].pg-guias a.sticky-btn{box-shadow:0 6px 24px rgba(37,211,102,0.187)}
@media (max-width:760px){html[data-theme="light"].pg-guias body.blog-index a.sticky-btn{box-shadow:0 8px 28px rgba(70,48,22,0.133),0 6px 22px rgba(37,211,102,0.165)}}
html[data-theme="light"].pg-guias .fontes{background:rgba(255,252,246,0.55)}
html[data-theme="light"].pg-guias .artigo-corpo .fontes a,html[data-theme="light"].pg-guias .fontes a{border-bottom:1px solid rgba(120,88,24,0.525)}
html[data-theme="light"].pg-guias .toc a:hover,html[data-theme="light"].pg-guias .toc a.is-active{background:rgba(120,88,24,0.12)}
html[data-theme="light"].pg-guias .cluster-nav{background:rgba(255,252,246,0.5)}
html[data-theme="light"].pg-guias .cluster-nav a:hover{background:rgba(120,88,24,0.09)}
html[data-theme="light"].pg-guias .cluster-nav a[aria-current="page"]{background:rgba(120,88,24,0.15)}
html[data-theme="light"].pg-guias .autor-box{background:rgba(255,252,246,0.5)}
html[data-theme="light"].pg-guias .hub-grupo .hub-pilar{border-bottom:1px solid rgba(120,88,24,0.6)}
html[data-theme="light"].pg-guias .hub-nota{background:rgba(255,252,246,0.5)}
html[data-theme="light"].pg-guias .campo input,html[data-theme="light"].pg-guias .campo select{border:1px solid rgba(120,88,24,0.375);background:#f7f2e9}
html[data-theme="light"].pg-guias .campo input:focus,html[data-theme="light"].pg-guias .campo select:focus{box-shadow:0 0 0 3px rgba(120,88,24,0.225)}
html[data-theme="light"].pg-guias .calc-aviso{background:rgba(120,88,24,0.12)}
html[data-theme="light"].pg-guias .calc-btn{color:#fffaf0}
html[data-theme="light"].pg-guias .calc-btn:hover{box-shadow:0 8px 24px rgba(120,88,24,0.375)}
html[data-theme="light"].pg-guias .calc-erro{color:#9b3420}
html[data-theme="light"].pg-guias .calc-destaque{background:linear-gradient(135deg,rgba(120,88,24,0.24),rgba(120,88,24,0.06))}
html[data-theme="light"].pg-guias .calc-alerta{color:#9b3420}
html[data-theme="light"].pg-guias .calc-notas a,html[data-theme="light"].pg-guias .calc-vazio a{border-bottom:1px solid rgba(120,88,24,0.525)}
html[data-theme="light"].pg-guias .calc-cta{background:#f7f2e9}
html[data-theme="light"].pg-guias .cc-item{background:#f7f2e9}
html[data-theme="light"].pg-guias .calc-card-duvida{border:1px dashed rgba(37,211,102,0.22);background:rgba(37,211,102,0.022)}
html[data-theme="light"].pg-guias .calc-card-duvida .hc-nome{color:#13703a}
html[data-theme="light"].pg-guias .calc-card-duvida .sit-ir{color:#13703a}
html[data-theme="light"].pg-guias .calc-card-duvida:hover{border-color:rgba(37,211,102,0.385)}
html[data-theme="light"].pg-guias .calc-mais{background:rgba(70,48,22,0.063)}
html[data-theme="light"].pg-guias .calc-resultado.desatualizado::before{color:#fffaf0}
html[data-theme="light"].pg-guias .calc-realce{background:rgba(120,88,24,0.18);border:1px solid rgba(120,88,24,0.675)}/* Ajustes manuais do tema claro */
html[data-theme="light"] .footer-brand .brand-logo-img{filter:brightness(.7) saturate(1.35)}
html[data-theme="light"] .topbar{background:rgba(14,9,8,.95)}
/* Hero escuro desce suave para o fundo claro */
html[data-theme="light"] .hero{padding-bottom:150px}
@media (min-width:761px) and (max-width:1024px){html[data-theme="light"] .hero{padding-bottom:130px}}
@media (max-width:760px){html[data-theme="light"] .hero{padding-bottom:130px}}
html[data-theme="light"] .hero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:150px;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(247,242,233,0) 0%,rgba(247,242,233,.18) 30%,rgba(247,242,233,.62) 65%,#f7f2e9 100%);
}
@media (max-width:760px){html[data-theme="light"] .hero::after{height:130px}}
/* link com cor fixa no HTML das notícias */
html[data-theme="light"] [style*="c3a161"]{color:var(--gold-1)!important}

/* Ícone do botão de tema escolhido pelo CSS (o botão já vem no HTML). */
.tema-btn .ic-lua{display:none}
html[data-theme="light"] .tema-btn .ic-lua{display:block}
html[data-theme="light"] .tema-btn .ic-sol{display:none}

/* Link de Direito de Família no rodapé (injetado pelo nginx em todas as páginas, menos a própria /familia/). */
.footer-area-link{display:inline-block;margin-top:12px;font-size:11px;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}
.footer-area-link:hover{color:var(--gold-1)}
.footer-area-link:focus-visible{outline:2px solid var(--gold-2);outline-offset:5px}

/* Dois links de área no rodapé (Família e Previdenciário). */
.footer-area-link + .footer-area-link{margin-left:18px}

/* Assinatura do autor com link para /artur-vitor/. */
.autor a,.autor-nome a{color:inherit;text-decoration:none;border-bottom:1px solid var(--line)}
.autor a:hover,.autor-nome a:hover{color:var(--gold-1)}
