/*
 * Post types' single pages (app/Views/front/news.php, webinar.php, office.php): what the source's CSS Modules do not
 * cover because the source sets it from React (starting state of the progress bars) or because the CMS body differs
 * (images outside a <figure>: the editor drops <figure>).
 */

/*
 * freedom.css lists ArticlePage.module.css before Hero.module.css, so the article header would take the full-screen
 * height of .fp-Hero-hero; in the source build ArticlePage wins (the header fits its content).
 */
.fp-Hero-hero.fp-ArticlePage-hero {
  min-height: auto;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

/* The reading progress and the contents' fill start empty; assets/freedom/js/singles.js scales them on scroll. */
.fp-ArticlePage-progress {
  transform: scaleX(0);
}

.fp-ArticlePage-tocFill {
  transform: scaleY(0);
}

/* Images of the body: same treatment as the source's `figure img`. */
.fp-ArticlePage-prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 2em 0;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(9, 18, 49, 0.06);
}

.fp-ArticlePage-prose p > img:only-child {
  margin: 0;
}

/* Rich text of an office (its presentation) inside the « Portage salarial local » copy column (not the column's own
   title and button, styled by the source's CSS). */
.fp-AgenceSections-localCopy h2,
.fp-AgenceSections-localCopy h3:not(.fp-AgenceSections-localTitle),
.fp-AgenceSections-localCopy h4 {
  margin: 1.2em 0 0.5em;
  color: var(--fp-ink);
  font-weight: 800;
  line-height: 1.3;
}

.fp-AgenceSections-localCopy ul,
.fp-AgenceSections-localCopy ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.fp-AgenceSections-localCopy a:not(.fp-Button-button) {
  color: var(--fp-coral-strong);
  font-weight: 650;
}

/*
 * Office page: freedom.css lists AgenceSections.module.css before Hero, SimHeroBase and AgencesSections, but in the
 * source build AgenceSections and AgencesSections come last and win on the elements that carry both.
 */
.fp-SimHeroBase-hero.fp-AgencesSections-hero {
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.fp-AgencesSections-split.fp-AgenceSections-localSplit {
  align-items: start;
}

.fp-AgencesSections-details.fp-AgenceSections-cardData {
  margin-top: 0.25rem;
}

.fp-Button-button.fp-AgenceSections-cardPrimary {
  flex: 1 1 100%;
}
