/*
Theme Name: Deedian Salient Homepage
Description: Salient child theme that replaces only the site front page with the Deedian experience.
Theme URI: https://deedianev.exun.org/
Update URI: https://deedianev.exun.org/
Author: Deedian
Template: salient
Version: 3.3.27
Text Domain: deedian-salient
*/

/* Salient keeps rendering its native shell on ordinary pages. In visual
   builder mode the managed Global Sections become the only visible header and
   footer. The transparent Deedian header overlays the first content block, so
   neither Salient's white spacer nor the Global Section wrapper reserves room. */
body.deedian-global-shell:not(.deedian-homepage) #header-outer,
body.deedian-global-shell:not(.deedian-homepage) #header-space,
body.deedian-global-shell:not(.deedian-homepage) #footer-outer {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
}

body.deedian-global-shell:not(.deedian-homepage) .nectar-global-section.nectar_hook_global_section_after_header_navigation,
body.deedian-global-shell:not(.deedian-homepage) .nectar-global-section.nectar_hook_global_section_footer,
body.deedian-global-shell:not(.deedian-homepage) .nectar-global-section.nectar_hook_global_section_after_header_navigation > .container,
body.deedian-global-shell:not(.deedian-homepage) .nectar-global-section.nectar_hook_global_section_footer > .container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.deedian-global-shell:not(.deedian-homepage) .deedian-global-fragment > .deedian-wp-root {
	min-height: 0 !important;
}

body.deedian-global-shell:not(.deedian-homepage) .deedian-global-fragment-header,
body.deedian-global-shell:not(.deedian-homepage) .deedian-global-fragment-header > .deedian-wp-root {
	height: 0 !important;
	min-height: 0 !important;
	background: #131519;
}

/* Keep the default Salient inner-page canvas in the same dark brand system as
   the Deedian header. Explicit WPBakery row/card backgrounds remain intact. */
body.deedian-global-shell:not(.deedian-homepage),
body.deedian-global-shell:not(.deedian-homepage) #ajax-content-wrap,
body.deedian-global-shell:not(.deedian-homepage) .container-wrap,
body.deedian-global-shell:not(.deedian-homepage) .container-wrap > .main-content {
	background-color: #131519 !important;
	color: #e4e9ed;
}

body.deedian-global-shell:not(.deedian-homepage) .container-wrap > .main-content h1,
body.deedian-global-shell:not(.deedian-homepage) .container-wrap > .main-content h2,
body.deedian-global-shell:not(.deedian-homepage) .container-wrap > .main-content h3,
body.deedian-global-shell:not(.deedian-homepage) .container-wrap > .main-content h4,
body.deedian-global-shell:not(.deedian-homepage) .container-wrap > .main-content h5,
body.deedian-global-shell:not(.deedian-homepage) .container-wrap > .main-content h6 {
	color: #fff;
}

body.deedian-global-shell:not(.deedian-homepage) .container-wrap > .main-content p,
body.deedian-global-shell:not(.deedian-homepage) .container-wrap > .main-content li,
body.deedian-global-shell:not(.deedian-homepage) .container-wrap > .main-content blockquote {
	color: #d7dfe5;
}

@media (max-width: 800px) {
	body.deedian-global-shell:not(.deedian-homepage) .deedian-global-fragment-header,
	body.deedian-global-shell:not(.deedian-homepage) .deedian-global-fragment-header > .deedian-wp-root {
		height: 0 !important;
		min-height: 0 !important;
	}
}

/* Keyboard focus must remain visible against the dark visual system. */
.deedian-wp-root :where(a, button, input, select, textarea, [role="button"], [role="switch"]):focus-visible {
	outline: 2px solid #20b8ff !important;
	outline-offset: 3px !important;
}

/* Keep consent controls useful without obscuring most of a phone viewport. */
@media (max-width: 800px) {
	.deedian-wp-root .cookie__set {
		left: 10px !important;
		right: 10px !important;
		bottom: max(10px, env(safe-area-inset-bottom)) !important;
		width: auto !important;
		max-width: none !important;
		padding: 14px 16px !important;
		border-radius: 16px !important;
	}

	.deedian-wp-root .cookie__set .cookie-set-txt {
		margin-bottom: 10px !important;
		font-size: 12px !important;
		line-height: 1.45 !important;
	}

	.deedian-wp-root .cookie__set .cookie-set-footer {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
	}

	.deedian-wp-root .cookie__set .cookie-btn,
	.deedian-wp-root .cookie__set .hry__btn {
		min-height: 40px !important;
		padding: 8px 12px !important;
		font-size: 12px !important;
		line-height: 1.2 !important;
	}

	.deedian-wp-root .cookie__set .rigth-btns {
		display: flex !important;
		flex: 1 1 auto !important;
		justify-content: flex-end !important;
		gap: 8px !important;
	}
}

@media (max-width: 380px) {
	.deedian-wp-root .cookie__set .cookie-set-footer {
		align-items: stretch !important;
		flex-direction: column !important;
	}

	.deedian-wp-root .cookie__set .rigth-btns {
		width: 100% !important;
	}

	.deedian-wp-root .cookie__set .hry__btn {
		flex: 1 1 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.deedian-wp-root,
	.deedian-wp-root * {
		scroll-behavior: auto !important;
	}

	.deedian-wp-root *,
	.deedian-wp-root *::before,
	.deedian-wp-root *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
