/* Single blog posts — pixel units (theme html { font-size: 10px }). */

body.single-post .single-post-layout > .row {
	margin-top: 0 !important;
	align-items: stretch;
}

body.single-post .single-post-layout-left .single-post-hero {
	margin-bottom: 24px;
}

/* Featured images are listing-card only — never in the post body. */
body.single-post .sj-single-featured,
body.single-post .entry-thumbnail,
body.single-post.category-interviews .sj-single-featured {
	display: none !important;
}

body.single-post .sj-single-featured__img,
body.single-post .sj-single-featured img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
}

body.single-post .sj-single-rail-sticky {
	position: sticky;
	top: 100px;
	z-index: 6;
}

body.single-post .sj-single-rail-email {
	position: relative;
	z-index: 7;
	margin: 0 0 16px;
	flex: none;
	min-width: 0;
	width: 100%;
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	border: 1px solid #e8ecf2;
	box-shadow: 0 12px 28px rgba(8, 20, 34, 0.1);
	box-sizing: border-box;
}

body.single-post .sj-single-rail-ad {
	position: relative;
	z-index: 5;
}

/* Email + ad both stick as one stack; disable the old first-widget-only sticky. */
@media (min-width: 768px) {
	body.single-post .single-post-layout-right .widget:first-child {
		position: static !important;
		top: auto !important;
	}
}

/* Widget Options hides the weekly-jobs GF on mobile — force it visible. */
body.single-post .sj-single-rail-email .extendedwopts-hide,
body.single-post .sj-single-rail-email .extendedwopts-mobile,
body.single-post .single-post-hero-cta .extendedwopts-hide,
body.single-post .single-post-hero-cta .extendedwopts-mobile,
body.single-post .gform_widget.extendedwopts-hide.extendedwopts-mobile {
	display: block !important;
	visibility: visible !important;
	height: auto !important;
	overflow: visible !important;
}

body.single-post .sj-single-rail-email .single-post-cta-widget,
body.single-post .sj-single-rail-email .gform_widget {
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.single-post .sj-single-rail-email .gform_wrapper,
body.single-post .sj-single-rail-email form {
	margin: 0 !important;
}

body.single-post .sj-single-rail-email input[type="email"],
body.single-post .sj-single-rail-email input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #d3dae5;
	border-radius: 8px;
	font-size: 15px;
}

body.single-post .sj-single-rail-email .gform_button,
body.single-post .sj-single-rail-email input[type="submit"],
body.single-post .sj-single-rail-email button[type="submit"] {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	margin-top: 8px;
	border: 0;
	border-radius: 8px;
	background: #25a5c0;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

/* In-article ad (mobile move target). */
body.single-post .sj-single-inline-ad {
	margin: 20px 0;
	max-width: 100%;
}

body.single-post .sj-single-inline-ad img {
	max-width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 767px) {
	body.single-post .single-post-hero-cta,
	body.single-post .sj-single-rail-email {
		min-width: 0 !important;
		width: 100% !important;
		flex: 1 1 auto;
		margin: 16px 0 24px;
	}

	body.single-post .sj-single-rail-sticky {
		position: static;
		top: auto;
	}

	body.single-post .single-post-layout-right.is-mobile-empty {
		display: none !important;
	}

	body.single-post .sj-single-featured__img,
	body.single-post .sj-single-featured img {
		max-height: 240px;
	}
}
