html[data-pep-theme="dark"]{--bg:#12151b;--text:#f0f2f6;--surface:#222733;--line:#3c4350;--muted:#b5bdc9;--category-color:#ff4859;color-scheme:dark}
html[data-pep-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-pep-theme="dark"] .image-placeholder{background:#303847;color:#aab1be}
html[data-pep-theme="dark"] .article-byline span,html[data-pep-theme="dark"] .article-byline a{color:var(--text)}
html[data-pep-theme="dark"] .single-excerpt{color:var(--muted)!important}
html[data-pep-theme="dark"] .menu-toggle{background:#1d2230;color:#ff6a72}
html[data-pep-theme="dark"] .brand-logo .logo-default{display:none}
html[data-pep-theme="dark"] .brand-logo .logo-dark{display:block!important}
html:not([data-pep-theme="dark"]) .brand-logo .logo-light{display:block!important}
html:not([data-pep-theme="dark"]) .brand-logo:has(.logo-light) .logo-default{display:none}
html[data-pep-theme="dark"] .search-form input,html[data-pep-theme="dark"] .search-form button{color:var(--text)}
html[data-pep-theme="dark"] .site-header .search-form input,html[data-pep-theme="dark"] .site-header .search-form button{color:#fff}
html[data-pep-theme="dark"] .footer-bottom{background:#050506}
html[data-pep-theme="dark"] .share-bar a,html[data-pep-theme="dark"] .follow-cta strong,html[data-pep-theme="dark"] .footer-menu a{color:var(--text)}
html[data-pep-theme="dark"] .social-links a{color:#fff}


/* Sidebar interna: contraste correto no modo noturno.
   Escopo limitado ao componente de notícias mais lidas. */
html[data-pep-theme="dark"] .pep-internal-sidebar-card{
    background-color:var(--surface,#222733);
    border-color:var(--line,#3c4350);
    color:var(--text,#f0f2f6);
}
html[data-pep-theme="dark"] .pep-internal-sidebar-title{
    color:var(--category-color,#ff4859);
    border-bottom-color:var(--category-color,#ff4859);
}
html[data-pep-theme="dark"] .pep-internal-popular li{
    border-bottom-color:var(--line,#3c4350);
}
html[data-pep-theme="dark"] .pep-internal-popular li a,
html[data-pep-theme="dark"] .pep-internal-popular-text{
    color:var(--text,#f0f2f6);
}
html[data-pep-theme="dark"] .pep-internal-popular li a:before,
html[data-pep-theme="dark"] .pep-internal-popular a:hover .pep-internal-popular-text,
html[data-pep-theme="dark"] .pep-internal-popular a:focus-visible .pep-internal-popular-text{
    color:var(--category-color,#ff4859);
}
html[data-pep-theme="dark"] .pep-internal-popular-thumb{
    background-color:#303847;
}
