/* Saison 5 seulement — Récap historique; aucun impact sur les autres pages. */
#recap .recap-table tbody td.s5-merged-eviction {
 background:#bf9000!important; color:#fff!important; font-weight:800;
 text-align:left; padding-left:14px; white-space:normal; line-height:1.5;
}
#recap .recap-table tbody td:not([style]):not(.recap-evicted) { background:transparent; }
#recap .recap-legends.s5-legend-cards {
 display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
 gap:16px; padding:20px 0 18px; align-items:stretch;
}
#recap .s5-legend-cards .recap-legend-block { min-width:0; }
#recap .s5-legend-cards .recap-colour-items {gap:12px}
#recap .s5-legend-cards .recap-swatch.s5-active {background:#0b2943}
#recap .s5-legend-cards .recap-swatch.s5-evicted {background:#bf9000}
#recap .s5-legend-cards .recap-swatch.s5-return {background:#fff2cc}
#recap .s5-legend-cards .recap-swatch.s5-champions {background:#5b9bd5}
#recap .s5-legend-cards .recap-swatch.s5-public {background:#ffff00}
@media(max-width:700px){#recap .recap-legends.s5-legend-cards{grid-template-columns:1fr}}

/* V19.2 : harmonisation visuelle du Récap principal avec les Archives V17.4.
   Limité à la page Récap de la saison 5, sans modifier les autres pages. */
@media (min-width: 1050px) {
  body[data-page="recap.html"] #recap .recap-section > .recap-scroll {
    width:100%;max-width:100%;box-sizing:border-box;
    padding:24px 0 20px!important;overflow-x:visible;
  }
  body[data-page="recap.html"] #recap .recap-table {
    display:table;width:100%!important;min-width:0!important;
    margin:0!important;table-layout:fixed!important;
    --recap-name:17%;--recap-col:6.384615%;
  }
  body[data-page="recap.html"] #recap .recap-table thead th.recap-name-heading,
  body[data-page="recap.html"] #recap .recap-table tbody th.recap-name {
    width:17%!important;min-width:0!important;max-width:none!important;
  }
  body[data-page="recap.html"] #recap .recap-table thead th.recap-angled,
  body[data-page="recap.html"] #recap .recap-table tbody td:not(.recap-name) {
    width:auto!important;min-width:0!important;max-width:none!important;
  }
  body[data-page="recap.html"] #recap .recap-table tbody td:not(.recap-name) {
    padding:8px 2px!important;font-size:clamp(12px,0.95vw,15px)!important;
    overflow-wrap:anywhere;line-height:1.2;
  }
  body[data-page="recap.html"] #recap .recap-table tbody td.s5-merged-eviction {
    text-align:left;padding-left:12px!important;overflow-wrap:normal;
  }
  body[data-page="recap.html"] #recap .recap-legends.s5-legend-cards {
    width:100%;max-width:100%;box-sizing:border-box;
    padding:12px 0 18px;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  }
}
body[data-page="recap.html"] #recap .recap-legends.s5-legend-cards {
  padding-left:0;padding-right:0;
}

/* V19.3 — copie des mesures exactes du Récap Archives V17.4.
   Table et légendes alignées à 16px des bords intérieurs de leur panneau.
   Sur ordinateur, la table utilise 18% pour les noms, 82% pour les 13 colonnes. */
@media (min-width:1050px) {
 body[data-page="recap.html"] #recap .recap-section > .recap-scroll {
   box-sizing:border-box!important;width:calc(100% - 32px)!important;
   max-width:calc(100% - 32px)!important;margin-left:16px!important;
   margin-right:16px!important;padding:24px 0 12px!important;
   overflow-x:clip!important;
 }
 body[data-page="recap.html"] #recap .recap-section .recap-table {
   box-sizing:border-box!important;width:100%!important;min-width:0!important;
   max-width:100%!important;margin:0!important;table-layout:fixed!important;
   border-spacing:0!important;
 }
 body[data-page="recap.html"] #recap .recap-section .recap-table th,
 body[data-page="recap.html"] #recap .recap-section .recap-table td {
   box-sizing:border-box!important;min-width:0!important;max-width:none!important;
   padding:9px 3px!important;white-space:normal!important;
   overflow-wrap:break-word!important;
 }
 body[data-page="recap.html"] #recap .recap-table thead th:first-child,
 body[data-page="recap.html"] #recap .recap-table tbody th:first-child {
   width:18%!important;min-width:0!important;padding-left:7px!important;text-align:left;
 }
 body[data-page="recap.html"] #recap .recap-table thead th:not(:first-child),
 body[data-page="recap.html"] #recap .recap-table tbody td:not(:first-child):not([colspan]) {
   width:6.307692%!important;min-width:0!important;
 }
 body[data-page="recap.html"] #recap .recap-table tbody td:not(:first-child) {
   font-size:clamp(11px,.85vw,14px)!important;line-height:1.15!important;
 }
 body[data-page="recap.html"] #recap .recap-table tbody th:first-child {
   font-size:clamp(12px,.92vw,15px)!important;line-height:1.2!important;
 }
 body[data-page="recap.html"] #recap .recap-legends.s5-legend-cards {
   box-sizing:border-box!important;width:calc(100% - 32px)!important;
   max-width:calc(100% - 32px)!important;margin-left:16px!important;
   margin-right:16px!important;padding:12px 0 18px!important;
 }
}

/* V19.5 — le panneau Récap suit la largeur fluide du conteneur principal,
   comme dans les Archives. Suppression du plafond artificiel de V19.4. */
@media(min-width:1050px){
 body[data-page="recap.html"] #recap .recap-section {
   width:100%!important;max-width:none!important;
   margin-left:auto!important;margin-right:auto!important;
 }
 body[data-page="recap.html"] #recap .recap-section > .recap-scroll,
 body[data-page="recap.html"] #recap .recap-legends.s5-legend-cards {
   width:calc(100% - 32px)!important;max-width:calc(100% - 32px)!important;
   margin-left:16px!important;margin-right:16px!important;
 }
}

/* V19.6 - Ajustement fin des marges interieures du Recap principal.
   Le panneau conserve sa largeur V19.5; tableau et legendes restent alignes. */
@media (min-width:1050px) {
 body[data-page="recap.html"] #recap .recap-section > .recap-scroll,
 body[data-page="recap.html"] #recap .recap-legends.s5-legend-cards {
   width:calc(100% - 64px)!important;
   max-width:calc(100% - 64px)!important;
   margin-left:32px!important;
   margin-right:32px!important;
 }
}

/* V20.2 : même largeur de Récap que dans les Archives, saison 5. */
@media(min-width:1050px){
 body[data-page="recap.html"] #recap .recap-section {width:100%!important;max-width:none!important;}
 body[data-page="recap.html"] #recap .recap-section > .recap-scroll,
 body[data-page="recap.html"] #recap .recap-legends.s5-legend-cards {
  box-sizing:border-box!important;width:calc(100% - 64px)!important;max-width:calc(100% - 64px)!important;
  margin-left:32px!important;margin-right:32px!important;
 }
 body[data-page="recap.html"] #recap .recap-table {width:100%!important;min-width:0!important;table-layout:fixed!important;}
 body[data-page="recap.html"] #recap .recap-table th:first-child {width:18%!important;}
 body[data-page="recap.html"] #recap .recap-table thead th:not(:first-child),
 body[data-page="recap.html"] #recap .recap-table tbody td:not(:first-child) {width:6.833333%!important;}
}
body[data-page="recap.html"] #recap .recap-table tbody td[style],
body[data-page="recap.html"] #recap .recap-table tbody th[style] {background-image:none!important;}
