/* PE Editorial 360 — modo noturno: sobrescreve variáveis e corrige o que usa cores fixas. */
[data-theme="dark"]{
	color-scheme:dark;
	--background:var(--dark-bg,#16171c);
	--surface:var(--dark-surface,#20222a);
	--surface-soft:#1b1d24;--surface-muted:#2a2d36;
	--text:#e6e7ec;--heading:#f4f4f7;--muted:#a7abb8;--border:#343743;
	--header-bg:var(--dark-bg,#16171c);--header-border:#2c2f3a;
	--footer-bg:#101116;
	--topbar-bg:var(--dark-topbar,#12125f);
	--ticker-bg:#1d1f27;--ticker-text:#c9ccd7;
	--h1-color:#f7f7fa;
	--link:#a3a8ff;
	--primary:#4a4af0;
}
[data-theme="dark"] body,[data-theme="dark"]{background:var(--background);color:var(--text)}
[data-theme="dark"] .pe-menu a,[data-theme="dark"] .pe-nav__home,[data-theme="dark"] .pe-dmenu a{color:#a3a8ff}
[data-theme="dark"] .pe-menu a:hover,[data-theme="dark"] .pe-dmenu a:hover{color:var(--orange)}
[data-theme="dark"] .pe-menu>li.current-menu-item>a,[data-theme="dark"] .pe-menu>li.current-menu-ancestor>a,[data-theme="dark"] .pe-menu>li.current-post-ancestor>a{color:var(--orange)}
/* Títulos de seção/ranking com cor da editoria: clareia para manter a leitura */
[data-theme="dark"] .pe-sec__title,[data-theme="dark"] .pe-rank__title,[data-theme="dark"] .pe-rank__cat,[data-theme="dark"] .pe-catbar__title,[data-theme="dark"] .pe-open__cat{color:#ececf2}
@supports (color:color-mix(in srgb,red,blue)){
	[data-theme="dark"] .pe-sec__title,[data-theme="dark"] .pe-rank__title,[data-theme="dark"] .pe-rank__cat,[data-theme="dark"] .pe-catbar__title,[data-theme="dark"] .pe-open__cat{color:color-mix(in srgb,var(--t,var(--sec,#fff)) 45%,#fff)}
}
[data-theme="dark"] .pe-rank__more a{color:#a3a8ff}
[data-theme="dark"] .pe-card__cat{color:#ececf2}
@supports (color:color-mix(in srgb,red,blue)){
	[data-theme="dark"] .pe-card__cat{color:color-mix(in srgb,var(--sec,#fff) 45%,#fff)}
}
[data-theme="dark"] .pe-rank__num{color:#4a4e5c}
[data-theme="dark"] .pe-rank__item{border-bottom-color:#3a3d4a}
[data-theme="dark"] .pe-rank__headline,[data-theme="dark"] .pe-item__title{color:var(--text)}
[data-theme="dark"] .pe-card__title{color:var(--heading)}
[data-theme="dark"] .pe-card--overlay .pe-card__title,[data-theme="dark"] .pe-card--lead .pe-card__title{color:#fff}
[data-theme="dark"] .pe-ph{background:#2a2d36;color:#5c6070}
[data-theme="dark"] .pe-sec__rule{background:linear-gradient(to right,var(--orange) 0 50%,#3a3d4a 50% 100%)}
[data-theme="dark"] .pe-ticker__label{border-right-color:rgba(255,255,255,.16)}
[data-theme="dark"] .pe-ticker__arrows{border-left-color:rgba(255,255,255,.16)}
[data-theme="dark"] .pe-ticker__track a:hover{color:#fff}
[data-theme="dark"] .pe-ad--top,[data-theme="dark"] .pe-ad--after_nav,[data-theme="dark"] .pe-ad--after_ticker,[data-theme="dark"] .pe-ad--before_open,[data-theme="dark"] .pe-ad--footer{background:repeating-linear-gradient(135deg,rgba(255,255,255,.03) 0 2px,transparent 2px 5px)}
[data-theme="dark"] .pe-ad__body{border-radius:4px;overflow:hidden}
[data-theme="dark"] .pe-box.pe-rank,[data-theme="dark"] .pe-box--cols,[data-theme="dark"] .pe-box--horo,[data-theme="dark"] .pe-box--sponsored,[data-theme="dark"] .pe-colcard,[data-theme="dark"] .pe-authorbox{background:var(--surface);border-color:var(--border)}
[data-theme="dark"] .pe-footer{color:#a7abb8}
[data-theme="dark"] .pe-footer__bottom{border-top-color:rgba(255,255,255,.08)}
[data-theme="dark"] .pe-flist a,[data-theme="dark"] .pe-social--footer{color:#a7abb8}
[data-theme="dark"] .pe-flist a:hover{color:#fff}
[data-theme="dark"] .pe-newsletter input[type=email],[data-theme="dark"] .pe-newsletter input[type=text]{background:#20222a;color:var(--text)}
[data-theme="dark"] .pe-article__body{color:#d8d9e0}
[data-theme="dark"] .pe-article__body strong,[data-theme="dark"] .pe-article__body b,[data-theme="dark"] .pe-article__body h2,[data-theme="dark"] .pe-article__body h3,[data-theme="dark"] .pe-article__body h4{color:var(--heading)}
[data-theme="dark"] .pe-article__lead{color:#aeb2bf}
[data-theme="dark"] .pe-article__cat{background:#2a2d38;color:#fff}
[data-theme="dark"] .pe-article__img{border-color:var(--border)}
[data-theme="dark"] .pe-article__body :not(pre)>code{background:#2a2d36}
[data-theme="dark"] .pe-article__body th{background:#252833}
[data-theme="dark"] .pe-tags a{background:#2a2d36;color:#c9ccd7}
[data-theme="dark"] .pe-tags{color:#c9ccd7}
[data-theme="dark"] .pe-react__btn{color:#7b8090}
[data-theme="dark"] .pe-react__btn:hover,[data-theme="dark"] .pe-react__btn.is-active{color:#a3a8ff}
[data-theme="dark"] .pe-article__body .pe-resp{background:var(--surface)}
[data-theme="dark"] .pe-pagination .page-numbers,[data-theme="dark"] .pagination .page-numbers{background:var(--surface);color:var(--text);border-color:var(--border)}
[data-theme="dark"] .pagination .page-numbers.current{background:var(--primary);color:#fff}
[data-theme="dark"] .comment-form input[type=text],[data-theme="dark"] .comment-form input[type=email],[data-theme="dark"] .comment-form input[type=url],[data-theme="dark"] .comment-form textarea{background:#20222a;color:var(--text);border-color:#3a3d4a}
[data-theme="dark"] .pe-comments__list .comment-metadata a{color:var(--muted)}
[data-theme="dark"] .pe-drawer{background:#1b1d24}
[data-theme="dark"] .pe-search__panel{background:#20222a}
[data-theme="dark"] .pe-sticky-ad,[data-theme="dark"] .pe-radio{background:var(--surface)}
[data-theme="dark"] .pe-menu .sub-menu{background:#20222a}
[data-theme="dark"] .pe-car__dot{border-color:#5a5e6d}
[data-theme="dark"] .pe-weather__range{border-left-color:#3a3d4a}
[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select{color-scheme:dark}
/* Contact Form 7 */
[data-theme="dark"] .wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]),[data-theme="dark"] .wpcf7 textarea,[data-theme="dark"] .wpcf7 select{background:#20222a;color:var(--text);border-color:#3a3d4a}
