/* Drugestan Health Magazine v1.44.0 — FINAL LAYOUT OWNER
   This file deliberately loads last and owns the lower article layout.
   It replaces accumulated partial overrides with one deterministic system. */

/* ---------- Common section reset ---------- */
html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > #dhm-comparison,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > #dhm-faq,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > #dhm-action,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > #dhm-warning,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > #dhm-pharmacist-answer,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > #dhm-professional,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > .dhm-professional,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > .dhm-v46-info,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > #dhm-scientific-sources{
  float:none!important;
  clear:none!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
  writing-mode:horizontal-tb!important;
}

html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > section > h2,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > aside > h2{
  box-sizing:border-box!important;
  color:#173553!important;
  font-weight:800!important;
  white-space:normal!important;
  writing-mode:horizontal-tb!important;
  overflow:visible!important;
}

/* ---------- Desktop deterministic grid ---------- */
@media(min-width:1180px){
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules{
    display:grid!important;
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    gap:20px 18px!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:none!important;
  }

  /* Scientific main body */
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > #dhm-main-text,
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-v13-main{
    grid-column:1/-1!important;
    order:10!important;
    align-self:start!important;
  }

  /* FAQ + Comparison: one row, exact same outer height. */
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > #dhm-faq,
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > #dhm-comparison{
    grid-column:span 6!important;
    order:20!important;
    display:flex!important;
    flex-direction:column!important;
    align-self:stretch!important;
    height:100%!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > h2{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    height:126px!important;
    min-height:126px!important;
    max-height:126px!important;
    margin:0 0 10px!important;
    padding:0!important;
    font-size:20px!important;
    line-height:1.45!important;
    text-align:center!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > h2::before{
    content:""!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:88px!important;
    min-height:88px!important;
    margin:0 0 9px!important;
    border-radius:12px!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:cover!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-faq > h2::before{background-image:url('photos-v41/article-faq.jpg')!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 > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > .dhm-section-card{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!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-comparison > .dhm-section-card{padding:0!important;overflow:auto!important;}
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison .dhm-sync-table-wrap{width:100%!important;min-width:0!important;overflow: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:normal!important;overflow-wrap:anywhere!important;}

  /* Four support modules: picture -> visible title -> equal body card. */
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > #dhm-action,
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > #dhm-warning,
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > #dhm-pharmacist-answer,
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > #dhm-professional,
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-professional{
    grid-column:span 3!important;
    order:30!important;
    display:flex!important;
    flex-direction:column!important;
    align-self:start!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-action > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-warning > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-pharmacist-answer > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-professional > h2,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-professional > h2{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    height:126px!important;
    min-height:126px!important;
    max-height:126px!important;
    margin:0 0 10px!important;
    padding:0!important;
    font-size:15px!important;
    line-height:1.45!important;
    text-align:center!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-action > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-warning > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-pharmacist-answer > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-professional > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-professional > h2::before{
    content:""!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:82px!important;
    min-height:82px!important;
    margin:0 0 8px!important;
    border-radius:11px!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:cover!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-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,
  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-action > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-warning > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-pharmacist-answer > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-professional > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-professional > .dhm-section-card{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    height:238px!important;
    min-height:238px!important;
    max-height:238px!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;
  }

  /* Scientific follow-up blocks + sources: three equal cards per row. */
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-v46-info,
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > #dhm-scientific-sources{
    grid-column:span 4!important;
    order:40!important;
    display:flex!important;
    flex-direction:column!important;
    align-self:start!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources > h2{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    height:134px!important;
    min-height:134px!important;
    max-height:134px!important;
    margin:0 0 10px!important;
    padding:0!important;
    font-size:18px!important;
    line-height:1.45!important;
    text-align:center!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources > h2::before{
    content:""!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:88px!important;
    min-height:88px!important;
    margin:0 0 8px!important;
    border-radius:11px!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:cover!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-v46-info > h2::before{background-image:url('photos-v41/article-start.jpg')!important;}
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info.dhm-v46-info-science > h2::before{background-image:url('photos-v41/article-science.jpg')!important;}
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info.dhm-v46-info-lab > h2::before{background-image:url('photos-v41/article-sources.jpg')!important;}
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info.dhm-v46-info-dose > h2::before{background-image:url('photos-v41/article-action.jpg')!important;}
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources > h2::before{background-image:url('photos-v41/article-sources.jpg')!important;}
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources > .dhm-section-card{
    display:flex!important;
    flex-direction:column!important;
    justify-content:space-between!important;
    width:100%!important;
    min-width:0!important;
    height:228px!important;
    min-height:228px!important;
    max-height:228px!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;
    color:#34495a!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources .dhm-v43-source-body{
    width:100%!important;
    min-width:0!important;
    max-height:150px!important;
    overflow:hidden!important;
    font-size:12px!important;
    line-height:1.75!important;
  }

  /* Products and related content never occupy a leftover narrow cell. */
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-sync-products,
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > #dhm-products{
    grid-column:1/-1!important;
    order:50!important;
    width:100%!important;
  }
}

/* ---------- Tablet ---------- */
@media(min-width:700px) and (max-width:1179px){
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px!important;
    align-items:start!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > #dhm-main-text,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > .dhm-sync-products,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > #dhm-products{grid-column:1/-1!important;}
}

/* ---------- Mobile / shared compact heading structure ---------- */
@media(max-width:1179px){
  html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-action > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-warning > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-pharmacist-answer > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-professional > h2,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-professional > h2,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info > h2,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources > h2{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 0 10px!important;
    padding:0!important;
    font-size:17px!important;
    line-height:1.5!important;
    text-align:center!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-faq > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-comparison > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-action > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-warning > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-pharmacist-answer > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-professional > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-professional > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info > h2::before,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources > h2::before{
    content:""!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:78px!important;
    margin:0 0 8px!important;
    border-radius:10px!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:cover!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-comparison > h2::before{background-image:url('photos-v41/article-compare.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,
  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-v46-info > h2::before{background-image:url('photos-v41/article-start.jpg')!important;}
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info.dhm-v46-info-science > h2::before{background-image:url('photos-v41/article-science.jpg')!important;}
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info.dhm-v46-info-lab > h2::before{background-image:url('photos-v41/article-sources.jpg')!important;}
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v46-info.dhm-v46-info-dose > h2::before{background-image:url('photos-v41/article-action.jpg')!important;}
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources > h2::before{background-image:url('photos-v41/article-sources.jpg')!important;}
}

@media(max-width:699px){
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules{display:block!important;}
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > section,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > aside{margin:18px 0!important;}
}
