/* 3.6.142: overview shares the detail pages' centered content and link system. */
body #main-content.site-main .ms-hub-hero { padding-block:48px; }
body #main-content.site-main .ms-hub-hero-grid { display:grid; gap:28px; }
body #main-content.site-main .ms-hub-hero-grid .ms-heading-glass { margin-bottom:0; }
/* 3.6.155: exactly three title lines, sized to the available glass-panel width. */
body #main-content.site-main .ms-hub-hero-grid .ms-heading-glass { container-type:inline-size; }
body #main-content.site-main .ms-hub-hero h1.ms-hub-title { width:100%; max-width:none; font-size:min(3rem,3.75vw) !important; font-size:min(3rem,5.2cqi) !important; line-height:1.3 !important; }
body #main-content.site-main .ms-hub-title__line { display:block; white-space:nowrap; overflow-wrap:normal; hyphens:none; }
body #main-content.site-main .ms-hub-actions { justify-content:center; margin-inline:auto !important; }
body #main-content.site-main .ms-hub-project-nav { text-align:center; }
/* 3.6.154: one intrinsic width for the project cards and their contact bar. */
body #main-content.site-main .ms-hub-project-actions { width:fit-content; max-width:100%; margin-inline:auto; }
body #main-content.site-main .ms-hub-project-nav .ms-service-links { justify-content:center; }
body #main-content.site-main .ms-hub-credentials { display:flex; justify-content:center; width:100%; margin-top:28px; }
body #main-content.site-main .ms-hub-contact-button { width:100%; min-width:0; margin-inline:auto; justify-content:center; }
body #main-content.site-main .ms-hub-contact-button .ms-action-label { flex:0 1 auto; }
body #main-content.site-main .ms-hub-disciplines { grid-template-columns:repeat(3,minmax(0,1fr)); }
body #main-content.site-main .ms-hub-disciplines .ms-service-card { text-align:center; }
body #main-content.site-main .ms-hub-disciplines .ms-service-card__heading { text-align:center; }
body #main-content.site-main .ms-hub-disciplines .ms-service-card__heading h3 { margin-bottom:18px; }
body #main-content.site-main .ms-hub-disciplines .ms-service-links { margin-top:auto; justify-content:center; }
body #main-content.site-main .ms-hub-sectors { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
body #main-content.site-main .ms-hub-sectors > article { display:flex; flex-direction:column; min-width:0; padding:28px; text-align:center; }
body #main-content.site-main .ms-hub-sectors .button { margin-top:auto; align-self:center; }
body #main-content.site-main .ms-hub-reference-note { display:flex; flex-direction:column; align-items:center; gap:16px; width:100%; margin:24px auto 0; text-align:center; }
body #main-content.site-main .ms-hub-reference-note > p { margin:0; }
body #main-content.site-main.ms-detail a.button.ms-hub-reference-button { background:#b84708 !important; border-color:rgba(255,163,105,.65) !important; color:#fff !important; text-decoration:none !important; }
body #main-content.site-main.ms-detail a.button.ms-hub-reference-button:is(:hover,:focus-visible) { background:#a33d06 !important; border-color:#ffad78 !important; }
body #main-content.site-main .ms-hub-steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
body #main-content.site-main .ms-hub-steps > li { text-align:center; }
body #main-content.site-main .ms-hub-region { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
body #main-content.site-main .ms-hub-region > article { min-width:0; padding:28px; text-align:center; }
body #main-content.site-main .ms-hub-region address { margin-bottom:18px; font-style:normal; }
body #main-content.site-main .ms-hub-region .ms-detail-small { margin-top:20px; }
/* Keep the existing hero image and overlay behind the content. */
#main-content.site-main .ms-hub-hero .service-hero__media { z-index:0; }
#main-content.site-main .ms-hub-hero::before { z-index:1; }
#main-content.site-main .ms-hub-hero > .container { position:relative; z-index:2; }
#main-content.site-main .ms-hub-hero .service-hero__media img { transform:none; transition:none; will-change:auto; }
@media(max-width:1100px) {
  body #main-content.site-main .ms-hub-disciplines { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body #main-content.site-main .ms-hub-sectors { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:767px) {
  body #main-content.site-main .ms-hub-project-actions { width:100%; }
  body #main-content.site-main .ms-hub-hero { padding-block:28px 36px; }
  body #main-content.site-main :is(.ms-hub-steps,.ms-hub-region,.ms-hub-disciplines) { grid-template-columns:minmax(0,1fr); gap:24px; }
  body #main-content.site-main :is(.ms-hub-sectors > article,.ms-hub-region > article) { padding:24px 20px; }
  body #main-content.site-main .ms-hub-credentials { flex-direction:column; align-items:center; text-align:center; }
}
