  We prove many simultaneous congruences mod 2 for elliptic and Hilbert modular
forms among forms with different Atkin--Lehner eigenvalues. The proofs involve
the notion of quaternionic $S$-ideal classes and the distribution of
Atkin--Lehner signs among newforms.
