/* Portal Editorial Broadcast — modo noturno. Faixas institucionais (azul-marinho) são preservadas. */
html[data-theme='dark'] {
	color-scheme: dark;

	--background: #12171d;
	--surface: #1a212a;
	--surface-secondary: #222b36;
	--text: #e8edf3;
	--muted: #a4b0bf;
	--border: #2a3441;

	--blue-medium: #8fb8e8;
	--header-bg: #0e1319;
	--footer-bg: #0e1319;
	--footer-text: #cfd8e3;
	--footer-link: #e8edf3;
	--footer-hover: #58b0ff;
	--footer-heading: #8fb8e8;
	--awards-bg: #161d26;
	--sticky-border: #2a3441;

	--link: #58b0ff;
	--heading: #f1f5f9;
	--body-text: #d3dbe5;
	--label-color: #8fb8e8;
	--card-bg: #1a212a;
	--placeholder-bg: #222b36;
	--placeholder-fg: #6d7b8c;
	--overlay: rgba(0, 0, 0, 0.7);
	--focus: #58b0ff;
}

html[data-theme='dark'] .peb-theme-toggle__moon,
html[data-theme='dark'] .peb-logo__img--light {
	display: none;
}

html[data-theme='dark'] .peb-theme-toggle__sun,
html[data-theme='dark'] .peb-logo__img--dark {
	display: block;
}

html[data-theme='dark'] .peb-theme-toggle__sun {
	display: inline-block;
}

html[data-theme='dark'] .peb-btn--outline {
	border-color: #58b0ff;
	color: #58b0ff;
}

html[data-theme='dark'] .peb-btn--outline:hover {
	background: rgba(88, 176, 255, 0.12);
}

html[data-theme='dark'] .peb-searchform__input,
html[data-theme='dark'] .peb-input,
html[data-theme='dark'] .wpcf7 input:not([type='submit']):not([type='checkbox']):not([type='radio']),
html[data-theme='dark'] .wpcf7 textarea,
html[data-theme='dark'] .wpcf7 select,
html[data-theme='dark'] .comment-form input:not([type='submit']):not([type='checkbox']),
html[data-theme='dark'] .comment-form textarea {
	background: var(--surface);
	color: var(--text);
	border-color: var(--border);
}

html[data-theme='dark'] .peb-resp {
	background: var(--surface);
}

html[data-theme='dark'] .peb-content table th {
	background: var(--surface-secondary);
}

html[data-theme='dark'] .peb-ad__box {
	background: var(--surface);
}

html[data-theme='dark'] img:not([src*='.svg']) {
	filter: brightness(0.92);
}

html[data-theme='dark'] img.peb-logo__img,
html[data-theme='dark'] .peb-ph svg {
	filter: none;
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme]) {
		color-scheme: dark;
	}
}
