Ecological consequences of shifting habitat mosaics within and across years in an intermittent stream