/*
 * Jackpot Kingdom Midnight — hardening + layout fixes (v1.0.4).
 * Loaded AFTER style.css; uses !important so the parent theme's inline
 * customizer CSS cannot override the dark-theme rules below.
 *
 * v1.0.4 — harder horizontal centering: every candidate container
 * (.ast-container, #primary, .site-main, #main, #content, .site-content)
 * gets explicit margin:0 auto and a bounded content column, so no flex
 * inheritance from Astra can push the layout to the left edge.
 */

/* 1) Horizontal centering of the whole layout ----------------------------- */
html {
	display: block !important;
}
body {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 100% !important;
}
#content .ast-container,
.ast-container,
.ast-container-fluid {
	display: block !important;
	width: 100% !important;
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin: 0 auto !important;
	padding-inline: 24px !important;
	box-sizing: border-box !important;
	float: none !important;
}
#content,
.site-content,
#primary,
.site-main,
#main,
main.site-main {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin: 0 auto !important;
	float: none !important;
	flex: 1 1 100% !important;
	box-sizing: border-box !important;
}
#primary .entry-content,
.site-main .entry-content,
.entry-content {
	display: block !important;
	width: 100% !important;
	max-width: 920px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin: 0 auto !important;
	float: none !important;
	box-sizing: border-box !important;
}

/* 2) Forced dark-theme text colors */
body,
body p,
body .entry-content p,
body .entry-content li,
body main,
body main p,
body main li,
.jk-sheet p,
.jk-section p,
.jk-faq-a p {
	color: #e8e0d0 !important;
	background-color: transparent !important;
}

body h1, body .entry-content h1, .jk-hero h1, .jk-h1,
body h2, body .entry-content h2,
body h3, body .entry-content h3,
body h4, body .entry-content h4 {
	color: #f3efe4 !important;
	background-color: transparent !important;
}

body, #content, .site-content, .entry-content {
	background-color: #14161c !important;
}

/* 3) Overflow safety */
html, body {
	overflow-x: hidden !important;
	max-width: 100% !important;
}
body img, body table, body svg, body iframe {
	max-width: 100% !important;
}
.entry-content > *, #primary > * {
	max-width: 100% !important;
}

/* 4) Centered, bordered content blocks */
.jk-hero, .jk-section, .jk-tablewrap, .jk-calc, .jk-care, .jk-toc, .jk-board-slot, .jk-board-lead {
	margin-left: auto !important;
	margin-right: auto !important;
}
.entry-content .jk-hero,
.entry-content .jk-section,
.entry-content .jk-toc,
.entry-content .jk-calc,
.entry-content .jk-care,
.entry-content .jk-tablewrap,
.entry-content .jk-board-slot,
.entry-content .jk-board-lead {
	max-width: 920px !important;
	margin-inline: auto !important;
	box-sizing: border-box !important;
	border: 1px solid #313848 !important;
	border-radius: 10px !important;
	background-color: #1b1f27 !important;
	padding: 22px 26px !important;
}
.entry-content .jk-hero {
	text-align: center !important;
}
.entry-content .jk-tablewrap {
	padding: 10px !important;
	overflow-x: auto !important;
}
.jk-table {
	width: 100% !important;
	border-collapse: collapse !important;
}
.jk-table th, .jk-table td {
	border: 1px solid #313848 !important;
	padding: 10px 12px !important;
	text-align: left !important;
}
.jk-table th {
	background-color: #222734 !important;
}
.entry-content .jk-tablewrap table,
.entry-content .jk-tablewrap caption {
	color: #e8e0d0 !important;
}

/* 5) Kill duplicated page header: Astra prints its own entry header
 * (title + breadcrumbs) above the fragment which already carries the
 * breadcrumb, H1 and a kicker line repeating the H1. */
.single .entry-header,
.page .entry-header,
.ast-breadcrumbs,
.ast-single-entry-banner,
.page .ast-page-builder-enabled .entry-header,
.entry-content .jk-kicker {
	display: none !important;
}

/* 6) Remove the Astra footer (white strip + "Powered by Astra").
 * A themed dark copyright bar is printed by the child theme instead. */
.site-footer,
#colophon,
.ast-footer-html,
.astra-footer-copyright,
footer.site-footer,
.ast-builder-footer {
	display: none !important;
}
body {
	padding-bottom: 0 !important;
}
.jk-footer-bar {
	background-color: #101218 !important;
	border-top: 1px solid #313848 !important;
	color: #b9b1a2 !important;
	text-align: center !important;
	padding: 26px 16px 30px !important;
	font-size: 14px !important;
	margin-top: 40px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}
.jk-footer-bar a {
	color: #2ec4b6 !important;
	text-decoration: none !important;
}