.mes-surface-nav{border-top:1px solid rgba(197,165,106,.18);border-bottom:1px solid rgba(139,188,224,.15);background:rgba(2,9,15,.97);position:relative;z-index:45}
.mes-surface-nav-inner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:58px}
.mes-surface-nav a{display:flex;align-items:center;gap:12px;padding:0 20px;border-right:1px solid rgba(139,188,224,.1);text-decoration:none;color:#738a9b;transition:background .2s ease,color .2s ease}
.mes-surface-nav a:first-child{border-left:1px solid rgba(139,188,224,.1)}
.mes-surface-nav a span{font-size:9px;letter-spacing:.14em;color:#7891a2}.mes-surface-nav a strong{font-size:10px;letter-spacing:.14em;font-weight:800}
.mes-surface-nav a:hover,.mes-surface-nav a:focus-visible{background:rgba(113,186,231,.05);color:#d8e7f0}.mes-surface-nav a[aria-current="page"]{color:#e7edf0;background:linear-gradient(180deg,rgba(197,165,106,.07),rgba(71,143,184,.04));box-shadow:inset 0 -2px 0 rgba(197,165,106,.72)}
.surface-identity{position:relative;overflow:hidden;border-bottom:1px solid rgba(139,188,224,.14);background:radial-gradient(circle at 78% 20%,rgba(85,160,204,.11),transparent 28rem),linear-gradient(135deg,#02080e,#06121c 58%,#091725);padding:68px 0 58px}
.surface-identity:after{content:"";position:absolute;inset:auto 0 0;height:1px;background:linear-gradient(90deg,transparent,rgba(197,165,106,.65),transparent)}
.surface-identity-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.45fr);gap:64px;align-items:end}.surface-identity h1{max-width:880px;margin:14px 0 16px;font-family:Georgia,serif;font-size:clamp(44px,6.4vw,78px);line-height:.98;font-weight:500;color:#eef1ed}.surface-identity p:not(.eyebrow){max-width:760px;color:#9eb1bd;font-size:17px;line-height:1.7}
.surface-identity aside{padding:22px;border:1px solid rgba(197,165,106,.3);background:rgba(2,10,17,.64);box-shadow:0 24px 70px rgba(0,0,0,.22)}.surface-identity aside span,.surface-identity aside small{display:block;color:#758b99;font-size:9px;letter-spacing:.13em}.surface-identity aside strong{display:block;margin:8px 0 12px;color:#d4b474;font-size:17px;letter-spacing:.08em}
body[data-mes-surface="news-desk"]{--surface-accent:#7bbde2}body[data-mes-surface="editorial-floor"]{--surface-accent:#c8a768}body[data-mes-surface="newsroom"]{--surface-accent:#d6c7aa}
body[data-mes-surface="news-desk"] .surface-identity{background:radial-gradient(circle at 76% 18%,rgba(85,177,224,.14),transparent 30rem),linear-gradient(135deg,#02080e,#05131e 58%,#071925)}
body[data-mes-surface="editorial-floor"] .surface-identity{min-height:520px;display:flex;align-items:flex-end;background:linear-gradient(90deg,rgba(2,8,13,.97) 0%,rgba(2,8,13,.82) 46%,rgba(2,8,13,.42) 76%,rgba(2,8,13,.62) 100%),linear-gradient(180deg,rgba(2,8,13,.05),rgba(2,8,13,.82)),url('/assets/mes-hq.webp') center 58%/cover no-repeat}.editorial-floor-identity:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 30%,rgba(197,165,106,.13),transparent 26rem),linear-gradient(180deg,transparent 55%,rgba(3,10,16,.74));pointer-events:none}.editorial-floor-identity .surface-identity-grid{position:relative;z-index:1}.editorial-floor-identity aside{backdrop-filter:blur(12px);background:rgba(2,9,15,.72)}
body[data-mes-surface="news-desk"] .section-bar>span:first-child{color:#9dcce8}body[data-mes-surface="editorial-floor"] .section-bar>span:first-child{color:#d7bd89}
@media(max-width:860px){.mes-surface-nav-inner{grid-template-columns:repeat(2,1fr)}.mes-surface-nav a:nth-child(3),.mes-surface-nav a:nth-child(4){border-top:1px solid rgba(139,188,224,.1)}.surface-identity-grid{grid-template-columns:1fr;gap:28px}.surface-identity{padding:48px 0}.surface-identity aside{max-width:420px}}
@media(max-width:460px){.mes-surface-nav a{padding:0 12px;gap:8px}.mes-surface-nav a strong{font-size:9px}.surface-identity h1{font-size:42px}.surface-identity p:not(.eyebrow){font-size:15px}}

/* Resolve the four public surfaces before first paint. */
body[data-mes-surface="newsroom"] main>section,
body[data-mes-surface="news-desk"] main>section,
body[data-mes-surface="editorial-floor"] main>section{display:none}
body[data-mes-surface="newsroom"] main>.newsroom-hero,
body[data-mes-surface="newsroom"] main>#latest,
body[data-mes-surface="newsroom"] main>.top-stories,
body[data-mes-surface="newsroom"] main>.publication-strip,
body[data-mes-surface="newsroom"] main>.personal-desk-teaser,
body[data-mes-surface="newsroom"] main>section:has(.desk-triad){display:block}
body[data-mes-surface="news-desk"] main>.surface-identity,
body[data-mes-surface="news-desk"] main>.desk-priority,
body[data-mes-surface="news-desk"] main>.market-console-section,
body[data-mes-surface="news-desk"] main>#latest,
body[data-mes-surface="news-desk"] main>.intelligence-console,
body[data-mes-surface="news-desk"] main>#macro,
body[data-mes-surface="news-desk"] main>section:has(.edition-grid),
body[data-mes-surface="news-desk"] main>section:has(#central-bank-desk),
body[data-mes-surface="news-desk"] main>section:has(.source-grid){display:block}
body[data-mes-surface="editorial-floor"] main>.surface-identity,
body[data-mes-surface="editorial-floor"] main>.editorial-priority,
body[data-mes-surface="editorial-floor"] main>#market-open,
body[data-mes-surface="editorial-floor"] main>#market-lens,
body[data-mes-surface="editorial-floor"] main>#central-bank-watch,
body[data-mes-surface="editorial-floor"] main>#daily-desk,
body[data-mes-surface="editorial-floor"] main>.publication-strip,
body[data-mes-surface="editorial-floor"] main>#story-trails,
body[data-mes-surface="editorial-floor"] main>#sunday-prep,
body[data-mes-surface="editorial-floor"] main>#market-memory,
body[data-mes-surface="editorial-floor"] main>#weekly-fx-board,
body[data-mes-surface="editorial-floor"] main>section:has(.cause-grid){display:block}
/* Surface-specific chrome: Newsroom keeps breaking news; News Desk keeps the terminal. */
body[data-mes-surface="newsroom"] #market-ribbon,
body[data-mes-surface="newsroom"] .habit-bar,
body[data-mes-surface="newsroom"] #market-pulse,
body[data-mes-surface="newsroom"] .newsroom-ops{display:none}
body[data-mes-surface="editorial-floor"] #market-ribbon,
body[data-mes-surface="editorial-floor"] .breaking-bar,
body[data-mes-surface="editorial-floor"] .habit-bar,
body[data-mes-surface="editorial-floor"] #market-pulse,
body[data-mes-surface="editorial-floor"] .newsroom-ops{display:none}
body[data-mes-surface="news-desk"] #market-ribbon,
body[data-mes-surface="news-desk"] .breaking-bar,
body[data-mes-surface="news-desk"] .habit-bar,
body[data-mes-surface="news-desk"] #market-pulse,
body[data-mes-surface="news-desk"] .newsroom-ops{display:block}
body[data-mes-surface="newsroom"] .breaking-bar{display:block}

/* Final masthead refinement: preserve the approved MES seal and give the wordmark room. */
.editorial-header .nav-wrap{grid-template-columns:minmax(540px,1fr) auto!important;gap:56px!important;min-height:104px!important}
.editorial-header .brand{gap:20px!important;min-width:0;max-width:760px}
.editorial-header .brand-mark{width:74px!important;height:74px!important;flex:0 0 74px;background:transparent!important;border:0!important;box-shadow:0 10px 30px rgba(0,0,0,.28),0 0 24px rgba(196,165,106,.08)!important;overflow:hidden!important}
.editorial-header .brand-logo{width:74px!important;height:74px!important;object-fit:contain!important;object-position:center!important;border-radius:50%;transform:scale(.98);filter:drop-shadow(0 0 9px rgba(198,169,108,.14))!important}
.editorial-header .brand-copy strong{font-size:19px!important;letter-spacing:.115em!important;line-height:1.05;white-space:nowrap}
.editorial-header .brand-copy small{font-size:9px!important;letter-spacing:.21em!important;margin-top:7px!important;white-space:nowrap}
.editorial-header .nav{gap:22px!important;padding-left:28px;border-left:1px solid rgba(197,165,106,.14)}
.editorial-header .nav>a{font-size:10px!important;letter-spacing:.055em!important;white-space:nowrap}
@media(max-width:1100px){.editorial-header .nav-wrap{grid-template-columns:minmax(420px,1fr) auto!important;gap:28px!important}.editorial-header .brand-mark,.editorial-header .brand-logo{width:60px!important;height:60px!important}.editorial-header .brand-mark{flex-basis:60px}.editorial-header .brand-copy strong{font-size:15px!important}.editorial-header .brand-copy small{font-size:7.5px!important}.editorial-header .nav{gap:14px!important;padding-left:18px}}
@media(max-width:820px){.editorial-header .nav-wrap{display:flex!important;min-height:82px!important}.editorial-header .brand-mark,.editorial-header .brand-logo{width:54px!important;height:54px!important}.editorial-header .brand-mark{flex-basis:54px}.editorial-header .brand-copy strong{font-size:13px!important}.editorial-header .brand-copy small{font-size:6.5px!important}.editorial-header .nav{border-left:0;padding-left:0}}
@media(max-width:520px){.editorial-header .brand-mark,.editorial-header .brand-logo{width:48px!important;height:48px!important}.editorial-header .brand-mark{flex-basis:48px}.editorial-header .brand-copy strong{font-size:10px!important;letter-spacing:.08em!important}.editorial-header .brand-copy small{font-size:5.5px!important;letter-spacing:.14em!important}}
