/* Mobile compatibility layer for the unified editorial cards. */
@media (max-width:560px){
  body.home-brief .premium-production-split{
    padding:28px 14px!important;
    gap:18px!important;
  }
  body.home-brief .premium-production-split .premium-production-card{
    height:auto!important;
    min-height:0!important;
    padding:11px!important;
    border-radius:23px!important;
  }
  body.home-brief .premium-production-split .premium-production-card .premium-media{
    aspect-ratio:16/9!important;
    border-radius:16px!important;
  }
  body.home-brief .premium-production-split .premium-production-card .big-number{
    display:none!important;
  }
  body.home-brief .premium-production-split .premium-production-card .production-panel-content{
    display:flex!important;
    flex-direction:column!important;
    padding:22px 11px 12px!important;
  }
  body.home-brief .premium-production-split .premium-production-card h2{
    min-height:0!important;
    margin:0!important;
    font-size:clamp(2.85rem,13vw,3.45rem)!important;
    line-height:.88!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  body.home-brief .premium-production-split .premium-production-card p{
    min-height:0!important;
    margin-top:14px!important;
    font-size:.89rem!important;
    line-height:1.5!important;
  }
  body.home-brief .premium-production-split .premium-chip-row{
    min-height:0!important;
    gap:7px!important;
    margin-top:15px!important;
  }
  body.home-brief .premium-production-split .premium-production-card .premium-card-cta{
    min-height:50px!important;
    margin-top:18px!important;
    border-radius:12px!important;
  }

  /* The homepage Master card follows the same stacked mobile system as Parcours académique. */
  body.home-brief .premium-academic-section{
    padding:34px 0!important;
  }
  body.home-brief .premium-academic-card{
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:none!important;
    width:100%!important;
    min-width:0!important;
    border-radius:22px!important;
    overflow:hidden!important;
  }
  body.home-brief .premium-academic-card .academic-copy{
    order:1!important;
    width:100%!important;
    min-width:0!important;
    padding:26px 20px 22px!important;
  }
  body.home-brief .premium-academic-card .premium-academic-kicker{
    width:100%!important;
    margin:0 0 16px!important;
  }
  body.home-brief .premium-academic-card .academic-copy h2{
    width:100%!important;
    max-width:none!important;
    margin:0 0 14px!important;
    font-size:clamp(2.35rem,11.7vw,2.95rem)!important;
    line-height:.9!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  body.home-brief .premium-academic-card .academic-score{
    position:relative!important;
    inset:auto!important;
    width:max-content!important;
    min-width:104px!important;
    min-height:0!important;
    margin:0 0 15px!important;
    padding:9px 13px!important;
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:baseline!important;
    justify-content:flex-start!important;
    gap:4px!important;
    border-radius:16px!important;
    font-size:2.35rem!important;
    line-height:1!important;
  }
  body.home-brief .premium-academic-card .academic-score:before{
    display:none!important;
  }
  body.home-brief .premium-academic-card .academic-score span{
    display:inline!important;
    margin:0!important;
    font-size:1.05rem!important;
  }
  body.home-brief .premium-academic-card .premium-memory-label{
    margin:15px 0 7px!important;
    font-size:.8rem!important;
  }
  body.home-brief .premium-academic-card .academic-copy p{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    font-size:.86rem!important;
    line-height:1.55!important;
  }
  body.home-brief .premium-academic-card .premium-academic-cta{
    min-height:50px!important;
    margin-top:18px!important;
    border-radius:12px!important;
    font-size:.66rem!important;
  }
  body.home-brief .premium-academic-card .academic-img{
    order:2!important;
    display:block!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:4/3!important;
    overflow:hidden!important;
    border-top:1px solid rgba(122,87,16,.10)!important;
  }
  body.home-brief .premium-academic-card .academic-img img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center 18%!important;
  }
  body.home-brief .premium-academic-card .premium-academic-ribbon{
    top:0!important;
    right:14px!important;
    width:44px!important;
    height:66px!important;
  }
}
