/* Wariatric V1.4.44.201 — Global Knowledge Hub Typography Gate
   Applies one readable Vazir hierarchy to every approved surgery hub.
   Loaded after hub-specific CSS so no hub may silently shrink clinical copy. */

body.slh-public-shell-only .slh-shell,
body.wariatric-sleeve-hub-active .slh-shell,
body.wariatric-rygb-hub-active .slh-shell,
body.wariatric-oagb-hub-active .slh-shell{
  --hub-font:var(--w-font-family);
  --hub-title:clamp(32px,2.55vw,42px);
  --hub-section:clamp(22px,1.65vw,27px);
  --hub-card-title:clamp(17px,1.15vw,20px);
  --hub-body:clamp(15px,1vw,16.5px);
  --hub-small:clamp(13px,.88vw,14.5px);
  font-family:var(--w-font-family);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.slh-public-shell-only .slh-shell :where(h1,h2,h3,h4,h5,h6,p,li,a,button,summary,small,strong,b,span),
body.wariatric-sleeve-hub-active .slh-shell :where(h1,h2,h3,h4,h5,h6,p,li,a,button,summary,small,strong,b,span),
body.wariatric-rygb-hub-active .slh-shell :where(h1,h2,h3,h4,h5,h6,p,li,a,button,summary,small,strong,b,span),
body.wariatric-oagb-hub-active .slh-shell :where(h1,h2,h3,h4,h5,h6,p,li,a,button,summary,small,strong,b,span){
  font-family:var(--w-font-family);
}

/* Page / hero */
body.slh-public-shell-only .slh-title{font-size:var(--w-text-h1);line-height:1.45!important;font-weight:var(--w-weight-bold)!important;letter-spacing:-.015em!important}
body.slh-public-shell-only .slh-en{font-size:var(--w-text-body);line-height:1.7!important;font-weight:var(--w-weight-bold)!important}
body.slh-public-shell-only .slh-summary{font-size:var(--w-text-body);line-height:2!important;font-weight:var(--w-weight-regular)!important;max-width:74ch!important;color:#496a6b!important}
body.slh-public-shell-only .slh-kicker{font-size:var(--w-text-small);line-height:1.55!important;font-weight:var(--w-weight-bold)!important}
body.slh-public-shell-only .slh-btn{font-size:var(--w-text-small);line-height:1.55!important;font-weight:var(--w-weight-bold)!important;min-height:42px!important}

/* Section hierarchy */
body.slh-public-shell-only .slh-section-head h2{font-size:var(--w-text-h2);line-height:1.55!important;font-weight:var(--w-weight-bold)!important}
body.slh-public-shell-only .slh-section-head p{font-size:var(--w-text-body);line-height:1.9!important;font-weight:var(--w-weight-regular)!important;max-width:76ch;margin-inline:auto!important}
body.slh-public-shell-only .slh-results h2,
body.slh-public-shell-only .slh-story h2{font-size:var(--w-text-h2);line-height:1.6!important;font-weight:var(--w-weight-bold)!important}

/* Sleeve / shared cards */
body.slh-public-shell-only .slh-link-card h3{font-size:var(--w-text-h3);line-height:1.65!important;font-weight:var(--w-weight-bold)!important}
body.slh-public-shell-only .slh-link-card p{font-size:var(--w-text-body);line-height:1.85!important;font-weight:var(--w-weight-regular)!important}
body.slh-public-shell-only .slh-result b{font-size:var(--w-text-body);line-height:1.6!important;font-weight:var(--w-weight-bold)!important}
body.slh-public-shell-only .slh-result span{font-size:var(--w-text-small);line-height:1.75!important;font-weight:var(--w-weight-regular)!important}
body.slh-public-shell-only .slh-step b{font-size:var(--w-text-small);line-height:1.6!important;font-weight:var(--w-weight-bold)!important}
body.slh-public-shell-only .slh-step small{font-size:var(--w-text-small);line-height:1.7!important;font-weight:var(--w-weight-regular)!important}
body.slh-public-shell-only .slh-benefit{font-size:var(--w-text-small);line-height:1.7!important;font-weight:var(--w-weight-bold)!important}
body.slh-public-shell-only .slh-story p{font-size:var(--w-text-body);line-height:1.9!important;font-weight:var(--w-weight-regular)!important}
body.slh-public-shell-only .slh-related a{font-size:var(--w-text-small);line-height:1.65!important;font-weight:var(--w-weight-bold)!important}
body.slh-public-shell-only .slh-anatomy-lock{font-family:var(--w-font-family);font-weight:var(--w-weight-bold)!important}

/* RYGB long-form content */
body.wariatric-rygb-hub-active .rygb-tradeoff h2{font-size:var(--w-text-h2);line-height:1.65!important;font-weight:var(--w-weight-bold)!important}
body.wariatric-rygb-hub-active .rygb-tradeoff-head p{font-size:var(--w-text-body);line-height:1.9!important}
body.wariatric-rygb-hub-active .rygb-tradeoff ul{font-size:var(--w-text-body);line-height:2!important}
body.wariatric-rygb-hub-active .rygb-tradeoff>a{font-size:var(--w-text-small)}
body.wariatric-rygb-hub-active .rygb-topology-card ol{font-size:var(--w-text-small);line-height:1.95!important}
body.wariatric-rygb-hub-active .rygb-faq summary{font-size:var(--w-text-body);line-height:1.9!important;font-weight:var(--w-weight-bold)!important;padding-top:14px!important;padding-bottom:14px!important}
body.wariatric-rygb-hub-active .rygb-faq details p{font-size:var(--w-text-body);line-height:2!important;padding-bottom:14px!important}
body.wariatric-rygb-hub-active .rygb-path-grid h3{font-size:var(--w-text-h3);line-height:1.6!important}
body.wariatric-rygb-hub-active .rygb-path-grid p{font-size:var(--w-text-body);line-height:1.8!important}
body.wariatric-rygb-hub-active .rygb-nutrition-head h2{font-size:var(--w-text-h2);line-height:1.6!important}
body.wariatric-rygb-hub-active .rygb-nutrition-head p{font-size:var(--w-text-body);line-height:2!important}
body.wariatric-rygb-hub-active .rygb-diet-phases strong{font-size:var(--w-text-small);line-height:1.65!important}
body.wariatric-rygb-hub-active .rygb-diet-phases small{font-size:var(--w-text-small);line-height:1.8!important}
body.wariatric-rygb-hub-active .rygb-nutrition-preview-grid>article>span{font-size:var(--w-text-body);line-height:1.65!important}
body.wariatric-rygb-hub-active .rygb-nutrition-preview-grid p{font-size:var(--w-text-body);line-height:2!important}
body.wariatric-rygb-hub-active .rygb-nutrition-preview-grid li{font-size:var(--w-text-small);line-height:1.9!important}
body.wariatric-rygb-hub-active .rygb-nutrition-preview-grid small{font-size:var(--w-text-small);line-height:1.75!important}

/* OAGB section header & FAQ specifically inherit the same gate. */
body.wariatric-oagb-hub-active .oagb-faq .slh-section-head p,
body.wariatric-oagb-hub-active .oagb-sources .slh-section-head p,
body.wariatric-oagb-hub-active .oagb-nutrition .slh-section-head p,
body.wariatric-oagb-hub-active .oagb-compare .slh-section-head p{font-size:var(--w-text-body);line-height:1.95!important}

/* Modal text remains compact but comfortably readable. */
body.slh-public-shell-only .slh-modal-head h2{font-size:var(--w-text-h2);line-height:1.55!important;font-weight:var(--w-weight-bold)!important}
body.slh-public-shell-only .slh-modal-head p{font-size:var(--w-text-body);line-height:1.85!important}
body.slh-public-shell-only .slh-close{font-size:var(--w-text-small);font-weight:var(--w-weight-bold)!important;min-height:38px!important}

/* Persian reading rhythm: clinical prose should not span an exhausting line length. */
body.slh-public-shell-only :where(.slh-summary,.slh-section-head p,.oagb-detail p,.oagb-faq p,.rygb-faq p){
  overflow-wrap:anywhere;
}

@media(max-width:760px){
  body.slh-public-shell-only .slh-shell{
    --hub-title:clamp(27px,7.2vw,32px);
    --hub-section:clamp(20px,5.2vw,24px);
    --hub-card-title:17px;
    --hub-body:15px;
    --hub-small:13px;
  }
  body.slh-public-shell-only .slh-summary{line-height:1.95!important}
  body.slh-public-shell-only .slh-section-head p{line-height:1.9!important}
  body.wariatric-rygb-hub-active .rygb-faq summary,
  body.wariatric-oagb-hub-active .oagb-faq summary{font-size:var(--w-text-body)}
}
