/* ClinicaMOB v247 — full 106-page composition/alignment correction.
   Loaded LAST on every public HTML page.
   Purpose: repair a systemic cascade collision from v225 that forced direct
   content-card/deal-note sections to margin:0 and padding:42px 0, overriding
   their intended centered card geometry. Functional systems are untouched. */
:root{--cm247-max:1180px;--cm247-read:980px;--cm247-gutter:48px;--cm247-mobile-gutter:28px}

/* Systemic repair: direct content-card sections are actual centered design objects,
   not left-anchored full-bleed sections. Keep page heroes full width. */
body.cm-fixed-target main > section.cm-v219-content-card:not(.page-hero):not(.cm-question-set){
  box-sizing:border-box!important;
  width:min(calc(100% - var(--cm247-gutter)),var(--cm247-max))!important;
  max-width:var(--cm247-max)!important;
  margin:22px auto!important;
  padding:28px!important;
}
/* Question sets intentionally use the narrower reading measure. */
body.cm-fixed-target main > section.cm-question-set.cm-v219-content-card{
  box-sizing:border-box!important;
  width:min(calc(100% - var(--cm247-gutter)),var(--cm247-read))!important;
  max-width:var(--cm247-read)!important;
  margin:22px auto!important;
  padding:28px!important;
}
/* Deal Notes were affected by the same direct-section margin/padding override. */
body.cm-fixed-target main > section.cm-deal-note{
  box-sizing:border-box!important;
  width:min(calc(100% - var(--cm247-gutter)),1080px)!important;
  max-width:1080px!important;
  margin:30px auto!important;
  padding:20px 22px!important;
}
/* Keep all common nested design shells centered on one site grid. */
body.cm-fixed-target main section > .container,
body.cm-fixed-target main > .container,
body.cm-fixed-target main > div.container,
body.cm-fixed-target main .cm-lp-wrap,
body.cm-fixed-target main .pdt-wrap,
body.cm-fixed-target main .inner{
  box-sizing:border-box!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
/* Prevent legacy rules from creating accidental horizontal clipping or skinny grid children. */
body.cm-fixed-target main [class*="grid"] > *,
body.cm-fixed-target main .two > *,
body.cm-fixed-target main .three > *,
body.cm-fixed-target main .four > *,
body.cm-fixed-target main .cards > *{min-width:0!important}
body.cm-fixed-target main img,body.cm-fixed-target main svg,body.cm-fixed-target main video,
body.cm-fixed-target main iframe,body.cm-fixed-target main canvas,body.cm-fixed-target main table,
body.cm-fixed-target main pre{max-width:100%!important}
/* Preserve the deliberately rebuilt special pages. */
body.cm-v219-search-page main > section:not(.cm-v219-search-hero) > .container{margin-inline:auto!important}
body.cm-v244-markets main > section > .container{margin-inline:auto!important}
body.cm-v219-general.cm-fixed-interior .cm-resources-main .cm-res-shell,
body.cm-v219-general.cm-fixed-interior .cm-resources-main #clinicamob-knowledge-search{margin-left:auto!important;margin-right:auto!important}

@media(max-width:760px){
  body.cm-fixed-target main > section.cm-v219-content-card:not(.page-hero):not(.cm-question-set){
    width:min(calc(100% - var(--cm247-mobile-gutter)),var(--cm247-max))!important;
    margin:16px auto!important;
    padding:20px!important;
  }
  body.cm-fixed-target main > section.cm-question-set.cm-v219-content-card{
    width:min(calc(100% - var(--cm247-mobile-gutter)),var(--cm247-read))!important;
    margin:16px auto!important;
    padding:20px!important;
  }
  body.cm-fixed-target main > section.cm-deal-note{
    width:min(calc(100% - var(--cm247-mobile-gutter)),1080px)!important;
    margin:22px auto!important;
    padding:18px!important;
  }
}
