/* Drugestan Health Magazine v1.33.0
   Canonical support-row + quick-link + equal product cards.
   This stylesheet intentionally wins over all legacy article passes. */
:root{
  --d33-navy:#173553;
  --d33-teal:#148b87;
  --d33-green:#248b70;
  --d33-orange:#d7751e;
  --d33-violet:#7044b7;
  --d33-blue:#3b78c5;
  --d33-line:#d5e1e9;
}

/* Hero quick answer: make the continuation unmistakable and usable. */
body[class*="single-dhms_"] .dhm-single-article .dhm-v31-quick-link,
body[class*="single-dhms_"] .dhm-single-article .dhm-v22-continue{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:auto!important;
  min-height:34px!important;
  margin-top:10px!important;
  padding:6px 11px!important;
  border:1px solid #b7d8d5!important;
  border-radius:9px!important;
  background:#f1faf9!important;
  color:#147874!important;
  font-size:12.5px!important;
  line-height:1.55!important;
  font-weight:800!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
body[class*="single-dhms_"] .dhm-single-article #dhm-main-text.dhm-v33-jump-flash > .dhm-section-card{
  box-shadow:0 0 0 4px rgba(20,139,135,.14),0 14px 28px rgba(17,42,74,.06)!important;
  transition:box-shadow .25s ease!important;
}

@media (min-width:1180px){
  /* One owner for the lower grid. Old four-/twelve-column passes are neutralized here. */
  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:18px!important;
    align-items:start!important;
    width:100%!important;
    max-width:none!important;
  }

  /* Canonical support row. */
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-v33-support{
    grid-column:span 3!important;
    order:30!important;
    display:flex!important;
    flex-direction:column!important;
    float:none!important;
    clear:none!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    writing-mode:horizontal-tb!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-v33-support > h2{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:34px!important;
    min-height:34px!important;
    margin:0 0 8px!important;
    padding:0 2px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
    color:var(--d33-navy)!important;
    font-size:14px!important;
    line-height:34px!important;
    font-weight:850!important;
    letter-spacing:-.2px!important;
  }
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-v33-support > .dhm-section-card{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:228px!important;
    min-height:228px!important;
    max-height:228px!important;
    margin:0!important;
    padding:17px 17px 13px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    border-radius:14px!important;
  }
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support .dhm-v33-support-body{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:var(--dhm-v33-body-height,145px)!important;
    min-height:var(--dhm-v33-body-height,145px)!important;
    max-height:var(--dhm-v33-body-height,145px)!important;
    overflow:hidden!important;
    writing-mode:horizontal-tb!important;
    text-orientation:mixed!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support .dhm-v33-support-body p,
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support .dhm-v33-support-body li{
    margin:0!important;
    font-size:13.5px!important;
    line-height:1.9!important;
    color:#344b60!important;
  }
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support-toggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    align-self:flex-start!important;
    min-height:28px!important;
    margin:auto 0 0!important;
    padding:4px 0!important;
    border:0!important;
    background:transparent!important;
    font-size:11.5px!important;
    line-height:1.4!important;
    font-weight:800!important;
    cursor:pointer!important;
  }
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support.dhm-sync-action .dhm-v33-support-toggle{color:var(--d33-green)!important}
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support.dhm-sync-warning .dhm-v33-support-toggle{color:var(--d33-orange)!important}
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support.dhm-pharmacist-section .dhm-v33-support-toggle{color:var(--d33-teal)!important}
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support.dhm-professional .dhm-v33-support-toggle{color:var(--d33-violet)!important}
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support.is-expanded > .dhm-section-card{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support.is-expanded .dhm-v33-support-body{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }

  /* Safety: even if JS classification is delayed, the four semantic sections never collapse. */
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-sync-action,
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-sync-warning,
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-pharmacist-section,
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine .dhm-v16-modules > .dhm-professional{
    grid-column:span 3!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    float:none!important;
    position:relative!important;
    transform:none!important;
    writing-mode:horizontal-tb!important;
  }

  /* Product rail: exactly five equal-width AND equal-height cards. */
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine #dhm-products{
    grid-column:1/-1!important;
    order:50!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine #dhm-products .dhm-sync-products-grid,
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine #dhm-products .dhm-related-products{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:stretch!important;
    gap:12px!important;
    width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
  }
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine #dhm-products .dhm-sync-product,
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine #dhm-products .dhm-related-product,
  body[class*="single-dhms_"] .dhm-single-article.dhm-v22-refine #dhm-products .dhm-related-products > *{
    flex:0 0 calc((100% - 48px)/5)!important;
    width:calc((100% - 48px)/5)!important;
    min-width:calc((100% - 48px)/5)!important;
    max-width:calc((100% - 48px)/5)!important;
    height:355px!important;
    min-height:355px!important;
    max-height:355px!important;
    display:flex!important;
    flex-direction:column!important;
    align-self:stretch!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  body[class*="single-dhms_"] .dhm-single-article #dhm-products .dhm-sync-product > a,
  body[class*="single-dhms_"] .dhm-single-article #dhm-products .dhm-related-product{
    text-decoration:none!important;
  }
  body[class*="single-dhms_"] .dhm-single-article #dhm-products .dhm-sync-product-main img,
  body[class*="single-dhms_"] .dhm-single-article #dhm-products .dhm-related-product img{
    width:86px!important;
    height:86px!important;
    min-height:86px!important;
    max-height:86px!important;
    object-fit:contain!important;
    margin:0 auto 7px!important;
  }
  body[class*="single-dhms_"] .dhm-single-article #dhm-products .dhm-sync-product strong,
  body[class*="single-dhms_"] .dhm-single-article #dhm-products .dhm-related-product strong{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    min-height:42px!important;
    max-height:42px!important;
    line-height:1.65!important;
  }
  body[class*="single-dhms_"] .dhm-single-article #dhm-products .dhm-sync-product p{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    overflow:hidden!important;
    margin:6px 0 0!important;
    font-size:11.5px!important;
    line-height:1.7!important;
  }
}

@media (max-width:1179px){
  /* On tablet/mobile, never retain desktop inline widths from legacy scripts. */
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    writing-mode:horizontal-tb!important;
  }
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support .dhm-v33-support-body{
    max-height:calc(1.9em * 8)!important;
    overflow:hidden!important;
  }
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support.is-expanded .dhm-v33-support-body{
    max-height:none!important;
    overflow:visible!important;
  }
  body[class*="single-dhms_"] .dhm-single-article .dhm-v33-support-toggle{
    display:inline-flex!important;
    margin-top:10px!important;
    border:0!important;
    background:transparent!important;
    color:#157b77!important;
    font-size:12px!important;
    font-weight:800!important;
  }
}

@media (max-width:899px){
  body[class*="single-dhms_"] .dhm-single-article #dhm-products .dhm-sync-product,
  body[class*="single-dhms_"] .dhm-single-article #dhm-products .dhm-related-product{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
}
