/* WordPress-export inner pages: match new site theme (dark + readable type) */
body.hwm-page {
	margin: 0;
	background: var(--bg-deep);
	color: var(--text);
}

/* No gap below injected shell: theme reserves ~98–196px for removed WP header + .middle_content { padding-top: 100px } */
body.hwm-page #page,
body.hwm-page #main {
	background: transparent;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.hwm-page #middle {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.hwm-page #page.cmsmasters_heading_under_header #middle,
body.hwm-page #page.cmsmasters_heading_after_header #middle,
body.hwm-page #page.enable_header_top #middle,
body.hwm-page #page.enable_header_bottom #middle,
body.hwm-page #page.fixed_header #middle {
	padding-top: 0 !important;
}

body.hwm-page #middle .headline,
body.hwm-page #middle .headline_outer,
body.hwm-page #middle .headline_inner {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.hwm-page #middle .middle_inner {
	padding-top: 0.35rem !important;
	padding-bottom: 2.5rem;
}

/* Theme: .middle_content { padding: 100px 0 0 } — remove phantom band above grids/sliders */
body.hwm-page #middle .middle_content {
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
}

body.hwm-page #middle .middle_content:empty {
	display: none !important;
}

body.hwm-page #middle .content_wrap.fullwidth .middle_content {
	padding-bottom: 0 !important;
}

/* First block row follows a short .content_wrap (empty middle_content) — remove extra top inset */
body.hwm-page #middle .middle_inner > .content_wrap + .cmsmasters_row .cmsmasters_row_outer_parent {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.hwm-page #slide_top {
	filter: invert(1);
	opacity: 0.85;
}

/*
 * Theme default: .middle_inner { color: #797979; background: #fff } from assets/site.css
 * → gray-on-white bands inside an otherwise dark page. Force main column to dark prose.
 */
.hwm-page #middle,
.hwm-page #middle .middle_inner {
	color: var(--text) !important;
	background-color: transparent !important;
}

.hwm-page #middle p,
.hwm-page #middle li,
.hwm-page #middle td,
.hwm-page #middle th,
.hwm-page #middle .cmsmasters_text,
.hwm-page #middle blockquote,
.hwm-page #middle .cmsmasters_text p {
	color: rgba(230, 237, 243, 0.92) !important;
	font-family: var(--font) !important;
}

.hwm-page #middle a {
	color: var(--accent) !important;
}

.hwm-page #middle a:hover {
	color: #f0d040 !important;
}

/* Headings: beat per-page inline #cmsmasters_heading_* … { color:#000 } */
.hwm-page #middle h1.cmsmasters_heading,
.hwm-page #middle h2.cmsmasters_heading {
	color: var(--accent) !important;
	font-family: var(--font) !important;
}

.hwm-page #middle h3.cmsmasters_heading,
.hwm-page #middle h4.cmsmasters_heading,
.hwm-page #middle h5.cmsmasters_heading,
.hwm-page #middle h6.cmsmasters_heading {
	color: var(--text) !important;
	font-family: var(--font) !important;
}

.hwm-page #middle .cmsmasters_heading a {
	color: inherit !important;
}

/* Section rows: drop white / light-gray strip backgrounds from export */
.hwm-page #middle .cmsmasters_row_outer_parent,
.hwm-page #middle .cmsmasters_row_outer,
.hwm-page #middle .cmsmasters_row_inner {
	background-color: transparent !important;
}

.hwm-page #middle [id^="cmsmasters_row_"].cmsmasters_row {
	background-color: transparent !important;
}

/*
 * Featured blocks, icon boxes, etc.: theme sets background-color:#ffffff on these
 * while we force light body text → unreadable. Clear white shells so --bg-deep shows through.
 */
.hwm-page #middle .cmsmasters_featured_block,
.hwm-page #middle .cmsmasters_featured_block .featured_block_inner,
.hwm-page #middle .cmsmasters_featured_block .featured_block_text,
.hwm-page #middle .cmsmasters_icon_box.cmsmasters_icon_box_top,
.hwm-page #middle .cmsmasters_icon_box.cmsmasters_icon_box_left,
.hwm-page #middle .cmsmasters_img.with_caption,
.hwm-page #middle .cmsmasters_text,
.hwm-page #middle .cmsmasters_content_slider,
.hwm-page #middle .cmsmasters_content_slider_item,
.hwm-page #middle .cmsmasters_owl_slider_item,
.hwm-page #middle .content_wrap,
.hwm-page #middle .middle_content {
	background-color: transparent !important;
}

.hwm-page #middle .layoutArea,
.hwm-page #middle .layoutArea .column,
.hwm-page #middle .page .section {
	background-color: transparent !important;
	color: inherit !important;
}

/* Elementor (when present): strip default light section fills inside main content */
.hwm-page #middle .e-con,
.hwm-page #middle .e-con-inner,
.hwm-page #middle .elementor-section .elementor-container,
.hwm-page #middle .elementor-widget-container {
	background-color: transparent !important;
}

/* Dividers */
.hwm-page #middle .cmsmasters_divider {
	border-bottom-color: var(--border) !important;
}
