/* library-detail-inline-cleanup */
.library-official-detail{overflow:auto;padding:0!important}
.library-official-detail .book-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:1rem;line-height:2.1;color:#111;background:#fff;font-family:Cairo,Tahoma,Arial,sans-serif}
.library-official-detail .book-table th,.library-official-detail .book-table td{border:1px solid #d8c9ad;padding:12px 10px;vertical-align:top;overflow-wrap:anywhere;word-break:break-word;white-space:normal;box-sizing:border-box}
.library-official-detail .book-table th:nth-child(1),.library-official-detail .book-table td:nth-child(1){width:18%}
.library-official-detail .book-table th:nth-child(2),.library-official-detail .book-table td:nth-child(2){width:64%}
.library-official-detail .book-table th:nth-child(3),.library-official-detail .book-table td:nth-child(3){width:18%}
.library-official-detail .book-table tr:first-child th,.library-official-detail .book-table tr:nth-child(2) th{background:#8B6834;color:#fff}
.library-official-detail .book-table tr:first-child th{font-size:1.15rem;padding:14px 12px}
.library-official-detail .book-table tr:nth-child(odd) td:nth-child(odd){background:#FFF8EC}
.library-official-detail .book-table tr:nth-child(odd) td:nth-child(2){background:#FFFFFF}
.library-official-detail .book-table tr:nth-child(even) td:nth-child(odd){background:#FFF1D8}
.library-official-detail .book-table tr:nth-child(even) td:nth-child(2){background:#FFF7EA}
.library-official-detail .book-note{margin:14px 10px 6px;color:#475569;font-size:.95rem;text-align:center;line-height:1.9}
.library-official-detail-wrap{margin-top:18px}
.library-official-detail-wrap .yl-pdf-save-area{margin:0 0 14px!important;justify-content:flex-start!important}
.library-detail-page .section-card:first-of-type .section-head h1,.library-index-page .section-card:first-of-type .section-head h1{display:none}
.yl-library-breadcrumb{margin:14px 0 18px;line-height:2;font-weight:800;color:#475569}
.yl-library-breadcrumb a{color:inherit}
.yl-hero-related-links{margin-top:16px}

/* readable legal text block for long law pages such as qanun-almiah */
.library-detail-page .law-text,
.library-detail-page .law-text-block{
  color:#102a4c!important;
  -webkit-text-fill-color:#102a4c!important;
  opacity:1!important;
}
.library-detail-page .law-text-pre,
.library-detail-page .law-text-block pre{
  display:block;
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  direction:rtl;
  text-align:right;
  font-family:Cairo,Tahoma,Arial,sans-serif!important;
  font-size:1.08rem!important;
  line-height:2.05!important;
  font-weight:700!important;
  color:#102a4c!important;
  -webkit-text-fill-color:#102a4c!important;
  background:transparent!important;
  opacity:1!important;
}
.library-detail-page .law-text-block{
  background:#fff!important;
  border:1px solid #d8c9ad;
  border-radius:16px;
  padding:22px 18px;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
}

/* hard override: clear readable article search results and law text */
.library-detail-page #ylLawArticleSearchResults,
.library-detail-page #ylLawArticleSearchResults *{opacity:1!important;text-shadow:none!important;filter:none!important;mix-blend-mode:normal!important}
.library-detail-page .yl-law-article-result{background:#fff!important;border:1px solid rgba(15,23,42,.14)!important;box-shadow:0 10px 26px rgba(0,0,0,.16)!important}
.library-detail-page .yl-law-article-result p,
.library-detail-page .yl-law-article-result p *{color:#1f2937!important;-webkit-text-fill-color:#1f2937!important;font-weight:800!important;background:#fff!important;opacity:1!important;line-height:2!important}
.library-detail-page .yl-law-article-title{color:#0b225a!important;-webkit-text-fill-color:#0b225a!important;font-weight:900!important;opacity:1!important}
.library-detail-page .yl-law-article-jump{color:#0b65a8!important;-webkit-text-fill-color:#0b65a8!important;background:#fffdf3!important;border:1px solid #c9a227!important;font-weight:900!important;opacity:1!important}
.library-detail-page .yl-law-article-result mark{background:#fff200!important;color:#111827!important;-webkit-text-fill-color:#111827!important;font-weight:900!important;opacity:1!important}
.library-detail-page .law-text-block .yl-law-preamble,
.library-detail-page .law-text-block .yl-law-article-block{color:#102a4c!important;-webkit-text-fill-color:#102a4c!important;background:#fff!important;opacity:1!important;font-weight:800!important;line-height:2.05!important}
.library-detail-page.yl-law-article-search-active .law-text,
.library-detail-page.yl-law-article-search-active .law-text-block,
body.yl-law-article-search-active .law-text,
body.yl-law-article-search-active .law-text-block{color:#102a4c!important;-webkit-text-fill-color:#102a4c!important;background:#fff!important;opacity:1!important}

@media(max-width:700px){html,body{-webkit-text-size-adjust:100%;text-size-adjust:100%}.library-official-detail-wrap,.library-official-detail{max-width:100%;overflow-x:hidden;box-sizing:border-box}.library-official-detail .book-title{margin:0;padding:12px 10px;border:1px solid #d8c9ad;border-bottom:0;background:#8B6834;color:#fff;text-align:center;font-family:Cairo,Tahoma,Arial,sans-serif;font-size:clamp(15px,4vw,18px);font-weight:800;line-height:1.65;border-radius:0}.library-official-detail .book-sub{display:none!important}.library-official-detail .book-table{width:100%;max-width:100%;min-width:0;table-layout:fixed;font-family:Cairo,Tahoma,Arial,sans-serif;font-size:clamp(12px,3.15vw,14px);line-height:1.75}.library-official-detail .book-title+.book-sub+.book-table,.library-official-detail .book-title+.book-table{margin-top:0}.library-official-detail .book-table th,.library-official-detail .book-table td{padding:7px 5px;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal;box-sizing:border-box}.library-official-detail .book-table th:nth-child(1),.library-official-detail .book-table td:nth-child(1){width:18%;font-size:clamp(10px,2.6vw,12px);line-height:1.55;text-align:center}.library-official-detail .book-table th:nth-child(2),.library-official-detail .book-table td:nth-child(2){width:64%;font-size:clamp(12px,3.15vw,14px);line-height:1.85;text-align:right}.library-official-detail .book-table th:nth-child(3),.library-official-detail .book-table td:nth-child(3){width:18%;font-size:clamp(10px,2.6vw,12px);line-height:1.55;text-align:center}.library-official-detail .book-table thead th{background:#8B6834;color:#fff;text-align:center;font-weight:800}.library-official-detail .book-table tr:first-child th{font-size:clamp(15px,4vw,18px);line-height:1.65}.library-official-detail .material-block,.library-official-detail .material-block div,.library-official-detail .book-table strong,.library-official-detail .book-table b{max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}.library-official-detail .book-table br{line-height:1.45}.library-detail-page .law-text-pre,.library-detail-page .law-text-block pre{font-size:clamp(15px,4vw,17px)!important;line-height:2!important;font-weight:700!important}.library-detail-page .law-text-block{padding:16px 12px;border-radius:14px}.library-detail-page .yl-law-article-result p{font-size:clamp(14px,3.6vw,16px)!important;line-height:2!important}}
