/* MEDIPHARM Clinical Q&A v10.5.9 — Taxonomy Card Content Full-Width Hotfix
   Exact parent: v10.5.8 Desktop Taxonomy Grid Reflow Hotfix.
   Scope: taxonomy/topic page layout only. No corpus, JS runtime, importer, REST, routing or access logic changes.

   Root cause:
   v10.5.8 correctly expanded one-question cards to the full grid row, but also retained
   a 104ch max-width on the expanded answer blocks. On wide desktop canvases this made
   the outer card full-width while the clinical answer remained visually compressed on
   the left, creating the appearance of an incomplete-width card.
*/

/* The card is full width; its question and answer content must use that width too. */
#mcqa-app.mcqa-app .mcqa-tax-section .mcqa-magazine-grid>.mcqa-entry{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

#mcqa-app.mcqa-app .mcqa-tax-section .mcqa-magazine-grid>.mcqa-entry>.mcqa-entry-question,
#mcqa-app.mcqa-app .mcqa-tax-section .mcqa-magazine-grid>.mcqa-entry>.mcqa-entry-answer{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

#mcqa-app.mcqa-app .mcqa-tax-section .mcqa-entry-answer>.mcqa-answer-blocks,
#mcqa-app.mcqa-app .mcqa-tax-section .mcqa-entry-answer .mcqa-answer-paragraph{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}

#mcqa-app.mcqa-app .mcqa-tax-section .mcqa-entry-actions{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}

/* One-question and orphan rows continue to span the complete grid row, but no longer
   inherit the v10.5.8 104ch content cap. */
@media (min-width:1200px){
  #mcqa-app.mcqa-app .mcqa-tax-section .mcqa-magazine-grid>.mcqa-entry:only-child,
  #mcqa-app.mcqa-app .mcqa-tax-section .mcqa-magazine-grid>.mcqa-entry:nth-child(odd):last-child:not(:only-child){
    grid-column:1/-1!important;
  }

  #mcqa-app.mcqa-app .mcqa-tax-section .mcqa-magazine-grid>.mcqa-entry:only-child .mcqa-entry-answer .mcqa-answer-blocks,
  #mcqa-app.mcqa-app .mcqa-tax-section .mcqa-magazine-grid>.mcqa-entry:nth-child(odd):last-child:not(:only-child) .mcqa-entry-answer .mcqa-answer-blocks{
    width:100%!important;
    max-width:none!important;
  }
}

/* Tablet/mobile keep the same one-column geometry and full-width content contract. */
@media (max-width:1199px){
  #mcqa-app.mcqa-app .mcqa-tax-section .mcqa-magazine-grid>.mcqa-entry,
  #mcqa-app.mcqa-app .mcqa-tax-section .mcqa-entry-question,
  #mcqa-app.mcqa-app .mcqa-tax-section .mcqa-entry-answer,
  #mcqa-app.mcqa-app .mcqa-tax-section .mcqa-entry-answer>.mcqa-answer-blocks{
    width:100%!important;
    max-width:none!important;
  }
}
