/* M.E. Standard public repair layer
   Scope: presentation convergence only. No authority or data-model changes. */

html[data-mes-presentation="editorial"] body[data-mes-surface="newsroom"]{
  background:linear-gradient(180deg,#f7f4ee 0,#f1eee7 100%);
}
html[data-mes-presentation="editorial"] .newsroom-hero{
  padding-bottom:28px!important;
}
html[data-mes-presentation="editorial"] .editorial-front{
  overflow:hidden!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 24px 70px rgba(8,24,36,.12)!important;
}
html[data-mes-presentation="editorial"] .front-lead{
  position:relative!important;
  min-height:650px!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
html[data-mes-presentation="editorial"] .front-lead-visual{
  position:absolute!important;
  inset:0!important;
  z-index:-2!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
  background:#102231!important;
}
html[data-mes-presentation="editorial"] .front-lead-visual img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 42%!important;
  filter:saturate(.92) contrast(1.03)!important;
}
html[data-mes-presentation="editorial"] .front-lead.no-source-visual{
  min-height:500px!important;
  background:
    radial-gradient(circle at 82% 18%,rgba(170,139,76,.14),transparent 32%),
    linear-gradient(135deg,#071827,#0d2a3d)!important;
}
html[data-mes-presentation="editorial"] .front-lead.no-source-visual .front-lead-visual{display:none!important}
html[data-mes-presentation="editorial"] .front-lead>*:not(.front-lead-visual){position:relative!important;z-index:2!important}
html[data-mes-presentation="editorial"] .front-lead h2{
  text-wrap:balance!important;
  max-width:900px!important;
  margin-top:18px!important;
}
html[data-mes-presentation="editorial"] .front-lead>p{
  max-width:760px!important;
  font-size:15px!important;
  line-height:1.65!important;
  text-wrap:pretty!important;
}
html[data-mes-presentation="editorial"] .front-mini-stories{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  border-top:1px solid #d7dddf!important;
  background:#fff!important;
}
html[data-mes-presentation="editorial"] .front-mini-story{
  min-width:0!important;
  border-right:1px solid #e1e5e6!important;
}
html[data-mes-presentation="editorial"] .front-mini-story:last-child{border-right:0!important}
html[data-mes-presentation="editorial"] .front-mini-story .editorial-visual{
  display:block!important;
  height:170px!important;
  overflow:hidden!important;
  background:#e9eceb!important;
}
html[data-mes-presentation="editorial"] .front-mini-story .editorial-visual:empty{display:none!important}
html[data-mes-presentation="editorial"] .front-mini-story .editorial-visual img{
  width:100%!important;height:100%!important;object-fit:cover!important
}
html[data-mes-presentation="editorial"] .front-mini-story h3{
  margin-top:10px!important;
  text-wrap:balance!important;
}
html[data-mes-presentation="editorial"] .mes-home-briefings,
html[data-mes-presentation="editorial"] #editorial-home-utility,
html[data-mes-presentation="editorial"] .top-stories,
html[data-mes-presentation="editorial"] .newsroom-sections-directory{
  padding-top:36px!important;
  padding-bottom:36px!important;
}
html[data-mes-presentation="editorial"] .mes-final-utility-card,
html[data-mes-presentation="editorial"] .top-story,
html[data-mes-presentation="editorial"] .mes-briefing-card{
  border-radius:6px!important;
  box-shadow:0 12px 30px rgba(9,27,39,.07)!important;
}

/* Intelligence is a desk, not a second homepage. Establish one strong entry point. */
html[data-mes-presentation="intelligence"] #intelligence-home{
  padding:30px 0 54px!important;
  background:
    radial-gradient(circle at 15% 0,rgba(47,142,190,.10),transparent 28%),
    linear-gradient(180deg,#020b13 0,#04121e 45%,#020a11 100%)!important;
}
html[data-mes-presentation="intelligence"] .mes-intelligence-heading{
  display:grid!important;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr)!important;
  gap:32px!important;
  align-items:end!important;
  padding:10px 0 24px!important;
  border-bottom:1px solid rgba(102,177,214,.2)!important;
}
html[data-mes-presentation="intelligence"] .mes-intelligence-heading>div>span{
  color:#68c8f2!important;
  font-size:9px!important;
  letter-spacing:.18em!important;
}
html[data-mes-presentation="intelligence"] .mes-intelligence-heading h2{
  max-width:850px!important;
  margin:8px 0 0!important;
  color:#f1f6f8!important;
  font-size:clamp(34px,4.2vw,58px)!important;
  line-height:1.02!important;
  letter-spacing:-.028em!important;
  text-wrap:balance!important;
}
html[data-mes-presentation="intelligence"] .mes-intelligence-heading>p{
  margin:0!important;
  color:#9aafba!important;
  font-size:12px!important;
  line-height:1.7!important;
}
html[data-mes-presentation="intelligence"] .mes-intelligence-decision-brief{
  margin-top:20px!important;
}
html[data-mes-presentation="intelligence"] .mes-intelligence-situation,
html[data-mes-presentation="intelligence"] .mes-intelligence-flow,
html[data-mes-presentation="intelligence"] .mes-intelligence-command{
  margin-top:16px!important;
}
html[data-mes-presentation="intelligence"] .mes-intelligence-grid{
  margin-top:18px!important;
  gap:14px!important;
}
html[data-mes-presentation="intelligence"] .mes-intel-card{
  border-radius:5px!important;
  box-shadow:0 16px 42px rgba(0,0,0,.16)!important;
}
html[data-mes-presentation="intelligence"] .mes-intel-card h3{
  text-wrap:balance!important;
}
html[data-mes-presentation="intelligence"] .mes-intel-unavailable-note,
html[data-mes-presentation="intelligence"] .mes-intel-card p{
  line-height:1.55!important;
}

@media(max-width:980px){
  html[data-mes-presentation="editorial"] .front-mini-stories{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[data-mes-presentation="editorial"] .front-mini-story:nth-child(2){border-right:0!important}
  html[data-mes-presentation="intelligence"] .mes-intelligence-heading{grid-template-columns:1fr!important}
}
@media(max-width:700px){
  html[data-mes-presentation="editorial"] .front-lead{min-height:560px!important}
  html[data-mes-presentation="editorial"] .front-lead.no-source-visual{min-height:430px!important}
  html[data-mes-presentation="editorial"] .front-lead h2{font-size:clamp(36px,11vw,54px)!important}
  html[data-mes-presentation="editorial"] .front-mini-stories{
    display:flex!important;
    overflow-x:auto!important;
    scroll-snap-type:x mandatory!important;
    overscroll-behavior-inline:contain!important;
  }
  html[data-mes-presentation="editorial"] .front-mini-story{
    flex:0 0 min(84vw,340px)!important;
    scroll-snap-align:start!important;
    border-right:1px solid #e1e5e6!important;
  }
  html[data-mes-presentation="intelligence"] .mes-intelligence-heading h2{font-size:38px!important}
}


/* Preview finishing pass — keep the publication identity legible on large/TV browsers. */
body[data-mes-surface="newsroom"] .site-header .brand-copy strong{
  color:#fffdf7!important;
  -webkit-text-fill-color:#fffdf7!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
  text-shadow:0 1px 14px rgba(0,0,0,.58),0 0 22px rgba(255,255,255,.10)!important;
}
body[data-mes-surface="newsroom"] .site-header .brand-copy small{
  color:#c2d5df!important;
  opacity:1!important;
}
body[data-mes-surface="newsroom"] .site-header .brand-tagline{
  color:#f0cf79!important;
  opacity:1!important;
}
html[data-mes-presentation="editorial"][data-mes-browser-experience="1"][data-mes-scrolled="true"] body[data-mes-surface="newsroom"] .site-header{
  background:rgba(3,20,33,.96)!important;
  border-bottom-color:rgba(104,166,202,.24)!important;
}
