/* Cx42: building-services visual layer (additive, loads after cx41.css).
   Remove the <link> to cx42.css in index.html to roll back. */

/* Blueprint backdrop behind every page */
.screen,
html[data-theme="dark"] .screen{
  background-image:url("cx42-page-bg.svg")!important;
  background-repeat:no-repeat!important;
  background-position:center bottom!important;
  background-size:min(100%,560px) auto!important;
  background-attachment:fixed!important;
}

/* Dashboard hero: add the isometric MEP riser drawing */
.cx35-project-banner{position:relative;overflow:hidden;isolation:isolate}
.cx35-project-banner::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:url("cx42-mep-hero.svg") right -46px bottom -40px/340px auto no-repeat;
}
.cx35-project-banner>*{position:relative;z-index:1}

/* Page headers become navy banners with the same drawing */
.page-title{
  position:relative;overflow:hidden;isolation:isolate;
  padding:20px 20px 22px!important;margin-bottom:16px;border-radius:24px;
  background:linear-gradient(150deg,#0a1745 0%,#14297c 65%,#1f46c4 130%);
  box-shadow:var(--shadow);
}
.page-title::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:url("cx42-mep-hero.svg") right -50px bottom -34px/300px auto no-repeat;
}
.page-title .eyebrow{color:#b7c8ff!important}
.page-title h1{color:#fff!important;max-width:15em}
.page-title p{color:#d5dfff!important}

/* Softer, rounder cards */
.card,.metric,.cx-chart-card,.status-card,.meeting-card{border-radius:22px}
html:not([data-theme="dark"]) .card,
html:not([data-theme="dark"]) .metric{box-shadow:0 1px 2px rgba(11,22,48,.04),0 12px 32px -14px rgba(30,60,140,.22)}

@media (prefers-reduced-motion:no-preference){
  .cx35-project-banner::after,.page-title::after{transition:opacity .3s ease}
}
