/* Layout that the retired tz5-theme-guard.php used to supply through its
   global output buffer.

   The guard is gone (see tz5-theme-guard.php: it rewrote the finished HTML and
   replaced the theme's navigation with three invented categories). Removing it
   also removed the centring it happened to provide, which is why the column
   drifted left. This file restores exactly that centring — and nothing else.

   It says NOTHING about navigation: no `.lvs-nav*` selector appears here.
   Navigation belongs to style.css + header-final.css + nav-dropdown.css.
   Loaded from functions.php after header-final.css. */

/* ---------- One centred column on any canvas -----------------------------
   Astra sets .ast-container to display:flex. Stretching #primary inside a flex
   row is what pins content to the left half of a 1920px screen, so the
   container is forced back to block and every layer below it is centred with
   explicit auto margins. */
#content .ast-container,
.site-content .ast-container,
.ast-container {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
}

#primary,
#main,
.site-main,
main,
#primary.content-area,
.ast-right-sidebar #primary,
.ast-left-sidebar #primary,
.ast-no-sidebar #primary {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100% !important;
	float: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box !important;
}

/* The reading measure. 1180px, centred — the same figure the hero and the
   footer columns use, so the masthead, H1, copy, cards and footer line up. */
.entry-content,
#primary > .entry-content,
.site-main > .entry-content,
#content .entry-content,
.lar-page .entry-content,
.lar-page .ast-container > .entry-content,
.post-content,
article.page,
main > article,
.lar-page .ast-article-single,
.lar-page .ast-article-post,
.lar-page article {
	display: block !important;
	width: 100% !important;
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
	float: none !important;
	box-sizing: border-box !important;
}

/* Paragraphs inside the column stay on the column, not on a narrower measure
   that would look ragged beside full-width cards. */
.entry-content > p,
.entry-content section > p,
.entry-content li {
	max-width: 100% !important;
}

/* Wide screens: the column is centred, and the body never develops a
   horizontal scrollbar because a child overflows. */
html, body {
	overflow-x: hidden;
}

@media (min-width: 1200px) {
	.entry-content,
	#primary > .entry-content,
	.site-main > .entry-content,
	#content .entry-content,
	.lar-page .entry-content {
		max-width: 1180px !important;
	}
}

@media (max-width: 600px) {
	.entry-content,
	#primary > .entry-content,
	.site-main > .entry-content,
	#content .entry-content,
	.lar-page .entry-content,
	article.page,
	main > article {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

/* Footer columns centre too, at the same measure. */
footer.lvs-footer .lvs-wrap,
.lvs-footer .lvs-wrap {
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Astra's own entry header is hidden — the hero band carries the H1. */
.entry-header .entry-title,
header.entry-header,
.ast-single-post .entry-header {
	display: none !important;
}