/*
 * One existing article, "On-Premise vs Cloud Phone Systems" (post 9012): its body is a legacy Elementor layout that
 * prints its own dark page inside the theme's reading panel. templates/single-post-on-premise-vs-cloud-phone-
 * systems-what-actually-changes.html drops the theme's second H1 and the light panel; this file makes the legacy body
 * sit flush on the dark page canvas at a comfortable reading width. Everything is scoped to .cc-legacy-article, so no
 * other post or page changes. The legacy markup and its own inline styles are not edited (the inline rule is
 * overridden by the higher specificity below, in the open, so removing this file restores the old look).
 */

.cc-legacy-article__head.cc-container {
	max-width: min(56rem, 100%);
	padding-block: var(--cc-space-l) 0;
}

.cc-legacy-article__head .cc-post-meta {
	margin-top: var(--cc-space-s);
}

/* Elementor's container and widget wrappers add their own padding and widths: neutralise them inside this body only. */
.cc-legacy-article__body,
.cc-legacy-article__body .wp-block-post-content,
.cc-legacy-article__body .elementor,
.cc-legacy-article__body .elementor-element.e-con,
.cc-legacy-article__body .elementor-widget-container,
.cc-legacy-article__body .elementor-widget-html {
	max-width: none;
	margin: 0;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
}

.cc-legacy-article__body {
	background: var(--cc-color-canvas);
}

.cc-legacy-article__body .cc-blog-cloudpbx-wrap {
	padding: var(--cc-space-l) var(--cc-space-m) var(--cc-space-section);
	background: transparent;
}

.cc-legacy-article__body .cc-blog-cloudpbx-article {
	max-width: min(56rem, 100%);
	overflow-wrap: break-word;
}

/* One metadata row: the theme's (publication date and categories) is printed above, so the legacy row, which repeated the
   category, is not shown a second time. Its text is left in the stored post. */
.cc-legacy-article__body .cc-blog-cloudpbx-meta {
	display: none;
}

/* Wide parts scroll or wrap inside themselves instead of widening the page. */
.cc-legacy-article__body .cc-blog-cloudpbx-article img,
.cc-legacy-article__body .cc-blog-cloudpbx-article svg {
	max-width: 100%;
	height: auto;
}

.cc-legacy-article__body .cc-blog-cloudpbx-article a:focus-visible {
	outline: var(--cc-focus-width) solid var(--cc-color-focus);
	outline-offset: var(--cc-focus-offset);
}

/* The comparison table's three columns have a content minimum that pushed one row 18 px past the screen at 320 px: let the
   columns shrink and long words wrap inside their cell. */
.cc-legacy-article__body .cc-blog-cloudpbx-compare-row {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.cc-legacy-article__body .cc-blog-cloudpbx-compare-row > div {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* The article's call to action printed white text on the brand orange (contrast 2.8:1, measured). The theme's own button ink is dark on orange.
   The post's own stored styles set the white with !important (seen on live, not in the local fixture), so this must too. */
.cc-legacy-article__body .cc-blog-cloudpbx-btn {
	color: var(--cc-color-action-ink) !important;
}
