/* Drugestan Health Magazine v1.45.9.9
   Final expandable support-card owner.
   - Warning joins Action / Pharmacist / Professional on desktop.
   - All requested cards keep a stable collapsed height.
   - Overflow is hidden cleanly and exposed by one plain-text «بیشتر» control.
*/

html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-card > .dhm-v1499-body{
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  overflow:hidden!important;
  position:relative!important;
}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-card.dhm-v1499-expanded{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-card.dhm-v1499-expanded > .dhm-v1499-body{
  max-height:none!important;
  overflow:visible!important;
}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-more{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:block!important;
  flex:0 0 auto!important;
  align-self:center!important;
  margin:8px auto 2px!important;
  padding:0!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#35536c!important;
  font:inherit!important;
  font-size:13px!important;
  line-height:1.6!important;
  font-weight:800!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-more.dhm-v1499-not-needed{
  display:none!important;
}
html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-more:hover,
html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-more:focus{
  color:#173553!important;
  background:transparent!important;
  text-decoration:underline!important;
  outline:none!important;
}

/* Warning is a primary support card, even when generated from legacy/meta content. */
@media(min-width:1180px){
  html body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-sync-warning{
    grid-column:span 3!important;
    order:30!important;
    display:flex!important;
    flex-direction:column!important;
    align-self:start!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v16-modules > .dhm-sync-warning > 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-v16-modules > .dhm-sync-warning > h2::before{
    content:""!important;
    display:block!important;
    width:100%!important;
    height:82px!important;
    min-height:82px!important;
    margin:0 0 8px!important;
    border-radius:11px!important;
    background:url('photos-v41/article-warning.jpg') center/cover no-repeat!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-v16-modules > .dhm-sync-warning > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article #dhm-action > .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{
    height:238px!important;
    min-height:238px!important;
    max-height:238px!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v47-secondary-grid > .dhm-v46-info > .dhm-section-card,
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v47-secondary-grid > #dhm-scientific-sources > .dhm-section-card{
    height:228px!important;
    min-height:228px!important;
    max-height:228px!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-card.dhm-v1499-expanded{
    height:auto!important;
    max-height:none!important;
  }
}

/* Tablet/mobile: same interaction, with a comfortable stable reading card. */
@media(max-width:1179px){
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-card{
    height:300px!important;
    min-height:300px!important;
    max-height:300px!important;
    overflow:hidden!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article #dhm-scientific-sources > .dhm-section-card.dhm-v1499-card{
    height:360px!important;
    min-height:360px!important;
    max-height:360px!important;
  }
  html body[class*="single-dhms_"] .dhm-single-article .dhm-v1499-card.dhm-v1499-expanded{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
}
