/* CineMedios Élite · Evergreen Sidebar adapter
 * Trial scope: normalize only the internal width contract of legacy evergreen
 * HTML living inside Content - Primary Sidebar. The WordPress/theme layout owns
 * the outer column; the editorial HTML keeps its visual language.
 */

body.single.cm-align-content-sidebar .cm-evergreen-reference {
	--cm-evergreen-inline-space: 0px;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	box-sizing: border-box;
}

/* Keep the authored reading gutters inside the primary column. This matches
 * CoverNews Pro: the outer grid owns the sidebar; the editorial text still
 * retains its 17px inset and the hero copy its 21px inset. */
body.single.cm-align-content-sidebar .cm-evergreen-reference :where(.cm-main,.cm-reading) {
	width: min(860px,calc(100% - 34px)) !important;
	max-width: none !important;
	margin-inline: auto !important;
	box-sizing: border-box;
}
body.single.cm-align-content-sidebar .cm-evergreen-reference .cm-hero-copy {
	width: min(920px,calc(100% - 42px)) !important;
	max-width: none !important;
	margin-inline: auto !important;
	box-sizing: border-box;
}

/* The opening support image keeps the same safe inset. Figures inside the
 * reading column stay full-width within that reading column. */
body.single.cm-align-content-sidebar .cm-evergreen-reference .cm-featured {
	width: min(1080px,calc(100% - 34px)) !important;
	max-width: none !important;
	margin-inline: auto !important;
	box-sizing: border-box;
}

/* Do not change typography, colors, section rhythm, hero treatment or modules. */
