/* NDM article: scoped reference layout, no legacy generic article wrappers. */
.ndm-reading-page{direction:rtl;color:#12211d;background:#fff;font-family:var(--body,'URW-DIN-Arabic'),sans-serif}
.ndm-reading-page *{box-sizing:border-box}
.ndm-reading-container{width:min(1180px,90%);margin-inline:auto}
.ndm-reading-section{padding:70px 0 76px;background:#fff}
.ndm-reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:46px;align-items:start}
.ndm-reading-article{min-width:0;text-align:right}
.ndm-reading-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px;color:#a39c87;font:500 12px/1.8 var(--body,'URW-DIN-Arabic'),sans-serif}
.ndm-reading-category{border:1px solid #eadfca;border-radius:20px;padding:3px 10px;color:#b59152}
.ndm-reading-prose{font:400 15px/2.2 var(--body,'URW-DIN-Arabic'),sans-serif;color:#12211d;overflow-wrap:anywhere}
.ndm-reading-prose p{font:inherit;color:inherit;margin:0 0 22px;line-height:2.2;text-align:right}
.ndm-reading-prose h2,.ndm-reading-prose h3,.ndm-reading-prose h4{font-family:var(--body,'URW-DIN-Arabic'),sans-serif!important;text-align:right!important;color:#12211d!important;letter-spacing:normal!important;font-style:normal!important}
.ndm-reading-prose h2{font-size:23px!important;line-height:1.6!important;font-weight:700!important;margin:32px 0 15px!important;padding-bottom:10px;border-bottom:1px solid #e9dfc9}
.ndm-reading-prose h3{font-size:19px!important;line-height:1.7!important;font-weight:700!important;margin:26px 0 12px!important}
.ndm-reading-prose h4{font-size:17px!important;line-height:1.7!important;font-weight:700!important;margin:22px 0 10px!important}
.ndm-reading-prose ul,.ndm-reading-prose ol{margin:0 0 22px;padding:0 24px 0 0;list-style-position:outside}
.ndm-reading-prose li{font:400 15px/2.1 var(--body,'URW-DIN-Arabic'),sans-serif;color:#12211d;margin:0 0 7px}
.ndm-reading-prose strong,.ndm-reading-prose b{font-weight:700;color:#12211d}
.ndm-reading-prose a{color:#ae8846;text-decoration:underline;text-underline-offset:3px}
.ndm-reading-prose img{max-width:100%;height:auto;border-radius:8px}
.ndm-reading-prose blockquote{margin:20px 0;padding:15px 22px;border-right:3px solid #c6a15e;background:#faf8f3}
.ndm-reading-prose table{display:block;overflow-x:auto;max-width:100%;border-collapse:collapse}
.ndm-reading-prose td,.ndm-reading-prose th{border:1px solid #e9e1d4;padding:10px}
.ndm-reading-sidebar{position:sticky;top:110px;min-width:0;display:flex;flex-direction:column;gap:18px}
.ndm-reading-toc-card{border:1px solid #eee9e0;border-radius:12px;padding:23px 20px;background:#fff;box-shadow:0 8px 30px rgba(18,33,29,.035)}
.ndm-reading-toc-card h2{font:700 17px/1.5 var(--body,'URW-DIN-Arabic'),sans-serif;color:#12211d;margin:0 0 16px}
.ndm-reading-toc-card nav{max-height:390px;overflow:auto;scrollbar-width:thin;scrollbar-color:#c8a55c #f7f5ef}
.ndm-reading-toc-card ol{list-style:none;margin:0;padding:0;border-right:2px solid #e2ca92}
.ndm-reading-toc-card li{margin:0;padding:0}
.ndm-reading-toc-card a{display:block;padding:8px 13px;font:500 12px/1.9 var(--body,'URW-DIN-Arabic'),sans-serif;color:#697970;text-decoration:none;border-right:2px solid transparent;position:relative;right:-2px;transition:color .2s,border-color .2s,background .2s}
.ndm-reading-toc-card a:hover,.ndm-reading-toc-card a:focus-visible,.ndm-reading-toc-card a.is-active{color:#a78142;border-right-color:#c6a15e;background:#faf9f6}
.ndm-reading-toc-card .ndm-reading-toc-sub a{padding-right:23px;font-size:11px}
.ndm-reading-toc-empty{font:400 12px/1.8 var(--body,'URW-DIN-Arabic'),sans-serif;color:#8a928b;margin:0}
.ndm-reading-help-card{background:#12211d;color:#fff;border-radius:9px;padding:22px 18px;text-align:center}
.ndm-reading-help-card h2{font:700 17px/1.6 var(--body,'URW-DIN-Arabic'),sans-serif;color:#fff;margin:0 0 10px}
.ndm-reading-help-card p{font:400 12px/1.9 var(--body,'URW-DIN-Arabic'),sans-serif;color:#e8ede8;margin:0 0 15px}
.ndm-reading-help-card a{display:inline-block;border-radius:22px;background:#c6a15e;color:#12211d;padding:8px 16px;text-decoration:none;font:700 12px/1.5 var(--body,'URW-DIN-Arabic'),sans-serif;transition:background .25s,color .25s}
.ndm-reading-help-card a:hover,.ndm-reading-help-card a:focus-visible{background:#fff;color:#12211d}
.ndm-reading-footer{margin-top:24px;border-top:1px solid #eee8de;padding-top:18px}
.ndm-reading-footer a{color:#ae8846;font:600 12px/1.7 var(--body,'URW-DIN-Arabic'),sans-serif;text-decoration:none}
.ndm-reading-related{background:#faf9f6;padding:60px 0 72px}
.ndm-reading-related h2{text-align:center;font:700 27px/1.5 var(--body,'URW-DIN-Arabic'),sans-serif;color:#12211d;margin:0 0 34px}
.ndm-reading-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ndm-reading-no-related{text-align:center;color:#718078}
@media(max-width:950px){.ndm-reading-layout{grid-template-columns:minmax(0,1fr) 225px;gap:26px}.ndm-reading-prose{font-size:14px}.ndm-reading-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.ndm-reading-section{padding:40px 0 50px}.ndm-reading-layout{display:flex;flex-direction:column}.ndm-reading-article{width:100%}.ndm-reading-sidebar{position:static;order:-1;width:100%}.ndm-reading-toc-card nav{max-height:230px}.ndm-reading-prose h2{font-size:21px!important}.ndm-reading-prose h3{font-size:18px!important}.ndm-reading-related-grid{grid-template-columns:1fr}.ndm-reading-related{padding:45px 0}}
@media(prefers-reduced-motion:reduce){.ndm-reading-page *{transition:none!important;scroll-behavior:auto!important}}

/* Related cards use the same bounded artwork and typography as the approved blog. */
.ndm-reading-related.ndm-blog-reference .ndm-blog-card{min-width:0}
.ndm-reading-related.ndm-blog-reference .ndm-blog-cover{height:150px}
.ndm-reading-related.ndm-blog-reference .ndm-blog-cover>svg{width:72px;height:72px;max-width:72px;max-height:72px}
.ndm-reading-related.ndm-blog-reference .ndm-blog-card-body{min-width:0}
.ndm-reading-related.ndm-blog-reference .ndm-blog-card h3{font-size:16px;line-height:1.65}
.ndm-reading-prose h2,.ndm-reading-prose h3{scroll-margin-top:115px}

/* Article-only hero: match approved right-aligned legal article reference.
   Overrides the global centered interior header without affecting other pages. */
body.single-post .ndm-interior-header.hero.right .content {
  align-items:flex-start!important;
  text-align:right!important;
  padding-inline:18px!important;
}
body.single-post .ndm-interior-header.hero.right .eyebrow,
body.single-post .ndm-interior-header.hero.right h1,
body.single-post .ndm-interior-header.hero.right .description,
body.single-post .ndm-interior-header.hero.right .breadcrumb {
  text-align:right!important;
  margin-inline:0!important;
  align-self:flex-start!important;
}
body.single-post .ndm-interior-header.hero.right h1 {
  width:auto!important;
  max-width:min(950px,100%)!important;
  overflow-wrap:break-word;
}
body.single-post .ndm-interior-header.hero.right .breadcrumb ol {
  justify-content:flex-start!important;
}
@media(max-width:700px) {
  body.single-post .ndm-interior-header.hero.right h1 {
    max-width:100%!important;
  }
}
/* Mobile article reading flow: content first, consultation beneath it, no TOC. */
@media(max-width:767px){
 body.single-post .ndm-reading-layout{display:flex;flex-direction:column}
 body.single-post .ndm-reading-layout>.ndm-reading-article{order:0;width:100%}
 body.single-post .ndm-reading-layout>.ndm-reading-sidebar{order:1;position:static;width:100%;margin-top:22px}
 body.single-post .ndm-reading-sidebar .ndm-reading-toc-card{display:none!important}
 body.single-post .ndm-reading-sidebar .ndm-reading-help-card{width:100%}
}
