/* Ajustes de PWA/responsivo comuns a todas as paginas (celular e desktop). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
img, video, canvas, svg { max-width: 100%; }
button, a, input, select, textarea, label { touch-action: manipulation; }
/* Evita zoom automatico do iOS ao focar em campos pequenos. */
@media (max-width: 820px) { input, select, textarea { font-size: max(16px, 1em); } }
/* App instalado: sem "puxar para recarregar" acidental e respeitando o recorte/notch. */
@media (display-mode: standalone), (display-mode: minimal-ui) {
  html, body { overscroll-behavior-y: none; }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
/* Barra de aviso de conexao (assets/js/pwa.js) */
#sa-offline-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 99999; display: none; padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: #b3261e; color: #fff; text-align: center; font: 600 13px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; }
#sa-offline-bar.show { display: block; }
/* Botao flutuante "Instalar app" (paginas publicas) */
#sa-install-btn { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 99998; display: none; align-items: center; gap: 8px;
  padding: 12px 16px; border: 0; border-radius: 999px; background: #00a884; color: #fff; font: 700 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); cursor: pointer; }
#sa-install-btn.show { display: inline-flex; }
#sa-install-dica { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 99998; display: none; padding: 12px 14px; border-radius: 12px;
  background: #1f2c34; color: #e9edef; font: 500 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
#sa-install-dica.show { display: block; }
