/* Approved section-band scale shared across candidate palettes; card typography stays intact. */
body {
  --ml-band-height:4rem;
  --ml-band-font-size:clamp(1.375rem,2.4vw,1.875rem);
}
body[data-tone] :is(
  #profil > section[aria-labelledby="reperes-personnels"] > h3,
  #profil > #parcours > h3,
  #programme > h2,
  #programme .v3-macro > summary,
  #votes > h2,
  #votes-emblematiques > .vote-topic > h3,
  #justice > h2,
  #justice > .justice-section > h3,
  #sondages > h2
) {
  box-sizing:border-box;
  display:flex;
  align-items:var(--ml-band-align,center);
  flex-direction:var(--ml-band-direction,row);
  justify-content:var(--ml-band-justify,flex-start);
  width:100%;
  min-width:0;
  min-height:var(--ml-band-height);
  height:auto;
  padding:var(--ml-band-padding-block,8px) var(--ml-band-right,14px) var(--ml-band-padding-block,8px) 14px;
  font-family:Inter,system-ui,sans-serif;
  font-size:var(--ml-band-font-size);
  font-weight:800;
  line-height:1.25;
  letter-spacing:.005em;
  white-space:normal;
  overflow-wrap:anywhere;
  border-radius:12px;
}
body[data-tone] #programme[data-programme-v3] .v3-macro > summary {
  gap:10px;
  --ml-band-right:44px;
}
body[data-tone] #programme .v3-macro > summary > h4 {
  min-width:0;
  margin:0;
  font:inherit;
  letter-spacing:inherit;
  color:inherit;
}
#programme .v3-macro > summary > .v3-macro-icon {
  flex:0 0 24px;
  width:24px;
  height:24px;
}
@media(max-width:540px) {
  body { --ml-band-height:5rem; }
}
/* Keep long section labels readable on the narrowest phones without shrinking normal mobile titles. */
@media(max-width:350px) {
  body { --ml-band-font-size:1.25rem; --ml-band-height:6rem; }
}

/* Keep each candidate's programme-status line below the title, including without JS. */
#programme > h2 {
  --ml-band-padding-block:2px;
  --ml-band-align:flex-start;
  --ml-band-direction:column;
  --ml-band-justify:center;
}
body[data-tone] #programme[data-programme-v3] > h2 .programme-status {
  display:block;
  max-width:100%;
  margin-top:2px;
  line-height:1.3;
  white-space:normal;
  overflow-wrap:anywhere;
}
