/* =========================================================
   MUNGEH LEGAL PAGES
   Persian Bylaw / English Bylaw
   ========================================================= */


/* =========================================================
   MAIN WRAPPER
   ========================================================= */

.mungeh-legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.9;
}


/* =========================================================
   PERSIAN
   ========================================================= */

.mungeh-legal-page.mungeh-legal-fa {
    direction: rtl !important;
    text-align: right !important;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}


/* =========================================================
   ENGLISH
   ========================================================= */

.mungeh-legal-page.mungeh-legal-en {
    direction: ltr !important;
    text-align: left !important;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.mungeh-legal-page h1,
.mungeh-legal-page h2,
.mungeh-legal-page h3,
.mungeh-legal-page h4 {
    color: #1e3d34 !important;
    font-weight: 700 !important;
    line-height: 1.5;
}


/* Main page title */

.mungeh-legal-page h1 {
    text-align: center !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    margin-top: 0;
    margin-bottom: 35px;
}


/* Chapters / Parts */

.mungeh-legal-page h2 {
    font-size: 30px !important;
    font-weight: 800 !important;
    margin-top: 55px;
    margin-bottom: 24px;
}


/* Sections */

.mungeh-legal-page h3 {
    font-size: 23px !important;
    font-weight: 700 !important;
    margin-top: 34px;
    margin-bottom: 14px;
}


/* Sub-sections */

.mungeh-legal-page h4 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-top: 26px;
    margin-bottom: 10px;
}


/* =========================================================
   PERSIAN FONT
   ========================================================= */

.mungeh-legal-fa,
.mungeh-legal-fa h1,
.mungeh-legal-fa h2,
.mungeh-legal-fa h3,
.mungeh-legal-fa h4,
.mungeh-legal-fa p,
.mungeh-legal-fa li,
.mungeh-legal-fa a {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}


/* =========================================================
   TEXT
   ========================================================= */

.mungeh-legal-page p,
.mungeh-legal-page li {
    line-height: 1.9;
}

.mungeh-legal-page p {
    margin-top: 8px;
    margin-bottom: 14px;
}

.mungeh-legal-page ul,
.mungeh-legal-page ol {
    margin-bottom: 22px;
}


/* =========================================================
   PERSIAN ALIGNMENT
   ========================================================= */

.mungeh-legal-fa p {
    text-align: justify !important;
    text-align-last: right !important;
}

.mungeh-legal-fa li {
    text-align: justify !important;
    text-align-last: right !important;
}

.mungeh-legal-fa h2,
.mungeh-legal-fa h3,
.mungeh-legal-fa h4 {
    text-align: right !important;
}


/* =========================================================
   ENGLISH ALIGNMENT
   ========================================================= */

.mungeh-legal-en p,
.mungeh-legal-en li {
    text-align: left !important;
}

.mungeh-legal-en h2,
.mungeh-legal-en h3,
.mungeh-legal-en h4 {
    text-align: left !important;
}


/* =========================================================
   LINKS
   ========================================================= */

.mungeh-legal-page a {
    color: #1e3d34 !important;
    text-decoration: underline;
}

.mungeh-legal-page a:hover {
    text-decoration: none;
}


/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

.mungeh-legal-page .mungeh-legal-toc {
    margin: 30px 0 50px;
}

.mungeh-legal-page .mungeh-legal-toc h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.mungeh-legal-page .mungeh-legal-toc h3 {
    margin-top: 0;
}


/* Main chapter links in TOC */

.mungeh-legal-page .toc-part {
    margin-bottom: 18px;
}

.mungeh-legal-page .toc-part-link {
    font-weight: 800 !important;
    font-size: 18px;
}


/* =========================================================
   TABLES
   ========================================================= */

.mungeh-legal-page .table-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0 30px;
}

.mungeh-legal-page .bylaw-table {
    width: 100%;
    border-collapse: collapse;
}

.mungeh-legal-page .bylaw-table td,
.mungeh-legal-page .bylaw-table th {
    border: 1px solid #d5d5d5;
    padding: 10px 12px;
    vertical-align: top;
}


/* =========================================================
   ANCHOR SCROLLING
   ========================================================= */

.mungeh-legal-page [id] {
    scroll-margin-top: 120px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .mungeh-legal-page {
        padding: 25px 16px;
    }

    .mungeh-legal-page h1 {
        font-size: 30px !important;
        margin-bottom: 28px;
    }

    .mungeh-legal-page h2 {
        font-size: 26px !important;
        margin-top: 45px;
        margin-bottom: 20px;
    }

    .mungeh-legal-page h3 {
        font-size: 21px !important;
        margin-top: 28px;
        margin-bottom: 12px;
    }

    .mungeh-legal-page h4 {
        font-size: 19px !important;
    }

    .mungeh-legal-page p,
    .mungeh-legal-page li {
        line-height: 1.9;
    }
}
/* =========================================================
   PERSIAN NUMBERED LISTS
   Force ordered-list markers to use Persian digits
   ========================================================= */

@counter-style mungeh-persian-numbers {
    system: numeric;
    symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹";
    suffix: ". ";
}

.mungeh-legal-fa ol {
    list-style-type: mungeh-persian-numbers !important;
}