Question: then is adjective or adverb?
Answer: then adjective, adverb [not gradable] (TIME) at that time (in the past or in the future):