پرش به محتوا

مدیاویکی:Common.css: تفاوت میان نسخه‌ها

از ویکی داد
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۱: خط ۱:
/* =========================================================
/* =========================================================
   ویکی‌داد — MediaWiki:Common.css
   ویکی‌داد — سیستم طراحی اصلی
   نسخه یکپارچه طراحی سایت
  MediaWiki:Common.css
   نسخه یکپارچه و اصلاحی
   ========================================================= */
   ========================================================= */




/* =========================================================
/* =========================================================
   01 — DESIGN SYSTEM
   1. متغیرهای اصلی طراحی
   ========================================================= */
   ========================================================= */


:root {
:root {


    /* رنگ اصلی */
     --law-primary: #168477;
     --law-primary: #168477;
     --law-primary-dark: #11695f;
     --law-primary-dark: #11695f;


    /* لینک */
     --law-link: #176c88;
     --law-link: #176c88;


    /* رنگ‌های معنایی */
     --law-gold: #c49a3a;
     --law-gold: #c49a3a;
     --law-blue: #3978ad;
     --law-blue: #3978ad;
خط ۲۴: خط ۲۲:
     --law-orange: #d38a27;
     --law-orange: #d38a27;


    /* متن */
     --law-text: #263238;
     --law-text: #263238;
     --law-text-soft: #546e7a;
     --law-text-soft: #546e7a;


    /* زمینه */
     --law-bg: #ffffff;
     --law-bg: #ffffff;
     --law-bg-soft: #f7f9f8;
     --law-bg-soft: #f7f9f8;


    /* خطوط */
     --law-border: #dfe7e5;
     --law-border: #dfe7e5;


    /* سایه */
     --law-shadow:
     --law-shadow: 0 4px 18px rgba(20, 60, 55, 0.07);
        0 4px 18px rgba(20, 60, 55, 0.07);


    /* گوشه */
     --law-radius: 12px;
     --law-radius: 12px;


    /* فاصله */
     --law-space: 24px;
     --law-space: 24px;
}
}
خط ۴۷: خط ۴۰:


/* =========================================================
/* =========================================================
   02 — پایه عمومی فارسی
   2. پایه صفحات فارسی
   ========================================================= */
   ========================================================= */


خط ۵۸: خط ۵۱:
     text-align: right;
     text-align: right;
     color: var(--law-text);
     color: var(--law-text);
}
body,
.mw-body,
.mw-page-container,
.mw-workspace-container {
     font-family:
     font-family:
         "Vazirmatn",
         "Vazirmatn",
خط ۸۱: خط ۶۸:


/* =========================================================
/* =========================================================
   03 — لینک‌های عمومی
   3. صفحه حقوقی
  ========================================================= */
 
.law-page {
    direction: rtl;
    text-align: right;
    line-height: 2;
    font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;
}
 
 
/* =========================================================
  4. لینک‌های صفحات حقوقی
   ========================================================= */
   ========================================================= */


.mw-body a {
.law-page a {
     color: var(--law-link);
     color: var(--law-link);
    font-weight: 500;
}
}


.mw-body a:hover {
.law-page a:hover {
     color: var(--law-primary-dark);
     color: var(--law-primary-dark);
}
}
خط ۹۴: خط ۹۹:


/* =========================================================
/* =========================================================
   04 — تیترهای محتوای حقوقی
   5. تیترهای اصلی صفحات
   ========================================================= */
   ========================================================= */


خط ۱۰۳: خط ۱۰۸:
     color: var(--law-text);
     color: var(--law-text);
     font-weight: 700;
     font-weight: 700;
}
.mw-body table {
    direction: rtl;
}
}




/* =========================================================
/* =========================================================
   05 — صفحه حقوقی
   6. بردکرامب حقوقی
   ========================================================= */
  =========================================================
 
  ساختار:
 
  [ قوانین و مقررات ] ← [ قانون کار ] ← [ فصل اول ] ← [ ماده ۲ ]
 
  هر سطح یک کادر مستقل دارد.
  فلش‌ها خارج از کادرها هستند.
  ماده جاری با رنگ سبز مشخص می‌شود.
 
   ========================================================= */
 
.wd-breadcrumb {


.law-page {
     direction: rtl;
     direction: rtl;
     text-align: right;
 
     line-height: 2;
    display: flex;
     align-items: center;
     flex-wrap: wrap;
 
    gap: 7px;
 
    margin: 12px 0 24px;
    padding: 0;
 
     font-family:
     font-family:
         "Vazirmatn",
         "Vazirmatn",
خط ۱۲۴: خط ۱۴۴:
         Arial,
         Arial,
         sans-serif;
         sans-serif;
    font-size: 13px;
    line-height: 1.8;
}
}


.law-page a {
    color: var(--law-link);
    font-weight: 500;
}


.law-page a:hover {
/* ---------- کادرهای قابل کلیک ---------- */
     color: #0e4e63;
 
}
.wd-breadcrumb-item {
 
     display: inline-flex;
    align-items: center;


    box-sizing: border-box;


/* =========================================================
    min-height: 34px;
  06 — جعبه ماده
  ========================================================= */


.law-article-box {
     padding: 5px 12px;
     background:
        linear-gradient(
            135deg,
            #e8f5f2 0%,
            #d9eee9 100%
        );


     border-right: 6px solid var(--law-primary);
     background: #f5f8f7;
    border-radius: 12px;


     padding: 22px 26px;
     border: 1px solid #d8e3df;
    margin: 20px 0 25px;


     box-shadow:
     border-radius: 7px;
        0 3px 12px rgba(22, 132, 119, 0.12);
}


.law-article-box .article-number {
     color: #3f5d58;
     color: var(--law-primary-dark);
    font-size: 1.35em;
    font-weight: bold;
    margin-bottom: 10px;
}


.law-article-box .article-text {
    white-space: nowrap;
    color: #173b38;
 
     font-size: 1.08em;
     transition:
    font-weight: 500;
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}
}




/* =========================================================
/* لینک داخل کادر */
  07 — مواد مرتبط
 
  ========================================================= */
.wd-breadcrumb-item a {
 
    color: #3d6861 !important;


.related-laws-box {
     text-decoration: none !important;
    background: #f5f1e8;
    border-right: 5px solid var(--law-gold);
     border-radius: 10px;


     padding: 18px 22px;
     font-weight: 600;
    margin: 20px 0;
}
}


.related-laws-title {
    color: #80621e;
    font-weight: bold;
    font-size: 1.12em;
}


/* هاور */


/* =========================================================
.wd-breadcrumb-item:hover {
  08 — اصطلاحات
  ========================================================= */


.term-box {
     background: #edf5f2;
     background: #f3eff8;
 
    border-right: 5px solid var(--law-purple);
     border-color: #a9c8c1;
     border-radius: 10px;


     padding: 18px 22px;
     transform: translateY(-1px);
    margin: 18px 0;
}
}


.wd-breadcrumb-item:hover a {


/* =========================================================
    color: #11695f !important;
  09 — جعبه رأی قضایی
}
  ========================================================= */


.judgment-box {
    background: #eef4fa;
    border-right: 5px solid var(--law-blue);
    border-radius: 10px;


    padding: 20px 24px;
/* ---------- فلش بین کادرها ---------- */
    margin: 18px 0;
}


.judgment-title {
.wd-breadcrumb-arrow {
    color: #245d89;
    font-weight: bold;
}


    display: inline-flex;


/* =========================================================
    align-items: center;
  10 — نظریه مشورتی
    justify-content: center;
  ========================================================= */
 
    min-width: 17px;
 
    color: #8a9b97;


.advisory-box {
     font-size: 14px;
    background: #f5f0e9;
     font-weight: 600;
     border-right: 5px solid #a9783b;
     border-radius: 10px;


     padding: 20px 24px;
     user-select: none;
    margin: 18px 0;
}
}




/* =========================================================
/* ---------- ماده جاری ---------- */
  11 — شرح ماده
  ========================================================= */


.explanation-box {
.wd-breadcrumb-current {
    background: #ffffff;
    border-right: 5px solid var(--law-primary);
    border-radius: 10px;


     padding: 20px 24px;
     display: inline-flex;
     margin: 18px 0;
     align-items: center;


     box-shadow:
     box-sizing: border-box;
        0 2px 8px rgba(0, 0, 0, 0.06);
 
}
    min-height: 34px;
 
    padding: 5px 13px;
 
    background: #e5f1ed;
 
    border: 1px solid #b8d5cc;


    border-right: 3px solid #168477;


/* =========================================================
    border-radius: 7px;
  12 — جعبه جستارهای وابسته
 
  ========================================================= */
    color: #11695f;


.related-topics-box {
     font-weight: 800;
    background: #f7f7f7;
    border-right: 4px solid #777;
     border-radius: 8px;


     padding: 18px 22px;
     white-space: nowrap;
}
}




/* =========================================================
/* ---------- لینک‌های داخل بردکرامب ---------- */
  13 — ناوبری مواد
  ========================================================= */


.law-navigation {
.wd-breadcrumb-item span[itemprop="name"],
    margin: 35px 0;
.wd-breadcrumb-current span[itemprop="name"] {
    padding: 18px;


     background: #f1f7f6;
     display: inline-block;
    border: 1px solid #c9e3df;
    border-radius: 12px;
}
}


.law-navigation-title {
    color: var(--law-primary-dark);
    font-weight: bold;
    font-size: 1.15em;
    margin-bottom: 12px;
}


/* ---------- موبایل ---------- */


/* =========================================================
@media (max-width: 700px) {
  14 — جدول قدیمی فهرست مواد
  ========================================================= */


.law-index-table {
    .wd-breadcrumb {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}


.law-index-table th {
        gap: 5px;
    background: var(--law-primary);
    color: #fff;
    padding: 10px;
}


.law-index-table td {
        margin: 10px 0 18px;
    padding: 9px;
    border: 1px solid #ddd;
}


.law-index-table tr:nth-child(even) {
        font-size: 12px;
    background: #f8fbfa;
 
}
        line-height: 1.7;
    }
 
    .wd-breadcrumb-item,
    .wd-breadcrumb-current {
 
        min-height: 31px;
 
        padding: 4px 9px;
 
        border-radius: 6px;
    }
 
    .wd-breadcrumb-arrow {
 
        min-width: 12px;


.law-index-table a {
        font-size: 12px;
     text-decoration: none;
     }
}
}




/* =========================================================
/* =========================================================
   15 — Breadcrumb اختصاصی ویکی‌داد
   7. نکته مهم درباره جعبه ماده
  =========================================================
 
  طراحی نهایی الگو:جعبه ماده داخل خود Template قرار دارد.
  بنابراین اینجا عمداً روی آن background / padding / border
  تحمیل نمی‌کنیم تا طراحی نهایی Template خراب نشود.
 
   ========================================================= */
   ========================================================= */


.wd-breadcrumb {
    direction: rtl;


    display: flex;
/* =========================================================
    align-items: center;
  8. اصطلاحات کلیدی
    flex-wrap: wrap;
  ========================================================= */


    gap: 8px;
.term-box {


     margin: 12px 0 24px;
     background: #f3eff8;
    padding: 6px 0;


     font-family:
     border-right: 5px solid var(--law-purple);
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;


     font-size: 13px;
     border-radius: 10px;
    line-height: 1.9;


     color: #667773;
     padding: 18px 22px;
}


.wd-breadcrumb-item {
     margin: 18px 0;
     display: inline-flex;
    align-items: center;
}
}


.wd-breadcrumb-item a {
    color: var(--law-link);
    text-decoration: none;
    font-weight: 600;
}


.wd-breadcrumb-item a:hover {
/* =========================================================
     color: var(--law-primary-dark);
  9. مواد مرتبط
    text-decoration: underline;
  ========================================================= */
}
 
.related-laws-box {
 
    background: #f5f1e8;
 
     border-right: 5px solid var(--law-gold);


.wd-breadcrumb-arrow {
     border-radius: 10px;
    display: inline-flex;
     align-items: center;


     color: #a5b3af;
     padding: 18px 22px;
    font-size: 13px;


     user-select: none;
     margin: 20px 0;
}
}


.wd-breadcrumb-current {
.related-laws-title {
     display: inline-flex;
 
     align-items: center;
     color: #80621e;
 
     font-weight: bold;


    color: #405b56;
     font-size: 1.12em;
     font-weight: 800;
}
}




/* =========================================================
/* =========================================================
   16 — فهرست مدرن قانون
   10. رأی قضایی
   ========================================================= */
   ========================================================= */


.wd-law-index {
.judgment-box {
    direction: rtl;
    text-align: right;


     margin: 28px 0;
     background: #eef4fa;


     font-family:
     border-right: 5px solid var(--law-blue);
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;
}


.wd-law-index-head {
    border-radius: 10px;
    padding: 20px 22px;


     background: #f7faf9;
     padding: 20px 24px;
    border: 1px solid var(--law-border);


     border-right: 5px solid var(--law-primary);
     margin: 18px 0;
 
    border-radius: 10px 10px 0 0;
}
}


.wd-law-index-title {
.judgment-title {
    font-size: 22px;
    font-weight: 800;


     color: #245b55;
     color: #245d89;


     line-height: 1.9;
     font-weight: bold;
}
}


.wd-law-index-description {
    margin-top: 5px;


    font-size: 13px;
/* =========================================================
    color: #687875;
  11. نظریه مشورتی
  ========================================================= */


    line-height: 2;
.advisory-box {
}


.wd-law-index-meta {
     background: #f5f0e9;
     display: flex;
    flex-wrap: wrap;


     gap: 7px;
     border-right: 5px solid #a9783b;


     margin-top: 12px;
     border-radius: 10px;
}


.wd-law-index-meta span {
     padding: 20px 24px;
     display: inline-block;


     padding: 4px 10px;
     margin: 18px 0;
}


    background: #ffffff;
    border: 1px solid #dce6e3;
    border-radius: 20px;


    color: #58706b;
/* =========================================================
  12. شرح ماده
  ========================================================= */
 
.explanation-box {


     font-size: 12px;
     background: #ffffff;
}
 
    border-right: 5px solid var(--law-primary);
 
    border-radius: 10px;
 
    padding: 20px 24px;


.wd-law-index-status {
     margin: 18px 0;
     font-weight: bold;
}


.wd-law-index-content {
    box-shadow:
    padding: 18px 0;
        0 2px 8px rgba(0, 0, 0, 0.06);
}
}




/* =========================================================
/* =========================================================
   17 — فصل قانون
   13. جستارهای وابسته
   ========================================================= */
   ========================================================= */


.wd-law-chapter {
.related-topics-box {
    direction: rtl;
    text-align: right;


     margin: 12px 0;
     background: #f7f7f7;


     font-family:
     border-right: 4px solid #777;
        "Vazirmatn",
 
        "IRANSans",
    border-radius: 8px;
        Tahoma,
        Arial,
        sans-serif;
}


.wd-law-chapter a {
     padding: 18px 22px;
     display: block;


     color: inherit;
     margin: 20px 0;
    text-decoration: none;
}
}


.wd-law-chapter-clickable {
    display: flex;
    align-items: center;


    width: 100%;
/* =========================================================
    box-sizing: border-box;
  14. ناوبری مواد
  ========================================================= */


    padding: 15px 17px;
.law-navigation {


     background: #f3f8f6;
     margin: 35px 0;


     border: 1px solid #d5e4e0;
     padding: 18px;
    border-right: 5px solid var(--law-primary);


     border-radius: 9px;
     background: #f1f7f6;


     transition:
     border: 1px solid #c9e3df;
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}


.wd-law-chapter-clickable:hover {
     border-radius: 12px;
    background: #edf5f2;
     border-color: #bcd5cf;


     transform: translateY(-1px);
     direction: rtl;
    text-align: center;
}
}


.wd-law-chapter-main {
.law-navigation-title {
    flex: 1;
    min-width: 0;
}


.wd-law-chapter-title {
    color: var(--law-primary-dark);
    display: block;


     color: #245b55;
     font-weight: bold;


     font-size: 16px;
     font-size: 1.15em;
    font-weight: 800;


    line-height: 2;
     margin-bottom: 12px;
}
 
.wd-law-chapter-description {
    display: block;
 
     margin-top: 2px;
 
    color: #6b7d79;
 
    font-size: 12px;
    line-height: 1.9;
}
 
.wd-law-chapter-arrow {
    flex: 0 0 auto;
 
    margin-right: 14px;
 
    color: var(--law-primary);
 
    font-size: 18px;
    font-weight: bold;
}
}




/* =========================================================
/* =========================================================
   18 — مبحث قانون
   15. فهرست قانون
   ========================================================= */
   ========================================================= */


.wd-law-topic {
.wd-law-index {
 
     direction: rtl;
     direction: rtl;
     text-align: right;
     text-align: right;


     margin: 9px 0 9px 18px;
     margin: 24px 0;


     font-family:
     font-family:
خط ۵۷۴: خط ۴۹۲:
}
}


.wd-law-topic a {
    display: block;


    color: inherit;
/* ---------- سربرگ فهرست ---------- */
    text-decoration: none;
}


.wd-law-topic-clickable {
.wd-law-index-head {
    display: flex;
    align-items: center;


     width: 100%;
     padding: 20px 22px;
    box-sizing: border-box;


     padding: 12px 15px;
     background:
        linear-gradient(
            135deg,
            #eef6f3 0%,
            #e5f0ed 100%
        );


     background: #faf9fc;
     border-right: 5px solid var(--law-primary);


    border: 1px solid #e4deea;
     border-radius: 10px;
     border-right: 4px solid var(--law-purple);


     border-radius: 8px;
     margin-bottom: 16px;
 
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}
}


.wd-law-topic-clickable:hover {
.wd-law-index-title {
    background: #f5f1f8;
    border-color: #d3c6df;


     transform: translateY(-1px);
     color: var(--law-primary-dark);
 
    font-size: 21px;
 
    font-weight: 800;
 
    line-height: 1.9;
}
}


.wd-law-topic-main {
.wd-law-index-description {
    flex: 1;
    min-width: 0;
}


.wd-law-topic-title {
    margin-top: 5px;
    display: block;


     color: #654d83;
     color: #5b6d69;


     font-size: 14px;
     font-size: 13px;
    font-weight: 800;


     line-height: 2;
     line-height: 2;
}
}


.wd-law-topic-description {
.wd-law-index-meta {
    display: block;


     margin-top: 2px;
     display: flex;


     color: #77807e;
     flex-wrap: wrap;


     font-size: 12px;
     gap: 7px;
}


.wd-law-topic-arrow {
    margin-top: 12px;
    flex: 0 0 auto;
}


    margin-right: 12px;
.wd-law-index-meta span {


     color: var(--law-purple);
     display: inline-block;


     font-size: 17px;
     padding: 4px 9px;
    font-weight: bold;
}


    background: #ffffff;


/* =========================================================
    border: 1px solid #d8e3df;
  19 — ماده در فهرست قانون
  ========================================================= */


.wd-law-item {
     border-radius: 6px;
    direction: rtl;
     text-align: right;


     margin: 7px 0 7px 36px;
     color: #52635f;


     font-family:
     font-size: 11px;
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;
}
}


.wd-law-item > a {
.wd-law-index-status {
 
    font-weight: 700;
}
 
 
/* =========================================================
  16. فصل قانون
  ========================================================= */
 
.wd-law-chapter {
 
    margin: 12px 0;
}
 
.wd-law-chapter a {
 
     display: block;
     display: block;


     color: inherit;
     color: inherit !important;
     text-decoration: none;
 
     text-decoration: none !important;
}
}


.wd-law-item-clickable {
.wd-law-chapter-clickable {
 
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
    justify-content: space-between;


     width: 100%;
     width: 100%;
     box-sizing: border-box;
     box-sizing: border-box;


     min-height: 54px;
     min-height: 62px;


     padding: 9px 13px;
     padding: 12px 17px;


     background: #ffffff;
     background: #f1f6f4;


     border: 1px solid #e2e8e6;
     border: 1px solid #d5e2de;
    border-right: 3px solid #9bbab4;


     border-radius: 7px;
    border-right: 5px solid #2f6f68;
 
     border-radius: 9px;


     transition:
     transition:
         background 0.15s ease,
         background 0.15s ease,
         border-color 0.15s ease,
         border-color 0.15s ease,
         transform 0.15s ease;
         transform 0.15s ease,
        box-shadow 0.15s ease;
}
}


.wd-law-item-clickable:hover {
.wd-law-chapter-clickable:hover {
     background: #f8fbfa;
 
     border-color: #c5d8d3;
     background: #e8f2ef;
 
     border-color: #a9c8c1;
 
    box-shadow:
        0 3px 10px rgba(30, 90, 80, 0.07);


     transform: translateY(-1px);
     transform: translateY(-1px);
}
}


.wd-law-item-number {
.wd-law-chapter-main {
    flex: 0 0 auto;


     min-width: 65px;
     display: flex;


     color: #245b55;
     flex-direction: column;


     font-size: 13px;
     min-width: 0;
    font-weight: 800;
}
}


.wd-law-item-text {
.wd-law-chapter-title {
    flex: 1;
    min-width: 0;


     padding: 0 10px;
     color: #245b55;
}


.wd-law-item-title {
    font-size: 16px;
    display: block;


    color: #405b56;
     font-weight: 800;
 
    font-size: 14px;
     font-weight: 700;


     line-height: 1.9;
     line-height: 1.9;
}
}


.wd-law-item-summary {
.wd-law-chapter-description {
     display: block;
 
     margin-top: 2px;


     color: #778582;
     color: #71817e;


     font-size: 12px;
     font-size: 12px;
خط ۷۴۳: خط ۶۶۱:
}
}


.wd-law-item-status {
.wd-law-chapter-arrow {
 
     flex: 0 0 auto;
     flex: 0 0 auto;


     padding: 3px 8px;
     margin-right: 15px;


     border-radius: 15px;
     color: #397d74;


     background: #edf6f2;
     font-size: 17px;


    color: #39776d;
    font-size: 11px;
     font-weight: bold;
     font-weight: bold;
}
}


.wd-law-item-arrow {
    flex: 0 0 auto;


    margin-right: 10px;
/* =========================================================
  17. مبحث قانون
  ========================================================= */


    color: #8aa7a1;
.wd-law-topic {


     font-size: 16px;
     margin: 9px 0;
}
}


.wd-law-topic a {


/* =========================================================
    display: block;
  20 — سیستم تست تعاملی
  نسخه نهایی فعلی
  ========================================================= */


.wd-test-options {
     color: inherit !important;
     display: flex;
    flex-direction: column;
    gap: 9px;
}


.wd-test-options ul {
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
}


.wd-test-options li {
.wd-law-topic-clickable {
    list-style: none !important;


     margin: 0 !important;
     display: flex;
    padding: 0 !important;
}


.wd-test-option {
    display: flex;
     align-items: center;
     align-items: center;
    justify-content: space-between;


     width: 100%;
     width: 100%;
     box-sizing: border-box;
     box-sizing: border-box;


     padding: 12px 15px;
     min-height: 54px;


     background: #ffffff;
     padding: 10px 16px;


     border: 1px solid #dfe7e5;
     background: #fafcfb;
    border-radius: 8px;


     color: #37474f !important;
     border: 1px solid #e0e7e4;


     font-family:
     border-right: 4px solid #719b94;
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;


     font-size: 15px;
     border-radius: 8px;
    line-height: 1.9;
 
    text-align: right;
 
    cursor: pointer;
    user-select: none;


     transition:
     transition:
خط ۸۲۹: خط ۷۲۳:
}
}


.wd-test-option:hover {
.wd-law-topic-clickable:hover {
     background: #f7faf9;
 
     border-color: var(--law-primary);
     background: #f1f7f5;
 
     border-color: #b9d0ca;


     transform: translateY(-1px);
     transform: translateY(-1px);
}
}


.wd-test-option::before {
.wd-law-topic-main {
    content: "□";


     flex: 0 0 auto;
     display: flex;


     margin-left: 11px;
     flex-direction: column;


     font-size: 21px;
     min-width: 0;
    line-height: 1;
 
    color: #78909c;
}
}


.wd-test-option.wd-selected::before {
.wd-law-topic-title {
    content: "☑";
}


.wd-test-option.wd-correct {
     color: #385f5a;
     background: #edf8f2;


     border-color: #4b9b57;
     font-size: 14px;


     color: #276b35 !important;
     font-weight: 700;
}


.wd-test-option.wd-correct::before {
    line-height: 1.9;
    color: #4b9b57;
}
}


.wd-test-option.wd-wrong {
.wd-law-topic-description {
    background: #fff1f1;


     border-color: #c85b5b;
     color: #7a8986;
 
    font-size: 11px;


     color: #9a3f3f !important;
     line-height: 1.8;
}
}


.wd-test-option.wd-wrong::before {
.wd-law-topic-arrow {
    content: "☒";
 
     color: #c85b5b;
     flex: 0 0 auto;
}


.wd-test-result-message.wd-result-correct {
    margin-right: 12px;
    color: #287653;
}


.wd-test-result-message.wd-result-wrong {
     color: #648b85;
     color: #a04444;
}


.wd-test.wd-test-finished .wd-test-option {
    font-size: 15px;
    cursor: default;
}
}


.wd-test.wd-test-finished .wd-test-option:hover {
    transform: none;
}


.wd-test-source {
/* =========================================================
    font-size: 12px;
  18. ماده در فهرست
    font-weight: normal;
  ========================================================= */


    color: var(--law-purple);
.wd-law-item {


     white-space: nowrap;
     margin: 7px 0;
}
}


.wd-law-item a {


/* =========================================================
    display: block;
  21 — تست‌های قدیمی / کلاس‌های پایه
 
  برای سازگاری با قالب‌های قبلی
    color: inherit !important;
  ========================================================= */


.test-bank {
    text-decoration: none !important;
    margin: 25px 0;
}
}


.test-card {
.wd-law-item-clickable {
    border-radius: 12px;


     padding: 20px 22px;
     display: flex;
    margin: 22px 0;


     box-shadow:
     align-items: center;
        0 3px 12px rgba(0, 0, 0, 0.07);


     direction: rtl;
     width: 100%;
    text-align: right;
}


.test-official {
    box-sizing: border-box;
    background: #edf6fc;
    border-right: 6px solid var(--law-blue);
}


.test-official .test-label {
    min-height: 49px;
    color: #245d89;
}


.test-authored {
     padding: 8px 13px;
     background: #f5effa;
    border-right: 6px solid var(--law-purple);
}


.test-authored .test-label {
     background: #ffffff;
     color: #694d8b;
}


.test-trap {
     border: 1px solid #e3e9e7;
    background: #fff5e7;
     border-right: 6px solid var(--law-orange);
}


.test-trap .test-label {
    border-radius: 7px;
    color: #a56311;
}


.test-label {
    transition:
    font-weight: bold;
        background 0.15s ease,
    font-size: .92em;
        border-color 0.15s ease,
 
        box-shadow 0.15s ease,
    margin-bottom: 10px;
        transform 0.15s ease;
}
}


.test-option {
.wd-law-item-clickable:hover {
    display: block;


     background: rgba(255, 255, 255, .72);
     background: #f7faf9;


     border: 1px solid #ddd;
     border-color: #b7d0c9;
    border-radius: 8px;


     padding: 10px 13px;
     box-shadow:
    margin: 8px 0;
        0 2px 8px rgba(20, 60, 55, 0.05);


     cursor: pointer;
     transform: translateY(-1px);
}
}


.test-option:hover {
.wd-law-item-number {
    background: #fff;
}


.test-answer {
     flex: 0 0 auto;
     margin-top: 15px;


     padding: 15px 18px;
     min-width: 72px;


     background: #eef8ef;
     color: #28706a;


     border-right: 4px solid #4b9b57;
     font-size: 13px;
     border-radius: 8px;
 
     font-weight: 800;
}
}


.test-answer-title {
.wd-law-item-text {
    color: #31743a;
    font-weight: bold;
}


.exam-tip {
     display: flex;
     background: #fff9df;


     border-right: 4px solid #d0a928;
     flex-direction: column;
    border-radius: 8px;


     padding: 13px 16px;
     flex: 1;


     margin-top: 12px;
     min-width: 0;
}
}


.wd-law-item-title {


/* =========================================================
    color: #3d514e;
  22 — References / منابع و مآخذ
 
  ========================================================= */
    font-size: 13px;


.wd-references {
     font-weight: 700;
    direction: rtl;
     text-align: right;


     font-family:
     line-height: 1.8;
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;
 
    font-size: 13px;
    color: #52615e;
}
}


.wd-references ol {
.wd-law-item-summary {
    display: grid;


     grid-template-columns:
     margin-top: 1px;
        repeat(2, minmax(0, 1fr));


     column-gap: 28px;
     color: #7b8986;
    row-gap: 2px;


     margin: 0 !important;
     font-size: 11px;
    padding: 0 !important;


     list-style: none !important;
     line-height: 1.8;
}


    counter-reset: wd-reference;
.wd-law-item-status {
}


.wd-references li {
     flex: 0 0 auto;
     position: relative;


     box-sizing: border-box;
     margin-right: 9px;


     margin: 0 !important;
     padding: 3px 7px;


     padding:
     border-radius: 5px;
        4px 27px 4px 0 !important;


     background: transparent !important;
     background: #edf6f2;
 
    border: 0 !important;
    border-radius: 0 !important;


     line-height: 1.9;
     color: #34786e;


     min-height: 0;
     font-size: 10px;


     counter-increment: wd-reference;
     font-weight: 700;
}
}


.wd-references li::before {
.wd-law-item-arrow {
    content: counter(wd-reference);


     position: absolute;
     flex: 0 0 auto;


     right: 0;
     margin-right: 9px;
    top: 50%;


     transform: translateY(-50%);
     color: #79928d;


    color: var(--law-primary);
     font-size: 14px;
 
     font-size: 11px;
    font-weight: 800;
}
}


.wd-references a {
    color: var(--law-link);
    text-decoration: none;
}


.wd-references a:hover {
/* =========================================================
    color: var(--law-primary-dark);
  19. جدول فهرست قدیمی
    text-decoration: underline;
  ========================================================= */
}


.wd-references .mw-cite-backlink {
.law-index-table {
    margin-right: 4px;
    white-space: nowrap;
}


.wd-references .mw-cite-backlink a {
     width: 100%;
     color: var(--law-primary);
    font-weight: bold;
}


    border-collapse: collapse;


/* =========================================================
    direction: rtl;
  23 — Dropdown / Details
  ========================================================= */


.law-collapsible {
     margin: 20px 0;
    direction: rtl;
}
     margin: 18px 0;


    border: 1px solid var(--law-border);
.law-index-table th {
    border-radius: 10px;


     background: #ffffff;
     background: var(--law-primary);
}


.law-collapsible summary {
     color: #ffffff;
     cursor: pointer;


     padding: 13px 17px;
     padding: 10px;


     color: #405b56;
     font-weight: 700;
}


    font-weight: 800;
.law-index-table td {


     background: #f7faf9;
     padding: 9px;


     border-radius: 10px;
     border: 1px solid #ddd;
}


    list-style: none;
.law-index-table tr:nth-child(even) {
}


.law-collapsible summary::-webkit-details-marker {
     background: #f8fbfa;
     display: none;
}
}


.law-collapsible summary::before {
.law-index-table a {
    content: "+";


     display: inline-block;
     text-decoration: none;
 
    margin-left: 8px;
 
    color: var(--law-primary);
 
    font-weight: bold;
}
 
.law-collapsible[open] summary {
    border-bottom: 1px solid var(--law-border);
    border-radius: 10px 10px 0 0;
}
 
.law-collapsible[open] summary::before {
    content: "−";
}
 
.law-collapsible > *:not(summary) {
    padding-left: 17px;
    padding-right: 17px;
}
}




/* =========================================================
/* =========================================================
   24 — صفحه اصلی ویکی‌داد
   20. سیستم تست تعاملی
   ========================================================= */
   ========================================================= */


.wd-home {
.wd-test {
 
     direction: rtl;
     direction: rtl;
     text-align: right;
     text-align: right;
    margin: 32px 0;


     font-family:
     font-family:
خط ۱٬۱۷۸: خط ۹۷۱:
}
}


.wd-hero {
    position: relative;


    margin: 0 0 30px;
/* ---------- گزینه‌ها ---------- */


    padding: 42px 28px;
.wd-test-options {


     background:
     display: flex;
        linear-gradient(
            135deg,
            #eef7f4 0%,
            #f7faf9 100%
        );


     border: 1px solid #dce8e4;
     flex-direction: column;
    border-right: 6px solid var(--law-primary);


     border-radius: 14px;
     gap: 9px;
 
    text-align: center;
}
}


.wd-hero-title {
.wd-test-options ul {
    font-size: 34px;
    font-weight: 900;


     color: #245b55;
     margin: 0 !important;


     line-height: 1.5;
     padding: 0 !important;
}
}


.wd-hero-subtitle {
.wd-test-options li {
    margin-top: 5px;


     color: #62736f;
     list-style: none !important;


     font-size: 15px;
     margin: 0 !important;


     line-height: 2;
     padding: 0 !important;
}
}


.wd-search-box {
    max-width: 720px;


     margin: 24px auto 0;
/* ---------- خود گزینه ---------- */
}
 
.wd-test-option {
 
     display: flex;


.wd-search-box input[type="search"],
     align-items: center;
.wd-search-box input[type="text"] {
     box-sizing: border-box;


     width: 100%;
     width: 100%;


     min-height: 46px;
     box-sizing: border-box;


     padding: 10px 15px;
     padding: 12px 15px;
 
    border: 1px solid #cfded9;
    border-radius: 8px;


     background: #ffffff;
     background: #ffffff;


     color: var(--law-text);
     border: 1px solid #dfe7e5;


     font-family: inherit;
     border-radius: 8px;
    font-size: 14px;
}


.wd-search-box input:focus {
     color: #37474f !important;
     outline: none;


     border-color: var(--law-primary);
     font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;


     box-shadow:
     font-size: 15px;
         0 0 0 3px rgba(22, 132, 119, 0.10);
 
    line-height: 1.9;
 
    text-align: right;
 
    cursor: pointer;
 
    user-select: none;
 
    transition:
         background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}
}


.wd-test-option:hover {


/* =========================================================
    background: #f7faf9;
  25 — Sidebar / منوی کناری
  ========================================================= */


#mw-panel {
    border-color: var(--law-primary);
    direction: rtl;
    text-align: right;
}


#mw-panel .portal {
     transform: translateY(-1px);
     margin-bottom: 18px;
}
}


#mw-panel .portal h3 {
    position: relative;


    padding: 8px 10px;
/* ---------- مربع گزینه ---------- */


    color: #405b56;
.wd-test-option::before {


     font-family:
     content: "□";
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;


     font-size: 13px;
     flex: 0 0 auto;
    font-weight: 800;


     border-bottom: 1px solid #dfe7e5;
     margin-left: 11px;
}


#mw-panel .portal h3::after {
    font-size: 21px;
    content: "";


     position: absolute;
     line-height: 1;


     right: 0;
     color: #78909c;
    bottom: -1px;
}


    width: 34px;
.wd-test-option.wd-selected::before {
    height: 2px;


     background: var(--law-primary);
     content: "☑";
}
}


#mw-panel .portal ul {
    margin: 5px 0 0;
    padding: 0;
}


#mw-panel .portal li {
/* ---------- پاسخ صحیح ---------- */
    margin: 1px 0;
}


#mw-panel .portal li a {
.wd-test-option.wd-correct {
    display: block;


     padding: 7px 10px;
     background: #edf8f2;


     color: #52615e;
     border-color: #4b9b57;


     font-family:
     color: #276b35 !important;
        "Vazirmatn",
}
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;


    font-size: 13px;
.wd-test-option.wd-correct::before {


     text-decoration: none;
     color: #4b9b57;
}


    border-radius: 6px;


    transition:
/* ---------- پاسخ غلط ---------- */
        background 0.15s ease,
        color 0.15s ease;
}


#mw-panel .portal li a:hover {
.wd-test-option.wd-wrong {
    background: #f1f7f5;
    color: var(--law-primary-dark);
}


#mw-panel .portal li.selected a {
     background: #fff1f1;
     background: #eaf3f0;
    color: var(--law-primary-dark);


     font-weight: bold;
     border-color: #c85b5b;
 
    color: #9a3f3f !important;
}
}


.wd-test-option.wd-wrong::before {


/* =========================================================
    content: "☒";
  26 — عنوان‌های بخش‌های صفحه ماده
 
  ========================================================= */
    color: #c85b5b;
}


.law-section-title {
    direction: rtl;
    text-align: right;


    margin: 28px 0 12px;
/* ---------- نتیجه ---------- */


    padding-bottom: 8px;
.wd-test-result-message.wd-result-correct {


     border-bottom: 2px solid var(--law-primary);
     color: #287653;
}


    color: #405b56;
.wd-test-result-message.wd-result-wrong {


     font-size: 19px;
     color: #a04444;
    font-weight: 800;
}
}


.law-section-title.purple {
.wd-test.wd-test-finished .wd-test-option {
    border-bottom-color: var(--law-purple);
 
     color: #654d83;
     cursor: default;
}
}


.law-section-title.blue {
.wd-test.wd-test-finished .wd-test-option:hover {
    border-bottom-color: var(--law-blue);
    color: #245d89;
}


.law-section-title.gold {
     transform: none;
     border-bottom-color: var(--law-gold);
    color: #80621e;
}
}




/* =========================================================
/* ---------- نوع سؤال ---------- */
  27 — Typography برای متن‌های توضیحی
  ========================================================= */


.law-page p {
.wd-test-source {
    line-height: 2.15;
}


.law-page blockquote {
    font-size: 12px;
    margin: 18px 0;


     padding: 12px 18px;
     font-weight: normal;


     background: #f7f9f8;
     color: var(--law-purple);


     border-right: 4px solid #b6cbc5;
     white-space: nowrap;
 
    color: #52615e;
 
    border-radius: 7px;
}
}




/* =========================================================
/* =========================================================
   28 — لیست‌های حقوقی
   21. سیستم قدیمی بانک تست — حفظ سازگاری
   ========================================================= */
   ========================================================= */


.law-page ul,
.test-bank {
.law-page ol {
    line-height: 2.1;
}


.law-page li {
     margin: 25px 0;
     margin-bottom: 4px;
}
}


.test-card {


/* =========================================================
    border-radius: 12px;
  29 — جدول‌های محتوایی
  ========================================================= */


.law-page table.wikitable {
    padding: 20px 22px;
     width: 100%;
 
     margin: 22px 0;


     border-collapse: collapse;
     box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.07);


     direction: rtl;
     direction: rtl;


     margin: 20px 0;
     text-align: right;
}
}


.law-page table.wikitable th {
.test-official {
    background: #edf5f2;


     color: #245b55;
     background: #edf6fc;


     font-weight: 800;
     border-right: 6px solid var(--law-blue);
}


    padding: 9px 11px;
.test-official .test-label {


     border: 1px solid #d4e1dd;
     color: #245d89;
}
}


.law-page table.wikitable td {
.test-authored {
    padding: 9px 11px;


     border: 1px solid #dfe7e5;
     background: #f5effa;


     background: #ffffff;
     border-right: 6px solid var(--law-purple);
}
}


.law-page table.wikitable tr:nth-child(even) td {
.test-authored .test-label {
     background: #fafcfb;
 
     color: #694d8b;
}
}


.test-trap {


/* =========================================================
    background: #fff5e7;
  30 — Mobile
  ========================================================= */


@media (max-width: 700px) {
    border-right: 6px solid var(--law-orange);
}


    .law-page {
.test-trap .test-label {
        line-height: 1.95;
    }


     .law-article-box {
     color: #a56311;
        padding: 18px 17px;
}
        margin: 16px 0 21px;
    }


    .law-article-box .article-number {
.test-label {
        font-size: 1.2em;
    }


     .law-article-box .article-text {
     font-weight: bold;
        font-size: 1em;
    }


     .related-laws-box,
     font-size: .92em;
    .term-box,
    .judgment-box,
    .advisory-box,
    .explanation-box {
        padding: 16px 17px;
    }


     .wd-breadcrumb {
     margin-bottom: 10px;
        gap: 5px;
}


        margin: 8px 0 18px;
.test-option {
        padding: 4px 0;


        font-size: 12px;
    display: block;
        line-height: 1.8;
    }


     .wd-breadcrumb-arrow {
     background: rgba(255,255,255,.72);
        font-size: 11px;
    }


     .wd-law-chapter-clickable {
     border: 1px solid #ddd;
        padding: 13px 12px;
    }


     .wd-law-chapter-title {
     border-radius: 8px;
        font-size: 14px;
    }


     .wd-law-topic {
     padding: 10px 13px;
        margin-right: 0;
        margin-left: 8px;
    }


     .wd-law-topic-clickable {
     margin: 8px 0;
        padding: 10px 11px;
    }


     .wd-law-topic-title {
     cursor: pointer;
        font-size: 13px;
}
    }


    .wd-law-item {
.test-option:hover {
        margin-right: 0;
        margin-left: 0;
    }


     .wd-law-item-clickable {
     background: #ffffff;
        min-height: 50px;
}
        padding: 8px 10px;
    }


    .wd-law-item-number {
.test-answer {
        min-width: 58px;
        font-size: 12px;
    }


     .wd-law-item-title {
     margin-top: 15px;
        font-size: 13px;
    }


     .wd-law-item-summary {
     padding: 15px 18px;
        font-size: 11px;
    }


     .wd-law-item-status {
     background: #eef8ef;
        display: none;
    }


     .wd-test-option {
     border-right: 4px solid #4b9b57;
        padding: 11px 12px;
        font-size: 14px;
    }


     .wd-references ol {
     border-radius: 8px;
        grid-template-columns: 1fr;
}


        column-gap: 0;
.test-answer-title {
    }


     .wd-hero {
     color: #31743a;
        padding: 30px 17px;
    }


     .wd-hero-title {
     font-weight: bold;
        font-size: 27px;
}
     }
 
.exam-tip {
 
    background: #fff9df;
 
     border-right: 4px solid #d0a928;


     .wd-hero-subtitle {
     border-radius: 8px;
        font-size: 13px;
    }


     .wd-search-box {
     padding: 13px 16px;
        margin-top: 18px;
    }


     .law-section-title {
     margin-top: 12px;
        font-size: 17px;
    }
}
}




/* =========================================================
/* =========================================================
   31 — چاپ
   22. منابع و مآخذ
   ========================================================= */
   ========================================================= */


@media print {
.wd-references {


     .wd-breadcrumb {
     direction: rtl;
        margin-bottom: 15px;
    }


     .wd-test-option:hover,
     text-align: right;
    .wd-law-chapter-clickable:hover,
    .wd-law-topic-clickable:hover,
    .wd-law-item-clickable:hover {
        transform: none;
    }


     .wd-hero,
     font-family:
     .law-article-box,
        "Vazirmatn",
     .related-laws-box,
        "IRANSans",
     .term-box,
        Tahoma,
     .judgment-box,
        Arial,
     .advisory-box,
        sans-serif;
     .explanation-box {
 
         box-shadow: none !important;
    font-size: 13px;
 
    color: #52615e;
}
 
.wd-references ol {
 
    display: grid;
 
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
 
     column-gap: 28px;
 
    row-gap: 2px;
 
    margin: 0 !important;
 
    padding: 0 !important;
 
    list-style: none !important;
 
    counter-reset: wd-reference;
}
 
.wd-references li {
 
    position: relative;
 
    box-sizing: border-box;
 
    margin: 0 !important;
 
    padding: 4px 27px 4px 0 !important;
 
    background: transparent !important;
 
    border: 0 !important;
 
    border-radius: 0 !important;
 
    line-height: 1.9;
 
    min-height: 0;
 
    counter-increment: wd-reference;
}
 
.wd-references li::before {
 
    content: counter(wd-reference);
 
    position: absolute;
 
    right: 0;
 
    top: 50%;
 
    transform: translateY(-50%);
 
    color: var(--law-primary);
 
    font-size: 11px;
 
    font-weight: 800;
}
 
.wd-references a {
 
    color: var(--law-link);
 
    text-decoration: none;
}
 
.wd-references a:hover {
 
    color: var(--law-primary-dark);
 
    text-decoration: underline;
}
 
.wd-references .mw-cite-backlink {
 
    margin-right: 4px;
 
    white-space: nowrap;
}
 
.wd-references .mw-cite-backlink a {
 
    color: var(--law-primary);
 
    font-weight: bold;
}
 
 
/* =========================================================
  23. جزئیات بازشونده
  ========================================================= */
 
.law-collapsible {
 
    margin: 20px 0;
 
    border: 1px solid var(--law-border);
 
    border-radius: 10px;
 
    background: #ffffff;
 
    overflow: hidden;
}
 
.law-collapsible summary {
 
    cursor: pointer;
 
    padding: 13px 17px;
 
    background: #f4f8f6;
 
    color: var(--law-primary-dark);
 
    font-weight: 800;
 
    list-style: none;
}
 
.law-collapsible summary::-webkit-details-marker {
 
    display: none;
}
 
.law-collapsible > div,
.law-collapsible > p {
 
    padding: 0 18px;
}
 
 
/* =========================================================
  24. صفحه اصلی
  ========================================================= */
 
.wd-home {
 
    direction: rtl;
 
    text-align: right;
 
     font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;
}
 
.wd-hero {
 
    margin-bottom: 28px;
 
    padding: 34px 28px;
 
    background:
        linear-gradient(
            135deg,
            #edf7f4 0%,
            #e2f0ec 100%
        );
 
    border-right: 6px solid var(--law-primary);
 
    border-radius: 12px;
 
    box-shadow:
        0 4px 18px rgba(20, 60, 55, .07);
}
 
.wd-hero-title {
 
    color: var(--law-primary-dark);
 
    font-size: 30px;
 
    font-weight: 900;
 
    line-height: 1.7;
}
 
.wd-hero-subtitle {
 
    margin-top: 5px;
 
    color: #60736f;
 
    font-size: 15px;
 
     line-height: 2;
}
 
.wd-search-box {
 
    margin-top: 22px;
}
 
 
/* =========================================================
  25. جداول عمومی حقوقی
  ========================================================= */
 
.mw-body table {
 
    direction: rtl;
}
 
 
/* =========================================================
  26. لیست‌های داخل صفحات حقوقی
  ========================================================= */
 
.law-page ul,
.law-page ol {
 
    line-height: 2.1;
}
 
.law-page li {
 
    margin-bottom: 4px;
}
 
 
/* =========================================================
  27. لینک‌های داخلی در محتوای حقوقی
  ========================================================= */
 
.law-page a {
 
    color: var(--law-link);
 
    text-decoration: none;
}
 
.law-page a:hover {
 
    color: #0e4e63;
 
    text-decoration: underline;
}
 
 
/* =========================================================
  28. موبایل — فهرست قوانین
  ========================================================= */
 
@media (max-width: 700px) {
 
     .wd-law-index-head {
 
        padding: 16px 15px;
    }
 
     .wd-law-index-title {
 
        font-size: 18px;
    }
 
     .wd-law-chapter-clickable {
 
         min-height: 55px;
 
        padding: 10px 12px;
     }
     }
    .wd-law-chapter-title {
        font-size: 14px;
    }
    .wd-law-topic-clickable {
        padding: 9px 11px;
    }
    .wd-law-topic-title {
        font-size: 13px;
    }
    .wd-law-item-clickable {
        padding: 8px 10px;
    }
    .wd-law-item-number {
        min-width: 63px;
        font-size: 12px;
    }
    .wd-law-item-title {
        font-size: 12px;
    }
    .wd-law-item-summary {
        font-size: 10px;
    }
    .wd-references ol {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}
/* =========================================================
  29. چاپ
  ========================================================= */
@media print {
    .wd-breadcrumb {
        margin-bottom: 15px;
    }
    .wd-breadcrumb-item,
    .wd-breadcrumb-current {
        background: #ffffff !important;
        border-color: #999 !important;
        color: #000 !important;
    }
    .wd-breadcrumb-arrow {
        color: #555 !important;
    }
    .wd-test-option {
        break-inside: avoid;
    }
    .law-navigation {
        break-inside: avoid;
    }
}
}

نسخهٔ ۱۱ سپتامبر ۲۰۲۶، ساعت ۲۰:۰۶

/* =========================================================
   ویکی‌داد — سیستم طراحی اصلی
   MediaWiki:Common.css
   نسخه یکپارچه و اصلاحی
   ========================================================= */


/* =========================================================
   1. متغیرهای اصلی طراحی
   ========================================================= */

:root {

    --law-primary: #168477;
    --law-primary-dark: #11695f;

    --law-link: #176c88;

    --law-gold: #c49a3a;
    --law-blue: #3978ad;
    --law-purple: #8064a2;
    --law-orange: #d38a27;

    --law-text: #263238;
    --law-text-soft: #546e7a;

    --law-bg: #ffffff;
    --law-bg-soft: #f7f9f8;

    --law-border: #dfe7e5;

    --law-shadow:
        0 4px 18px rgba(20, 60, 55, 0.07);

    --law-radius: 12px;

    --law-space: 24px;
}


/* =========================================================
   2. پایه صفحات فارسی
   ========================================================= */

html {
    direction: rtl;
}

body {
    direction: rtl;
    text-align: right;
    color: var(--law-text);
    font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;
}

input,
textarea,
select,
button {
    font-family: inherit;
}


/* =========================================================
   3. صفحه حقوقی
   ========================================================= */

.law-page {
    direction: rtl;
    text-align: right;
    line-height: 2;
    font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;
}


/* =========================================================
   4. لینک‌های صفحات حقوقی
   ========================================================= */

.law-page a {
    color: var(--law-link);
    font-weight: 500;
}

.law-page a:hover {
    color: var(--law-primary-dark);
}


/* =========================================================
   5. تیترهای اصلی صفحات
   ========================================================= */

.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4 {
    color: var(--law-text);
    font-weight: 700;
}


/* =========================================================
   6. بردکرامب حقوقی
   =========================================================

   ساختار:

   [ قوانین و مقررات ] ← [ قانون کار ] ← [ فصل اول ] ← [ ماده ۲ ]

   هر سطح یک کادر مستقل دارد.
   فلش‌ها خارج از کادرها هستند.
   ماده جاری با رنگ سبز مشخص می‌شود.

   ========================================================= */

.wd-breadcrumb {

    direction: rtl;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin: 12px 0 24px;
    padding: 0;

    font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;

    font-size: 13px;

    line-height: 1.8;
}


/* ---------- کادرهای قابل کلیک ---------- */

.wd-breadcrumb-item {

    display: inline-flex;
    align-items: center;

    box-sizing: border-box;

    min-height: 34px;

    padding: 5px 12px;

    background: #f5f8f7;

    border: 1px solid #d8e3df;

    border-radius: 7px;

    color: #3f5d58;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


/* لینک داخل کادر */

.wd-breadcrumb-item a {

    color: #3d6861 !important;

    text-decoration: none !important;

    font-weight: 600;
}


/* هاور */

.wd-breadcrumb-item:hover {

    background: #edf5f2;

    border-color: #a9c8c1;

    transform: translateY(-1px);
}

.wd-breadcrumb-item:hover a {

    color: #11695f !important;
}


/* ---------- فلش بین کادرها ---------- */

.wd-breadcrumb-arrow {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 17px;

    color: #8a9b97;

    font-size: 14px;
    font-weight: 600;

    user-select: none;
}


/* ---------- ماده جاری ---------- */

.wd-breadcrumb-current {

    display: inline-flex;
    align-items: center;

    box-sizing: border-box;

    min-height: 34px;

    padding: 5px 13px;

    background: #e5f1ed;

    border: 1px solid #b8d5cc;

    border-right: 3px solid #168477;

    border-radius: 7px;

    color: #11695f;

    font-weight: 800;

    white-space: nowrap;
}


/* ---------- لینک‌های داخل بردکرامب ---------- */

.wd-breadcrumb-item span[itemprop="name"],
.wd-breadcrumb-current span[itemprop="name"] {

    display: inline-block;
}


/* ---------- موبایل ---------- */

@media (max-width: 700px) {

    .wd-breadcrumb {

        gap: 5px;

        margin: 10px 0 18px;

        font-size: 12px;

        line-height: 1.7;
    }

    .wd-breadcrumb-item,
    .wd-breadcrumb-current {

        min-height: 31px;

        padding: 4px 9px;

        border-radius: 6px;
    }

    .wd-breadcrumb-arrow {

        min-width: 12px;

        font-size: 12px;
    }
}


/* =========================================================
   7. نکته مهم درباره جعبه ماده
   =========================================================

   طراحی نهایی الگو:جعبه ماده داخل خود Template قرار دارد.
   بنابراین اینجا عمداً روی آن background / padding / border
   تحمیل نمی‌کنیم تا طراحی نهایی Template خراب نشود.

   ========================================================= */


/* =========================================================
   8. اصطلاحات کلیدی
   ========================================================= */

.term-box {

    background: #f3eff8;

    border-right: 5px solid var(--law-purple);

    border-radius: 10px;

    padding: 18px 22px;

    margin: 18px 0;
}


/* =========================================================
   9. مواد مرتبط
   ========================================================= */

.related-laws-box {

    background: #f5f1e8;

    border-right: 5px solid var(--law-gold);

    border-radius: 10px;

    padding: 18px 22px;

    margin: 20px 0;
}

.related-laws-title {

    color: #80621e;

    font-weight: bold;

    font-size: 1.12em;
}


/* =========================================================
   10. رأی قضایی
   ========================================================= */

.judgment-box {

    background: #eef4fa;

    border-right: 5px solid var(--law-blue);

    border-radius: 10px;

    padding: 20px 24px;

    margin: 18px 0;
}

.judgment-title {

    color: #245d89;

    font-weight: bold;
}


/* =========================================================
   11. نظریه مشورتی
   ========================================================= */

.advisory-box {

    background: #f5f0e9;

    border-right: 5px solid #a9783b;

    border-radius: 10px;

    padding: 20px 24px;

    margin: 18px 0;
}


/* =========================================================
   12. شرح ماده
   ========================================================= */

.explanation-box {

    background: #ffffff;

    border-right: 5px solid var(--law-primary);

    border-radius: 10px;

    padding: 20px 24px;

    margin: 18px 0;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   13. جستارهای وابسته
   ========================================================= */

.related-topics-box {

    background: #f7f7f7;

    border-right: 4px solid #777;

    border-radius: 8px;

    padding: 18px 22px;

    margin: 20px 0;
}


/* =========================================================
   14. ناوبری مواد
   ========================================================= */

.law-navigation {

    margin: 35px 0;

    padding: 18px;

    background: #f1f7f6;

    border: 1px solid #c9e3df;

    border-radius: 12px;

    direction: rtl;
    text-align: center;
}

.law-navigation-title {

    color: var(--law-primary-dark);

    font-weight: bold;

    font-size: 1.15em;

    margin-bottom: 12px;
}


/* =========================================================
   15. فهرست قانون
   ========================================================= */

.wd-law-index {

    direction: rtl;
    text-align: right;

    margin: 24px 0;

    font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;
}


/* ---------- سربرگ فهرست ---------- */

.wd-law-index-head {

    padding: 20px 22px;

    background:
        linear-gradient(
            135deg,
            #eef6f3 0%,
            #e5f0ed 100%
        );

    border-right: 5px solid var(--law-primary);

    border-radius: 10px;

    margin-bottom: 16px;
}

.wd-law-index-title {

    color: var(--law-primary-dark);

    font-size: 21px;

    font-weight: 800;

    line-height: 1.9;
}

.wd-law-index-description {

    margin-top: 5px;

    color: #5b6d69;

    font-size: 13px;

    line-height: 2;
}

.wd-law-index-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 12px;
}

.wd-law-index-meta span {

    display: inline-block;

    padding: 4px 9px;

    background: #ffffff;

    border: 1px solid #d8e3df;

    border-radius: 6px;

    color: #52635f;

    font-size: 11px;
}

.wd-law-index-status {

    font-weight: 700;
}


/* =========================================================
   16. فصل قانون
   ========================================================= */

.wd-law-chapter {

    margin: 12px 0;
}

.wd-law-chapter a {

    display: block;

    color: inherit !important;

    text-decoration: none !important;
}

.wd-law-chapter-clickable {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    box-sizing: border-box;

    min-height: 62px;

    padding: 12px 17px;

    background: #f1f6f4;

    border: 1px solid #d5e2de;

    border-right: 5px solid #2f6f68;

    border-radius: 9px;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.wd-law-chapter-clickable:hover {

    background: #e8f2ef;

    border-color: #a9c8c1;

    box-shadow:
        0 3px 10px rgba(30, 90, 80, 0.07);

    transform: translateY(-1px);
}

.wd-law-chapter-main {

    display: flex;

    flex-direction: column;

    min-width: 0;
}

.wd-law-chapter-title {

    color: #245b55;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.9;
}

.wd-law-chapter-description {

    margin-top: 2px;

    color: #71817e;

    font-size: 12px;

    line-height: 1.8;
}

.wd-law-chapter-arrow {

    flex: 0 0 auto;

    margin-right: 15px;

    color: #397d74;

    font-size: 17px;

    font-weight: bold;
}


/* =========================================================
   17. مبحث قانون
   ========================================================= */

.wd-law-topic {

    margin: 9px 0;
}

.wd-law-topic a {

    display: block;

    color: inherit !important;

    text-decoration: none !important;
}

.wd-law-topic-clickable {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    box-sizing: border-box;

    min-height: 54px;

    padding: 10px 16px;

    background: #fafcfb;

    border: 1px solid #e0e7e4;

    border-right: 4px solid #719b94;

    border-radius: 8px;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.wd-law-topic-clickable:hover {

    background: #f1f7f5;

    border-color: #b9d0ca;

    transform: translateY(-1px);
}

.wd-law-topic-main {

    display: flex;

    flex-direction: column;

    min-width: 0;
}

.wd-law-topic-title {

    color: #385f5a;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.9;
}

.wd-law-topic-description {

    color: #7a8986;

    font-size: 11px;

    line-height: 1.8;
}

.wd-law-topic-arrow {

    flex: 0 0 auto;

    margin-right: 12px;

    color: #648b85;

    font-size: 15px;
}


/* =========================================================
   18. ماده در فهرست
   ========================================================= */

.wd-law-item {

    margin: 7px 0;
}

.wd-law-item a {

    display: block;

    color: inherit !important;

    text-decoration: none !important;
}

.wd-law-item-clickable {

    display: flex;

    align-items: center;

    width: 100%;

    box-sizing: border-box;

    min-height: 49px;

    padding: 8px 13px;

    background: #ffffff;

    border: 1px solid #e3e9e7;

    border-radius: 7px;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.wd-law-item-clickable:hover {

    background: #f7faf9;

    border-color: #b7d0c9;

    box-shadow:
        0 2px 8px rgba(20, 60, 55, 0.05);

    transform: translateY(-1px);
}

.wd-law-item-number {

    flex: 0 0 auto;

    min-width: 72px;

    color: #28706a;

    font-size: 13px;

    font-weight: 800;
}

.wd-law-item-text {

    display: flex;

    flex-direction: column;

    flex: 1;

    min-width: 0;
}

.wd-law-item-title {

    color: #3d514e;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.8;
}

.wd-law-item-summary {

    margin-top: 1px;

    color: #7b8986;

    font-size: 11px;

    line-height: 1.8;
}

.wd-law-item-status {

    flex: 0 0 auto;

    margin-right: 9px;

    padding: 3px 7px;

    border-radius: 5px;

    background: #edf6f2;

    color: #34786e;

    font-size: 10px;

    font-weight: 700;
}

.wd-law-item-arrow {

    flex: 0 0 auto;

    margin-right: 9px;

    color: #79928d;

    font-size: 14px;
}


/* =========================================================
   19. جدول فهرست قدیمی
   ========================================================= */

.law-index-table {

    width: 100%;

    border-collapse: collapse;

    direction: rtl;

    margin: 20px 0;
}

.law-index-table th {

    background: var(--law-primary);

    color: #ffffff;

    padding: 10px;

    font-weight: 700;
}

.law-index-table td {

    padding: 9px;

    border: 1px solid #ddd;
}

.law-index-table tr:nth-child(even) {

    background: #f8fbfa;
}

.law-index-table a {

    text-decoration: none;
}


/* =========================================================
   20. سیستم تست تعاملی
   ========================================================= */

.wd-test {

    direction: rtl;

    text-align: right;

    margin: 32px 0;

    font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;
}


/* ---------- گزینه‌ها ---------- */

.wd-test-options {

    display: flex;

    flex-direction: column;

    gap: 9px;
}

.wd-test-options ul {

    margin: 0 !important;

    padding: 0 !important;
}

.wd-test-options li {

    list-style: none !important;

    margin: 0 !important;

    padding: 0 !important;
}


/* ---------- خود گزینه ---------- */

.wd-test-option {

    display: flex;

    align-items: center;

    width: 100%;

    box-sizing: border-box;

    padding: 12px 15px;

    background: #ffffff;

    border: 1px solid #dfe7e5;

    border-radius: 8px;

    color: #37474f !important;

    font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;

    font-size: 15px;

    line-height: 1.9;

    text-align: right;

    cursor: pointer;

    user-select: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.wd-test-option:hover {

    background: #f7faf9;

    border-color: var(--law-primary);

    transform: translateY(-1px);
}


/* ---------- مربع گزینه ---------- */

.wd-test-option::before {

    content: "□";

    flex: 0 0 auto;

    margin-left: 11px;

    font-size: 21px;

    line-height: 1;

    color: #78909c;
}

.wd-test-option.wd-selected::before {

    content: "☑";
}


/* ---------- پاسخ صحیح ---------- */

.wd-test-option.wd-correct {

    background: #edf8f2;

    border-color: #4b9b57;

    color: #276b35 !important;
}

.wd-test-option.wd-correct::before {

    color: #4b9b57;
}


/* ---------- پاسخ غلط ---------- */

.wd-test-option.wd-wrong {

    background: #fff1f1;

    border-color: #c85b5b;

    color: #9a3f3f !important;
}

.wd-test-option.wd-wrong::before {

    content: "☒";

    color: #c85b5b;
}


/* ---------- نتیجه ---------- */

.wd-test-result-message.wd-result-correct {

    color: #287653;
}

.wd-test-result-message.wd-result-wrong {

    color: #a04444;
}

.wd-test.wd-test-finished .wd-test-option {

    cursor: default;
}

.wd-test.wd-test-finished .wd-test-option:hover {

    transform: none;
}


/* ---------- نوع سؤال ---------- */

.wd-test-source {

    font-size: 12px;

    font-weight: normal;

    color: var(--law-purple);

    white-space: nowrap;
}


/* =========================================================
   21. سیستم قدیمی بانک تست — حفظ سازگاری
   ========================================================= */

.test-bank {

    margin: 25px 0;
}

.test-card {

    border-radius: 12px;

    padding: 20px 22px;

    margin: 22px 0;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.07);

    direction: rtl;

    text-align: right;
}

.test-official {

    background: #edf6fc;

    border-right: 6px solid var(--law-blue);
}

.test-official .test-label {

    color: #245d89;
}

.test-authored {

    background: #f5effa;

    border-right: 6px solid var(--law-purple);
}

.test-authored .test-label {

    color: #694d8b;
}

.test-trap {

    background: #fff5e7;

    border-right: 6px solid var(--law-orange);
}

.test-trap .test-label {

    color: #a56311;
}

.test-label {

    font-weight: bold;

    font-size: .92em;

    margin-bottom: 10px;
}

.test-option {

    display: block;

    background: rgba(255,255,255,.72);

    border: 1px solid #ddd;

    border-radius: 8px;

    padding: 10px 13px;

    margin: 8px 0;

    cursor: pointer;
}

.test-option:hover {

    background: #ffffff;
}

.test-answer {

    margin-top: 15px;

    padding: 15px 18px;

    background: #eef8ef;

    border-right: 4px solid #4b9b57;

    border-radius: 8px;
}

.test-answer-title {

    color: #31743a;

    font-weight: bold;
}

.exam-tip {

    background: #fff9df;

    border-right: 4px solid #d0a928;

    border-radius: 8px;

    padding: 13px 16px;

    margin-top: 12px;
}


/* =========================================================
   22. منابع و مآخذ
   ========================================================= */

.wd-references {

    direction: rtl;

    text-align: right;

    font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;

    font-size: 13px;

    color: #52615e;
}

.wd-references ol {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 28px;

    row-gap: 2px;

    margin: 0 !important;

    padding: 0 !important;

    list-style: none !important;

    counter-reset: wd-reference;
}

.wd-references li {

    position: relative;

    box-sizing: border-box;

    margin: 0 !important;

    padding: 4px 27px 4px 0 !important;

    background: transparent !important;

    border: 0 !important;

    border-radius: 0 !important;

    line-height: 1.9;

    min-height: 0;

    counter-increment: wd-reference;
}

.wd-references li::before {

    content: counter(wd-reference);

    position: absolute;

    right: 0;

    top: 50%;

    transform: translateY(-50%);

    color: var(--law-primary);

    font-size: 11px;

    font-weight: 800;
}

.wd-references a {

    color: var(--law-link);

    text-decoration: none;
}

.wd-references a:hover {

    color: var(--law-primary-dark);

    text-decoration: underline;
}

.wd-references .mw-cite-backlink {

    margin-right: 4px;

    white-space: nowrap;
}

.wd-references .mw-cite-backlink a {

    color: var(--law-primary);

    font-weight: bold;
}


/* =========================================================
   23. جزئیات بازشونده
   ========================================================= */

.law-collapsible {

    margin: 20px 0;

    border: 1px solid var(--law-border);

    border-radius: 10px;

    background: #ffffff;

    overflow: hidden;
}

.law-collapsible summary {

    cursor: pointer;

    padding: 13px 17px;

    background: #f4f8f6;

    color: var(--law-primary-dark);

    font-weight: 800;

    list-style: none;
}

.law-collapsible summary::-webkit-details-marker {

    display: none;
}

.law-collapsible > div,
.law-collapsible > p {

    padding: 0 18px;
}


/* =========================================================
   24. صفحه اصلی
   ========================================================= */

.wd-home {

    direction: rtl;

    text-align: right;

    font-family:
        "Vazirmatn",
        "IRANSans",
        Tahoma,
        Arial,
        sans-serif;
}

.wd-hero {

    margin-bottom: 28px;

    padding: 34px 28px;

    background:
        linear-gradient(
            135deg,
            #edf7f4 0%,
            #e2f0ec 100%
        );

    border-right: 6px solid var(--law-primary);

    border-radius: 12px;

    box-shadow:
        0 4px 18px rgba(20, 60, 55, .07);
}

.wd-hero-title {

    color: var(--law-primary-dark);

    font-size: 30px;

    font-weight: 900;

    line-height: 1.7;
}

.wd-hero-subtitle {

    margin-top: 5px;

    color: #60736f;

    font-size: 15px;

    line-height: 2;
}

.wd-search-box {

    margin-top: 22px;
}


/* =========================================================
   25. جداول عمومی حقوقی
   ========================================================= */

.mw-body table {

    direction: rtl;
}


/* =========================================================
   26. لیست‌های داخل صفحات حقوقی
   ========================================================= */

.law-page ul,
.law-page ol {

    line-height: 2.1;
}

.law-page li {

    margin-bottom: 4px;
}


/* =========================================================
   27. لینک‌های داخلی در محتوای حقوقی
   ========================================================= */

.law-page a {

    color: var(--law-link);

    text-decoration: none;
}

.law-page a:hover {

    color: #0e4e63;

    text-decoration: underline;
}


/* =========================================================
   28. موبایل — فهرست قوانین
   ========================================================= */

@media (max-width: 700px) {

    .wd-law-index-head {

        padding: 16px 15px;
    }

    .wd-law-index-title {

        font-size: 18px;
    }

    .wd-law-chapter-clickable {

        min-height: 55px;

        padding: 10px 12px;
    }

    .wd-law-chapter-title {

        font-size: 14px;
    }

    .wd-law-topic-clickable {

        padding: 9px 11px;
    }

    .wd-law-topic-title {

        font-size: 13px;
    }

    .wd-law-item-clickable {

        padding: 8px 10px;
    }

    .wd-law-item-number {

        min-width: 63px;

        font-size: 12px;
    }

    .wd-law-item-title {

        font-size: 12px;
    }

    .wd-law-item-summary {

        font-size: 10px;
    }

    .wd-references ol {

        grid-template-columns: 1fr;

        column-gap: 0;
    }

}


/* =========================================================
   29. چاپ
   ========================================================= */

@media print {

    .wd-breadcrumb {

        margin-bottom: 15px;
    }

    .wd-breadcrumb-item,
    .wd-breadcrumb-current {

        background: #ffffff !important;

        border-color: #999 !important;

        color: #000 !important;
    }

    .wd-breadcrumb-arrow {

        color: #555 !important;
    }

    .wd-test-option {

        break-inside: avoid;
    }

    .law-navigation {

        break-inside: avoid;
    }

}