Matsya Purana — Manvantaras
वर्णाश्रमेषु युक्तस्य सुखोदर्कस्य स्वर्गतौ श्रौतस्मार्तो हि यो धर्मो ज्ञानधर्मः स उच्यते //
varṇāśrameṣu yuktasya sukhodarkasya svargatau śrautasmārto hi yo dharmo jñānadharmaḥ sa ucyate //
For one who is properly established in the duties of varṇa and āśrama, whose practice culminates in happiness and leads toward heaven, that dharma taught in the Śruti and the Smṛti is indeed called the Dharma of Knowledge (jñāna-dharma).
This verse does not address pralaya; it defines ethical-religious discipline—Śruti–Smṛti-based varṇāśrama practice—calling it jñāna-dharma when it is rightly understood and lived.
It frames ideal conduct as adherence to varṇa and āśrama obligations validated by Vedic (śrauta) and traditional (smārta) injunctions—relevant to householders for daily rites and to kings for upholding social order and dharma in governance.
Architectural rules are not mentioned; the ritual significance is that dharma is explicitly tied to śrauta and smārta foundations—implying Vedic rites, domestic rituals, and duty-based observances as the recognized path of practice.