/* ================================================================
   Single Article Page — all rules scoped to body.single
   ================================================================ */

/* ---- Remove sidebar, expand content to full width ---- */
body.single .s-sb,
body.single #secondary {
	display: none !important;
}

body.single .grid-container {
	display: block !important;
	max-width: 100% !important;
}

body.single .s-ct {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding-right: 0 !important;
}

/* ---- Hide theme elements we're replacing ---- */
/* Theme share bar (replaced by our injected one) */
body.single .t-shared,
body.single .s-share-top,
body.single .share-left-wrap,
body.single .share-top-wrap {
	display: none !important;
}

/* Theme related posts (replaced by vcs-related-posts in single.php) */
body.single .single-related {
	display: none !important;
}

/* ================================================================
   ARTICLE HEADER
   ================================================================ */

/* Breadcrumb */
body.single .single-header .breadcrumb,
body.single .single-header .rank-math-breadcrumb {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	color: #8E857D;
	margin-bottom: 20px;
	padding-top: 20px;
}

body.single .single-header .breadcrumb a,
body.single .single-header .rank-math-breadcrumb a {
	color: #8E857D;
	text-decoration: none;
}

body.single .single-header .breadcrumb a:hover,
body.single .single-header .rank-math-breadcrumb a:hover {
	color: #C4813A;
}

/* Category label */
body.single .s-category a,
body.single .entry-category a {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #C4813A !important;
	text-decoration: none;
	display: inline-block;
	margin-bottom: 10px;
}

/* Article title */
body.single .s-title {
	font-family: 'Libre Baskerville', serif !important;
	font-weight: 400 !important;
	font-size: 40px !important;
	line-height: 1.25 !important;
	letter-spacing: -0.3px;
	color: #1E1B18 !important;
	margin: 0 0 16px !important;
	max-width: 720px;
}

/* Tagline / subtitle */
body.single .s-tagline {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 18px;
	color: #8E857D;
	line-height: 1.6;
	font-weight: 400;
	margin: 0 0 16px;
	max-width: 720px;
}

/* Meta bar */
body.single .single-meta {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	color: #8E857D;
	border-top: 1px solid #EDE8E2;
	padding-top: 16px;
	margin-top: 16px;
}

body.single .single-meta a {
	color: #3B3632;
	text-decoration: none;
	font-weight: 500;
}

body.single .single-meta a:hover {
	color: #C4813A;
}

/* ================================================================
   FEATURED IMAGE
   ================================================================ */

body.single .s-feat-outer {
	max-width: 900px;
	margin: 32px auto;
	border-radius: 12px;
	overflow: hidden;
}

body.single .s-feat-outer img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
}

/* ================================================================
   ARTICLE BODY CONTENT
   ================================================================ */

body.single .entry-content {
	max-width: 720px;
	margin: 0 auto;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 18px;
	line-height: 1.75;
	color: #3B3632;
}

body.single .entry-content p {
	margin: 0 0 24px;
}

body.single .entry-content h2 {
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	font-size: 28px;
	line-height: 1.3;
	color: #1E1B18;
	margin: 48px 0 18px;
	letter-spacing: -0.3px;
}

body.single .entry-content h3 {
	font-family: 'Libre Baskerville', serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.35;
	color: #1E1B18;
	margin: 36px 0 14px;
}

body.single .entry-content h4 {
	font-family: 'Nunito Sans', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.4;
	color: #1E1B18;
	margin: 28px 0 12px;
}

body.single .entry-content a {
	color: #C4813A;
	text-decoration: underline;
	text-decoration-color: rgba( 196, 129, 58, 0.3 );
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s ease;
}

body.single .entry-content a:hover {
	text-decoration-color: #C4813A;
}

body.single .entry-content ul,
body.single .entry-content ol {
	margin: 0 0 24px;
	padding-left: 24px;
}

body.single .entry-content li {
	margin-bottom: 10px;
	line-height: 1.7;
}

body.single .entry-content ul li {
	list-style-type: disc;
}

body.single .entry-content ul li::marker {
	color: #C4813A;
}

body.single .entry-content ol li::marker {
	color: #C4813A;
	font-weight: 600;
}

body.single .entry-content blockquote {
	margin: 32px 0;
	padding: 24px 28px;
	border-left: 3px solid #C4813A;
	background: #FDF3E8;
	border-radius: 0 8px 8px 0;
	font-family: 'Libre Baskerville', serif;
	font-size: 18px;
	font-style: italic;
	line-height: 1.65;
	color: #3B3632;
}

body.single .entry-content blockquote p {
	margin: 0;
}

body.single .entry-content blockquote cite {
	display: block;
	margin-top: 12px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-style: normal;
	color: #8E857D;
}

body.single .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 8px 0;
}

body.single .entry-content figure {
	margin: 32px 0;
}

body.single .entry-content figcaption {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	color: #8E857D;
	text-align: center;
	margin-top: 8px;
}

body.single .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 28px 0;
	font-size: 15px;
}

body.single .entry-content table th {
	font-family: 'Nunito Sans', sans-serif;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #1E1B18;
	background: #F8F3ED;
	padding: 12px 16px;
	text-align: left;
	border-bottom: 2px solid #EDE8E2;
}

body.single .entry-content table td {
	padding: 12px 16px;
	border-bottom: 1px solid #EDE8E2;
	color: #3B3632;
	vertical-align: top;
}

body.single .entry-content table tr:hover td {
	background: #FEFCF9;
}

body.single .entry-content hr {
	border: none;
	border-top: 1px solid #EDE8E2;
	margin: 40px 0;
}

body.single .entry-content code {
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 14px;
	background: #F8F3ED;
	padding: 2px 6px;
	border-radius: 4px;
	color: #C4813A;
}

body.single .entry-content pre {
	background: #1E1B18;
	color: #F8F3ED;
	padding: 20px 24px;
	border-radius: 8px;
	overflow-x: auto;
	margin: 28px 0;
	font-size: 14px;
	line-height: 1.6;
}

body.single .entry-content pre code {
	background: none;
	padding: 0;
	color: inherit;
}

body.single .entry-content .key-takeaway,
body.single .entry-content .highlight-box {
	background: #FDF3E8;
	border: 1px solid rgba( 196, 129, 58, 0.2 );
	border-radius: 10px;
	padding: 24px 28px;
	margin: 28px 0;
}

/* ================================================================
   TABLE OF CONTENTS (Foxiz .rb-toc + EZ-TOC / RankMath fallbacks)
   ================================================================ */

/* Container */
body.single .rb-toc,
body.single .table-of-contents,
body.single .ez-toc-container,
body.single .rank-math-toc-container {
	background: #F8F3ED !important;
	border: 1px solid #EDE8E2 !important;
	border-radius: 12px !important;
	padding: 24px 28px !important;
	margin: 28px 0 36px !important;
	max-width: 720px;
	box-shadow: none !important;
}

/* "Contents" heading row */
body.single .rb-toc .toc-header,
body.single .rb-toc-title,
body.single .toc-title,
body.single .ez-toc-title {
	font-family: 'Nunito Sans', sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.07em !important;
	color: #1E1B18 !important;
	margin: 0 0 16px !important;
	border-bottom: 1px solid #EDE8E2;
	padding-bottom: 12px;
}

/* Icon inside heading */
body.single .rb-toc .toc-header i,
body.single .rb-toc .toc-header svg {
	color: #C4813A !important;
}

/* List resets — remove bullets and dividers */
body.single .rb-toc ul,
body.single .rb-toc ol,
body.single .table-of-contents ul,
body.single .ez-toc-list {
	list-style: none !important;
	list-style-type: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.single .rb-toc li,
body.single .rb-toc ul li,
body.single .rb-toc ol li,
body.single .table-of-contents li,
body.single .ez-toc-list li {
	list-style: none !important;
	list-style-type: none !important;
	border-bottom: none !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

/* ::marker needs list-style-type: none on the element itself — display/content don't work */
body.single .rb-toc li::marker,
body.single .rb-toc ul li::marker,
body.single .table-of-contents li::marker,
body.single .ez-toc-list li::marker {
	content: none !important;
}

body.single .rb-toc li::before,
body.single .rb-toc ul li::before,
body.single .table-of-contents li::before,
body.single .ez-toc-list li::before {
	content: none !important;
	display: none !important;
}

/* Number badges — restyle to amber */
body.single .rb-toc .toc-num {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 20px !important;
	height: 20px !important;
	background: #C4813A !important;
	color: #FFFFFF !important;
	border-radius: 4px !important;
	font-family: 'Nunito Sans', sans-serif !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	margin-right: 8px !important;
	flex-shrink: 0;
}

/* Links */
body.single .rb-toc a,
body.single .table-of-contents a,
body.single .ez-toc-list a {
	font-family: 'Nunito Sans', sans-serif !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: #3B3632 !important;
	text-decoration: none !important;
	display: flex !important;
	align-items: center !important;
	padding: 5px 0 !important;
	transition: color 0.2s ease !important;
	border-bottom: none !important;
}

body.single .rb-toc a:hover,
body.single .table-of-contents a:hover,
body.single .ez-toc-list a:hover {
	color: #C4813A !important;
}

body.single .rb-toc a:hover .toc-num {
	background: #B3722F !important;
}

/* ================================================================
   SHARE BAR (injected via the_content filter)
   ================================================================ */

.vcs-share-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	margin: 36px auto;
	border-top: 1px solid #EDE8E2;
	border-bottom: 1px solid #EDE8E2;
	max-width: 720px;
}

.vcs-share-label {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #8E857D;
}

.vcs-share-buttons {
	display: flex;
	gap: 8px;
}

.vcs-share-btn {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #3B3632;
	background: #F8F3ED;
	border: 1px solid #EDE8E2;
	border-radius: 6px;
	padding: 7px 14px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1;
}

.vcs-share-btn:hover {
	background: #C4813A !important;
	color: #FFFFFF !important;
	border-color: #C4813A !important;
}

/* ================================================================
   AUTHOR BIO (theme's .usr-holder, restyled)
   ================================================================ */

body.single .usr-holder.entry-sec {
	display: flex;
	gap: 18px;
	padding: 24px 28px;
	background: #F8F3ED;
	border-radius: 12px;
	margin: 0 auto 32px;
	max-width: 720px;
	border: none;
}

body.single .usr-holder .usr-avatar img,
body.single .usr-holder .author-avatar img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

body.single .usr-holder .usr-name a,
body.single .usr-holder .author-name a {
	font-family: 'Libre Baskerville', serif;
	font-size: 18px;
	font-weight: 400;
	color: #1E1B18;
	text-decoration: none;
}

body.single .usr-holder .usr-name a:hover,
body.single .usr-holder .author-name a:hover {
	color: #C4813A;
}

body.single .usr-holder .usr-bio,
body.single .usr-holder .author-bio {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	color: #8E857D;
	line-height: 1.6;
	margin: 8px 0 0;
}

/* ================================================================
   RELATED POSTS (vcs-related-posts — our custom section)
   ================================================================ */

.vcs-related-posts {
	max-width: 1040px;
	margin: 0 auto;
	padding: 56px 32px 64px;
	border-top: 1px solid #EDE8E2;
}

.vcs-related-header h2 {
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	font-size: 24px;
	color: #1E1B18;
	margin: 0 0 28px;
	text-align: center;
}

.vcs-related-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
}

.vcs-related-card {
	background: #FFFFFF;
	border: 1px solid #EDE8E2;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier( 0.25, 0.46, 0.45, 0.94 );
}

.vcs-related-card:hover {
	transform: translateY( -3px );
	box-shadow: 0 12px 40px rgba( 30, 27, 24, 0.07 );
	border-color: rgba( 196, 129, 58, 0.25 );
}

.vcs-related-image-link {
	display: block;
	text-decoration: none;
}

.vcs-related-image {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 60%;
	overflow: hidden;
	background: #F8F3ED;
}

.vcs-related-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.vcs-related-card:hover .vcs-related-img {
	transform: scale( 1.03 );
}

.vcs-related-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient( 135deg, #F8F3ED, #FDF3E8 );
}

.vcs-related-content {
	padding: 16px 20px 20px;
}

.vcs-related-category {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #C4813A;
	margin-bottom: 6px;
	display: inline-block;
}

.vcs-related-title {
	font-family: 'Libre Baskerville', serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.38;
	margin: 0;
}

.vcs-related-title a {
	color: #1E1B18;
	text-decoration: none;
	transition: color 0.2s;
}

.vcs-related-card:hover .vcs-related-title a {
	color: #C4813A;
}

.vcs-related-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #EDE8E2;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 12px;
	color: #8E857D;
}

.vcs-related-dot {
	color: #EDE8E2;
}

/* ================================================================
   NEWSLETTER CTA (vcs-article-newsletter)
   ================================================================ */

.vcs-article-newsletter {
	background: #F8F3ED;
	padding: 56px 32px;
	border-top: 1px solid #EDE8E2;
}

.vcs-article-newsletter-inner {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
}

.vcs-article-newsletter h2 {
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	font-size: 24px;
	color: #1E1B18;
	margin: 0 0 8px;
}

.vcs-article-newsletter p {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 15px;
	color: #8E857D;
	line-height: 1.6;
	margin: 0 0 24px;
}

.vcs-article-newsletter-form {
	display: flex;
	gap: 8px;
	background: #FFFFFF;
	border-radius: 10px;
	padding: 5px;
	border: 1px solid #EDE8E2;
}

.vcs-newsletter-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 12px 16px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	color: #1E1B18;
	background: transparent;
	border-radius: 8px;
	min-width: 0;
}

.vcs-newsletter-input::placeholder {
	color: #8E857D;
}

.vcs-newsletter-btn {
	padding: 12px 24px;
	background: #C4813A;
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease;
	flex-shrink: 0;
}

.vcs-newsletter-btn:hover {
	background: #B3722F;
}

.vcs-newsletter-note {
	display: block;
	margin-top: 12px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 12px;
	color: #8E857D;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media ( max-width: 768px ) {
	body.single .s-title {
		font-size: 30px !important;
	}
	.vcs-related-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 540px ) {
	body.single .s-title {
		font-size: 26px !important;
	}
	body.single .entry-content {
		font-size: 17px;
	}
	.vcs-share-bar {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}
	body.single .usr-holder.entry-sec {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.vcs-related-grid {
		grid-template-columns: 1fr;
	}
	.vcs-related-posts {
		padding: 40px 20px 48px;
	}
	.vcs-article-newsletter {
		padding: 40px 20px;
	}
	.vcs-article-newsletter-form {
		flex-direction: column;
	}
	.vcs-newsletter-btn {
		width: 100%;
	}
}
