/*
 * Dr. Shahriyari — English global typography v2.6.32
 * Scope: every frontend surface whose document language is English (en).
 * Typeface: Inter for headings, body copy and interface text.
 * The font binary is not bundled; Google Fonts is requested only on English pages.
 */

html[lang^="en"],
body.dsh-lang-en{
  --dsh-en-font:"Inter",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --dsh-en-h1:clamp(2.22rem,4.20vw,3.78rem);
  --dsh-en-h2:clamp(1.72rem,2.75vw,2.58rem);
  --dsh-en-h3:clamp(1.20rem,1.55vw,1.52rem);
  --dsh-en-h4:clamp(1.05rem,1.18vw,1.27rem);
  font-family:var(--dsh-en-font);
  font-kerning:normal;
  font-variant-ligatures:common-ligatures;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/*
 * Global body/UI layer. Loaded after page-specific CSS so legacy serif/system
 * declarations cannot fragment typography between Home, Blog, articles,
 * treatment/service pages, About, Contact, navigation, footer, cards, forms,
 * tables, CTAs or future English templates.
 */
html[lang^="en"] body,
body.dsh-lang-en,
html[lang^="en"] body :where(div,section,article,aside,main,header,footer,nav,p,ul,ol,li,dl,dt,dd,blockquote,figcaption,details,summary,label,legend,a,button,input,textarea,select,option,table,thead,tbody,tfoot,tr,th,td,span,small,strong,b,em,i,time,address),
body.dsh-lang-en :where(div,section,article,aside,main,header,footer,nav,p,ul,ol,li,dl,dt,dd,blockquote,figcaption,details,summary,label,legend,a,button,input,textarea,select,option,table,thead,tbody,tfoot,tr,th,td,span,small,strong,b,em,i,time,address){
  font-family:var(--dsh-en-font)!important;
}

html[lang^="en"] body,
body.dsh-lang-en{
  font-size:1rem;
  line-height:1.70;
  letter-spacing:-.003em;
}

html[lang^="en"] :where(p,li,dd,blockquote),
body.dsh-lang-en :where(p,li,dd,blockquote){
  line-height:1.78!important;
  letter-spacing:0!important;
}

html[lang^="en"] :where(button,input,textarea,select,summary,.wp-element-button,.wp-block-button__link),
body.dsh-lang-en :where(button,input,textarea,select,summary,.wp-element-button,.wp-block-button__link){
  font-size:clamp(.93rem,.91rem + .07vw,1rem);
  line-height:1.50;
  font-weight:600;
  letter-spacing:-.005em;
}

/*
 * Inter carries hierarchy through weight and a restrained responsive scale.
 * This avoids oversized marketing-style headings while retaining a clear,
 * authoritative medical editorial rhythm.
 */
html[lang^="en"] :where(
  h1,h2,h3,h4,h5,h6,
  .wp-block-post-title,
  .wp-block-site-title,
  .wp-block-query-title,
  .wp-block-heading,
  .dsh-abt260-mast__brand,
  [class*="__title"],
  [class*="-title"]
),
body.dsh-lang-en :where(
  h1,h2,h3,h4,h5,h6,
  .wp-block-post-title,
  .wp-block-site-title,
  .wp-block-query-title,
  .wp-block-heading,
  .dsh-abt260-mast__brand,
  [class*="__title"],
  [class*="-title"]
){
  font-family:var(--dsh-en-font)!important;
  font-style:normal;
  font-synthesis:none;
  text-wrap:balance;
}

html[lang^="en"] :where(h1,.wp-block-post-title),
body.dsh-lang-en :where(h1,.wp-block-post-title){
  font-size:var(--dsh-en-h1)!important;
  font-weight:800!important;
  line-height:1.08!important;
  letter-spacing:-.038em!important;
  max-width:24ch;
}

html[lang^="en"] :where(h2,.wp-block-query-title),
body.dsh-lang-en :where(h2,.wp-block-query-title){
  font-size:var(--dsh-en-h2)!important;
  font-weight:700!important;
  line-height:1.16!important;
  letter-spacing:-.028em!important;
}

html[lang^="en"] h3,
body.dsh-lang-en h3{
  font-size:var(--dsh-en-h3)!important;
  font-weight:700!important;
  line-height:1.28!important;
  letter-spacing:-.018em!important;
}

html[lang^="en"] :where(h4,h5,h6),
body.dsh-lang-en :where(h4,h5,h6){
  font-size:var(--dsh-en-h4)!important;
  font-weight:700!important;
  line-height:1.34!important;
  letter-spacing:-.012em!important;
}

/* Keep linked/spanned heading content in the same Inter treatment. */
html[lang^="en"] :where(h1,h2,h3,h4,h5,h6,.wp-block-post-title,.wp-block-site-title,.wp-block-query-title,[class*="__title"],[class*="-title"]) :where(a,span,strong,b,em,i),
body.dsh-lang-en :where(h1,h2,h3,h4,h5,h6,.wp-block-post-title,.wp-block-site-title,.wp-block-query-title,[class*="__title"],[class*="-title"]) :where(a,span,strong,b,em,i){
  font-family:inherit!important;
  font-weight:inherit!important;
  letter-spacing:inherit!important;
}

/* Component titles keep their component-defined size but use Inter consistently. */
html[lang^="en"] :where(.wp-block-site-title,[class*="__title"],[class*="-title"]):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
body.dsh-lang-en :where(.wp-block-site-title,[class*="__title"],[class*="-title"]):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6){
  line-height:1.28!important;
  font-weight:700;
  letter-spacing:-.012em;
}

/* About masthead branding remains prominent but stays within the site scale. */
html[lang^="en"] .dsh-abt260-mast__brand,
body.dsh-lang-en .dsh-abt260-mast__brand{
  font-size:clamp(2.02rem,4.45vw,3.38rem)!important;
  font-weight:800!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
}

/* Compact UI should remain crisp rather than inheriting display sizing. */
html[lang^="en"] :where(.dsh-header,.dsh-nav,.dsh-breadcrumb,.dsh-button,.wp-block-navigation,.wp-block-button),
body.dsh-lang-en :where(.dsh-header,.dsh-nav,.dsh-breadcrumb,.dsh-button,.wp-block-navigation,.wp-block-button){
  font-family:var(--dsh-en-font)!important;
}

/* Technical literals intentionally retain monospace. */
html[lang^="en"] :where(code,pre,kbd,samp),
body.dsh-lang-en :where(code,pre,kbd,samp){
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace!important;
  letter-spacing:normal!important;
}

@media (max-width:782px){
  html[lang^="en"],body.dsh-lang-en{
    --dsh-en-h1:clamp(1.98rem,8vw,2.80rem);
    --dsh-en-h2:clamp(1.52rem,6.2vw,2.04rem);
    --dsh-en-h3:clamp(1.15rem,4.4vw,1.38rem);
  }
  html[lang^="en"] body,
  body.dsh-lang-en{
    font-size:1rem;
    line-height:1.72;
  }
}

@media (max-width:420px){
  html[lang^="en"],body.dsh-lang-en{
    --dsh-en-h1:clamp(1.86rem,8.8vw,2.42rem);
    --dsh-en-h2:clamp(1.43rem,6.6vw,1.86rem);
  }
}
