
/* v1.43.14 — upper comparison card must exactly inherit the full right-hero column width. */
@media(min-width:900px){
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-side-right{
    align-items:stretch!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-side-right > .dhm-v23-hero-refcards{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-side-right > .dhm-v23-hero-refcards > .dhm-v23-hero-compare{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-side-right > .dhm-v23-hero-refcards > .dhm-v23-hero-compare .dhm-v23-hero-ref-icon{
    width:100%!important;
    max-width:none!important;
  }
}
/* v1.43.13 — make the upper comparison card as wide as the visual above it. */
@media(min-width:900px){
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v23-hero-refcards{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    width:100%!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v23-hero-ref,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v23-hero-compare,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v23-hero-science{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}

/* Drugestan Health Magazine v1.43.12
   Hard layout fix: create dedicated pair wrappers so the two problematic areas
   are controlled structurally rather than by loose grid heuristics.
*/

/* Quick-strip photos kept active. */
html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-six-professional .dhm-v21-six-icon{background-image:url('photos-v41/article-professional.jpg')!important;}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-six-sources .dhm-v21-six-icon{background-image:url('photos-v41/article-sources.jpg')!important;}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-six-keypoints .dhm-v21-six-icon{background-image:url('photos-v41/article-keypoints.jpg')!important;}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-six-mistakes .dhm-v21-six-icon{background-image:url('photos-v41/article-mistakes.jpg')!important;}

@media(min-width:900px){
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-six{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;width:100%!important;}
}

/* Shared heading pattern: photo banner, then title. */
html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > h2,
html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > h2,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-support > h2,
html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources > h2,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion > h2{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 10px!important;
  padding:0!important;
  color:#173553!important;
  font-weight:800!important;
  line-height:1.42!important;
  text-align:center!important;
  white-space:normal!important;
  writing-mode:horizontal-tb!important;
}
html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > h2::before,
html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > h2::before,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-support > h2::before,
html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources > h2::before,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion > h2::before{
  content:""!important;
  display:block!important;
  width:190px!important;
  max-width:78%!important;
  height:78px!important;
  margin:0 auto 9px!important;
  border-radius:12px!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-color:#eef3f6!important;
  box-shadow:inset 0 0 0 1px rgba(216,226,232,.95)!important;
  flex:none!important;
}
html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > h2::before{background-image:url('photos-v41/article-compare.jpg')!important;}
html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > h2::before{background-image:url('photos-v41/article-faq.jpg')!important;}
html body[class*="single-dhms_"] .dhm-single-article #dhm-action > h2::before{background-image:url('photos-v41/article-action.jpg')!important;}
html body[class*="single-dhms_"] .dhm-single-article #dhm-warning > h2::before{background-image:url('photos-v41/article-warning.jpg')!important;}
html body[class*="single-dhms_"] .dhm-single-article #dhm-pharmacist-answer > h2::before{background-image:url('photos-v41/article-pharmacist.jpg')!important;}
html body[class*="single-dhms_"] .dhm-single-article .dhm-professional > h2::before{background-image:url('photos-v41/article-professional.jpg')!important;}
html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources > h2::before{background-image:url('photos-v41/article-sources.jpg')!important;}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion > h2::before{background-image:url('photos-v41/article-start.jpg')!important;}

/* Dedicated wrapper rows: these are the real fix. */
@media(min-width:1180px){
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px!important;
    align-items:stretch!important;
    direction:rtl!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-top{
    grid-column:1 / -1!important;
    order:20!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-bottom{
    grid-column:span 6!important;
    justify-self:end!important;
    order:40!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-row > section,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-row > aside{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    height:auto!important;
    min-height:0!important;
    align-self:stretch!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-row > section > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-row > aside > .dhm-section-card{
    flex:1 1 auto!important;
  }

  /* Top pair: FAQ + comparison. */
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-faq{
    width:100%!important;
    min-width:0!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > h2{min-height:124px!important;font-size:18px!important;}
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > .dhm-section-card{display:flex!important;flex-direction:column!important;}
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > .dhm-section-card{padding:0!important;overflow-x:auto!important;}
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison table{width:100%!important;min-width:100%!important;table-layout:fixed!important;margin:0!important;}
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison th,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison td{white-space:normal!important;word-break:break-word!important;}

  /* Support cards remain as previously approved. */
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-v44-support{
    grid-column:span 3!important;
    order:30!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    align-self:start!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-support > h2{min-height:134px!important;font-size:15px!important;}
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-support > .dhm-section-card{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    height:236px!important;
    min-height:236px!important;
    max-height:236px!important;
    margin:0!important;
    padding:17px 17px 13px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#f8fafc!important;
    border:1px solid #d6e0e8!important;
    border-right:4px solid #526d85!important;
    border-radius:14px!important;
    box-shadow:none!important;
  }

  /* Bottom pair: scientific sources + companion, each exactly one-card wide. */
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources > h2,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion > h2{min-height:134px!important;font-size:18px!important;}
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion > .dhm-section-card{
    display:flex!important;
    flex-direction:column!important;
    justify-content:space-between!important;
    width:100%!important;
    min-width:0!important;
    height:236px!important;
    min-height:236px!important;
    max-height:236px!important;
    margin:0!important;
    padding:17px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#f8fafc!important;
    border:1px solid #d6e0e8!important;
    border-right:4px solid #526d85!important;
    border-radius:14px!important;
    box-shadow:none!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources .dhm-v43-source-body,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion > .dhm-section-card{
    color:#526779!important;
    font-size:12.5px!important;
    line-height:1.8!important;
    text-align:right!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources .dhm-v43-source-body{max-height:146px!important;overflow:hidden!important;}
}

@media(max-width:1179px){
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-row{display:block!important;width:100%!important;}
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-row > * + *{margin-top:18px!important;}
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > h2,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-support > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources > h2,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion > h2{min-height:0!important;}
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-support > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion > h2::before{width:160px!important;max-width:70%!important;height:68px!important;}
}


/* v1.43.15 — hero comparison width fix without vertical-gap regression.
   Regression-safe rule: keep the right hero column as one coherent stack,
   hide the duplicate science shortcut on desktop, and make comparison sit
   directly under the hero image with the same column width. */
@media(min-width:900px){
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-side-right{
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    align-items:stretch!important;
    gap:12px!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-side-right > .dhm-ods-visual{
    order:1!important;
    margin:0!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-side-right > .dhm-v23-hero-refcards{
    order:2!important;
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    box-sizing:border-box!important;
    flex:0 0 auto!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-side-right > .dhm-v23-hero-refcards > .dhm-v23-hero-science{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-side-right > .dhm-v23-hero-refcards > .dhm-v23-hero-compare{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:12px!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    box-sizing:border-box!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-side-right > .dhm-v23-hero-refcards > .dhm-v23-hero-compare .dhm-v23-hero-ref-icon{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0 0 10px!important;
  }
}


/* v1.43.16 — bottom pair photo/title cleanup.
   Make the photos and headings of "منابع علمی" and "از علائم شروع کنید..."
   sit cleanly above their cards, full-width and visually consistent. */
@media(min-width:1180px){
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-bottom > #dhm-scientific-sources.dhm-v44-sources > h2,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-bottom > .dhm-v44-source-companion > h2{
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    margin:0 0 12px!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    font-size:18px!important;
    line-height:1.5!important;
    text-align:center!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-bottom > #dhm-scientific-sources.dhm-v44-sources > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-bottom > .dhm-v44-source-companion > h2::before{
    width:100%!important;
    max-width:none!important;
    height:92px!important;
    margin:0 0 8px!important;
    border-radius:12px!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:cover!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-bottom > #dhm-scientific-sources.dhm-v44-sources,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-bottom > .dhm-v44-source-companion{
    align-self:start!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-bottom > #dhm-scientific-sources.dhm-v44-sources > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-pair-bottom > .dhm-v44-source-companion > .dhm-section-card{
    margin-top:0!important;
  }
}
@media(max-width:1179px){
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources > h2,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion > h2{
    margin:0 0 10px!important;
    gap:7px!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources.dhm-v44-sources > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v44-source-companion > h2::before{
    width:100%!important;
    max-width:none!important;
    height:84px!important;
    margin:0 0 8px!important;
  }
}


/* v1.45.9.6 clean four-card dashboard fix */
html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-six{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:16px!important;
 width:100%!important;
}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-six > a.dhm-v21-six-card{
 width:100%!important;
 min-width:0!important;
 grid-column:auto!important;
}
@media(max-width:900px){
 html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-six{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:520px){
 html body[class*="single-dhms_"] .dhm-single-article .dhm-v21-six{grid-template-columns:1fr!important;}
}
