/* لمساتٌ بسيطة على صفحة القانون (11-05) — كلُّ قاعدةٍ محصورةٌ في html.lkh (يضعه الخادمُ قبل أوّل رسم ويرفعه السكربتُ عند أيّ فشل).
   ١) خطٌّ ذهبيّ تحت العنوان · ٢) سطرُ عنوان المادة: بوّابةٌ بداخلها الرقم؛ المعدّلةُ بوّابةٌ مزدوجةٌ وشريطٌ ذهبيّ · ٣) حفظ المادة.
   قيدُ الصفحة: div.text.context * { font-size:16px !important } ⟵ مقاسات البوّابة بـ!important. */
html.lkt{--lk-copy:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V6a2 2 0 0 1 2-2h8'/%3E%3C/svg%3E");--lk-navy:#0C4A6E;--lk-deep:#0C2543;--lk-gold:#C9A227;--lk-goldink:#7A5B00;--lk-line:#E1E8EF;--lk-mut:#64768A;
 --lk-arch:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 66' fill='none'%3E%3Cpath d='M2 66V27C2 14 13 7 26 1C39 7 50 14 50 27V66' stroke='%23C9A227' stroke-width='1.7'/%3E%3C/svg%3E");
 --lk-arch2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 66' fill='none'%3E%3Cpath d='M2 66V27C2 14 13 7 26 1C39 7 50 14 50 27V66' stroke='%23C9A227' stroke-width='2.2'/%3E%3Cpath d='M9 66V29C9 19 17 13 26 8C35 13 43 19 43 29V66' stroke='%230C4A6E' stroke-width='1.3'/%3E%3C/svg%3E");
 --lk-arch3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 66' fill='none'%3E%3Cpath d='M2 66V27C2 14 13 7 26 1C39 7 50 14 50 27V66Z' fill='%23C9A227' fill-opacity='.28' stroke='%23C9A227' stroke-width='2.2'/%3E%3C/svg%3E");
 --lk-arch4:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 66' fill='none'%3E%3Cpath d='M2 66V27C2 14 13 7 26 1C39 7 50 14 50 27V66Z' fill='%23C9A227' fill-opacity='.28' stroke='%23C9A227' stroke-width='2.4'/%3E%3Cpath d='M9 66V29C9 19 17 13 26 8C35 13 43 19 43 29V66' stroke='%230C4A6E' stroke-width='1.3'/%3E%3C/svg%3E");}
/* ١) خطٌّ ذهبيّ تحت العنوان */
html.lkt h1.h4{font-size:32px !important;font-weight:800;color:var(--lk-deep);line-height:1.3}
html.lkt h1.h4::after{content:'';display:block;width:64px;height:3px;background:var(--lk-gold);margin-top:12px}
/* ٢) سطرُ عنوان المادة (المرساةُ تسبقه دائماً): بوّابةٌ على جانب البداية والشارات القائمةُ على الجانب الآخر */
html.lkh #lxBody>.art-anchor+p{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 14px;background:none !important;border:0 !important;border-bottom:1px solid var(--lk-line) !important;border-radius:0 !important;box-shadow:none !important;padding:8px 0 8px !important;margin:16px 0 6px !important;min-height:82px}
html.lkh #lxBody>section>.art-anchor+p{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 14px;background:none !important;border:0 !important;border-bottom:1px solid var(--lk-line) !important;border-radius:0 !important;box-shadow:none !important;padding:8px 0 8px !important;margin:16px 0 6px !important;min-height:82px}
html.lkh #lxBody>.art-anchor+p .art-amended{background:none !important;color:inherit !important;padding:0 !important;border:0 !important;box-shadow:none !important;display:contents}
html.lkh #lxBody>section>.art-anchor+p .art-amended{background:none !important;color:inherit !important;padding:0 !important;border:0 !important;box-shadow:none !important;display:contents}
html.lkh #lxBody>.art-anchor+p>button.art-chip:first-of-type{margin-inline-start:auto}
html.lkh #lxBody>section>.art-anchor+p>button.art-chip:first-of-type{margin-inline-start:auto}
html.lkh #lxBody>.art-anchor+p>button.art-chip{margin-bottom:8px}
html.lkh #lxBody>section>.art-anchor+p>button.art-chip{margin-bottom:8px}
html.lkh .lk-ar{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:none;width:52px;height:66px;padding-bottom:9px;background:var(--lk-arch) 0 0/52px 66px no-repeat;cursor:pointer;line-height:1;font-weight:800;color:var(--lk-deep);transition:transform .15s;margin:0}
html.lkh .lk-ar:hover{transform:translateY(-2px)}
html.lkh .lk-ar:focus-visible{outline:2px solid var(--lk-navy);outline-offset:3px}
html.lkh .lk-ar{font-size:22px !important}
html.lkh .lk-ar.lg{font-size:17px !important}
html.lkh .lk-ar .ml{font-size:10px !important;font-weight:400;font-style:normal;color:var(--lk-mut);margin-bottom:3px;line-height:1}
html.lkh .lk-sf{font-size:12px !important;font-weight:700;color:var(--lk-goldink);font-style:normal;margin-bottom:6px}
html.lkh p.lk-am{border-bottom:2px solid var(--lk-gold) !important}
html.lkh p.lk-am .lk-ar{background-image:var(--lk-arch2)}
html.lkh p.lk-sv .lk-ar{background-image:var(--lk-arch3)}
html.lkh p.lk-sv.lk-am .lk-ar{background-image:var(--lk-arch4)}
html.lkh p.lk-sv .lk-ar::after{content:'محفوظة';position:absolute;margin-top:80px;font-size:10.5px !important;color:var(--lk-goldink);font-weight:700}
html.lkh .lk-ar{position:relative}
html.lkh p.lk-rp .lk-ar{opacity:.55}
/* ٣) قائمة المواد المحفوظة */
#lktbag{position:fixed;z-index:2147483200;background:#fff;border:1px solid #E1E8EF;display:flex;flex-direction:column;transition:transform .25s ease;font-family:'Almarai','Segoe UI',Tahoma,sans-serif;color:#16222D;top:0;bottom:0;right:0;width:380px;transform:translateX(105%)}
#lktbag.on{transform:none}
#lktbag .bh{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:3px double #C9A227}
#lktbag .bt-h{font-size:16px;font-weight:800;color:#0C2543}
#lktbag .bb{padding:6px 18px;overflow:auto;flex:1;font-size:14px}
#lktbag .bf{padding:14px 18px;border-top:1px solid #E1E8EF;display:flex;gap:10px;flex-wrap:wrap}
#lktbag .it{display:flex;gap:10px;align-items:flex-start;padding:11px 0;border-bottom:1px solid #E1E8EF}
#lktbag .it b{color:#0C2543;white-space:nowrap}
#lktbag .it span{flex:1;color:#64768A;font-size:12.5px;line-height:1.7}
#lktbag .it button{all:unset;cursor:pointer;color:#64768A;font-size:12.5px}
#lktbag .empty{color:#64768A;padding:24px 0;line-height:1.9;font-size:13.5px}
#lktbag .bt{all:unset;cursor:pointer;background:#0C4A6E;color:#fff;font-weight:800;font-size:13.5px;padding:9px 14px}
#lktbag .bt.o{background:#fff;color:#0C4A6E;border:1px solid #0C4A6E}
#lkttoast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,30px);background:#0C2543;color:#fff;padding:10px 16px;font-size:13.5px;opacity:0;transition:.25s;z-index:2147483300;pointer-events:none;max-width:90vw;font-family:'Almarai','Segoe UI',Tahoma,sans-serif}
#lkttoast.on{opacity:1;transform:translate(-50%,0)}
@media(max-width:759px){
 html.lkt h1.h4{font-size:26px !important}
 html.lkh .lk-ar{width:46px;height:58px;background-size:46px 58px;padding-bottom:7px}
 html.lkh .lk-ar{font-size:19px !important}html.lkh .lk-ar.lg{font-size:15px !important}
 html.lkh #lxBody>.art-anchor+p{min-height:74px}
 html.lkh #lxBody>section>.art-anchor+p{min-height:74px}
 #lktbag{top:auto;left:0;right:0;bottom:0;width:auto;max-height:78vh;transform:translateY(105%)}
}

/* ٤) أيقونة نسخ المادة تحت كلّ مادة */
html.lkh .lk-cpb{all:unset;cursor:pointer;display:flex;margin:-4px 0 8px;align-items:center;justify-content:center;width:34px;height:30px;color:var(--lk-mut);border-bottom:1px solid transparent;transition:color .15s,border-color .15s}
html.lkh .lk-cpb::before{content:'';width:18px;height:18px;background:currentColor;-webkit-mask:var(--lk-copy) center/contain no-repeat;mask:var(--lk-copy) center/contain no-repeat}
html.lkh .lk-cpb:hover,html.lkh .lk-cpb:focus-visible{color:var(--lk-navy);border-bottom-color:var(--lk-gold)}
html.lkh .lk-cpb.ok{color:#0B6B3A;border-bottom-color:#0B6B3A}
#lkttoast2{position:fixed;bottom:22px;left:50%;transform:translate(-50%,30px);background:#0C4A6E;color:#fff;padding:11px 18px;font:700 14px/1.7 Almarai,'Segoe UI',Tahoma,sans-serif;opacity:0;transition:.25s;z-index:2147483300;max-width:92vw;direction:rtl;text-align:right}
#lkttoast2.on{opacity:1;transform:translate(-50%,0)}
#lkttoast2 a{color:#fde68a;text-decoration:underline}
/* يحجز ارتفاعَ الأيقونة قبل ظهورها (آخرُ فقرةٍ تليها مرساةُ المادة التالية) فلا إزاحةَ حين يُدرجها السكربت:
   بعد الإدراج لا تعود الفقرةُ جارةً للمرساة فيزول الحجز في اللحظة نفسها */
html.lkh #lxBody>p:has(+ .art-anchor)::after{content:'';display:block;height:34px}
html.lkh #lxBody>section>p:has(+ .art-anchor)::after{content:'';display:block;height:34px}
html.lkh #lxBody>section>p:last-child::after{content:'';display:block;height:34px}

/* ٥) وثائقُ غير مسجَّلة (قراراتٌ · مراسيم · قوانينُ صغيرة): عنوانُ المادة يحمل class="lk-h" و data-lkn="رقمها" من الخادم (LawUnify).
   البوّابةُ هنا فارغة: «مادة» و الرقمُ محتوًى مولَّدٌ (لا نصَّ مكرَّراً في الصفحة)؛ والصياغةُ الأصليّة في span.lk-cap —
   مرئيّةٌ صغيرةً بجانب البوّابة إن كُتبت بالألفاظ، ومخفيّةٌ بصرياً (والنصُّ باقٍ) إن كانت رقماً يكرّر ما في البوّابة.
   مقاساتٌ بمعرّف #lxBody لتغلب قيدَ الصفحة div.text.context * { font-size:16px !important } */
html.lkh #lxBody p.lk-h[data-lkn]{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 14px;background:none !important;border:0 !important;border-bottom:1px solid var(--lk-line) !important;border-radius:0 !important;box-shadow:none !important;padding:8px 0 !important;margin:16px 0 6px !important;min-height:82px;text-indent:0 !important;text-align:start !important}
html.lkh .lk-ar.lk-m::before{content:'مادة';font-size:10px !important;font-weight:400;font-style:normal;color:var(--lk-mut);margin-bottom:3px;line-height:1}
html.lkh .lk-ar.lk-m::after{content:attr(data-n)}
html.lkh p.lk-sv .lk-ar.lk-m::after{content:attr(data-n);position:static;margin:0;font-size:inherit !important;color:inherit;font-weight:inherit}
html.lkh #lxBody p.lk-wd .lk-cap{font-size:15px !important;font-weight:700;color:var(--lk-goldink);line-height:1.5;margin-bottom:8px}
html.lkh #lxBody p.lk-wd .lk-cap *{font-size:15px !important;font-weight:inherit;color:inherit}
html.lkh p.lk-nc .lk-cap{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
html.lkh #lxBody p.lk-sv:has(.lk-ar.lk-m){position:relative}
html.lkh #lxBody p.lk-sv:has(.lk-ar.lk-m)::after{content:'محفوظة';position:absolute;inset-inline-end:0;top:10px;font-size:10.5px !important;color:var(--lk-goldink);font-weight:700;line-height:1}
/* حجزُ أيقونة النسخ: آخرُ فقرةٍ تليها عنوانُ المادة التالية. ما لا أيقونةَ له (جدولٌ داخل المادة/ذيلٌ طويل) يبقى حجزُه فراغاً عاديّاً — رفعُه كان يُنتج إزاحةً */
html.lkh #lxBody p:not(.lk-h):has(+ p.lk-h[data-lkn]:not([data-lkx]))::after{content:'';display:block;height:34px}
html.lkh .lk-ar.lk-nb{cursor:default}
html.lkh .lk-ar.lk-nb:hover{transform:none}
html.lkh #lxBody p.lk-ic::after{display:none !important}
html.lkh #lxBody p .lk-cpb{margin:0;height:34px}
@media(max-width:759px){
 html.lkh #lxBody p.lk-h[data-lkn]{min-height:74px}
}
@media print{
 html.lkh #lxBody p.lk-h[data-lkn].lk-sv::after,html.lkh .lk-cpb{display:none}
}
/* المواد المحفوظة في الحساب (SavedArticles): سطرُ تذييل القائمة — رابطُ الحساب للعضو، ودعوةُ الدخول للزائر */
#lktbag .sv-n{padding:11px 18px 14px;border-top:1px solid #E1E8EF;font-size:12.5px;line-height:1.9;color:#64768A}
#lktbag .sv-n a{color:#0C4A6E;font-weight:800;text-decoration:underline;text-decoration-color:#C9A227;text-underline-offset:4px}
/* الجوال (11-06): شاراتُ المادة في سطرٍ واحد — «137 حكم» + «1 تعديل» + المذكرة كانت تلتفّ تحت البوّابة (280px من 304) */
@media(max-width:759px){
 html.lkh #lxBody>.art-anchor+p,html.lkh #lxBody>section>.art-anchor+p,html.lkh #lxBody p.lk-h[data-lkn]{flex-wrap:nowrap;column-gap:6px}
 html.lkh #lxBody>.art-anchor+p>.art-chip,html.lkh #lxBody>section>.art-anchor+p>.art-chip,html.lkh #lxBody p.lk-h[data-lkn]>.art-chip{flex:0 1 auto;min-width:0;white-space:nowrap;padding-inline:9px !important}
 html.lkh #lxBody>.art-anchor+p>.art-chip.memo-chip,html.lkh #lxBody>section>.art-anchor+p>.art-chip.memo-chip,html.lkh #lxBody p.lk-h[data-lkn]>.art-chip.memo-chip{flex:none;padding-inline:7px !important}
}
