/* MyHealthSalem V59 — alignment/responsive correction layer.
   Layout-only: preserves existing branding, colors, typography, content and behavior. */
*,*::before,*::after{box-sizing:border-box}
html{width:100%;max-width:100%;overflow-x:hidden}
body{width:100%;min-width:0;max-width:100%;overflow-x:hidden}
img,svg,video,canvas,iframe{max-width:100%;box-sizing:border-box}
button,input,select,textarea{box-sizing:border-box;max-width:100%}

/* Thyrocare/shared public pages: restore intentional content widths that were
   previously flattened by the mobile layout repair guard. */
.page-intro{width:min(1100px,calc(100% - 36px));max-width:1100px;margin-inline:auto}
.booking-page-wrap{width:min(760px,calc(100% - 36px));max-width:760px;margin-inline:auto}
.site-pagination-nav{width:min(1100px,calc(100% - 28px));max-width:1100px;margin-inline:auto}

.page-intro,.booking-page-wrap,.card,.grid,.row,.columns,.features{min-width:0}
.booking-page-wrap form,.booking-page-wrap .booking-field,.booking-page-wrap input,.booking-page-wrap select,.booking-page-wrap textarea{min-width:0;max-width:100%}
.booking-page-wrap input,.booking-page-wrap select,.booking-page-wrap textarea{width:100%}

/* Grid children must be allowed to shrink instead of forcing the page wider. */
.grid>* ,.features>* ,.cards>* ,.columns>* ,.row>* ,.contactGrid>* ,.heroGrid>* ,.howGrid>* ,.diagnostic-service-guides>*{min-width:0}

/* Tables remain scrollable rather than widening the document. */
.table-wrap,.table-responsive,.catalog-table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

/* AVM Labs shared content grid: keep full-width section backgrounds, while
   centering the actual content on the same readable grid. */
body:has(.avm-site) .section > .cards,
body:has(.avm-site) .section > .section-head,
body:has(.avm-site) .section > .container,
body:has(.avm-site) .section > .story-grid,
body:has(.avm-site) .section > .location-card,
body:has(.avm-site) .section > .salem-links,
body:has(.avm-site) .section > .salem-service-grid{width:min(100%,1180px);max-width:1180px;margin-left:auto;margin-right:auto}

@media (max-width:900px){
  .page-intro{width:calc(100% - 32px)}
  .booking-page-wrap{width:calc(100% - 32px)}
  .site-pagination-nav{width:calc(100% - 24px)}
}
@media (max-width:600px){
  .page-intro{width:calc(100% - 28px)}
  .booking-page-wrap{width:calc(100% - 28px)}
  .site-pagination-nav{width:calc(100% - 20px)}
  .page-intro h1{overflow-wrap:anywhere}
  .booking-page-wrap{padding-left:14px;padding-right:14px}
}
@media (max-width:390px){
  .page-intro{width:calc(100% - 22px)}
  .booking-page-wrap{width:calc(100% - 22px)}
  .site-pagination-nav{width:calc(100% - 16px)}
}
