/* MEDIPHARM Clinical Q&A v10.5 — Featured Full Answer & Equal-Height Hotfix
   Exact parent: v10.4 Homepage Hierarchy & Featured Rotation.
   Goals:
   1) Featured Q&A must render the complete short answer: no clipping, clamp, hidden overflow or inner scrolling.
   2) On desktop, the Featured panel is the height authority; Latest Questions follows that exact height.
   3) Tablet/mobile keep natural height and the v10.0.4 viewport classifier.
*/

/* Full Featured answer on every viewport. */
#mcqa-app.mcqa-app .mcqa-v10-featured-card--text,
#mcqa-app.mcqa-app .mcqa-v10-featured-card--text .mcqa-v10-featured-content,
#mcqa-app.mcqa-app .mcqa-v10-featured-answer,
#mcqa-app.mcqa-app .mcqa-v10-featured-answer .mcqa-answer-blocks,
#mcqa-app.mcqa-app .mcqa-v10-featured-answer .mcqa-answer-paragraph{
  max-height:none!important;
  overflow:visible!important;
}
#mcqa-app.mcqa-app .mcqa-v10-featured-card--text .mcqa-v10-featured-content{
  height:auto!important;
  min-height:0!important;
}
#mcqa-app.mcqa-app .mcqa-v10-featured-answer{
  flex:0 0 auto!important;
  height:auto!important;
  scrollbar-width:auto!important;
}
#mcqa-app.mcqa-app .mcqa-v10-featured-answer .mcqa-answer-paragraph{
  display:block!important;
  white-space:normal!important;
  text-overflow:clip!important;
  -webkit-box-orient:initial!important;
  -webkit-line-clamp:unset!important;
  line-clamp:unset!important;
}

/* Desktop: measure the natural Featured panel, then make both primary panels exactly that height.
   The right column may scroll internally if its supporting list is longer; the Hero answer never scrolls. */
@media (min-width:1200px){
  #mcqa-app.mcqa-app .mcqa-v10-primary-grid{
    align-items:start!important;
    grid-auto-rows:auto!important;
  }
  #mcqa-app.mcqa-app .mcqa-v10-primary-grid > .mcqa-v10-panel{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    align-self:start!important;
  }
  #mcqa-app.mcqa-app .mcqa-v10-featured-panel > #mcqa-featured,
  #mcqa-app.mcqa-app .mcqa-v10-featured-panel .mcqa-v10-featured-card{
    height:auto!important;
    min-height:0!important;
  }
  #mcqa-app.mcqa-app[data-primary-height-synced="1"] .mcqa-v10-primary-grid > .mcqa-v10-panel{
    height:var(--mcqa10-primary-equal-height)!important;
    min-height:var(--mcqa10-primary-equal-height)!important;
    max-height:var(--mcqa10-primary-equal-height)!important;
    align-self:start!important;
    overflow:hidden!important;
  }
  #mcqa-app.mcqa-app[data-primary-height-synced="1"] .mcqa-v10-featured-panel > #mcqa-featured,
  #mcqa-app.mcqa-app[data-primary-height-synced="1"] .mcqa-v10-featured-panel .mcqa-v10-featured-card{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  #mcqa-app.mcqa-app[data-primary-height-synced="1"] .mcqa-v10-latest-panel .mcqa-v10-latest-list{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:thin!important;
  }
}

/* Tablet/mobile: never inherit the desktop synchronized height. */
@media (max-width:1199px){
  #mcqa-app.mcqa-app .mcqa-v10-primary-grid > .mcqa-v10-panel,
  #mcqa-app.mcqa-app .mcqa-v10-featured-panel > #mcqa-featured,
  #mcqa-app.mcqa-app .mcqa-v10-featured-panel .mcqa-v10-featured-card{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
}
