/* Page-specific follow-up for the 12 November 2026 HWC requests. */

/* Newsletter: center the label over its heading and keep the brand turquoise. */
body.page-body--newsletter .nl-voices__eyebrow {
  display: block;
  text-align: center;
}

body.page-body--newsletter .nl-voices .nl-section-heading,
body.page-body--newsletter .nl-voices .nl-section-subtitle {
  margin-inline: auto;
  text-align: center;
}

/* These two introduction lines sit outside .section-title; the general body
   paragraph rule otherwise justifies them and overrides the parent alignment. */
body.page-body--newsletter main .nl-intro__text {
  text-align: center;
}

/* The requested crop shows more of the volunteer group below the fade. */
body.page-body--benevoles .page-hero {
  background-position: 0 0, center 43% !important;
}

@media (max-width: 600px) {
  body.page-body--benevoles .page-hero {
    background-size: auto, auto 112% !important;
    background-position: 0 0, center 90% !important;
  }
}

/* EPOK 2026: align podium photos, open the gap above the program cards,
   and center Jossigny on the last row in both team-grid layouts. */
html[lang="fr"] body.page-body:has(.epok-hero) .epok-hero,
html[lang="fr"] body.page-body--epok-2026 .epok26-hero {
  background-image: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.28) 30%, rgba(34,49,63,.08) 58%, rgba(252,252,252,.64) 86%, #fcfcfc 100%), url('/assets/images/epok/epok-rubrique-2026.jpg') !important;
}

html[lang="fr"] body.page-body--epok-2026 .epok26-hero {
  background-image: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.28) 30%, rgba(34,49,63,.08) 58%, rgba(252,252,252,.64) 86%, #fcfcfc 100%), url('/assets/images/site-updates/20261001/epok-image-rubrique.webp') !important;
}

.epok-program .epok26-lead {
  margin-bottom: 2rem;
}

body.page-body--epok-2026 .epok26-podium {
  align-items: stretch;
}

body.page-body--epok-2026 .epok26-place {
  display: flex;
  flex-direction: column;
}

body.page-body--epok-2026 .epok26-place__copy {
  flex: 1;
}

body.page-body--epok-2026 .epok26-teams > .epok26-team:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 2rem) / 3);
}

@media (max-width: 820px) {
  body.page-body--epok-2026 .epok26-teams > .epok26-team:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

@media (min-width: 561px) and (max-width: 820px) {
  body.page-body--epok-2026 .epok26-podium > .epok26-place:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 561px) and (max-width: 820px) {
  body.page-body--epok-2026 .epok26-teams > .epok26-team:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 560px) {
  body.page-body--epok-2026 .epok26-teams > .epok26-team:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

/* The generic body rule justifies paragraphs, so this page's centered
   announcement needs a more specific selector. */
body.page-body main .epok27-content p {
  text-align: center !important;
}
