/* Title bar: flex row with arrows flanking the title */
.d4sh-title-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
}

.d4sh-title-inner {
	flex: 1 1 0;
	min-width: 0;
}

/* Title link: inherit color so Divi font settings apply */
.d4sh-title-link {
	color: inherit;
	text-decoration: none;
}

/* Arrows: hidden by default, JS fades in on scroll */
.d4sh-arrow {
	opacity: 0;
	text-decoration: none;
}

/* Nav row: visible by default, JS hides on scroll — wraps to full-width second row */
.d4sh-nav-row {
	flex: 0 0 100%;
	overflow: hidden;
}
.d4sh-nav-row::after {
	content: '';
	display: table;
	clear: both;
}

.d4sh-nav-prev {
	float: left;
	max-width: 50%;
}

.d4sh-nav-next {
	float: right;
	max-width: 50%;
}

/* Nav links: truncate with ellipsis */
.d4sh-nav-link {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-decoration: none;
}

/* Compact column: flex-wrap keeps menu on its own full-width row */
.d4sh-compact {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
}

/* Menu: full-width row, completely untouched */
.d4sh-compact .et_pb_menu {
	flex: 0 0 100% !important;
}

/* Scroll Header module: takes full width of second row */
.d4sh-compact .d4sh_scroll_header {
	flex: 1 1 100%;
	padding: 0 !important;
	margin: 0 !important;
}

/* Divider: collapse — CSS transition driven */
.d4sh-ready .et_pb_divider {
	transition: width 0.4s ease-out, height 0.4s ease-out,
		opacity 0.4s ease-out, margin 0.4s ease-out, padding 0.4s ease-out;
}
.d4sh-compact .et_pb_divider {
	width: 0;
	height: 0;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0;
}

/* Row structural styles for compact mode (margin-bottom driven by JS) */
.d4sh-compact-row.et_pb_row:after {
	margin-bottom: 0;
}

/* Section containing the scroll header: always stay above sibling sections */
.d4sh-header-section.et_pb_section {
	position: relative;
	z-index: 10;
}

/* VB preview: show nav row and arrows visible */
.d4sh-nav-preview {
	opacity: 1 !important;
	max-height: none !important;
	overflow: visible !important;
}
.d4sh-nav-preview .d4sh-nav-link {
	font-size: 12px;
	color: #999;
	cursor: default;
}
.d4sh-arrow-preview {
	opacity: 0.4 !important;
	color: #999;
	cursor: default;
}
