/* NUSK: modo escuro em todas as páginas. Inverte as cores da página inteira (mantendo o tom
   das cores da marca) e desfaz a inversão em fotos, mapas, QR Codes e vídeos. */
@media screen {
  html[data-theme="escuro"] { filter: invert(.92) hue-rotate(180deg); background: #fff; }
  html[data-theme="escuro"] img:not([src*="logo"]):not([src*="badge"]):not([src$=".svg"]),
  html[data-theme="escuro"] picture,
  html[data-theme="escuro"] video,
  html[data-theme="escuro"] iframe,
  html[data-theme="escuro"] canvas,
  html[data-theme="escuro"] [data-sem-inverter] { filter: invert(1) hue-rotate(180deg); }
}
.nusk-tema-botao {
  position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 1100; /* acima dos mapas, abaixo dos avisos */
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(11, 52, 68, .25); background: #fffdf8; color: #0b3444;
  font: 20px/1 system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 52, 68, .18);
}
.nusk-tema-botao:hover { transform: translateY(-1px); }
.nusk-tema-botao:focus-visible { outline: 3px solid #27d6aa; outline-offset: 2px; }
@media print { .nusk-tema-botao { display: none; } html[data-theme="escuro"] { filter: none; } }
/* O próprio botão não é invertido (sol e lua com as cores certas). */
@media screen { html[data-theme="escuro"] .nusk-tema-botao { filter: invert(1) hue-rotate(180deg); } }
