/* Modo noturno: redefine variáveis e corrige os trechos com cor fixa. Carregado depois dos módulos. */
[data-theme="dark"] {
	color-scheme: dark;
	--background: #121417;
	--surface-soft: #1b1f24;
	--text: #e9ebee;
	--heading: #f2f4f6;
	--muted: #a3abb5;
	--border: #2d333a;
	--header-bg: #121417;
	--accent: #8d92ff;
	--blue-soft: #1a2230;
	--footer-bg: #1c1fa6;
	--band-blue: #2026d6;
	--band-navy: #0d1d52;
}

[data-theme="dark"] body {
	background: var(--background);
	color: var(--text);
}

/* Links e títulos */
[data-theme="dark"] .we-card__title a,
[data-theme="dark"] .we-rcard__title a,
[data-theme="dark"] .we-row__title,
[data-theme="dark"] .we-row__title a,
[data-theme="dark"] .we-regblock__title a,
[data-theme="dark"] .we-regblock__name a,
[data-theme="dark"] .we-regblock__list a,
[data-theme="dark"] .we-latest__link,
[data-theme="dark"] .we-archive__title,
[data-theme="dark"] .we-article__title,
[data-theme="dark"] .we-related__title {
	color: var(--heading);
}

[data-theme="dark"] .we-content a {
	color: var(--accent);
	text-decoration-color: var(--accent);
}

/* Header */
[data-theme="dark"] .we-header {
	background: var(--header-bg);
}

[data-theme="dark"] .we-header__grid {
	border-color: var(--accent);
}

[data-theme="dark"] .we-signin,
[data-theme="dark"] .we-btn--primary {
	background: #3c42ff;
	color: #fff;
}

/* Cards, caixas e divisórias */
[data-theme="dark"] .we-latest {
	border-color: var(--border);
	background: var(--surface-soft);
}

[data-theme="dark"] .we-rgrid--c2 > .we-rcard,
[data-theme="dark"] .we-rgrid--c3 > .we-rcard,
[data-theme="dark"] .we-rgrid--c4 > .we-rcard {
	border-top-color: var(--border);
}

[data-theme="dark"] .we-editoria {
	background: var(--blue-soft);
}

[data-theme="dark"] .we-editoria__desc {
	color: var(--text);
}

[data-theme="dark"] .we-resp {
	background: var(--surface-soft);
	border-color: var(--border);
}

[data-theme="dark"] .we-resp__name {
	color: var(--heading);
}

[data-theme="dark"] .we-resp__role {
	color: var(--muted);
}

[data-theme="dark"] .we-resp__avatar {
	background: #3c42ff;
}

[data-theme="dark"] .we-media--ph {
	background-color: #232930;
}

[data-theme="dark"] .we-pick__box {
	background: #1b1f24;
	color: var(--text);
}

[data-theme="dark"] .we-divider {
	border-color: var(--accent);
}

[data-theme="dark"] .we-logo__set:not(.has-dark) .we-logo__img {
	filter: brightness(0) invert(1);
}

/* Formulários (inclui Contact Form 7) */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
	background: var(--surface-soft);
	color: var(--text);
	border-color: var(--border);
}

[data-theme="dark"] .we-nl input[type="email"],
[data-theme="dark"] .we-nl input[type="text"] {
	background: transparent;
	color: #fff;
}

/* Sistema de tema: mostra o ícone correto no botão */
[data-theme="dark"] .we-modebtn__moon {
	display: none;
}

[data-theme="dark"] .we-modebtn__sun {
	display: inline-flex;
}
