/*
Theme Name: PapaLab
Author: PapaLab
Description: Le laboratoire PapaLab, avec blocs éditables et import des contenus version 50.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: papalab
*/
.papalab-form-status{padding:1rem;border:1px solid #8972d8;margin:1rem 0}.papalab-new-article{max-width:1000px;margin:3rem auto;padding:0 24px}.papalab-new-article h1{font-family:Nunito,sans-serif;color:#14213d}.papalab-admin-note{padding:12px;background:#e9e3ff}.comment-list{list-style:none;padding:0}.comment-body{margin:1rem 0;padding:1rem;border:1px solid #ded8d0}.comment-form input:not([type=checkbox]),.comment-form textarea{width:100%;padding:12px}.admin-bar .site-header{top:32px}

/* Homepage mobile: vertically center PapaScore badges and the manifesto logo
   across the full article card (copy + CTA). */
@media (max-width:680px){
  .featured-article__visual{
    grid-area:1 / 1 / 3 / 2;
    align-self:center;
    justify-self:center;
  }

  /* Chicago: larger verdict badges displayed side by side. */
  body.postid-50 .quick-verdict{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:18px;
  }
  body.postid-50 .quick-verdict__icon,
  body.postid-50 .quick-verdict > div:nth-child(2){
    grid-column:1 / -1;
  }
  body.postid-50 .quick-verdict__badges{
    grid-column:1;
    margin:28px 0 0 !important;
    align-self:start;
    justify-self:center;
  }
  body.postid-50 .quick-verdict__badges img,
  body.postid-50 .quick-score .papascore-badge--quick{
    width:142px !important;
    max-width:100% !important;
    height:auto !important;
  }
  body.postid-50 .quick-score{
    grid-column:2;
    margin:28px 0 0 !important;
    align-self:start;
    justify-self:center;
    text-align:center;
  }
  body.postid-50 .quick-score .papascore-badge--quick{
    display:block;
    margin:0 auto;
  }

  /* Give the contextual Orfeo bridge a little breathing room before the copy. */
  body.postid-50 #pied .article-bridge{
    margin-bottom:30px !important;
  }
}

/* PapaLab: consistent editorial medals on Orfeo, Toronto and Chicago
   across French posts and English/German translated pages. */
body:is(
  .postid-48, .postid-36, .postid-50,
  .page-id-157, .page-id-191, .page-id-192,
  .page-id-245, .page-id-261, .page-id-262
){
  --papalab-medal-size:190px;
  --papalab-medal-gap:24px;
}
body:is(
  .postid-48, .postid-36, .postid-50,
  .page-id-157, .page-id-191, .page-id-192,
  .page-id-245, .page-id-261, .page-id-262
) .quick-verdict__badges{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:var(--papalab-medal-gap) !important;
  flex-wrap:nowrap !important;
}
body:is(
  .postid-48, .postid-36, .postid-50,
  .page-id-157, .page-id-191, .page-id-192,
  .page-id-245, .page-id-261, .page-id-262
) .quick-verdict__badges img{
  display:block !important;
  width:var(--papalab-medal-size) !important;
  max-width:100% !important;
  height:auto !important;
  aspect-ratio:1;
  object-fit:contain;
}
body:is(
  .postid-48, .postid-36, .postid-50,
  .page-id-157, .page-id-191, .page-id-192,
  .page-id-245, .page-id-261, .page-id-262
) .quick-verdict__badges:has(img + img) img{
  max-width:calc((100% - var(--papalab-medal-gap))/2) !important;
}
body:is(
  .postid-48, .postid-36, .postid-50,
  .page-id-157, .page-id-191, .page-id-192,
  .page-id-245, .page-id-261, .page-id-262
) .quick-score .papascore-badge--quick,
body:is(
  .postid-48, .postid-36, .postid-50,
  .page-id-157, .page-id-191, .page-id-192,
  .page-id-245, .page-id-261, .page-id-262
) .rating-panel__summary .papascore-badge--panel{
  display:block !important;
  width:var(--papalab-medal-size) !important;
  max-width:100% !important;
  height:auto !important;
  margin-left:auto !important;
  margin-right:auto !important;
  aspect-ratio:1;
  object-fit:contain;
}
/* The Orfeo's two large in-article images become a compact medal pair. */
body:is(.postid-48, .page-id-157, .page-id-245) .badge-pair{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:var(--papalab-medal-gap) !important;
}
body:is(.postid-48, .page-id-157, .page-id-245) .badge-pair > figure{
  flex:0 1 var(--papalab-medal-size) !important;
  width:var(--papalab-medal-size) !important;
  max-width:calc((100% - var(--papalab-medal-gap))/2) !important;
  min-width:0 !important;
}
body:is(.postid-48, .page-id-157, .page-id-245) .badge-pair > figure img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:1;
  object-fit:contain;
}
@media(max-width:680px){
  body:is(
    .postid-48, .postid-36, .postid-50,
    .page-id-157, .page-id-191, .page-id-192,
    .page-id-245, .page-id-261, .page-id-262
  ){
    --papalab-medal-size:160px;
    --papalab-medal-gap:16px;
  }
}
