/**
 * Full-width Diamond Link inside the theme (header/footer kept).
 * Body class: .wpdl2-full-width-layout
 */

/* Hide duplicate page title where themes print it next to the tool */
body.wpdl2-full-width-layout .entry-header,
body.wpdl2-full-width-layout .entry-title,
body.wpdl2-full-width-layout .page-header .entry-title,
body.wpdl2-full-width-layout .page-title,
body.wpdl2-full-width-layout .wp-block-post-title,
body.wpdl2-full-width-layout h1.wp-block-post-title,
body.wpdl2-full-width-layout .post-title,
body.wpdl2-full-width-layout .wp-block-group.post-header {
	display: none !important;
}

body.wpdl2-full-width-layout #page,
body.wpdl2-full-width-layout #wrapper,
body.wpdl2-full-width-layout .site,
body.wpdl2-full-width-layout #container {
	max-width: none !important;
}

body.wpdl2-full-width-layout .wp-block-post-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.wpdl2-full-width-layout .wpdl2-full-width-theme-wrap,
body.wpdl2-full-width-layout .wpdl2-full-width-entry,
body.wpdl2-full-width-layout .wpdl2-full-width-entry > .wpdl2-app-wrapper,
body.wpdl2-full-width-layout .wpdl2-app-wrapper {
	max-width: none !important;
	width: 100% !important;
	box-sizing: border-box;
}

body.wpdl2-full-width-layout .wpdl2-full-width-entry {
	padding-top: 0;
	margin-top: 0;
}

/* Product detail (SPA route renders .diamond-page inside the mount). */
body.wpdl2-full-width-layout .wpdl2-full-width-theme-wrap:has(.diamond-page) {
	padding-left: 20px;
	padding-right: 20px;
}

body.wpdl2-full-width-layout .wpdl2-full-width-theme-wrap:has(.diamond-page) .wpdl2-app-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.wpdl2-full-width-layout #primary,
body.wpdl2-full-width-layout #content,
body.wpdl2-full-width-layout .site-content,
body.wpdl2-full-width-layout .content-area,
body.wpdl2-full-width-layout .site-main,
body.wpdl2-full-width-layout #main,
body.wpdl2-full-width-layout article.type-page,
body.wpdl2-full-width-layout article.type-page .entry-content {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.wpdl2-full-width-layout .wp-site-blocks .entry-content,
body.wpdl2-full-width-layout .wp-block-group.alignfull,
body.wpdl2-full-width-layout .wp-block-group.has-global-padding {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.wpdl2-full-width-layout .wp-block-group.is-layout-constrained > .wp-block-group__inner-container {
	max-width: none !important;
}

/*
 * Salient theme: fixed/transparent header overlays content without a spacer.
 * Keeps the tool below site chrome on all Diamond Link routes (listing + detail).
 */
body.wpdl2-full-width-layout.theme-salient .wpdl2-full-width-theme-wrap {
	padding-top: 94px;
}

@media only screen and (max-width: 999px) {
	body.wpdl2-full-width-layout.theme-salient .wpdl2-full-width-theme-wrap {
		padding-top: 110px;
	}
}

body.admin-bar.wpdl2-full-width-layout.theme-salient .wpdl2-full-width-theme-wrap {
	padding-top: calc(94px + 32px);
}

@media only screen and (max-width: 782px) {
	body.admin-bar.wpdl2-full-width-layout.theme-salient .wpdl2-full-width-theme-wrap {
		padding-top: calc(110px + 46px);
	}
}
