/* O9.5 Frontend Integrity Layer */

:root{
  --mfm-o95-shell:1320px;
  --mfm-o95-h1:clamp(34px,5.6vw,64px);
  --mfm-o95-h2:clamp(28px,4.2vw,48px);
  --mfm-o95-h3:clamp(20px,2.3vw,30px);
  --mfm-o95-body:clamp(15px,1.2vw,18px);
  --mfm-o95-caption:clamp(12px,.9vw,13px);
}

.mfm-header > .mfm-container{
  width:min(calc(100% - 24px),var(--mfm-o95-shell)) !important;
  max-width:var(--mfm-o95-shell) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

body.single-post .mfm-header > .mfm-container{
  width:min(calc(100% - 24px),var(--mfm-o95-shell)) !important;
  max-width:var(--mfm-o95-shell) !important;
}

.mfm-blog-grid,
.mfm-therapists-grid,
.mfm-services-grid-live{
  align-items:stretch;
}

.mfm-blog-card,
.mfm-therapist-card,
.mfm-runtime-card,
.gx74-card{
  min-width:0;
  height:100%;
}

.mfm-blog-grid-section,
.mfm-therapists-archive__grid,
.mfm-services-hub__catalog,
.mfm-home-massage-page__catalog{
  overflow:hidden;
}

.mfm-blog-grid-section .mfm-container,
.mfm-therapists-archive__grid .mfm-therapists-shell,
.mfm-services-hub__catalog .mfm-services-shell{
  padding-bottom:clamp(46px,5.2vw,78px);
}

.mfm-blog-hero h1,
.mfm-single-article__hero h1{
  font-size:var(--mfm-o95-h1) !important;
  line-height:1.08 !important;
  letter-spacing:0 !important;
  word-spacing:normal !important;
  text-wrap:balance;
}

.mfm-blog-card h2,
.mfm-runtime-card h3,
.mfm-therapist-card__body h2,
.mfm-single-article__content h2{
  font-size:var(--mfm-o95-h3) !important;
  line-height:1.2 !important;
  letter-spacing:0 !important;
  word-spacing:normal !important;
  text-wrap:pretty;
}

.mfm-single-article__content,
.mfm-blog-card p,
.mfm-runtime-card p{
  font-size:var(--mfm-o95-body);
  line-height:1.62 !important;
}

.mfm-editorial-content figcaption,
.mfm-editorial-content .wp-caption-text,
.mfm-single-service__description figcaption,
.mfm-single-service__description .wp-caption-text{
  margin-top:10px;
  color:rgba(236,224,206,.8);
  font-size:var(--mfm-o95-caption) !important;
  letter-spacing:.04em;
  line-height:1.45;
}

@media(max-width:767px){
  .mfm-header > .mfm-container{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .mfm-mobile-brandbar,
  .mfm-mobile-tabs{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  .mfm-mobile-tabs{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .mfm-blog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }

  .mfm-blog-grid > .mfm-blog-card:last-child:nth-child(odd){
    grid-column:1 / -1;
  }

  .mfm-therapists-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }

  .mfm-therapists-grid > .mfm-therapist-card:last-child:nth-child(odd){
    grid-column:1 / -1;
  }

  .post-type-archive-mfm_service .mfm-services-grid-live{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:14px !important;
  }

  .post-type-archive-mfm_service .mfm-services-grid-live > .gx74-card:last-child:nth-child(odd){
    grid-column:1 / -1;
  }
}

@media(max-width:390px){
  .mfm-header > .mfm-container{
    width:100% !important;
    max-width:none !important;
  }
}
