/* v3.7: mobile caption visibility, RTL editorial pages, compact single-post layout. */
body.page .ms-article-content, body.single-post .ms-article-content,
body.page .ms-article-content .mariani-page-inner, body.single-post .ms-article-content .mariani-page-inner,
body.page .ms-article-content .ms-page-article, body.single-post .ms-article-content .ms-page-article,
body.page .ms-article-content .entry-content, body.single-post .ms-editorial-body {
 direction:rtl!important;text-align:right!important;
}
body.page .ms-page-article :is(p,ul,ol,blockquote),
body.single-post .ms-editorial-body :is(p,ul,ol,blockquote){direction:rtl;text-align:right;}
body.page .ms-page-article :is(h1,h2,h3,h4,h5,h6),
body.single-post .ms-editorial-body :is(h1,h2,h3,h4,h5,h6){direction:rtl;text-align:right;}
body.single-post .ms-single-editorial{background:#fff!important;padding-bottom:clamp(72px,9vw,145px)!important;}
body.single-post .ms-single-editorial .mariani-page-inner{max-width:850px!important;}
.ms-editorial-post{margin:0 auto!important;max-width:800px;}
.ms-editorial-heading{margin:0 0 clamp(28px,4vw,45px);padding:0;border:0;}
.ms-editorial-meta{display:flex;align-items:center;gap:12px;color:#888;letter-spacing:.015em;font-size:12px;line-height:1.6;margin-bottom:16px;}
.ms-editorial-meta-separator{width:18px;height:1px;background:#b4b4b4;display:inline-block;}
.ms-single-editorial .ms-editorial-title{font-size:clamp(24px,3vw,36px)!important;line-height:1.45;font-weight:500!important;letter-spacing:0;margin:0!important;text-align:right;}
.ms-single-editorial .ms-article-cover{max-width:720px;margin:0 auto clamp(30px,4.5vw,56px)!important;}
.ms-single-editorial .ms-article-cover img{display:block;width:100%;height:auto;max-height:460px;object-fit:contain;object-position:center;}
.ms-single-editorial .ms-editorial-body{font-size:clamp(15px,1.2vw,17px);line-height:2.15;color:#333;overflow-wrap:anywhere;}
.ms-single-editorial .ms-editorial-body p{margin:0 0 1.4em;}
.ms-single-editorial .ms-editorial-body :is(figure,.wp-block-image){max-width:720px;margin:34px auto;}
.ms-single-editorial .ms-editorial-body :is(img,video){max-width:100%;width:auto;height:auto;display:block;margin-inline:auto;}
.ms-single-editorial .ms-editorial-body :is(h2,h3,h4){margin:1.8em 0 .7em;line-height:1.5;}
@media(max-width:767px){
 /* The legacy reveal effect is controlled by active section, not by visibility.
    Mobile sections are short and frequently skipped by the active-section detector.
    Never hide title copy behind the reveal transition on handheld layouts. */
 body.home .landing-wrapper > .magnet:nth-child(-n+5) .caption,
 body.home .landing-wrapper > .magnet:nth-child(-n+5) .caption.reveal,
 body.home .landing-wrapper > .magnet:nth-child(-n+5) .caption:not(.visible){
   position:absolute!important;top:auto!important;bottom:clamp(18px,5vw,30px)!important;
   left:0!important;right:0!important;inset-block-start:auto!important;
   display:flex!important;visibility:visible!important;opacity:1!important;
   transform:none!important;animation:none!important;transition:none!important;
   justify-content:flex-end!important;align-items:center!important;
   width:100%!important;height:auto!important;z-index:30!important;
   padding:0 18px!important;box-sizing:border-box!important;pointer-events:none;
 }
 body.home .landing-wrapper > .magnet:nth-child(-n+5) .caption :is(h1,h2,p){
   opacity:1!important;visibility:visible!important;transform:none!important;
   color:#fff!important;text-shadow:0 2px 15px rgba(0,0,0,.68)!important;
   line-height:1.2!important;margin:0!important;
 }
 body.home .landing-wrapper > .magnet:nth-child(-n+2){min-height:280px!important;}
 body.home .landing-wrapper > .magnet:nth-child(-n+2) > section > a::after{
   content:"";position:absolute;bottom:0;left:0;right:0;height:48%;z-index:2;
   background:linear-gradient(0deg,rgba(0,0,0,.48),transparent);pointer-events:none;
 }
 body.home .landing-wrapper > .magnet:nth-child(-n+5) .caption{z-index:4!important;}
 .ms-single-editorial .ms-editorial-title{font-size:24px!important;}
 .ms-editorial-post{padding-inline:0;}
 .ms-single-editorial .ms-editorial-body{font-size:15px;line-height:2;}
 .ms-single-editorial .ms-article-cover{margin-bottom:25px!important;}
}
