/* Loaded only on editorial pages, at smartphone widths. */
.entry-content {
	--paillard-section-inset: 32px;
	--paillard-section-gap: 48px;
	--paillard-content-gap: 24px;
}

/* Full-width sections provide their own spacing; do not add Gutenberg's block margin. */
.entry-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

.entry-content > .project-selector,
.entry-content > .benefits-section,
.entry-content > .history-section {
	padding-block: var(--paillard-section-inset);
}

.entry-content > .media-showcase {
	padding-top: var(--paillard-section-inset);
}

.entry-content > .media-showcase:has(
	+ .history-section
) {
	padding-bottom: var(--paillard-section-inset);
}

.entry-content > .benefits-section,
.entry-content > .media-showcase,
.entry-content > .project-selector {
	row-gap: var(--paillard-content-gap);
}

.entry-content > .history-section + .realisations-carousel,
.entry-content > .atelier-reviews + .realisations-carousel {
	padding-top: var(--paillard-section-inset);
}

body.home .entry-content > .realisations-carousel + .atelier-reviews {
	margin-block-start: var(--paillard-section-inset);
}

/* Leave the space reserved for the mountain silhouettes and the hero images intact. */
.entry-content > .vehicle-range-config--primary,
.entry-content > .auto-features,
.entry-content > .vehicle-range-expertise {
	padding-top: var(--paillard-section-inset);
}

.entry-content > .vehicle-range-config--secondary {
	padding-bottom: var(--paillard-section-inset);
}

.entry-content > .vehicle-range-knowhow,
.entry-content > .auto-knowhow {
	padding-block: var(--paillard-section-inset) var(--paillard-section-gap);
}

.vehicle-range-knowhow .vehicle-range-knowhow__grid,
.auto-knowhow .auto-knowhow__grid {
	margin-top: var(--paillard-content-gap);
}

body.page-template-template-gamme-vehicules .entry-content > .realisations-carousel,
body.page-template-template-autoconstruction .entry-content > .realisations-carousel {
	padding-bottom: var(--paillard-section-inset);
}

.entry-content > .vehicle-range-faq {
	padding-block: var(--paillard-section-inset);
}

.entry-content > .vehicle-range-faq--compact-heading {
	padding-top: 16px;
}

.vehicle-range-faq .vehicle-range-faq__items {
	margin-block: var(--paillard-content-gap);
}

/* Same approach to the three public forms, without changing controls or their layout. */
.entry-content > .paillard-form-section {
	padding-block: var(--paillard-section-inset) var(--paillard-content-gap);
}

.entry-content > .paillard-form-section > p {
	margin-bottom: var(--paillard-content-gap);
}

.entry-content:has(
	> .paillard-form-section:last-child
) {
	padding-bottom: 0;
}

/* Text-only pages: size the banner to its heading and group each section visually. */
.page-hero--without-image {
	min-height: 0;
	padding-block: 26px 24px;
}

.page-hero--without-image .page-hero__title {
	padding-top: 0;
}

.page-hero--without-image .page-hero__transition {
	display: none;
}

.page-hero--without-image + .entry-content > h2 {
	margin-block: var(--paillard-section-inset) 0;
}

.page-hero--without-image + .entry-content > h2 + p,
.page-hero--without-image + .entry-content > h2 + ul {
	margin-top: 12px;
}

.page-hero--without-image + .entry-content > p + p,
.page-hero--without-image + .entry-content > p + ul,
.page-hero--without-image + .entry-content > ul + p {
	margin-top: 16px;
}
