/* CBHB — harmonisation graphique publique 2026-12-01. */
html[data-theme] body .site .standings-table tr.cbhb-standing > td {
 color:var(--cbhb-dark,#083b29)!important;
 font-weight:800!important;
 background:var(--cbhb-accent-soft-bg,#edf6f1)!important;
}
html[data-theme] body .site .standings-table tr.cbhb-standing > td:first-child {
 box-shadow:inset 3px 0 0 var(--cbhb-accent,#72ff00);
}
html[data-theme] body .site .team-live .training-public-row.cbhb-harmonized-training :is(.cbhb-training-day,.cbhb-mini-field,.cbhb-mini-field strong) {
 color:var(--theme-ink,#102d3c)!important;
}
html[data-theme] body .site .cbhb-upcoming-layout .cbhb-upcoming-more-button {
 color:var(--cbhb-dark,#083b29)!important;
 background:var(--cbhb-accent-soft-bg,#edf6f1)!important;
 border-color:var(--cbhb-accent-soft-border,#cbded2)!important;
}
html[data-theme] body .site .cbhb-upcoming-layout .cbhb-upcoming-more-button:hover {
 background:var(--cbhb-button-soft,var(--cbhb-accent-soft-bg,#edf6f1))!important;
}
html[data-theme] body .site .cbhb-upcoming-layout .cbhb-upcoming-more-button:focus-visible {
 outline-color:var(--cbhb-dark,#083b29)!important;
}
/* Cartes nominatives publiques : mêmes variables que les équipes. */
html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card {
 background:linear-gradient(155deg,var(--cbhb-dark,#083b29),var(--cbhb-bg2,#3a9258))!important;
 height:auto!important; min-height:0!important; align-self:start!important;
}
html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card > img {
 background:linear-gradient(135deg,var(--cbhb-bg1,#0f5137),var(--cbhb-bg2,#3a9258))!important;
 width:100%!important;height:276px!important;min-height:0!important;max-height:276px!important;
 aspect-ratio:auto!important;flex:0 0 auto!important;object-fit:contain!important;object-position:center!important;
}
html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card > div {
 background:linear-gradient(155deg,var(--cbhb-dark,#083b29),var(--cbhb-bg2,#3a9258))!important;
 min-height:0!important;height:auto!important;flex:0 0 auto!important;
 border:0!important;border-left:3px solid var(--cbhb-accent,#72ff00)!important;
 color:#fff!important;
}
html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) .person-name-line {
 display:flex!important;flex-wrap:wrap!important;gap:0 .3em!important;
}
html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) .person-name-line > :is(span,strong) {
 display:inline!important;
}
html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) .person-name-line > .person-first-name {color:#fff!important;}
html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) .person-name-line > .person-last-name {color:var(--cbhb-accent,#72ff00)!important;}
/* Classements historiques non validés : conserver les données, retirer l'accès public. */
html body .site .cbhb-history-tabs, html body .site #panel-classements {display:none!important;}

/* CBHB_EQUIPES_GRAPHIQUE_V2 — uniquement les pages equipes.
    Titres : charte CBHB (fond de theme, blanc + accent italique).
    Creneaux : informations non cliquables; tableaux/matchs inchanges. */
body .site article.detail-card > h2.cbhb-staff-heading {
  display:flex!important; flex-wrap:wrap!important; align-items:center!important;
  column-gap:7px!important; row-gap:2px!important;
  min-height:52px!important; width:100%!important; box-sizing:border-box!important;
  margin:0 0 16px!important; padding:12px 16px!important;
  border:0!important; border-radius:14px!important; box-shadow:none!important;
  background:linear-gradient(105deg,var(--cbhb-dark,#082f26),var(--cbhb-bg2,#24576a))!important;
  color:#fff!important; font-size:clamp(16px,2.2vw,24px)!important;
  font-weight:950!important; line-height:1.15!important; letter-spacing:.005em!important;
  text-transform:uppercase!important;
}
body .site article.detail-card > h2.cbhb-staff-heading::before {
  content:''; display:block; flex:none; width:4px; height:23px;
  background:var(--cbhb-accent,#4bc7ff); border-radius:3px;
  margin-right:4px;
}
body .site article.detail-card > h2.cbhb-staff-heading > span {
  color:#fff!important; font:inherit!important; text-transform:inherit!important;
}
body .site article.detail-card > h2.cbhb-staff-heading > em {
  color:var(--cbhb-accent,#4bc7ff)!important; font:inherit!important;
  font-style:italic!important; text-transform:inherit!important;
}

/* CBHB_EQUIPES_PORTRAITS_V4. Respect de la charte active.
   Portraits compacts jusqu'a 820 px, pas de recadrage d'illustration officielle. */
@media (max-width:820px){
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card{
  display:grid!important;
  grid-template-columns:minmax(105px,34%) minmax(0,1fr)!important;
  flex-direction:row!important;
  align-items:stretch!important;
  gap:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-height:156px!important;
  height:auto!important;
  overflow:hidden!important;
 }
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card > img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:168px!important;
  min-height:168px!important;
  max-height:168px!important;
  /* CBHB_PORTRAITS_SANS_RECADRAGE_V5 : montrer les portraits entiers, sans couper les visages. */
  object-fit:contain!important;
  object-position:center center!important;
  margin:0!important;
  padding:0!important;
 }
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card > img[src*="/assets/cbhb-officiel/entraineur-"],
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card > img.public-profile-illustration,
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card > img.cbhb-default-illustration{
  object-fit:contain!important;
  object-position:center!important;
 }
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card > div{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  padding:12px 14px!important;
  border-left:3px solid var(--cbhb-accent,#4bc7ff)!important;
  border-top:0!important;
 }
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card h3.person-name-line{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:0 .3em!important;
  font-size:clamp(15px,3.7vw,19px)!important;
  line-height:1.2!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
 }
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card .person-first-name,
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card .person-last-name{
  white-space:normal!important;
 }
}
@media (max-width:340px){
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card{
  grid-template-columns:105px minmax(0,1fr)!important;
 }
 html body .site :is([data-club-coaches],[data-referees],[data-referee-lead]) > article.public-profile-card > img{
  height:158px!important;
  min-height:158px!important;
  max-height:158px!important;
 }
}

@media(max-width:560px){body .site article.detail-card > h2.cbhb-staff-heading{min-height:46px!important;padding:11px 12px!important;font-size:clamp(15px,4.1vw,19px)!important;column-gap:5px!important;}}
