/**
 * Scoped ONLY to news single detail: wrapper `.dda-news-detail-hero` + body.dda-news-single-detail-hero-page.
 * Does not load on archives, pages, or other singles unless body class is present.
 *
 * @package DDA_Westedge
 */

body.dda-news-single-detail-hero-page .dda-news-detail-hero {
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 155px 0 20px;
	overflow: hidden;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

@media only screen and (max-width: 980px) {
	body.dda-news-single-detail-hero-page .dda-news-detail-hero {
		padding-top: 150px;
		padding-bottom: 0;
	}
}

@media only screen and (max-width: 767px) {
	body.dda-news-single-detail-hero-page .dda-news-detail-hero {
		padding-top: 100px;
		padding-bottom: 10px;
	}
}

body.dda-news-single-detail-hero-page .dda-news-detail-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.45) 0%,
		rgba(0, 0, 0, 0.35) 50%,
		rgba(0, 0, 0, 0.5) 100%
	);
}

body.dda-news-single-detail-hero-page .dda-news-detail-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

body.dda-news-single-detail-hero-page .dda-news-detail-hero__title {
	margin: 0 0 0.5rem;
	font-size: 65px;
	line-height: 1.05;
	font-weight: 400;
	font-style: normal;
	font-synthesis: none;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
	-webkit-hyphens: none;
}

@media (max-width: 980px) {
	body.dda-news-single-detail-hero-page .dda-news-detail-hero__title {
		font-size: 40px;
		line-height: 1.1;
	}
}

body.dda-news-single-detail-hero-page .dda-news-detail-hero__meta,
body.dda-news-single-detail-hero-page .dda-news-detail-hero__meta .post-meta {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
}

body.dda-news-single-detail-hero-page .dda-news-detail-hero__meta a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

body.dda-news-single-detail-hero-page .dda-news-detail-hero__meta .author,
body.dda-news-single-detail-hero-page .dda-news-detail-hero__meta .vcard,
body.dda-news-single-detail-hero-page .dda-news-detail-hero__meta a[rel="author"] {
	display: none !important;
}

body.dda-news-single-detail-hero-page .dda-news-detail-hero__bc .dsm_home_icon {
	display: none !important;
}

body.dda-news-single-detail-hero-page .dda-news-detail-hero__bc .dsm_breadcrumbs_wrap,
body.dda-news-single-detail-hero-page .dda-news-detail-hero__bc .dsm_breadcrumbs_wrap a,
body.dda-news-single-detail-hero-page .dda-news-detail-hero__bc .dsm_breadcrumbs_crumb_link,
body.dda-news-single-detail-hero-page .dda-news-detail-hero__bc .dsm_home_text,
body.dda-news-single-detail-hero-page .dda-news-detail-hero__bc .dsm_breadcrumbs_item_current span {
	color: rgba(255, 255, 255, 0.95) !important;
	font-size: 0.95rem !important;
}

body.dda-news-single-detail-hero-page .dda-news-detail-hero__bc .dsm_separator_icon,
body.dda-news-single-detail-hero-page .dda-news-detail-hero__bc .dsm_breadcrumbs_separator .et-pb-icon,
body.dda-news-single-detail-hero-page .dda-news-detail-hero__bc .dda-wire-breadcrumbs--css-sep > li + li::before {
	color: rgba(255, 255, 255, 0.75) !important;
}

body.dda-news-single-detail-hero-page .dda-news-detail-hero__bc ul.dsm_breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

/* Main column: only when this body flag is on (news detail), not all singles */
body.dda-news-single-detail-hero-page.single-post.et_right_sidebar #left-area {
	float: none !important;
	width: 100% !important;
	padding-right: 0 !important;
}

body.dda-news-single-detail-hero-page.single-post.et_right_sidebar #sidebar {
	display: none !important;
}

body.dda-news-single-detail-hero-page.single-post #main-content .container {
	padding-top: 1.5rem !important;
}

body.dda-news-single-detail-hero-page.single-post #main-content .container::before {
	content: none !important;
	display: none !important;
	background: transparent !important;
	width: 0 !important;
}

body.dda-news-single-detail-hero-page.single-post #left-area .et_pb_post > .et_post_meta_wrapper:first-of-type {
	display: none !important;
}

body.dda-news-single-detail-hero-page.single-post .dda-single-fallback--news .entry-header {
	display: none !important;
}

body.dda-news-single-detail-hero-page.single-post .dda-single-fallback--news {
	padding-top: 0;
}

body.dda-news-single-detail-hero-page.single-post .dda-news-single__supporting-docs {
	margin: 2rem 0 0;
	padding: 1.25rem 1.5rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-sizing: border-box;
	max-width: 100%;
}

body.dda-news-single-detail-hero-page.single-post .dda-news-single__supporting-docs-heading {
	margin: 0 0 0.75rem;
	font-size: clamp(1.05rem, 2.5vw, 1.2rem);
	font-weight: 600;
	color: #1e293b;
}

body.dda-news-single-detail-hero-page.single-post .dda-news-single__supporting-docs-list {
	margin: 0;
	padding-left: 1.25rem;
	list-style: disc;
}

body.dda-news-single-detail-hero-page.single-post .dda-news-single__supporting-docs-link {
	color: #b91c1c;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	word-break: break-word;
}

body.dda-news-single-detail-hero-page.single-post .dda-news-single__supporting-docs-link:hover,
body.dda-news-single-detail-hero-page.single-post .dda-news-single__supporting-docs-link:focus-visible {
	color: #991b1b;
}
