/*
 * Single post optimizations — enqueued on is_singular('post') only.
 * Palette: green #2F4F3A · gold #C9A24A · text #5C6B5E · dark #17251C
 */

/* --------------------------------------------------------- Meta chips --- */

.page-header .post-single-meta ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.page-header .post-single-meta li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 16px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #E7EDE8;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: #2F4F3A;
}

.page-header .post-single-meta li i {
	color: #C9A24A;
	font-size: 13px;
}

.page-header .post-single-meta li a {
	color: #2F4F3A;
	text-decoration: none;
	transition: color 0.25s ease;
}

.page-header .post-single-meta li a:hover {
	color: #8A6B1F;
}

/* ------------------------------------------------- Featured image --- */

.post-single-image {
	margin-bottom: 46px;
}

.post-single-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 18px 42px rgba(23, 37, 28, 0.14);
}

/* ------------------------------------------------------- Typography --- */

.post-entry {
	font-size: 16.5px;
	line-height: 1.8;
	color: #3A4A40;
}

.post-entry h2 {
	scroll-margin-top: 115px;
	margin: 46px 0 16px;
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.3;
	color: #17251C;
	letter-spacing: -0.01em;
}

.post-entry h2:first-child {
	margin-top: 0;
}

.post-entry h3 {
	margin: 30px 0 12px;
	font-size: 20px;
	line-height: 1.4;
	color: #17251C;
}

.post-entry p {
	margin: 0 0 18px;
}

.post-entry a {
	color: #2F4F3A;
	text-decoration: underline;
	text-decoration-color: rgba(201, 162, 74, 0.65);
	text-underline-offset: 3px;
	transition: color 0.25s ease;
}

.post-entry a:hover {
	color: #8A6B1F;
}

.post-entry strong,
.post-entry b {
	color: #17251C;
}

.post-entry ul,
.post-entry ol {
	margin: 0 0 22px;
	padding-left: 24px;
}

.post-entry li {
	margin-bottom: 8px;
}

.post-entry ul > li::marker,
.post-entry ol > li::marker {
	color: #C9A24A;
}

.post-entry img {
	height: auto;
	border-radius: 14px;
}

.post-entry .wp-block-image,
.post-entry figure {
	margin: 26px 0;
}

.post-entry blockquote {
	margin: 26px 0;
	padding: 18px 24px;
	border-left: 4px solid #C9A24A;
	background: #F5F8F5;
	border-radius: 0 12px 12px 0;
	font-style: normal;
	color: #2F4F3A;
}

/* --------------------------------------------------- FAQ accordion --- */

.post-entry #rank-math-faq {
	margin: 10px 0 6px;
}

.post-entry #rank-math-faq .rank-math-list-item {
	margin-bottom: 12px;
	padding: 0 22px;
	background: #FFFFFF;
	border: 1px solid #E7EDE8;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(23, 37, 28, 0.05);
	transition: border-color 0.3s ease;
}

.post-entry #rank-math-faq .rank-math-list-item:hover {
	border-color: rgba(201, 162, 74, 0.55);
}

.post-entry #rank-math-faq .rank-math-question {
	position: relative;
	display: block;
	margin: 0;
	padding: 17px 42px 17px 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	color: #17251C;
	cursor: pointer;
	scroll-margin-top: 120px;
	list-style: none;
}

.post-entry #rank-math-faq .rank-math-question::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #F0F4F1;
	color: #2F4F3A;
	font-size: 17px;
	font-weight: 700;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.post-entry #rank-math-faq .sds-faq-open .rank-math-question::after {
	content: "\2013";
	background: #C9A24A;
	color: #17251C;
}

.post-entry #rank-math-faq .rank-math-question:focus-visible {
	outline: 2px solid #C9A24A;
	outline-offset: 3px;
	border-radius: 6px;
}

/* Answers hidden only once the accordion JS is active (no-JS safe). */
.post-entry #rank-math-faq.sds-faq-ready .rank-math-answer {
	display: none;
	padding-bottom: 18px;
	margin-top: -4px;
	color: #5C6B5E;
	line-height: 1.75;
}

.post-entry #rank-math-faq.sds-faq-ready .sds-faq-open .rank-math-answer {
	display: block;
}

/* ------------------------------------- Related posts / nav / tags --- */

.sds-related {
	margin-top: 48px;
}

.sds-related-title {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 12px;
	font-size: 23px;
	font-weight: 700;
	color: #17251C;
	border-bottom: 2px solid #EDF2EE;
}

.sds-related-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 56px;
	height: 2px;
	background: #C9A24A;
}

.sds-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
}

.sds-related-card {
	display: block;
	background: #FFFFFF;
	border: 1px solid #E7EDE8;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(23, 37, 28, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.sds-related-card:hover {
	transform: translateY(-6px);
	border-color: rgba(201, 162, 74, 0.6);
	box-shadow: 0 18px 36px rgba(23, 37, 28, 0.12);
}

.sds-related-thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #EDF2EE;
	line-height: 0;
}

.sds-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.sds-related-card:hover .sds-related-thumb img {
	transform: scale(1.07);
}

.sds-related-noimg {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-size: 30px;
	color: rgba(47, 79, 58, 0.35);
}

.sds-related-card h4 {
	margin: 14px 16px 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	color: #17251C;
	transition: color 0.25s ease;
}

.sds-related-card:hover h4 {
	color: #2F4F3A;
}

.sds-related-date {
	display: block;
	margin: 0 16px 14px;
	font-size: 12px;
	color: #8A9890;
}

.sds-related-date i {
	color: #C9A24A;
	margin-right: 4px;
}

/* Tags + share row */

.post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 30px;
}

.post-tags .tag-links {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8A6B1F;
}

.post-tags a {
	display: inline-block;
	padding: 6px 14px;
	background: #F0F4F1;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #2F4F3A;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease;
}

.post-tags a:hover {
	background: #C9A24A;
	color: #17251C;
}

/* ------------------------------------------------------ Article CTA --- */

.sds-post-cta {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	margin-top: 42px;
	padding: 36px 36px;
	background: linear-gradient(135deg, #17251C 0%, #2F4F3A 60%, #24402F 100%);
	border-radius: 20px;
}

.sds-post-cta::before {
	content: "";
	position: absolute;
	right: -90px;
	top: -120px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(201, 162, 74, 0.35), transparent 70%);
	pointer-events: none;
}

.sds-post-cta-text {
	position: relative;
	z-index: 1;
	flex: 1 1 320px;
}

.sds-post-cta-kicker {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #E8C877;
}

.sds-post-cta-text h3 {
	margin: 0 0 10px;
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.25;
	color: #FFFFFF;
}

.sds-post-cta-text p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.82);
}

.sds-post-cta-actions {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sds-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease,
		border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.sds-cta-gold {
	background: #C9A24A;
	border: 1px solid #C9A24A;
	color: #17251C;
}

.sds-cta-gold:hover {
	background: #DBB65C;
	border-color: #DBB65C;
	color: #17251C;
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.sds-cta-ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #FFFFFF;
}

.sds-cta-ghost:hover {
	background: #FFFFFF;
	border-color: #FFFFFF;
	color: #17251C;
	transform: translateY(-3px);
}

/* -------------------------------------------------- Prev / next nav --- */

.sds-post-nav {
	display: flex;
	gap: 16px;
	margin-top: 34px;
}

.sds-post-nav-item {
	flex: 1 1 0;
	min-width: 0;
	padding: 16px 20px;
	background: #F7FAF8;
	border: 1px solid #E7EDE8;
	border-radius: 14px;
	text-decoration: none;
	transition: transform 0.3s ease, border-color 0.3s ease,
		box-shadow 0.3s ease;
}

.sds-post-nav-item:hover {
	transform: translateY(-3px);
	border-color: rgba(201, 162, 74, 0.6);
	box-shadow: 0 12px 26px rgba(23, 37, 28, 0.08);
}

.sds-post-nav-item span {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8A9890;
}

.sds-post-nav-item span i {
	color: #C9A24A;
}

.sds-post-nav-item strong {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 7px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #17251C;
	transition: color 0.25s ease;
}

.sds-post-nav-item:hover strong {
	color: #2F4F3A;
}

.sds-post-nav-next {
	text-align: right;
}

@media (max-width: 767px) {
	.sds-post-nav {
		flex-direction: column;
	}
}

/* ============================================================ Sidebar === */

.sidebar-widget .widget {
	margin-bottom: 24px;
	padding: 24px 22px;
	background: #FFFFFF;
	border: 1px solid #E7EDE8;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(23, 37, 28, 0.05);
}

.sidebar-widget .widget:last-child {
	margin-bottom: 0;
}

.sidebar-widget .widget-title {
	position: relative;
	margin: 0 0 16px;
	padding-bottom: 12px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #17251C;
	border-bottom: 2px solid #EDF2EE;
}

.sidebar-widget .widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 44px;
	height: 2px;
	background: #C9A24A;
}

.sidebar-widget .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Table of Contents */

.sds-toc ul {
	border-left: 2px solid #E7EDE8;
}

.sds-toc li a {
	display: block;
	padding: 8px 14px;
	border-left: 2px solid transparent;
	margin-left: -2px;
	font-size: 14px;
	line-height: 1.5;
	color: #5C6B5E;
	text-decoration: none;
	transition: color 0.25s ease, border-color 0.25s ease,
		background 0.25s ease, padding-left 0.25s ease;
}

.sds-toc li a:hover {
	color: #2F4F3A;
	border-left-color: #C9A24A;
	background: #F5F8F5;
	padding-left: 18px;
}

/* Recent posts */

.sds-rp-item {
	display: flex;
	gap: 13px;
	padding: 12px 0;
	border-bottom: 1px dashed #E7EDE8;
}

.sds-rp-item:first-child {
	padding-top: 0;
}

.sds-rp-item:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.sds-rp-thumb {
	flex: 0 0 62px;
	width: 62px;
	height: 62px;
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
}

.sds-rp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.sds-rp-thumb:hover img {
	transform: scale(1.08);
}

.sds-rp-noimg {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2F4F3A, #17251C);
	color: #C9A24A;
	font-size: 22px;
}

.sds-rp-body {
	min-width: 0;
}

.sds-rp-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	color: #17251C;
	text-decoration: none;
	transition: color 0.25s ease;
}

.sds-rp-title:hover {
	color: #2F4F3A;
}

.sds-rp-date {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #8A9890;
}

.sds-rp-date i {
	margin-right: 5px;
	color: #C9A24A;
}

/* Categories */

.sds-cats li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px dashed #E7EDE8;
	font-size: 14.5px;
	color: #3A4A40;
	text-decoration: none;
	transition: color 0.25s ease, padding-left 0.25s ease;
}

.sds-cats li:last-child a {
	border-bottom: none;
	padding-bottom: 0;
}

.sds-cats li a:hover {
	color: #2F4F3A;
	padding-left: 6px;
}

.sds-cats-count {
	flex: 0 0 auto;
	min-width: 26px;
	padding: 1px 9px;
	background: #F0F4F1;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: #2F4F3A;
	text-align: center;
}

/* Tag cloud */

.sidebar-widget .tagcloud a {
	display: inline-block;
	margin: 0 6px 8px 0;
	padding: 6px 14px;
	background: #F0F4F1;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 12.5px !important;
	font-weight: 600;
	color: #2F4F3A;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease,
		border-color 0.25s ease;
}

.sidebar-widget .tagcloud a:hover {
	background: #C9A24A;
	border-color: #C9A24A;
	color: #17251C;
}

/* Search */

.sidebar-widget .widget_search .search-form {
	display: flex;
	gap: 8px;
}

.sidebar-widget .widget_search .search-field {
	flex: 1 1 auto;
	min-width: 0;
	padding: 11px 14px;
	background: #F7FAF8;
	border: 1px solid #E2E8E4;
	border-radius: 10px;
	font-size: 14.5px;
	color: #17251C;
	outline: none;
	transition: border-color 0.25s ease, background 0.25s ease;
}

.sidebar-widget .widget_search .search-field:focus {
	background: #FFFFFF;
	border-color: #C9A24A;
}

.sidebar-widget .widget_search .search-submit {
	padding: 11px 20px;
	background: #2F4F3A;
	border: 1px solid #2F4F3A;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: #FFFFFF;
	cursor: pointer;
	transition: background 0.25s ease;
}

.sidebar-widget .widget_search .search-submit:hover {
	background: #17251C;
	border-color: #17251C;
}

/* CTA card (whole aside turns into the dark card) */

.sidebar-widget .widget_sds_cta {
	background: linear-gradient(135deg, #17251C 0%, #2F4F3A 60%, #24402F 100%);
	border: none;
	text-align: center;
}

.sidebar-widget .widget_sds_cta .widget-title {
	color: #FFFFFF;
	border-bottom-color: rgba(201, 162, 74, 0.5);
}

.sidebar-widget .widget_sds_cta .widget-title::after {
	background: #C9A24A;
}

.sds-side-cta p {
	margin: 0 0 18px;
	font-size: 14.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.82);
}

.sds-side-cta-btn {
	display: block;
	margin-bottom: 10px;
	padding: 13px 18px;
	background: #C9A24A;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 700;
	color: #17251C;
	text-decoration: none;
	transition: background 0.3s ease, transform 0.3s ease;
}

.sds-side-cta-btn:hover {
	background: #DBB65C;
	color: #17251C;
	transform: translateY(-2px);
}

.sds-side-cta-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 700;
	color: #FFFFFF;
	text-decoration: none;
	transition: color 0.25s ease;
}

.sds-side-cta-phone i {
	color: #E8C877;
}

.sds-side-cta-phone:hover {
	color: #E8C877;
}

/* -------------------------------------------------------- Responsive --- */

@media (max-width: 991px) {
	.sidebar-widget {
		margin-top: 14px;
	}

	.sds-post-cta {
		padding: 30px 26px;
	}
}

@media (max-width: 575px) {
	.post-entry {
		font-size: 16px;
	}

	.sds-post-cta-actions {
		width: 100%;
	}

	.sds-cta-btn {
		justify-content: center;
		width: 100%;
	}
}
