/*
Theme Name: Mize Energy Pro
Theme URI: https://example.com/
Author: MEP Studio
Description: قالب خبری RTL، سبک، واکنش‌گرا و مناسب Google Discover.
Version: 1.12.0
Text Domain: mize-energy-pro
Requires at least: 6.2
Requires PHP: 7.4
*/
:root{--navy:#062b49;--navy2:#0b426b;--blue:#0f6ea8;--red:#e51c2a;--bg:#f4f7fa;--card:#fff;--text:#17212b;--muted:#7a8794;--line:#e4e9ee;--radius:14px;--shadow:0 7px 22px rgba(10,43,70,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Tahoma,Arial,sans-serif;line-height:1.8;direction:rtl}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.wrap{width:min(1200px,calc(100% - 28px));margin:auto}.skip-link{position:absolute;right:-9999px}.skip-link:focus{right:10px;top:10px;z-index:9999;background:#fff;padding:10px}
.topline{background:#041c30;color:#cbd7df;font-size:11px}.topline-inner{min-height:32px;display:flex;align-items:center;justify-content:space-between}.topline-tag{opacity:.85}.marketbar{background:#082b48;color:#fff;font-size:12px;overflow:auto;border-bottom:1px solid rgba(255,255,255,.08)}.marketbar-inner{display:flex;align-items:center;gap:22px;white-space:nowrap;min-height:38px}.marketbar strong{background:var(--red);padding:9px 18px;margin-right:-14px}.marketbar b{font-weight:700;margin-right:3px}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:20}.header-main{height:92px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand-text{font-size:32px;font-weight:900;color:var(--navy);display:flex;flex-direction:column;line-height:1.2}.brand-text small{font-size:12px;color:var(--muted);font-weight:400;margin-top:6px}.custom-logo{max-height:72px;width:auto}.header-actions{display:flex;align-items:center;gap:12px}.search-form{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f8fafc}.search-field{border:0;outline:0;padding:10px 13px;width:240px;font:inherit;background:transparent}.search-submit{border:0;background:var(--red);color:#fff;padding:0 16px;cursor:pointer}.menu-toggle{display:none;border:0;background:var(--navy);color:#fff;border-radius:9px;width:44px;height:44px;font-size:21px}.primary-nav{background:var(--navy);color:#fff;box-shadow:0 2px 5px rgba(0,0,0,.08)}.primary-nav ul{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:0;flex-wrap:wrap}.primary-nav a{display:block;padding:13px 14px;font-size:13px;font-weight:700}.primary-nav a:hover{background:var(--red)}
.mep-home{padding-bottom:0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:17px}.section-head.compact{margin-bottom:12px}.section-head h2{margin:2px 0 0;color:var(--navy);font-size:23px}.section-kicker{font-size:11px;color:var(--red);font-weight:700}.section-more{font-size:12px;color:var(--blue);font-weight:700}
.appointments{background:#fff;padding:18px 0 12px;border-bottom:1px solid var(--line)}.appointment-row{display:flex;gap:20px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:thin}.appointment{width:112px;flex:0 0 112px;text-align:center;font-size:12px;font-weight:700;line-height:1.55}.avatar{width:80px;height:80px;border-radius:50%;display:block;margin:0 auto 7px;overflow:hidden;border:4px solid #eef3f7;box-shadow:0 4px 14px rgba(0,0,0,.08);background:#dfe8ef}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-fallback{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;font-size:25px}
.hero{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(295px,.75fr);gap:18px;margin-top:20px}.hero-main{position:relative;min-height:440px;border-radius:10px;overflow:hidden;background:#111;box-shadow:var(--shadow)}.hero-media,.hero-media img,.hero-media .placeholder{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.hero-main:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,15,27,.9),rgba(0,15,27,.03) 70%)}.hero-copy{position:absolute;z-index:2;right:28px;left:28px;bottom:22px;color:#fff}.hero-badge{display:inline-block;background:var(--red);padding:5px 10px;border-radius:6px;font-size:11px;font-weight:700}.hero-copy h1{font-size:29px;line-height:1.45;margin:9px 0 7px}.hero-copy p{margin:0;color:#eef4f8;font-size:13px;max-width:780px}.hero-meta{display:flex;gap:14px;margin-top:10px;color:#cbd5dd;font-size:11px}.hero-side{display:grid;gap:10px}.side-card{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden;display:grid;grid-template-columns:120px 1fr;min-height:97px}.side-card .thumb{height:100%;background:#e8eef2}.side-card img,.side-card .placeholder{width:100%;height:100%;object-fit:cover}.side-card>div{padding:10px 11px}.side-card h2{font-size:13px;line-height:1.65;margin:4px 0 3px}.side-card time,.news-card time{font-size:10px;color:var(--muted)}.mini-cat{font-size:10px;font-weight:700;color:var(--red)}
.ticker{margin-top:18px}.ticker-inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;min-height:46px}.ticker strong{background:var(--red);color:#fff;height:100%;display:flex;align-items:center;padding:0 16px;font-size:13px}.ticker-list{display:flex;gap:28px;overflow:hidden;padding:0 18px;white-space:nowrap}.ticker-list a{font-size:12px;position:relative}.ticker-list a:before{content:"";width:6px;height:6px;background:var(--red);border-radius:50%;position:absolute;right:-14px;top:50%;transform:translateY(-50%)}.ticker-all{background:var(--navy);color:#fff;padding:8px 13px;margin-left:6px;border-radius:6px;font-size:11px}
.category-tiles{padding:18px 0}.tiles-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.category-tile{position:relative;aspect-ratio:1.65/1;border-radius:9px;overflow:hidden;background:#dfe7ed;box-shadow:var(--shadow)}.category-tile img,.category-tile .placeholder{width:100%;height:100%;object-fit:cover}.tile-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,20,35,.8),rgba(0,20,35,.05))}.tile-label{position:absolute;right:0;left:0;bottom:13px;color:#fff;text-align:center;font-size:16px;font-weight:900}.tile-label b{display:block;font-size:23px;line-height:1.1;margin-bottom:4px}
.feature-trio{padding:2px 0 26px}.feature-trio-grid{display:grid;grid-template-columns:.9fr 1.15fr 1.15fr;gap:15px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px;box-shadow:0 4px 16px rgba(7,45,72,.05)}.panel-title{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:11px}.panel-title span{color:var(--red);font-size:21px}.panel-title h2{margin:0;color:var(--navy);font-size:18px}.popular-panel ol{list-style:none;margin:0;padding:0}.popular-panel li+li{border-top:1px solid var(--line)}.popular-panel li a{display:grid;grid-template-columns:28px 58px 1fr;align-items:center;gap:8px;padding:8px 0}.rank{width:25px;height:25px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:700}.pop-thumb{width:58px;height:42px;border-radius:5px;overflow:hidden;background:#e9eef2}.pop-thumb img,.pop-thumb .placeholder{width:100%;height:100%;object-fit:cover}.popular-panel strong{font-size:12px;line-height:1.5}.feature-image{display:block;aspect-ratio:16/8.8;border-radius:7px;overflow:hidden;background:#e7edf2}.feature-image img,.feature-image .placeholder{width:100%;height:100%;object-fit:cover}.feature-panel h3{font-size:17px;line-height:1.65;color:var(--navy);margin:10px 0 5px}.feature-panel p{font-size:12px;color:var(--muted);margin:0}.empty-note{padding:30px 10px;text-align:center}
.news-section{padding:26px 0;background:#fff}.news-section:nth-of-type(even){background:var(--bg)}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.news-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 4px 16px rgba(7,45,72,.05)}.news-card .card-thumb{display:block;aspect-ratio:16/9;background:#e7edf2;overflow:hidden}.news-card img,.news-card .placeholder{width:100%;height:100%;object-fit:cover}.card-body{padding:12px}.card-body h3{font-size:14px;line-height:1.8;margin:5px 0 7px}.placeholder{display:block;background:linear-gradient(135deg,#d7e1e8,#edf2f5)}
.media-zone{padding:27px 0;background:#f0f4f7}.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.media-panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px}.media-feature{display:block;aspect-ratio:16/9;position:relative;overflow:hidden;border-radius:7px;background:#e7edf2}.media-feature img,.media-feature .placeholder{width:100%;height:100%;object-fit:cover}.play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:50%;background:rgba(3,25,43,.82);color:#fff;display:grid;place-items:center;font-size:20px;border:2px solid #fff}.media-panel h3{font-size:14px;line-height:1.7;margin:9px 0 0}.media-empty{aspect-ratio:16/9;background:#eef3f6;border-radius:7px;display:grid;place-items:center;color:var(--muted);font-size:12px}.tweet-panel{display:flex;flex-direction:column}.brand-mini{font-size:18px;font-weight:900;color:var(--navy);margin:4px 0 6px}.tweet-panel p{font-size:13px;color:#4d5963}.social-mini{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}.social-mini a{background:#eef4f8;color:var(--navy);padding:6px 9px;border-radius:6px;font-size:11px}
.follow-strip{background:#fff;padding:18px 0;border-top:1px solid var(--line)}.follow-strip .wrap{text-align:center}.follow-strip strong{display:block;color:var(--navy);margin-bottom:11px}.follow-strip .wrap>div{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.follow-strip a,.follow-strip span{padding:8px 20px;background:var(--navy);color:#fff;border-radius:6px;font-size:12px}.follow-strip a:nth-child(2),.follow-strip span:nth-child(2){background:#18a958}.follow-strip a:nth-child(4),.follow-strip span:nth-child(4){background:#bc2a8d}.follow-strip a:nth-child(5),.follow-strip span:nth-child(5){background:#ef6c00}
.site-footer{background:linear-gradient(135deg,#061c30,#082f4f);color:#c7d3dc;padding:30px 0 0}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.15fr;gap:35px}.footer-brand{font-size:25px;font-weight:900;color:#fff}.footer-about p,.footer-newsletter p{font-size:12px;line-height:1.9}.site-footer h3{font-size:14px;color:#fff;margin:0 0 10px}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{font-size:12px;margin:6px 0}.footer-bottom{margin-top:24px;padding:13px 0;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;font-size:10px;color:#9fb0bd}
.single-wrap{padding:30px 0}.single-article{max-width:860px;margin:auto;background:#fff;padding:28px;border-radius:18px;box-shadow:var(--shadow)}.single-article h1{line-height:1.55;color:var(--navy)}.single-meta{color:var(--muted);font-size:12px;margin-bottom:18px}.single-featured{border-radius:16px;overflow:hidden;margin:18px 0}.single-content{font-size:17px;line-height:2.15}.archive-grid{padding:30px 0}.archive-title{color:var(--navy)}
@media(max-width:980px){.search-form{display:none}.menu-toggle{display:block}.primary-nav{display:none}.primary-nav.is-open{display:block}.primary-nav ul{display:block}.header-main{height:76px}.hero{grid-template-columns:1fr}.hero-side{grid-template-columns:1fr 1fr}.tiles-grid{grid-template-columns:repeat(3,1fr)}.feature-trio-grid{grid-template-columns:1fr 1fr}.popular-panel{grid-column:1/-1}.card-grid{grid-template-columns:repeat(2,1fr)}.media-grid{grid-template-columns:1fr 1fr}.tweet-panel{grid-column:1/-1}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.wrap{width:min(100% - 18px,1200px)}.topline-tag{display:none}.marketbar-inner{gap:14px}.header-main{height:68px}.brand-text{font-size:24px}.hero{margin-top:12px}.hero-main{min-height:330px;border-radius:8px}.hero-copy{right:16px;left:16px;bottom:16px}.hero-copy h1{font-size:21px}.hero-copy p{display:none}.hero-side{grid-template-columns:1fr}.side-card{grid-template-columns:105px 1fr}.ticker-inner{grid-template-columns:auto 1fr}.ticker-all{display:none}.ticker-list{gap:20px;padding:0 13px}.tiles-grid{display:flex;overflow-x:auto;gap:10px}.category-tile{min-width:170px}.feature-trio-grid{grid-template-columns:1fr}.popular-panel{grid-column:auto}.card-grid{grid-template-columns:1fr 1fr;gap:9px}.card-body{padding:9px}.card-body h3{font-size:12.5px}.media-grid{grid-template-columns:1fr}.tweet-panel{grid-column:auto}.footer-grid{grid-template-columns:1fr}.footer-bottom{display:block}.footer-bottom span{display:block;margin:4px 0}.appointment{width:90px;flex-basis:90px}.avatar{width:68px;height:68px}.section-head h2{font-size:20px}.panel-title h2{font-size:17px}}


/* v0.7 mobile-first hardening: prevents legacy/widget content from collapsing columns */
html,body{max-width:100%;overflow-x:hidden}main,section,article,aside,header,footer,nav,div{min-width:0}.mep-home{width:100%;overflow:hidden}.mep-home a,.mep-home h1,.mep-home h2,.mep-home h3,.mep-home p,.mep-home strong{overflow-wrap:break-word;word-break:normal}.mep-home img{max-width:100%;object-fit:cover}
@media(max-width:640px){
 body{font-size:14px;line-height:1.75}.wrap{width:calc(100% - 24px);max-width:none}.topline{display:none}.marketbar{font-size:11px}.marketbar-inner{min-height:36px;padding:0 4px}.marketbar strong{padding:8px 12px;margin-right:0}.site-header{position:relative}.header-main{height:72px;gap:10px}.custom-logo{max-width:150px;max-height:58px}.brand-text{font-size:23px}.brand-text small{font-size:10px}.header-actions{margin-right:auto}.menu-toggle{display:block;width:42px;height:42px}.primary-nav{position:absolute;top:100%;right:12px;left:12px;border-radius:0 0 10px 10px;box-shadow:0 12px 28px rgba(0,0,0,.2)}.primary-nav ul{display:block}.primary-nav li,.primary-nav a{width:100%}.primary-nav a{padding:11px 14px;border-bottom:1px solid rgba(255,255,255,.08)}
 .appointments{padding:14px 0 8px}.section-head{align-items:center;margin-bottom:12px}.section-head h2{font-size:20px}.section-more{font-size:11px}.appointment-row{gap:12px}.appointment{width:86px;flex:0 0 86px;font-size:10.5px}.avatar{width:64px;height:64px;border-width:3px}
 .hero{display:block;margin-top:12px}.hero-main{min-height:310px;width:100%}.hero-copy{right:14px;left:14px;bottom:14px}.hero-copy h1{font-size:20px;line-height:1.6;margin:7px 0}.hero-meta{font-size:10px}.hero-side{display:grid;grid-template-columns:1fr;gap:9px;margin-top:9px}.side-card{width:100%;grid-template-columns:112px minmax(0,1fr);min-height:92px}.side-card h2{font-size:12.5px;line-height:1.7}
 .ticker{margin-top:12px}.ticker-inner{display:grid;grid-template-columns:auto minmax(0,1fr);min-height:42px}.ticker strong{padding:0 10px;font-size:11px}.ticker-list{min-width:0;overflow-x:auto;gap:25px;padding:0 16px}.ticker-list a{font-size:11px;flex:0 0 auto}.ticker-all{display:none}
 .category-tiles{padding:13px 0}.tiles-grid{display:flex;width:100%;overflow-x:auto;gap:9px;padding-bottom:4px;scroll-snap-type:x proximity}.category-tile{flex:0 0 155px;min-width:155px;scroll-snap-align:start}.tile-label{font-size:13px;bottom:10px}.tile-label b{font-size:19px}
 .feature-trio{padding-bottom:18px}.feature-trio-grid{display:block}.panel{width:100%;margin-bottom:10px;padding:11px}.panel-title h2{font-size:16px}.popular-panel li a{grid-template-columns:26px 58px minmax(0,1fr)}.popular-panel strong{font-size:11.5px}.feature-panel h3{font-size:15px}
 .news-section{padding:19px 0}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%}.news-card{min-width:0}.card-body{padding:9px}.card-body h3{font-size:12px;line-height:1.75;margin:4px 0 5px}.mini-cat{font-size:9px}.news-card time{font-size:9px}
 .media-zone{padding:20px 0}.media-grid{display:block}.media-panel{width:100%;margin-bottom:10px}.tweet-panel{display:flex}.follow-strip{padding:14px 0}.follow-strip a,.follow-strip span{padding:7px 12px;font-size:10px}
 .site-footer{padding-top:22px}.footer-grid{display:block}.footer-grid>div{margin-bottom:20px}.footer-bottom{display:block}.footer-bottom span{display:block;margin:4px 0}
}
@media(max-width:390px){.wrap{width:calc(100% - 18px)}.card-grid{grid-template-columns:1fr}.hero-main{min-height:285px}.hero-copy h1{font-size:18px}.category-tile{flex-basis:145px;min-width:145px}.side-card{grid-template-columns:98px minmax(0,1fr)}}

/* ===== v0.8 visual system — aligned with approved newsroom mockup ===== */
:root{--navy:#082d4b;--navy-deep:#031d31;--blue:#0c5f92;--red:#e31b23;--bg:#f5f6f7;--card:#fff;--text:#101923;--muted:#7d8791;--line:#e8ebee;--radius:8px;--shadow:0 3px 14px rgba(6,39,64,.07)}
body{background:#fff;color:var(--text);font-family:Tahoma,"Segoe UI",Arial,sans-serif}.wrap{width:min(1280px,calc(100% - 36px))}
.topline{background:var(--navy-deep);height:34px}.topline-inner{min-height:34px;font-size:11px}.top-social{display:flex;gap:9px;margin-right:auto}.top-social a{color:#fff;opacity:.9;font-size:14px}
.site-header{border-bottom:0;box-shadow:0 1px 0 var(--line)}.header-main{height:104px}.brand{margin-right:auto}.brand-text{font-size:38px;letter-spacing:-1.2px}.brand-text small{font-size:13px}.custom-logo{max-height:82px;max-width:265px}.search-form{border:0;background:#f2f4f6;border-radius:9px}.search-field{width:300px;padding:12px 15px}.search-submit{background:transparent;color:#111;font-size:0;width:48px;position:relative}.search-submit:after{content:'⌕';font-size:23px;position:absolute;inset:0;display:grid;place-items:center}
.primary-nav{background:#fff;color:#111;box-shadow:none;border-top:1px solid #f0f1f2;border-bottom:1px solid var(--line)}.primary-nav ul{justify-content:flex-start}.primary-nav a{padding:14px 15px;font-size:13px;position:relative}.primary-nav a:hover{background:transparent;color:var(--red)}.primary-nav li:first-child a{color:var(--red)}.primary-nav li:first-child a:after{content:'';position:absolute;right:12px;left:12px;bottom:0;height:2px;background:var(--red)}
.marketbar{background:var(--navy-deep);border:0}.marketbar-inner{min-height:38px;justify-content:center}.marketbar strong{background:var(--red);margin:0;padding:9px 18px}.marketbar span{color:#e8eef3}
.mep-home{background:#fff}.appointments{padding:20px 0 15px;border-bottom:0}.section-head{border-top:0}.section-head h2{font-size:23px;letter-spacing:-.4px}.appointment-row{justify-content:flex-start;gap:24px}.appointment{width:118px;flex-basis:118px}.avatar{width:82px;height:82px;border:3px solid #fff;box-shadow:0 2px 12px rgba(3,30,51,.16)}
.hero{grid-template-columns:minmax(0,1.72fr) minmax(300px,.72fr);gap:16px;margin-top:12px;direction:ltr}.hero>*{direction:rtl}.hero-main{min-height:475px;border-radius:7px;box-shadow:none}.hero-main:after{background:linear-gradient(0deg,rgba(1,13,22,.9),rgba(1,13,22,.03) 72%)}.hero-copy{right:30px;left:30px;bottom:24px}.hero-badge{border-radius:4px}.hero-copy h1{font-size:31px;letter-spacing:-.5px}.hero-side{gap:12px}.side-card{grid-template-columns:132px minmax(0,1fr);border:0;background:#f6f7f8;border-radius:6px;box-shadow:none}.side-card h2{font-size:14px}.side-card>div{padding:11px 12px}
.ticker{margin-top:20px}.ticker-inner{border:0;border-radius:5px;background:#fff;box-shadow:0 0 0 1px var(--line)}.ticker strong{font-size:14px}.ticker-list a{font-weight:600}.ticker-all{border-radius:4px}
.category-tiles{padding:22px 0}.tiles-grid{gap:18px}.category-tile{aspect-ratio:1.7/1;border-radius:6px;box-shadow:none}.tile-shade{background:linear-gradient(0deg,rgba(0,17,29,.8),rgba(0,17,29,.08))}.tile-label{font-size:18px}.tile-label b{font-size:26px}
.feature-trio{padding:0 0 28px}.feature-trio-grid{grid-template-columns:.9fr 1.1fr 1.1fr;gap:22px}.panel{border:0;border-radius:0;padding:0;box-shadow:none}.panel-title{border-bottom:2px solid var(--navy);padding-bottom:8px}.panel-title h2{font-size:20px}.popular-panel li a{grid-template-columns:30px 65px minmax(0,1fr);padding:9px 0}.feature-image{border-radius:4px}.feature-panel h3{font-size:19px;line-height:1.65}
.news-section{padding:28px 0;border-top:1px solid #f2f3f4}.news-section:nth-of-type(even){background:#fff}.card-grid{gap:18px}.news-card{border:1px solid var(--line);border-radius:6px;box-shadow:none;transition:.2s}.news-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.card-body h3{font-size:14px;line-height:1.75}
.media-zone{background:#f6f7f8}.media-panel{border:0;border-radius:6px;box-shadow:0 0 0 1px var(--line)}
.follow-strip{border-top:0;background:var(--navy);color:#fff}.follow-strip strong{color:#fff}.follow-strip a,.follow-strip span{background:#fff;color:var(--navy)}
.site-footer{background:linear-gradient(135deg,#06243d,#021522)}
@media(max-width:980px){.wrap{width:calc(100% - 24px)}.top-social{display:none}.header-main{height:78px}.brand{margin-right:0}.custom-logo{max-height:60px;max-width:190px}.brand-text{font-size:27px}.menu-toggle{display:block}.primary-nav{position:absolute;top:100%;right:12px;left:12px;background:var(--navy);color:#fff;border:0;border-radius:0 0 8px 8px}.primary-nav a{color:#fff!important}.primary-nav li:first-child a:after{display:none}.marketbar-inner{justify-content:flex-start}.hero{direction:rtl}.hero-main{min-height:390px}}
@media(max-width:640px){
 .wrap{width:calc(100% - 20px)}.topline{display:none}.marketbar{order:0}.marketbar-inner{padding:0 2px;gap:14px}.marketbar strong{position:sticky;right:0;z-index:2;padding:8px 12px}.site-header{position:relative}.header-main{height:72px;padding:0 2px}.brand-text{font-size:25px}.brand-text small{font-size:10px}.custom-logo{max-height:57px;max-width:175px}.menu-toggle{border-radius:7px;background:var(--navy)}
 .appointments{padding:14px 0 10px}.section-head h2{font-size:21px}.appointment-row{gap:13px}.appointment{width:88px;flex-basis:88px}.avatar{width:65px;height:65px}.appointment span:last-child{font-size:10.5px;line-height:1.55}
 .hero{margin-top:10px}.hero-main{min-height:335px;border-radius:6px}.hero-copy{right:15px;left:15px;bottom:15px}.hero-copy h1{font-size:21px;line-height:1.55}.hero-side{margin-top:10px}.side-card{grid-template-columns:110px minmax(0,1fr);min-height:94px;background:#f7f8f9}.side-card h2{font-size:12.5px}
 .ticker{margin-top:12px}.ticker-inner{border-radius:4px}.ticker strong{font-size:11px}.ticker-list a{font-weight:500}
 .category-tiles{padding:14px 0}.category-tile{flex-basis:165px;min-width:165px}.tile-label{font-size:14px}.tile-label b{font-size:20px}
 .feature-trio{padding-bottom:18px}.panel{padding:0}.panel-title{margin-bottom:10px}.feature-trio-grid{display:block}.feature-panel,.popular-panel{margin-bottom:20px}.feature-panel h3{font-size:16px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.news-section{padding:20px 0}.news-card{border-radius:5px}.card-body h3{font-size:12px}.media-zone{padding:20px 0}
}
@media(max-width:390px){.card-grid{grid-template-columns:1fr}.hero-main{min-height:300px}.hero-copy h1{font-size:19px}}


/* ===== v0.9 mobile layout repair ===== */
.mep-home .hero,
.mep-home .hero-main,
.mep-home .hero-side,
.mep-home .side-card,
.mep-home .category-tile,
.mep-home .news-card,
.mep-home .feature-image,
.mep-home .card-thumb,
.mep-home .media-feature{min-width:0;max-width:100%;}
.mep-home .hero-main,
.mep-home .category-tile,
.mep-home .news-card,
.mep-home .feature-image,
.mep-home .card-thumb,
.mep-home .media-feature,
.mep-home .side-card .thumb{overflow:hidden;}
.mep-home .hero-media img,
.mep-home .side-card .thumb img,
.mep-home .category-tile img,
.mep-home .feature-image img,
.mep-home .card-thumb img,
.mep-home .media-feature img,
.mep-home .pop-thumb img{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important;}
.mep-home .hero-media{display:block;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:hidden;}
.mep-home .hero-media img{position:absolute!important;inset:0!important;}
.mep-home .card-thumb{aspect-ratio:16/9!important;height:auto!important;}
.mep-home .feature-image,.mep-home .media-feature{aspect-ratio:16/9!important;height:auto!important;}
.mep-home .category-tile{aspect-ratio:16/9!important;height:auto!important;}

@media (max-width:900px){
 .wrap{width:calc(100% - 20px)!important;max-width:100%!important;}
 .hero{display:block!important;width:100%!important;direction:rtl!important;}
 .hero-main{width:100%!important;min-height:0!important;height:auto!important;aspect-ratio:16/9!important;}
 .hero-side{display:grid!important;grid-template-columns:1fr!important;width:100%!important;margin-top:10px!important;gap:9px!important;}
 .side-card{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;width:100%!important;min-height:96px!important;}
 .side-card .thumb{width:112px!important;height:96px!important;}
 .tiles-grid{display:flex!important;grid-template-columns:none!important;overflow-x:auto!important;gap:10px!important;padding-bottom:5px!important;}
 .category-tile{flex:0 0 165px!important;min-width:165px!important;}
 .feature-trio-grid{display:block!important;}
 .feature-trio-grid>.panel{width:100%!important;margin-bottom:18px!important;}
 .card-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:10px!important;}
 .news-card{width:100%!important;}
 .media-grid{display:block!important;}
 .media-panel{width:100%!important;margin-bottom:12px!important;}
 .appointment-row{justify-content:flex-start!important;}
}
@media (max-width:520px){
 .hero-main{aspect-ratio:16/10!important;}
 .hero-copy{right:14px!important;left:14px!important;bottom:13px!important;}
 .hero-copy h1{font-size:19px!important;line-height:1.55!important;}
 .hero-copy p{display:none!important;}
 .card-grid{grid-template-columns:1fr!important;}
 .news-card .card-thumb{aspect-ratio:16/9!important;}
 .side-card{grid-template-columns:104px minmax(0,1fr)!important;}
 .side-card .thumb{width:104px!important;height:92px!important;}
 .category-tile{flex-basis:150px!important;min-width:150px!important;}
}


/* ===== v1.0 editorial polish ===== */
:root{--content:1240px;--ink:#10283b;--soft:#f6f8fa;--accent:#e3262e}
body{font-size:14px}.wrap{width:min(var(--content),calc(100% - 32px))}
.topline{background:#062740}.topline-inner{letter-spacing:0}.site-header{background:#fff}
.header-main{height:92px}.brand-text{font-size:34px}.brand-text small{color:#89939c}
.primary-nav{border-bottom:2px solid #0a3554}.primary-nav a{font-size:13px;font-weight:700}
.marketbar{background:#062740}.marketbar-inner{min-height:36px}.marketbar strong{background:var(--accent)}
.appointments{padding:24px 0 18px}.appointments .section-head{margin-bottom:13px}.section-kicker{letter-spacing:0;color:#d8454b}.section-more{color:#0a648f}
.appointment-row{gap:28px}.appointment{width:104px;flex-basis:104px;font-size:11px}.avatar{width:72px;height:72px}
.hero{margin-top:16px;gap:16px}.hero-main{min-height:430px;border-radius:12px}.hero-copy h1{font-size:28px;max-width:850px}.hero-badge{background:var(--accent)}
.side-card{border-radius:10px;background:#fff;border:1px solid #e7ebef;box-shadow:0 2px 8px rgba(5,37,60,.04)}
.ticker-inner{box-shadow:none;border:1px solid #e6eaed}.ticker strong{background:var(--accent)}
.category-tiles{background:#f7f9fb;margin-top:22px;padding:20px 0}.category-tile{border-radius:10px}.tile-label{bottom:16px}
.feature-trio{padding:30px 0 24px}.panel-title{border-bottom:2px solid #0b3a5b}.panel-title h2{font-size:19px}.rank{background:var(--accent)}
.news-section{padding:34px 0}.news-section:nth-of-type(odd){background:#fafbfc}.news-section .section-head{padding-bottom:10px;border-bottom:1px solid #e9edf0}.news-card{border-radius:9px;background:#fff}.news-card .card-thumb{border-bottom:1px solid #edf0f2}.card-body{padding:13px 14px 15px}.card-body h3{font-size:14px;margin-top:4px}
.media-zone{padding:34px 0}.media-panel{border-radius:10px}.follow-strip{padding:22px 0}.site-footer{padding-top:34px}
@media(max-width:980px){
 .header-main{height:74px}.search-form{display:none}.hero{display:block!important}.hero-main{aspect-ratio:16/9!important;min-height:0!important}.hero-side{grid-template-columns:repeat(2,minmax(0,1fr))!important}.side-card{grid-template-columns:105px minmax(0,1fr)!important}.side-card .thumb{width:105px!important}.category-tiles{margin-top:14px}.feature-trio{padding-top:22px}
}
@media(max-width:640px){
 body{font-size:13px;background:#fff}.wrap{width:calc(100% - 22px)!important}.site-header{box-shadow:0 1px 5px rgba(4,35,57,.06)}.header-main{height:68px}.brand-text{font-size:24px}.brand-text small{margin-top:3px}.marketbar-inner{min-height:34px}.marketbar span{font-size:10.5px}.marketbar strong{font-size:10.5px}
 .appointments{padding:17px 0 12px}.appointments .section-head{margin-bottom:8px}.section-head h2{font-size:20px}.appointment-row{gap:12px}.appointment{width:82px;flex-basis:82px}.avatar{width:61px;height:61px}.appointment span:last-child{font-size:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .hero{margin-top:9px}.hero-main{border-radius:9px;aspect-ratio:16/10!important}.hero-copy{right:14px!important;left:14px!important;bottom:14px!important}.hero-copy h1{font-size:19px!important;line-height:1.55;margin:7px 0 4px}.hero-meta{margin-top:5px}.hero-side{grid-template-columns:1fr!important;gap:8px!important}.side-card{grid-template-columns:108px minmax(0,1fr)!important;min-height:88px!important}.side-card .thumb{width:108px!important;height:88px!important}.side-card>div{padding:8px 10px}.side-card h2{line-height:1.55;margin:2px 0;font-size:12px}
 .ticker{margin-top:10px}.ticker-inner{min-height:42px}.ticker-list{padding:0 12px}.ticker-all{display:none}
 .category-tiles{padding:13px 0;margin-top:13px}.category-tile{flex:0 0 145px!important;min-width:145px!important;border-radius:8px}.tile-label{bottom:10px;font-size:13px}.tile-label b{font-size:18px}
 .feature-trio{padding:20px 0 10px}.feature-trio-grid>.panel{margin-bottom:22px!important}.panel-title h2{font-size:18px}.feature-panel h3{font-size:15px}
 .news-section{padding:22px 0}.news-section .section-head{margin-bottom:12px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.news-card{border-radius:8px}.card-body{padding:9px 10px 11px}.card-body h3{font-size:11.5px;line-height:1.65}.mini-cat{font-size:9px}
 .media-zone{padding:22px 0}.media-panel{padding:11px}.follow-strip{text-align:center}.follow-strip .wrap{display:block}.follow-strip strong{display:block;margin-bottom:10px}
}
@media(max-width:390px){.card-grid{grid-template-columns:1fr!important}.hero-copy h1{font-size:18px!important}}


/* ===== v1.1 synchronized desktop + mobile polish ===== */
/* Keep desktop editorial density while preventing oversized mobile blocks. */
:root{--content:1220px;--section-gap:28px}
body{overflow-x:hidden}
.mep-home{overflow:hidden}
.section-head{align-items:flex-end}
.section-head h2{letter-spacing:-.25px}
.news-section .section-kicker{font-size:11px}

/* Desktop / wide screens */
@media (min-width:981px){
  .wrap{width:min(var(--content),calc(100% - 40px))}
  .header-main{height:88px}
  .hero{grid-template-columns:minmax(0,1.72fr) minmax(320px,.78fr);gap:18px}
  .hero-main{min-height:455px}
  .hero-side{align-content:start}
  .side-card{grid-template-columns:128px minmax(0,1fr);min-height:98px}
  .appointments .wrap{display:grid;grid-template-columns:1fr}
  .appointment-row{justify-content:flex-start;gap:24px}
  .category-tiles .tiles-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
  .feature-trio-grid{grid-template-columns:.9fr 1.05fr 1.05fr;gap:20px}
  .card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .news-card .card-thumb{aspect-ratio:16/9}
  .media-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
  .media-panel{min-height:0}
}

/* Tablet */
@media (min-width:641px) and (max-width:980px){
  .hero-side{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .feature-trio-grid{grid-template-columns:1fr 1fr!important}
  .popular-panel{grid-column:1/-1}
  .media-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tweet-panel{grid-column:1/-1}
}

/* Mobile-first compact news rhythm */
@media (max-width:640px){
  :root{--section-gap:18px}
  body{background:#fff;font-size:13px;line-height:1.72}
  .wrap{width:calc(100% - 20px)!important}
  .header-main{height:66px}
  .brand-text{font-size:23px}
  .marketbar{overflow:hidden}
  .marketbar-inner{overflow-x:auto;white-space:nowrap;scrollbar-width:none;gap:12px;padding-left:6px}
  .marketbar-inner::-webkit-scrollbar{display:none}
  .marketbar strong{flex:0 0 auto;position:sticky;right:0;z-index:3}
  .marketbar span{flex:0 0 auto}

  .appointments{padding:15px 0 9px}
  .appointments .section-head{margin-bottom:7px}
  .appointment-row{gap:11px;overflow-x:auto;scrollbar-width:none;padding-bottom:3px}
  .appointment-row::-webkit-scrollbar{display:none}
  .appointment{width:80px!important;flex:0 0 80px!important}
  .avatar{width:59px!important;height:59px!important}
  .appointment span:last-child{font-size:9.8px!important;line-height:1.5;min-height:30px}

  .hero{margin-top:8px!important}
  .hero-main{aspect-ratio:16/9!important;border-radius:10px!important}
  .hero-copy{right:13px!important;left:13px!important;bottom:12px!important}
  .hero-copy h1{font-size:18px!important;line-height:1.48!important;margin:6px 0 3px!important}
  .hero-copy p{display:none!important}
  .hero-badge{font-size:9.5px;padding:4px 7px}
  .hero-meta{font-size:9px!important;gap:9px!important}
  .hero-side{margin-top:8px!important;gap:7px!important}
  .side-card{grid-template-columns:100px minmax(0,1fr)!important;min-height:82px!important;border-radius:8px!important}
  .side-card .thumb{width:100px!important;height:82px!important}
  .side-card>div{padding:7px 9px!important}
  .side-card h2{font-size:11.5px!important;line-height:1.48!important;margin:2px 0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

  .ticker{margin-top:9px}
  .ticker-inner{min-height:39px;border-radius:7px}
  .ticker strong{font-size:10px;padding:7px 9px}
  .ticker-list{font-size:10.5px}

  .category-tiles{margin-top:10px;padding:11px 0}
  .category-tile{flex:0 0 138px!important;min-width:138px!important;border-radius:8px!important}
  .tile-label{font-size:12px!important;bottom:9px!important}

  .feature-trio{padding:16px 0 5px}
  .feature-trio-grid>.panel{margin-bottom:15px!important}
  .panel-title{margin-bottom:8px;padding-bottom:6px}
  .panel-title h2{font-size:17px!important}
  .popular-panel li a{grid-template-columns:25px 52px minmax(0,1fr)!important;padding:7px 0!important}
  .pop-thumb{width:52px;height:38px}
  .popular-panel strong{font-size:10.8px!important;line-height:1.45}

  /* Analysis and message blocks become compact horizontal cards on mobile. */
  .analysis-panel,.message-panel{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:10px;align-items:start}
  .analysis-panel .panel-title,.message-panel .panel-title{grid-column:1/-1}
  .analysis-panel .feature-image,.message-panel .feature-image{grid-column:1;grid-row:2 / span 3;aspect-ratio:1/1!important;border-radius:8px}
  .analysis-panel h3,.message-panel h3{grid-column:2;margin:0 0 4px!important;font-size:13.5px!important;line-height:1.55!important}
  .analysis-panel p,.message-panel p{grid-column:2;font-size:10.5px!important;line-height:1.65;margin:0!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .analysis-panel .empty-note,.message-panel .empty-note{grid-column:1/-1}

  .news-section{padding:18px 0!important}
  .news-section .section-head{margin-bottom:10px!important;padding-bottom:7px!important}
  .section-head h2{font-size:20px!important}
  .section-kicker{font-size:10px!important}
  .section-more{font-size:10px}
  .card-grid{grid-template-columns:1fr!important;gap:9px!important}
  .news-card{display:grid;grid-template-columns:132px minmax(0,1fr);border-radius:9px!important;min-height:96px}
  .news-card .card-thumb{width:132px;aspect-ratio:auto!important;height:100%!important;min-height:96px}
  .news-card .card-body{padding:9px 10px!important;align-self:center}
  .card-body h3{font-size:12.3px!important;line-height:1.58!important;margin:3px 0 5px!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .mini-cat{font-size:8.8px!important}
  .news-card time{font-size:8.8px!important}

  /* Media only renders when it has real content; social card remains compact. */
  .media-zone{padding:16px 0!important}
  .media-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .media-panel{margin:0!important;padding:10px!important}
  .media-feature{aspect-ratio:16/9!important}
  .tweet-panel{min-height:0}
  .tweet-panel p{font-size:11.5px;margin:4px 0 8px}
  .follow-strip{padding:12px 0!important}
  .follow-strip strong{font-size:12px}
  .follow-strip a,.follow-strip span{padding:6px 9px!important;font-size:9.5px!important}

  .site-footer{padding-top:24px}
}

@media (max-width:390px){
  .news-card{grid-template-columns:116px minmax(0,1fr)}
  .news-card .card-thumb{width:116px}
  .analysis-panel,.message-panel{grid-template-columns:96px minmax(0,1fr)}
}


/* ===== v1.2 : readability + banking/economy + infographic + tweets ===== */
.visual-zone{padding:34px 0;background:#fff;border-top:1px solid var(--line)}
.visual-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);gap:22px;align-items:start}
.visual-block{min-width:0}
.infographic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.infographic-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 5px 18px rgba(7,45,72,.06)}
.infographic-thumb{display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;background:#f4f7f9;overflow:hidden}
.infographic-thumb img{width:100%;height:100%;object-fit:contain}
.infographic-card h3{font-size:14px;line-height:1.7;margin:10px 11px 5px;color:var(--navy)}
.infographic-card time{display:block;font-size:11px;color:var(--muted);padding:0 11px 11px}
.tweets-grid{display:grid;grid-template-columns:1fr;gap:11px}
.tweet-card{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:14px;box-shadow:0 4px 14px rgba(7,45,72,.04)}
.tweet-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}.tweet-mark{width:30px;height:30px;border-radius:50%;background:#111;color:#fff;display:grid;place-items:center;font-size:14px}.tweet-brand{font-weight:800;color:var(--navy);font-size:13px}
.tweet-thumb{display:block;aspect-ratio:16/9;border-radius:8px;overflow:hidden;margin:8px 0;background:#e8edf1}.tweet-thumb img{width:100%;height:100%;object-fit:cover}
.tweet-card h3{font-size:15px;line-height:1.7;margin:7px 0 5px;color:var(--navy)}.tweet-card p{font-size:12px;line-height:1.8;color:#55616b;margin:0 0 7px}.tweet-card time{font-size:10.5px;color:var(--muted)}

@media (min-width:981px){
  .card-body h3{font-size:15px;line-height:1.75}.news-card time{font-size:11px}.mini-cat{font-size:10.5px}
  .side-card h2{font-size:14px}.side-card time{font-size:10.5px}
  .hero-copy h1{font-size:30px}.hero-copy p{font-size:13.5px}
}

@media (max-width:980px){
  .visual-grid{grid-template-columns:1fr}
  .infographic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tweets-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:640px){
  body{font-size:14.5px!important;line-height:1.78!important}
  .section-head h2{font-size:22px!important}.section-kicker{font-size:11px!important}.section-more{font-size:11px!important}
  .appointment span:last-child{font-size:11.2px!important;line-height:1.55!important}
  .hero-copy h1{font-size:20.5px!important;line-height:1.55!important}.hero-meta{font-size:10.5px!important}.hero-badge{font-size:10.5px!important}
  .side-card h2{font-size:13.5px!important;line-height:1.6!important}.side-card time{font-size:10.8px!important}.mini-cat{font-size:10.5px!important}
  .ticker strong{font-size:11px!important}.ticker-list a{font-size:11.5px!important}
  .panel-title h2{font-size:19px!important}.popular-panel strong{font-size:12.2px!important}.feature-panel h3{font-size:15px!important}.feature-panel p{font-size:12px!important}
  .card-body h3{font-size:15.5px!important;line-height:1.65!important;margin:4px 0 6px!important}.news-card time{font-size:11.5px!important}.news-card .mini-cat{font-size:10.5px!important}
  .news-card{grid-template-columns:138px minmax(0,1fr)!important;min-height:104px}.news-card .card-thumb{width:138px!important;min-height:104px!important}.news-card .card-body{padding:10px 11px!important}
  .visual-zone{padding:20px 0}.visual-grid{display:block}.visual-block+.visual-block{margin-top:26px}
  .infographic-grid{display:flex;gap:11px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.infographic-grid::-webkit-scrollbar{display:none}.infographic-card{flex:0 0 62vw;max-width:270px}.infographic-card h3{font-size:14.5px}.infographic-card time{font-size:11px}
  .tweets-grid{display:flex;gap:11px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.tweets-grid::-webkit-scrollbar{display:none}.tweet-card{flex:0 0 82vw;max-width:340px}.tweet-card h3{font-size:15px}.tweet-card p{font-size:12.5px}.tweet-card time{font-size:11px}
}

@media (max-width:390px){
  .news-card{grid-template-columns:122px minmax(0,1fr)!important}.news-card .card-thumb{width:122px!important}.card-body h3{font-size:14.5px!important}
}


/* ===== v1.3 : final desktop/mobile polish ===== */
@media (min-width:981px){
  .news-section .card-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
  .news-card .card-thumb{aspect-ratio:16/9;overflow:hidden;background:#f3f5f7}
  .news-card .card-thumb img{width:100%;height:100%;object-fit:cover}
  .news-card .card-body{padding:12px 13px 14px}
  .news-card .card-body h3{font-size:15.5px;line-height:1.72}
  .section-head h2{font-size:26px}
  .section-kicker{font-size:11.5px}
  .feature-trio-grid{align-items:start}
  .visual-zone .section-head{margin-bottom:14px}
}
@media (max-width:640px){
  .news-section{padding:21px 0!important}
  .news-section+.news-section{border-top:1px solid #eef1f3}
  .news-card{overflow:hidden}
  .news-card .card-thumb img{width:100%;height:100%;object-fit:cover}
  .news-card .card-body h3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .feature-trio{padding-top:8px!important;padding-bottom:10px!important}
  .feature-trio-grid>.panel{margin-bottom:18px!important}
  .analysis-panel,.message-panel{min-height:0!important}
  .analysis-panel .panel-title,.message-panel .panel-title{margin-bottom:10px!important}
  .empty-note{padding:12px 0!important;margin:0!important;min-height:0!important}
  .visual-zone{border-top:1px solid #eef1f3}
  .infographic-thumb{aspect-ratio:4/5!important}
  .media-panel h3{font-size:14.5px;line-height:1.65}
}


/* ===== v1.4 : consistent 16:9 editorial imagery =====
   All editorial/news media uses a 16:9 frame on desktop and mobile.
   Brand logos and circular appointment portraits are intentionally excluded. */
.mep-home .hero-main,
.mep-home .news-card .card-thumb,
.mep-home .side-card .thumb,
.mep-home .feature-image,
.mep-home .media-feature,
.mep-home .media-empty,
.mep-home .category-tile,
.mep-home .tweet-thumb,
.mep-home .infographic-thumb,
.mep-home .pop-thumb{
  aspect-ratio:16/9!important;
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#eef2f5;
}
.mep-home .hero-media img,
.mep-home .news-card .card-thumb img,
.mep-home .side-card .thumb img,
.mep-home .feature-image img,
.mep-home .media-feature img,
.mep-home .category-tile img,
.mep-home .tweet-thumb img,
.mep-home .infographic-thumb img,
.mep-home .pop-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
.mep-home .hero-main{min-height:0!important;}
.mep-home .side-card{align-items:center;min-height:0!important;}
.mep-home .side-card .thumb{align-self:center;}
.mep-home .pop-thumb{width:72px!important;}
.mep-home .popular-panel li a{grid-template-columns:30px 72px minmax(0,1fr)!important;}

@media (min-width:981px){
  .mep-home .hero-main{aspect-ratio:16/9!important;}
  .mep-home .side-card{grid-template-columns:150px minmax(0,1fr)!important;}
  .mep-home .side-card .thumb{width:150px!important;}
  .mep-home .news-card .card-thumb,
  .mep-home .feature-image,
  .mep-home .media-feature,
  .mep-home .category-tile,
  .mep-home .tweet-thumb,
  .mep-home .infographic-thumb{aspect-ratio:16/9!important;}
}

@media (max-width:980px){
  .mep-home .hero-main{aspect-ratio:16/9!important;}
  .mep-home .side-card{grid-template-columns:130px minmax(0,1fr)!important;}
  .mep-home .side-card .thumb{width:130px!important;}
}

@media (max-width:640px){
  .mep-home .hero-main{aspect-ratio:16/9!important;border-radius:10px!important;}
  .mep-home .news-card{
    display:grid!important;
    grid-template-columns:150px minmax(0,1fr)!important;
    min-height:0!important;
    align-items:center!important;
  }
  .mep-home .news-card .card-thumb{
    width:150px!important;
    min-height:0!important;
    height:auto!important;
    align-self:center!important;
  }
  .mep-home .side-card{grid-template-columns:125px minmax(0,1fr)!important;}
  .mep-home .side-card .thumb{width:125px!important;height:auto!important;}
  .mep-home .analysis-panel .feature-image,
  .mep-home .message-panel .feature-image{aspect-ratio:16/9!important;height:auto!important;}
  .mep-home .infographic-card{max-width:320px;}
  .mep-home .infographic-thumb{aspect-ratio:16/9!important;}
  .mep-home .pop-thumb{width:82px!important;}
  .mep-home .popular-panel li a{grid-template-columns:30px 82px minmax(0,1fr)!important;}
}

@media (max-width:390px){
  .mep-home .news-card{grid-template-columns:132px minmax(0,1fr)!important;}
  .mep-home .news-card .card-thumb{width:132px!important;}
  .mep-home .side-card{grid-template-columns:112px minmax(0,1fr)!important;}
  .mep-home .side-card .thumb{width:112px!important;}
}


/* ===== v1.5 : media ratios by content type =====
   News/editorial cards: 16:9
   Infographics: 4:5
   Tweets/social screenshots: 1:1
   Video and photo gallery: 16:9, intentionally larger and more prominent
   Appointment portraits and logos keep their native/circular treatment. */

/* Infographics must remain vertical so text and data stay legible. */
.mep-home .infographic-thumb{
  aspect-ratio:4/5!important;
  height:auto!important;
  background:#f4f7f9!important;
}
.mep-home .infographic-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#f4f7f9;
}

/* Tweet / social-post screenshots are displayed as square cards. */
.mep-home .tweet-thumb{
  aspect-ratio:1/1!important;
  height:auto!important;
  background:#f4f7f9!important;
}
.mep-home .tweet-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#f4f7f9;
}

/* Make video and gallery the visual anchors of the media area. */
.mep-home .media-zone{padding:34px 0!important;}
.mep-home .media-grid{
  grid-template-columns:minmax(0,1.35fr) minmax(0,1.35fr) minmax(250px,.7fr)!important;
  gap:18px!important;
  align-items:start;
}
.mep-home .media-panel{
  padding:15px!important;
  border-radius:12px!important;
}
.mep-home .media-panel:not(.tweet-panel) .media-feature{
  aspect-ratio:16/9!important;
  width:100%!important;
  border-radius:10px!important;
}
.mep-home .media-panel:not(.tweet-panel) .media-feature img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.mep-home .media-panel:not(.tweet-panel) h3{
  font-size:17px!important;
  line-height:1.75!important;
  margin:11px 2px 2px!important;
}
.mep-home .media-panel .play{
  width:64px!important;
  height:64px!important;
  font-size:24px!important;
}

@media (max-width:980px){
  .mep-home .media-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .mep-home .media-grid .tweet-panel{
    grid-column:1/-1!important;
  }
  .mep-home .infographic-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .mep-home .tweets-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

@media (max-width:640px){
  .mep-home .media-zone{padding:24px 0!important;}
  .mep-home .media-grid{display:block!important;}
  .mep-home .media-panel{
    width:100%!important;
    margin:0 0 18px!important;
    padding:12px!important;
  }
  .mep-home .media-panel:not(.tweet-panel) .media-feature{
    aspect-ratio:16/9!important;
    width:100%!important;
  }
  .mep-home .media-panel:not(.tweet-panel) h3{
    font-size:16.5px!important;
  }
  .mep-home .media-panel .play{
    width:58px!important;
    height:58px!important;
    font-size:22px!important;
  }
  .mep-home .infographic-card{
    flex:0 0 66vw!important;
    max-width:300px!important;
  }
  .mep-home .infographic-thumb{aspect-ratio:4/5!important;}
  .mep-home .tweet-card{
    flex:0 0 78vw!important;
    max-width:330px!important;
  }
  .mep-home .tweet-thumb{aspect-ratio:1/1!important;}
}

@media (max-width:390px){
  .mep-home .infographic-card{flex-basis:72vw!important;}
  .mep-home .tweet-card{flex-basis:84vw!important;}
}


/* ===== v1.8 : compact mobile newsroom layout =====
   Restores the agreed compact mobile news rhythm: hero stays large,
   secondary/category stories use a landscape thumbnail beside the text.
   Special media types keep their own ratios. */
@media (max-width:640px){
  .mep-home .hero-main{
    aspect-ratio:16/9!important;
    min-height:0!important;
    border-radius:10px!important;
  }

  /* Compact secondary lead cards */
  .mep-home .hero-side{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-top:10px!important;
  }
  .mep-home .side-card{
    display:grid!important;
    grid-template-columns:138px minmax(0,1fr)!important;
    align-items:stretch!important;
    min-height:92px!important;
    border-radius:10px!important;
    overflow:hidden!important;
  }
  .mep-home .side-card .thumb{
    width:138px!important;
    height:100%!important;
    min-height:92px!important;
    aspect-ratio:16/9!important;
  }
  .mep-home .side-card>div{padding:10px 11px!important;align-self:center!important}
  .mep-home .side-card h2{font-size:14px!important;line-height:1.65!important;margin:3px 0 5px!important}

  /* Standard category cards: compact 16:9 thumbnail + text, not giant stacked cards. */
  .mep-home section.news-section .card-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:11px!important;
  }
  .mep-home section.news-section article.news-card{
    display:grid!important;
    grid-template-columns:152px minmax(0,1fr)!important;
    align-items:stretch!important;
    width:100%!important;
    min-height:104px!important;
    border-radius:11px!important;
    overflow:hidden!important;
  }
  .mep-home section.news-section article.news-card>a.card-thumb{
    display:block!important;
    width:152px!important;
    height:100%!important;
    min-height:104px!important;
    aspect-ratio:16/9!important;
    overflow:hidden!important;
  }
  .mep-home section.news-section article.news-card>a.card-thumb img,
  .mep-home section.news-section article.news-card>a.card-thumb .placeholder{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }
  .mep-home section.news-section article.news-card>.card-body{
    padding:10px 12px!important;
    align-self:center!important;
  }
  .mep-home section.news-section article.news-card .card-body h3{
    font-size:15px!important;
    line-height:1.68!important;
    margin:4px 0 6px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .mep-home section.news-section article.news-card .mini-cat{font-size:10px!important}
  .mep-home section.news-section article.news-card time{font-size:10.8px!important}

  /* Keep analysis/messages editorial and compact. */
  .mep-home .analysis-panel,
  .mep-home .message-panel{
    display:grid!important;
    grid-template-columns:118px minmax(0,1fr)!important;
    align-items:center!important;
    gap:0!important;
  }
  .mep-home .analysis-panel .feature-image{
    width:118px!important;
    aspect-ratio:16/9!important;
    height:auto!important;
  }
  /* Occasion artwork may be poster/letter shaped: contain, never forced-crop. */
  .mep-home .message-panel .feature-image{
    width:118px!important;
    aspect-ratio:auto!important;
    height:auto!important;
    background:transparent!important;
  }
  .mep-home .message-panel .feature-image img{width:100%!important;height:auto!important;object-fit:contain!important}

  /* Special formats */
  .mep-home .infographic-thumb{aspect-ratio:4/5!important}
  .mep-home .infographic-thumb img{object-fit:contain!important}
  .mep-home .tweet-thumb{aspect-ratio:1/1!important}
  .mep-home .tweet-thumb img{object-fit:contain!important}

  /* Video/gallery stay visually stronger without turning all news into giant cards. */
  .mep-home .media-grid{display:block!important}
  .mep-home .media-panel{margin-bottom:16px!important}
  .mep-home .media-panel:not(.tweet-panel) .media-feature{width:100%!important;aspect-ratio:16/9!important}

  /* Slightly tighter section rhythm on phones. */
  .mep-home .news-section{padding:22px 0!important}
  .mep-home .section-head{margin-bottom:12px!important}
}

@media (max-width:390px){
  .mep-home section.news-section article.news-card{grid-template-columns:126px minmax(0,1fr)!important}
  .mep-home section.news-section article.news-card>a.card-thumb{width:126px!important;min-height:92px!important}
  .mep-home .side-card{grid-template-columns:116px minmax(0,1fr)!important}
  .mep-home .side-card .thumb{width:116px!important;min-height:86px!important}
  .mep-home section.news-section article.news-card .card-body h3{font-size:14.3px!important}
  .mep-home .analysis-panel,.mep-home .message-panel{grid-template-columns:102px minmax(0,1fr)!important}
  .mep-home .analysis-panel .feature-image,.mep-home .message-panel .feature-image{width:102px!important}
}


/* ===== v1.9 : mobile 16:9 thumbnail lock =====
   Standard news photos stay landscape on mobile instead of stretching vertically.
   Appointments, infographics and tweet/social artwork keep their own formats. */
@media (max-width: 640px){
  .news-section .news-card{
    grid-template-columns:138px minmax(0,1fr)!important;
    min-height:0!important;
    align-items:center!important;
  }
  .news-section .news-card .card-thumb{
    width:138px!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/9!important;
    align-self:center!important;
    overflow:hidden!important;
    background:#eef2f5!important;
  }
  .news-section .news-card .card-thumb img,
  .news-section .news-card .card-thumb .placeholder{
    width:100%!important;
    height:100%!important;
    aspect-ratio:16/9!important;
    object-fit:cover!important;
  }
  .news-section .news-card .card-body{
    min-height:88px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
  }
  /* top secondary stories under the lead story */
  .hero-side .side-card{
    grid-template-columns:128px minmax(0,1fr)!important;
    min-height:0!important;
    align-items:center!important;
  }
  .hero-side .side-card .thumb{
    width:128px!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/9!important;
    align-self:center!important;
    overflow:hidden!important;
  }
  .hero-side .side-card .thumb img,
  .hero-side .side-card .thumb .placeholder{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
}
@media (max-width: 390px){
  .news-section .news-card{grid-template-columns:116px minmax(0,1fr)!important}
  .news-section .news-card .card-thumb{width:116px!important}
  .hero-side .side-card{grid-template-columns:112px minmax(0,1fr)!important}
  .hero-side .side-card .thumb{width:112px!important}
}


/* ===== v1.10 : final compact 16:9 mobile category cards =====
   Keep the agreed side-by-side mobile layout, but force only standard news
   thumbnails to a true landscape 16:9 frame. Special formats are untouched. */
@media (max-width:640px){
  .mep-home section.news-section .card-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:11px!important;
  }
  .mep-home section.news-section article.news-card{
    display:grid!important;
    grid-template-columns:150px minmax(0,1fr)!important;
    align-items:center!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  .mep-home section.news-section article.news-card>a.card-thumb{
    display:block!important;
    width:150px!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/9!important;
    align-self:center!important;
    overflow:hidden!important;
    background:#eef2f5!important;
  }
  .mep-home section.news-section article.news-card>a.card-thumb img,
  .mep-home section.news-section article.news-card>a.card-thumb .placeholder{
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    object-fit:cover!important;
    object-position:center!important;
  }
  .mep-home section.news-section article.news-card>.card-body{
    min-height:0!important;
    padding:10px 12px!important;
    align-self:center!important;
  }
}
@media (max-width:390px){
  .mep-home section.news-section article.news-card{
    grid-template-columns:126px minmax(0,1fr)!important;
  }
  .mep-home section.news-section article.news-card>a.card-thumb{
    width:126px!important;
  }
}


/* ===== v1.11 : final mobile card proportion =====
   Standard category-news cards keep a compact horizontal layout.
   The image is larger (~35%) while staying true 16:9; text uses the remaining space.
   Appointments, messages/occasions, infographics, tweets and media formats are untouched. */
@media (max-width:640px){
  .mep-home section.news-section article.news-card{
    grid-template-columns:minmax(0,35%) minmax(0,65%)!important;
    min-height:0!important;
    align-items:center!important;
  }
  .mep-home section.news-section article.news-card>a.card-thumb{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/9!important;
    align-self:center!important;
  }
  .mep-home section.news-section article.news-card>.card-body{
    padding:8px 10px!important;
    min-height:0!important;
  }
  .mep-home section.news-section article.news-card .card-body h3{
    font-size:14.4px!important;
    line-height:1.58!important;
    margin:3px 0 4px!important;
    -webkit-line-clamp:3!important;
  }
  .mep-home section.news-section article.news-card .mini-cat{font-size:9.8px!important}
  .mep-home section.news-section article.news-card time{font-size:10.2px!important}
}
@media (max-width:390px){
  .mep-home section.news-section article.news-card{
    grid-template-columns:minmax(0,36%) minmax(0,64%)!important;
  }
  .mep-home section.news-section article.news-card>.card-body{padding:7px 9px!important}
  .mep-home section.news-section article.news-card .card-body h3{font-size:13.8px!important}
}

/* MEP Market Ticker - Final */.marketbar .mep-market-window{    flex:1 1 auto;    min-width:0;    overflow:hidden;}.marketbar .mep-market-items{    display:flex !important;    flex-direction:row !important;    flex-wrap:nowrap !important;    align-items:center !important;    width:max-content !important;    min-width:max-content !important;    animation:mepMarketMove 22s linear infinite !important;    will-change:transform;}.marketbar .mep-market-item{    flex:0 0 auto !important;    display:flex !important;    flex-direction:row !important;    align-items:center !important;    gap:8px;    height:58px;    padding:0 18px;    white-space:nowrap;}@keyframes mepMarketMove{    from{transform:translateX(-10%);}    to{transform:translateX(100%);}}@media (max-width:640px){    .marketbar .mep-market-item span{        font-size:12px !important;    }    .marketbar .mep-market-item b{        font-size:16px !important;        font-weight:800;    }    .marketbar .mep-market-items{        animation-duration:18s !important;    }}