/* SMNN Research Publications: native network branding and Arabic-first RTL presentation.
   Loaded after the original extraction CSS; preserve its card, reader and modal UX. */
.smnn-research-archive,.mpfm-r-directory[dir="rtl"],.mpfm-r-article[dir="rtl"]{direction:rtl;text-align:right;font-family:inherit}
.smnn-research-archive{background:#f5f7fa;min-height:70vh;padding-bottom:70px}
.smnn-research-archive-hero{background:linear-gradient(130deg,#10253e,#194467);color:#fff;padding:65px 24px 60px}
.smnn-research-archive-container{max-width:1240px;margin:0 auto;padding:0 20px}
.smnn-research-archive-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#d7bb88}
.smnn-research-archive-hero h1{font-family:inherit;font-size:clamp(32px,4.5vw,54px);line-height:1.45;margin:12px 0;color:#fff}
.smnn-research-archive-hero p{max-width:780px;font-size:17px;line-height:1.9;margin:0;color:#d9e2eb}
.mpfm-r-directory .mpfm-r-card-info h3,.mpfm-r-article .mpfm-r-article-copy h1,.mpfm-r-article .mpfm-r-html-title h2,.mpfm-r-article .mpfm-r-reader-heading h2,.mpfm-r-cover-default strong,.mpfm-r-article .mpfm-r-article-hero-cover-title{font-family:inherit!important;letter-spacing:normal!important;line-height:1.65!important}
.mpfm-r-directory .mpfm-r-grid{text-align:right}
.mpfm-r-directory .mpfm-r-read{flex-direction:row}
.mpfm-r-directory .mpfm-r-topline,.mpfm-r-directory .mpfm-r-toolbar,.mpfm-r-article .mpfm-r-reader-heading{direction:rtl}
.mpfm-r-directory .mpfm-r-search input{direction:rtl;text-align:right;font-family:inherit}
.mpfm-r-directory .mpfm-r-cover-default{align-items:flex-start;text-align:right}
.mpfm-r-article .mpfm-r-article-hero{direction:rtl}
.mpfm-r-article .mpfm-r-author-list{direction:rtl}
.mpfm-r-article .mpfm-r-article-meta,.mpfm-r-article .mpfm-r-breadcrumb,.mpfm-r-article .mpfm-r-article-actions{direction:rtl}
.mpfm-r-article .mpfm-r-reader-toolbar,.mpfm-r-article .mpfm-r-reader-controls,.mpfm-r-article .mpfm-r-reader-stage{direction:ltr}
.mpfm-r-article .mpfm-r-html-body,.mpfm-r-article .mpfm-r-summary-body,.mpfm-r-article .mpfm-r-keywords{direction:rtl;text-align:start;line-height:1.9}
.mpfm-r-article .mpfm-r-author-info{text-align:right}
.mpfm-r-external-author-icon{display:flex!important;align-items:center;justify-content:center;font-size:23px;color:#fff;background:#45647e;border-radius:50%;width:54px;height:54px}
.smnn-research-protected{max-width:760px;margin:50px auto;padding:30px 22px 80px}
/* RTL refinements to translated dashboard fields. */
.mpfm-rh-hero,.mpfm-rh-topnav,.mpfm-rh-stats,.mpfm-rh-workspaces,.mpfm-r-admin-fields{direction:rtl;text-align:right}
.mpfm-r-admin-fields input[type=text],.mpfm-r-admin-fields textarea{direction:rtl;text-align:right}
@media(max-width:767px){.smnn-research-archive-hero{padding:45px 14px}.smnn-research-archive-container{padding:0 13px}.mpfm-r-article .mpfm-r-reader-toolbar{flex-wrap:wrap}.mpfm-r-article .mpfm-r-article-top{padding-top:30px}}

/* v3.4.197 — Research Publications typography follows the SMNN theme.
 * Do not load a competing font or alter typefaces embedded in PDF pages.
 * Explicit heading rules protect against global theme heading font overrides,
 * while controls inherit the active font instead of the browser UI default.
 * Scoped to the public research library, research articles, and their reader. */
.smnn-research-archive,
.mpfm-r-directory,
.mpfm-r-article,
.smnn-research-protected { font-family: inherit; }

.smnn-research-archive :is(h1,h2,h3,h4,h5,h6),
.mpfm-r-directory :is(h1,h2,h3,h4,h5,h6),
.mpfm-r-article :is(h1,h2,h3,h4,h5,h6),
.smnn-research-protected :is(h1,h2,h3,h4,h5,h6) { font-family: inherit !important; }

.smnn-research-archive :is(input,select,textarea,button),
.mpfm-r-directory :is(input,select,textarea,button),
.mpfm-r-article :is(input,select,textarea,button),
.smnn-research-protected :is(input,select,textarea,button) { font-family: inherit; }

/* Arabic labels and publication headings should not inherit Latin tracking. */
.mpfm-r-directory .mpfm-r-card-info :is(h3,.mpfm-r-type),
.mpfm-r-article .mpfm-r-html-title .mpfm-r-eyebrow,
.mpfm-r-article .mpfm-r-reader-heading .mpfm-r-eyebrow,
.mpfm-r-article .mpfm-r-related-current,
.mpfm-r-article .mpfm-r-related-kicker,
.mpfm-r-article .mpfm-r-related-title { letter-spacing: normal; }

/* v3.4.198 — SMNN Research public reading UX.
 * These declarations live in the SMNN integration stylesheet, loaded after the
 * extracted research CSS. They are restricted to research markup and do not
 * change WP administration, unrelated publications, or embedded PDF typefaces.
 */

/* Use the host theme's Almarai inheritance. Do not track Arabic glyphs or words;
 * some global heading and page-builder rules otherwise add Latin tracking. */
.mpfm-r-directory,
.mpfm-r-article,
.smnn-research-archive,
.mpfm-r-directory :where(*),
.mpfm-r-article :where(*),
.smnn-research-archive :where(*) {
  font-family:inherit;
  letter-spacing:normal!important;
  word-spacing:normal!important;
}
/* Preserve restrained tracking only on explicitly English network branding. */
.mpfm-r-directory :is(.mpfm-r-imprint,.mpfm-r-cover-bottom,.mpfm-r-topline > .mpfm-r-eyebrow),
.mpfm-r-article .mpfm-r-reader-label,
.mpfm-r-article .mpfm-r-article-copy > .mpfm-r-eyebrow,
.smnn-research-archive .smnn-research-archive-eyebrow {
  letter-spacing:.07em!important;
}
.mpfm-r-directory :is(input,select,button),
.mpfm-r-article :is(input,select,button) {font-family:inherit!important;}
.mpfm-r-directory :is(h2,h3),.mpfm-r-article :is(h1,h2,h3) {font-family:inherit!important;}

/* Library: right-to-left filters, balanced result cards, and a format badge
 * outside the cover artwork so no title or imprint can be obscured. */
.mpfm-r-directory{min-width:0;max-width:1260px;padding-inline:clamp(12px,2vw,25px);}
.mpfm-r-directory .mpfm-r-toolbar{min-width:0;flex-wrap:wrap;align-items:stretch;gap:10px;}
.mpfm-r-directory .mpfm-r-search{min-width:min(100%,280px);flex:1 1 350px;gap:10px;}
.mpfm-r-directory .mpfm-r-search input{min-width:0;line-height:1.65;font-size:14px;}
.mpfm-r-directory .mpfm-r-filter{min-width:140px;flex:0 1 175px;}
.mpfm-r-directory .mpfm-r-filter select{max-width:none;min-width:0;line-height:1.55;}
.mpfm-r-directory .mpfm-r-apply{min-width:150px;min-height:45px;}
.mpfm-r-directory .mpfm-r-grid{align-items:stretch;}
.mpfm-r-directory .mpfm-r-grid--single{max-width:900px;margin-inline:auto;grid-template-columns:minmax(0,1fr);}
.mpfm-r-directory .mpfm-r-grid--two{max-width:1020px;margin-inline:auto;grid-template-columns:repeat(2,minmax(0,1fr));}
.mpfm-r-directory .mpfm-r-grid--single .mpfm-r-card{
  display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);min-height:310px;
}
.mpfm-r-directory .mpfm-r-grid--single .mpfm-r-cover{aspect-ratio:auto;height:100%;min-height:310px;}
.mpfm-r-directory .mpfm-r-grid--single .mpfm-r-card-info{padding:clamp(22px,3vw,34px);}
.mpfm-r-directory .mpfm-r-grid--single .mpfm-r-card-info h3{font-size:clamp(22px,2.2vw,28px)!important;}
.mpfm-r-directory .mpfm-r-card{min-width:0;}
.mpfm-r-directory .mpfm-r-cover-default{gap:14px;padding:clamp(18px,2vw,26px);}
.mpfm-r-directory .mpfm-r-cover-default strong{
  max-width:100%;font-size:clamp(18px,1.9vw,23px);line-height:1.65!important;
  overflow-wrap:anywhere;
}
.mpfm-r-directory .mpfm-r-cover-default small{font-size:11px;line-height:1.6;}
.mpfm-r-directory .mpfm-r-card-meta{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:9px;}
.mpfm-r-directory .mpfm-r-card-info .mpfm-r-type{font-size:12px;line-height:1.5;}
.mpfm-r-directory .mpfm-r-format{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  padding:5px 10px;border:1px solid #dce6ef;border-radius:6px;
  background:#f1f5fa;color:#234965;font-size:11px;font-weight:750;line-height:1.4;
}
.mpfm-r-directory .mpfm-r-card-info h3{line-height:1.6!important;overflow-wrap:anywhere;}
.mpfm-r-directory .mpfm-r-excerpt{line-height:1.95!important;overflow-wrap:break-word;}
.mpfm-r-directory .mpfm-r-date{font-size:12px;}
.mpfm-r-directory .mpfm-r-byline{line-height:1.7;}
.mpfm-r-directory .mpfm-r-read{min-height:36px;}

/* v3.4.199 — restore v3.4.197 individual-publication presentation.
 * The original side-by-side overview was shifted with `left:50%` plus
 * `translateX(-50%)` (relative to the reader shell). Avoid viewport offsets:
 * center naturally inside the full-width publication reader shell.
 * Keep the original two equal-height columns, PDF spread and publication UX.
 */
.mpfm-r-article{width:100%;max-width:100%;min-width:0;}
.mpfm-r-article .mpfm-r-reader-shell{
  box-sizing:border-box;width:100%;max-width:none;min-width:0;
  margin-inline:auto;
  padding:clamp(28px,3.5vw,56px) clamp(8px,1.8vw,32px) 50px;
}
.mpfm-r-article .mpfm-r-overview-grid{
  box-sizing:border-box;position:static;inset:auto;
  left:auto;right:auto;transform:none;
  width:100%;max-width:1512px;min-width:0;
  margin:clamp(40px,5vw,68px) auto 0;
  direction:rtl;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.mpfm-r-article .mpfm-r-overview-grid.mpfm-r-overview-single{
  grid-template-columns:minmax(0,1fr);
}
.mpfm-r-article .mpfm-r-overview-grid > :is(.mpfm-r-publication-summary,.mpfm-r-related-card){
  box-sizing:border-box;min-width:0;max-width:100%;
}
.mpfm-r-article .mpfm-r-summary-body,
.mpfm-r-article .mpfm-r-html-body{overflow-wrap:break-word;}
.mpfm-r-article .mpfm-r-html-body :is(img,video,iframe,figure,table){max-width:100%;}
.mpfm-r-article .mpfm-r-html-body :is(pre,table){overflow-x:auto;}
.mpfm-r-article .mpfm-r-article-hero,.mpfm-r-article .mpfm-r-article-copy{min-width:0;}
.mpfm-r-article .mpfm-r-article-copy h1{overflow-wrap:break-word;}

/* The original full-width Morse Reader and two-page desktop behavior remain.
 * User-initiated zoom scrolls inside the dark reader stage, not the WP page. */
.mpfm-r-article .mpfm-r-reader,
.mpfm-r-article .mpfm-r-reader-body,
.mpfm-r-article .mpfm-r-reader-stage{box-sizing:border-box;max-width:100%;min-width:0;}
.mpfm-r-article .mpfm-r-reader{width:100%;}
.mpfm-r-article .mpfm-r-reader-stage{
  width:100%;overflow-x:auto;overflow-y:auto;overscroll-behavior-x:contain;
}
.mpfm-r-article .mpfm-r-reader-toolbar{min-width:0;gap:12px;}
.mpfm-r-article .mpfm-r-reader-controls{max-width:100%;flex-wrap:wrap;}
.mpfm-r-article .mpfm-r-reader-footer{line-height:1.7;}
@media(max-width:760px){
  .mpfm-r-article .mpfm-r-overview-grid{grid-template-columns:minmax(0,1fr);}
}
@media(max-width:850px){
  .mpfm-r-directory .mpfm-r-grid--two{grid-template-columns:minmax(0,1fr);max-width:600px;}
  .mpfm-r-directory .mpfm-r-grid--single{max-width:650px;}
}
@media(max-width:700px){
  .mpfm-r-directory .mpfm-r-grid--single .mpfm-r-card{display:flex;flex-direction:column;min-height:0;}
  .mpfm-r-directory .mpfm-r-grid--single .mpfm-r-cover{height:auto;min-height:0;aspect-ratio:1.7;}
  .mpfm-r-directory .mpfm-r-grid--single .mpfm-r-card-info{padding:21px;}
  .mpfm-r-directory .mpfm-r-toolbar{padding:11px;}
  .mpfm-r-directory .mpfm-r-search,.mpfm-r-directory .mpfm-r-filter,.mpfm-r-directory .mpfm-r-apply{
    width:100%;flex:1 1 100%;min-width:0;max-width:100%;
  }
}
