/* WSJ-like single post layout (Salient child theme) */
/* Assumes updated template markup with:
   .aba-wsj-meta-stack / .aba-wsj-meta--top / .aba-wsj-meta--bottom / .aba-wsj-inline-share */

.single-post .aba-wsj-main {
	padding-top: 18px;
	padding-bottom: 30px;
}

.single-post .aba-wsj-post {
	background: #fff;
}

.single-post .aba-wsj-rail {
	position: sticky;
	top: var(--nectar-sticky-top-distance, 0px);
	z-index: 50;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	height: 48px;
	padding: 0 12px;
	background: rgba(255,255,255,.96);
	border-top: 1px solid rgba(0,0,0,.08);
	border-bottom: 1px solid rgba(0,0,0,.08);
	backdrop-filter: blur(8px);
	margin-bottom: 18px;
}

.single-post .aba-wsj-rail__left {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.single-post .aba-wsj-rail__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #222;
	padding: 0;
	cursor: default; /* visual only for now */
	opacity: .8;
}

.single-post .aba-wsj-rail__brand {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: #111;
	text-decoration: none !important;
	white-space: nowrap;
}

.single-post .aba-wsj-rail__title {
	font-size: 13px;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	min-width: 0;
}

.single-post .aba-wsj-rail__right {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
}

.single-post .aba-wsj-article-shell {
	max-width: 760px;
	margin: 0 auto;
}

.single-post .aba-wsj-header {
	padding: 28px 0 18px;
	margin-bottom: 8px;
}

.single-post .aba-wsj-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #b10000;
	margin-bottom: 10px;
	line-height: 1.2;
}

.single-post .aba-wsj-kicker a {
	color: inherit;
	text-decoration: none !important;
}

.single-post .aba-wsj-title {
	font-size: clamp(32px, 4.5vw, 46px);
	line-height: 1;
	letter-spacing: -0.01em;
	font-weight: 600;
	color: #111;
	margin: 0 0 14px;
}

.single-post .aba-wsj-deck {
	font-size: 18px;
	line-height: 1.45;
	color: #444;
	margin: 0 0 14px;
	max-width: 720px;
}

.single-post .aba-wsj-deck p {
	margin: 0 0 .5em;
	color: #555555;
}


.single-post .aba-wsj-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	line-height: 1.35;
	color: #555;
	font-style: normal; /* keep non-byline items normal */
}

.single-post .aba-wsj-meta--top {
	margin-bottom: 8px;
    font-style: italic;
}

.single-post .aba-wsj-meta--bottom {
	gap: 10px;
}


.single-post .aba-wsj-meta__byline strong {
	font-weight: 700;
}

.single-post .aba-wsj-meta__dot {
	color: #999;
}

.single-post .aba-wsj-meta a {
	color: #1a1a1a;
	text-decoration: none;
}

.single-post .aba-wsj-meta a:hover {
	text-decoration: underline;
}

.single-post .aba-wsj-meta__comments-link {
	white-space: nowrap;
}

.single-post p {
	color: #000;
    line-height: 1.5;
}
.single-post h3 {
    color: #001F3D !important;
}
.single-post .aba-wsj-featured {
	margin: 0 0 22px;	
}

.single-post .aba-wsj-featured__img {
	display: block;
	width: 100%;
	height: auto;
    border-radius: 3px;	
}

.single-post .aba-wsj-featured__caption {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.4;
	color: #666;
}



.single-post .aba-wsj-content img {
	max-width: 100%;
	height: auto;
}

.single-post .aba-wsj-content .wp-caption,
.single-post .aba-wsj-content figure {
	max-width: 100%;
}



/* Share styles (same behavior/style family as rant posts) */
.single-post .aba-share-wrap {
	position: relative;
	display: inline-flex;
}

.single-post .aba-share-wrap .btn-share,
.single-post .aba-btn.btn-share {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;			
	background: #fff !important;
	color: #000 !important;
	cursor: pointer !important;
	font-size: 14px !important;
	line-height: 1 !important;
	transition: color .15s, box-shadow .15s, border-color .15s !important;
	box-shadow: none !important;
	user-select: none;
}

.single-post .aba-share-wrap .btn-share > * {
	pointer-events: none;
}

.single-post .aba-share-wrap .btn-share:hover,
.single-post .aba-share-wrap .btn-share.aba-share-open {
	color: #222 !important;	
    transform:scale(1)!important;	
}


.single-post .aba-wsj-inline-share {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.single-post .aba-wsj-inline-share .btn-share {		
	color: #111 !important;
	box-shadow: none !important;
	gap: 0 !important;
}



.single-post .aba-wsj-inline-share .btn-share:hover,
.single-post .aba-wsj-inline-share .btn-share.aba-share-open {
	background: #f7f7f7 !important;	
	color: #111 !important;
	box-shadow: none !important;
}

.single-post .aba-share-popover {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 140px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	z-index: 9999;
}

.single-post .aba-share-wrap.aba-share-down .aba-share-popover {
	bottom: auto;
	top: calc(100% + 10px);
	transform: translateX(-50%) translateY(-6px);
}

.single-post .aba-share-wrap.aba-share-down .aba-share-popover.aba-share-popover--open {
	transform: translateX(-50%) translateY(0);
}

.single-post .aba-share-popover.aba-share-popover--open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}

.single-post .aba-share-popover::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 7px solid transparent;
	border-top-color: #fff;
	filter: drop-shadow(0 2px 2px rgba(0,0,0,.07));
}

.single-post .aba-share-popover::before {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: #e8e8e8;
	margin-top: 1px;
}

.single-post .aba-share-wrap.aba-share-down .aba-share-popover::after {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: #fff;
}

.single-post .aba-share-wrap.aba-share-down .aba-share-popover::before {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: #e8e8e8;
	margin-top: 0;
	margin-bottom: 1px;
}

.single-post .aba-share-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 12px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	text-decoration: none !important;
	transition: background .13s, color .13s, transform .13s;
	white-space: nowrap;
	opacity: 0;	
}

.single-post .aba-share-popover--open .aba-share-item {
	opacity: 1;	
}

.single-post .aba-share-popover--open .aba-share-item:nth-child(1) { transition: background .13s,color .13s,opacity .18s ease .04s,transform .18s ease .04s; }
.single-post .aba-share-popover--open .aba-share-item:nth-child(2) { transition: background .13s,color .13s,opacity .18s ease .09s,transform .18s ease .09s; }
.single-post .aba-share-popover--open .aba-share-item:nth-child(3) { transition: background .13s,color .13s,opacity .18s ease .14s,transform .18s ease .14s; }
.single-post .aba-share-popover--open .aba-share-item:nth-child(4) { transition: background .13s,color .13s,opacity .18s ease .19s,transform .18s ease .19s; }


.single-post .aba-share-fb:hover   { background: #e7f0ff; color: #1877f2; }
.single-post .aba-share-fb svg     { color: #1877f2; }
.single-post .aba-share-x:hover    { background: #f0f0f0; color: #000; }
.single-post .aba-share-x svg      { color: #000; }
.single-post .aba-share-li:hover   { background: #e8f4fe; color: #0a66c2; }
.single-post .aba-share-li svg     { color: #0a66c2; }
.single-post .aba-share-native:hover { background: #e8fef0; color: #25a244; }
.single-post .aba-share-native svg { color: #25a244; stroke: #25a244; }

/* Optional: tighten Salient defaults inside article for cleaner newspaper look */
.single-post .aba-wsj-content .wpb_wrapper p:last-child {
	margin-bottom: 0;
}

/* Comments spacing */
.single-post #comments {
	max-width: 760px;
	margin: 28px auto 0;
}

/* Mobile */
@media (max-width: 999px) {
	.single-post .aba-wsj-main {
		padding-top: 8px;
	}

	.single-post .aba-wsj-rail {
		grid-template-columns: auto 1fr auto;
		gap: 8px;
		padding: 0 8px;
		height: 44px;
	}

	.single-post .aba-wsj-rail__brand {
		font-size: 13px;
	}

	.single-post .aba-wsj-rail__title {
		font-size: 12px;
		text-align: left;
	}

	.single-post .aba-wsj-title {
		font-size: clamp(28px, 7vw, 38px);
		line-height: 1.08;
	}

	.single-post .aba-wsj-deck {
		font-size: 16px;
	}

	.single-post .aba-wsj-content {
		font-size: 19px;
		line-height: 1.6;
	}

	.single-post .aba-wsj-meta {
		font-size: 12px;
	}

	.single-post .aba-wsj-meta-stack {
		margin-top: 12px;
	}

	.single-post .aba-wsj-meta--top {
		margin-bottom: 6px;
	}

	.single-post .aba-wsj-meta--bottom {
		gap: 8px;
	}
	
}

@media (max-width: 680px) {
	.single-post .aba-wsj-rail__title {
		display: none;
	}

	.single-post .aba-wsj-content {
		font-size: 18px;
	}
}

.single-post .aba-wsj-inline-share .btn-share {
	padding: 6px 12px !important;	
	gap: 6px !important;
	color: #1a1a1a !important;	
	background: #fff !important;
}

.single-post .aba-wsj-inline-share .btn-share svg {
	width: 22px;
	height: 22px;
	display: block;
	flex: 0 0 22px;
	color: #1a1a1a;
}

.single-post .aba-wsj-inline-share .btn-share .label {
	line-height: 1;
}

.single-post .aba-wsj-inline-share .btn-share:hover,
.single-post .aba-wsj-inline-share .btn-share.aba-share-open {
	color: #111 !important;
	box-shadow: inset 0 0 0 1px #999 !important;
}
/* =========================
   Read Next (WSJ/MarketWatch-like)
   ========================= */

.single-post .aba-read-next {
	margin: 34px auto 0;
	padding-top: 18px;
	border-top: 1px solid rgba(0,0,0,.18);
}

.single-post .aba-read-next__inner {
	max-width: 980px; /* wider than article body, like screenshot */
	margin: 0 auto;
}

.single-post .aba-read-next__heading {
	margin: 18px 0 18px;    
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;      
}

.single-post .aba-read-next__list {
	display: block;
}

.single-post .aba-read-next-item {
	padding: 28px 0 20px;
	border-top: 1px solid rgba(0,0,0,.12);
}

.single-post .aba-read-next-item:first-child {
	border-top: none;
	padding-top: 6px;
}

.single-post .aba-read-next-item__kicker {
	margin: 0 0 8px;	
	font-size: 12px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #5c6980;
}

.single-post .aba-read-next-item__kicker a {
	color: #b10000;
	text-decoration: none !important;
}

.single-post .aba-read-next-item__title {
	margin: 0 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 2.7vw, 34px);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #111;
}

.single-post .aba-read-next-item__title a {
	color: inherit;
	text-decoration: none !important;
}


.single-post .aba-read-next-item__date {
	margin: 0 0 12px;	
	font-size: 13px;
	line-height: 1.3;
	color: #555;
}

.single-post .aba-read-next-item__grid {
	display: grid;
	grid-template-columns: minmax(300px, 1.25fr) minmax(240px, 1fr);
	gap: 18px;
	align-items: start;
}

.single-post .aba-read-next-item__grid.no-thumb {
	grid-template-columns: 1fr;
}

.single-post .aba-read-next-item__media a {
	display: block;
	text-decoration: none !important;
}

.single-post .aba-read-next-item__img {
	display: block;
	width: 100%;
	height: 250px!important;
	object-fit: cover;	
    border-radius: 3px;
}

.single-post .aba-read-next-item__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.single-post .aba-read-next-item__excerpt {	
	font-size: 16px;
	line-height: 1.45;
	color: #111;
}

.single-post .aba-read-next-item__cta-wrap {
	margin-top: 2px;
}

.single-post .aba-read-next-item__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 3px;
	background: #0d6fb8;
	color: #fff !important;
	text-decoration: none !important;	
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	transition: background .15s ease, transform .15s ease;
}

.single-post .aba-read-next-item__cta:hover {
	background: #0a5f9f;	
}

.single-post .aba-read-next-item__cta svg {
	display: block;
	flex: 0 0 auto;
}

/* If you kept comments collapsed above this, give nice spacing */
.single-post .aba-comments-collapsible + .aba-read-next,
.single-post #comments + .aba-read-next {
	margin-top: 26px;
}

/* Tablet */
@media (max-width: 999px) {
	.single-post .aba-read-next__inner {
		max-width: 760px;
	}

	.single-post .aba-read-next-item__title {
		font-size: clamp(24px, 4.3vw, 30px);
		line-height: 1.1;
	}

	.single-post .aba-read-next-item__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.single-post .aba-read-next-item__img {
		height: auto;
		aspect-ratio: 16 / 9;
	}

	.single-post .aba-read-next-item__excerpt {
		font-size: 16px;
		line-height: 1.45;
	}
}

/* Mobile */
@media (max-width: 680px) {
	.single-post .aba-read-next {
		margin-top: 26px;
		padding-top: 14px;
	}

	.single-post .aba-read-next__heading {
		font-size: 17px;
		margin-bottom: 12px;
        color: #111745;
	}

	.single-post .aba-read-next-item {
		padding: 14px 0 16px;
	}

	.single-post .aba-read-next-item__kicker {		
		margin-bottom: 6px;
	}

	.single-post .aba-read-next-item__title {
		font-size: 22px;
		line-height: 1.12;
		margin-bottom: 6px;
	}

	.single-post .aba-read-next-item__date {
		font-size: 12px;
		margin-bottom: 10px;
	}

	.single-post .aba-read-next-item__excerpt {
		font-size: 15px;
	}

	.single-post .aba-read-next-item__cta {
		font-size: 14px;
		padding: 8px 12px;
	}
    .single-post .aba-wsj-content p {
        font-size: 16px;
        line-height: 1.5;
        padding-bottom: 10px;
    }
}