/* Greenry Enthusiast — single blog post design pass (is_singular('post') only) */

:root {
	--ge-forest: #13612e;
	--ge-forest-dark: #0c3d1e;
	--ge-forest-light: #1f7a3f;
	--ge-sage: #eaf3ea;
	--ge-terracotta: #c2603c;
	--ge-terracotta-dark: #a8492b;
	--ge-gold: #eea23b;
	--ge-cream: #fbf7ef;
	--ge-slate: #55655b;
}

/* ---------- Featured image ---------- */
.single-post .post-thumbnail.kadence-thumbnail-position-behind {
	border-radius: 20px 20px 0 0;
	overflow: hidden;
}
.single-post .post-thumbnail.kadence-thumbnail-position-behind .post-thumbnail-inner img {
	max-height: 520px;
	object-fit: cover;
	width: 100%;
}
.single-post article.single-entry {
	border-radius: 20px;
	overflow: hidden;
}

/* ---------- Category badges ---------- */
.single-post .entry-taxonomies .category-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: .9rem;
}
.single-post .entry-taxonomies .category-links a {
	display: inline-block;
	background: var(--ge-sage);
	color: var(--ge-forest);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	padding: .35rem .8rem;
	border-radius: 999px;
	text-decoration: none;
}
.single-post .entry-taxonomies .category-links a:hover { background: var(--ge-forest); color: #fff; }

/* ---------- Title + meta ---------- */
.single-post .entry-title {
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin-bottom: 1rem;
}
.single-post .entry-header .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1rem;
	color: var(--ge-slate);
	font-size: .92rem;
}
.single-post .entry-header .entry-meta .posted-by .author-avatar img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: .4rem;
}
.single-post .entry-header .entry-meta .author a { color: var(--ge-forest); font-weight: 700; text-decoration: none; }
.single-post .entry-header .entry-meta .author a:hover { text-decoration: underline; }
.single-post .entry-header .entry-meta .reading-time {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	color: var(--ge-terracotta-dark);
	font-weight: 700;
}
.single-post .entry-header .entry-meta .reading-time svg { width: 15px; height: 15px; flex: none; }

/* ---------- Body content typography ---------- */
.single-post .entry-content { font-size: 1.08rem; line-height: 1.75; color: #263a2c; }
.single-post .entry-content > p { margin-bottom: 1.3rem; }
.single-post .entry-content h2 {
	font-size: 1.65rem;
	font-weight: 800;
	margin: 2.4rem 0 1.1rem;
	padding-top: .3rem;
	border-top: 3px solid var(--ge-sage);
}
.single-post .entry-content h3 { font-size: 1.32rem; font-weight: 800; margin: 1.9rem 0 .9rem; color: var(--ge-forest-dark); }
.single-post .entry-content h4 { font-size: 1.12rem; font-weight: 700; margin: 1.5rem 0 .7rem; }
.single-post .entry-content a:not(.button):not(.post-more-link) {
	color: var(--ge-forest);
	text-decoration-color: rgba(19,97,46,0.35);
	text-underline-offset: 2px;
}
.single-post .entry-content a:not(.button):not(.post-more-link):hover { text-decoration-color: var(--ge-forest); }

.single-post .entry-content blockquote {
	margin: 1.8rem 0;
	padding: 1.2rem 1.6rem;
	background: var(--ge-cream);
	border-left: 4px solid var(--ge-terracotta);
	border-radius: 0 14px 14px 0;
	font-size: 1.12rem;
	font-style: italic;
	color: #3a2c1f;
}
.single-post .entry-content blockquote p:last-child { margin-bottom: 0; }

.single-post .entry-content ul:not([class]),
.single-post .entry-content ol:not([class]) { padding-left: 1.4rem; margin-bottom: 1.3rem; }
.single-post .entry-content ul:not([class]) li { margin-bottom: .5rem; padding-left: .2rem; }
.single-post .entry-content ul:not([class]) li::marker { color: var(--ge-forest); font-size: 1.05em; }
.single-post .entry-content ol:not([class]) li::marker { color: var(--ge-forest); font-weight: 700; }

.single-post .entry-content figure { margin: 1.8rem 0; }
.single-post .entry-content img { border-radius: 14px; }
.single-post .entry-content figcaption {
	text-align: center;
	font-size: .85rem;
	color: var(--ge-slate);
	margin-top: .6rem;
	font-style: italic;
}

.single-post .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.8rem 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 0 #e5e0d2;
}
.single-post .entry-content table th {
	background: var(--ge-forest);
	color: #fff;
	text-align: left;
	padding: .75rem 1rem;
	font-size: .9rem;
}
.single-post .entry-content table td {
	padding: .7rem 1rem;
	border-bottom: 1px solid #eee3cd;
	font-size: .94rem;
}
.single-post .entry-content table tr:nth-child(even) td { background: var(--ge-cream); }

.single-post .entry-content hr { border: none; border-top: 2px dashed #dfe8e0; margin: 2.2rem 0; }

.single-post .entry-content code {
	background: var(--ge-sage);
	color: var(--ge-forest-dark);
	padding: .15rem .4rem;
	border-radius: 5px;
	font-size: .9em;
}
.single-post .entry-content pre {
	background: #182c1e;
	color: #eafbee;
	padding: 1.2rem;
	border-radius: 12px;
	overflow-x: auto;
}
.single-post .entry-content pre code { background: none; color: inherit; padding: 0; }

/* ---------- Post navigation (prev/next) ---------- */
.single-post .post-navigation .nav-links > div {
	background: #fff;
	border: 1px solid #eef2ec;
	border-radius: 14px;
	padding: 1rem 1.2rem;
	transition: transform .18s ease, box-shadow .18s ease;
}
.single-post .post-navigation .nav-links > div:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(19,97,46,0.12); }
.single-post .post-navigation small { color: var(--ge-terracotta-dark); font-weight: 700; text-transform: uppercase; font-size: .74rem; }

/* ---------- Author box ---------- */
.single-post .entry-author {
	position: relative;
	background:
		linear-gradient(90deg, var(--ge-forest), var(--ge-gold) 55%, var(--ge-terracotta)) top left / 100% 5px no-repeat,
		#fff;
	border: 1px solid #eef2ec;
	border-radius: 20px;
	padding: 2rem 2.2rem;
	margin: 2.5rem 0;
	box-shadow: 0 10px 30px rgba(19, 97, 46, 0.08);
}
.single-post .entry-author::before {
	content: "Written By";
	display: block;
	font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: var(--ge-terracotta-dark); margin-bottom: 1.1rem;
}
.single-post .entry-author-profile {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1.5rem;
	row-gap: .3rem;
	align-items: start;
	position: static;
	padding-left: 0;
}
.single-post .entry-author-avatar {
	position: static;
	grid-column: 1;
	grid-row: 1 / span 4;
}
.single-post .entry-author-avatar::before,
.single-post .entry-author-avatar::after {
	content: none;
}
.single-post .entry-author-avatar img {
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 0 0 3px var(--ge-sage), 0 8px 18px rgba(19,97,46,0.18);
}
.single-post .entry-author-name {
	grid-column: 2;
	grid-row: 1;
	font-size: 1.2rem;
	font-weight: 800;
}
.single-post .entry-author-name a { color: var(--ge-forest-dark); text-decoration: none; }
.single-post .entry-author-name a:hover { color: var(--ge-forest); text-decoration: underline; }
.single-post .entry-author-occupation {
	grid-column: 2;
	grid-row: 2;
	display: inline-block;
	justify-self: start;
	color: var(--ge-forest);
	background: var(--ge-sage);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: .3rem .8rem;
	border-radius: 999px;
	margin: .45rem 0 .8rem;
}
.single-post .entry-author-description {
	grid-column: 2;
	grid-row: 3;
	color: var(--ge-slate); line-height: 1.65; font-size: .98rem; max-width: 62ch;
}
.single-post .entry-author-description p { margin: 0; }
.single-post .entry-author-follow {
	grid-column: 2;
	grid-row: 4;
	display: flex;
	gap: .6rem;
	margin-top: 1rem;
}
.single-post .entry-author-follow:empty { display: none; margin-top: 0; }
.single-post .entry-author-follow .social-button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	background: var(--ge-sage);
	color: var(--ge-forest);
	border-radius: 50%;
	box-shadow: none;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.single-post .entry-author-follow .social-button:hover { background: var(--ge-forest); color: #fff; transform: translateY(-2px); }

@media (max-width: 560px) {
	.single-post .entry-author { padding: 1.6rem 1.4rem; text-align: center; }
	.single-post .entry-author-profile { grid-template-columns: 1fr; justify-items: center; }
	.single-post .entry-author-avatar { grid-column: 1; grid-row: 1; margin-bottom: .8rem; }
	.single-post .entry-author-name,
	.single-post .entry-author-occupation,
	.single-post .entry-author-description,
	.single-post .entry-author-follow { grid-column: 1; }
	.single-post .entry-author-name { grid-row: 2; }
	.single-post .entry-author-occupation { grid-row: 3; justify-self: center; }
	.single-post .entry-author-description { grid-row: 4; }
	.single-post .entry-author-follow { grid-row: 5; justify-content: center; }
}

/* ---------- Related posts ("Similar Posts") ---------- */
.single-post .entry-related { background: var(--ge-cream); }
.single-post .entry-related-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 1.6rem; }
.single-post .entry-related .loop-entry {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(19,97,46,0.08);
	border: 1px solid #eef2ec;
	transition: transform .2s ease, box-shadow .2s ease;
}
.single-post .entry-related .loop-entry:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(19,97,46,0.14); }
.single-post .entry-related .loop-entry .entry-taxonomies .category-links a {
	background: rgba(19,97,46,0.92);
	color: #fff;
	font-size: .68rem;
}
.single-post .entry-related .loop-entry .entry-title { font-size: 1.05rem; }
.single-post .entry-related .loop-entry .post-more-link { color: var(--ge-forest); font-weight: 700; }

/* ---------- Comments ---------- */
.single-post .comments-area { margin-top: 2.5rem; }
.single-post .comment-respond,
.single-post .comments-title { margin-bottom: 1.2rem; }
.single-post #commentform input[type="text"],
.single-post #commentform input[type="email"],
.single-post #commentform input[type="url"],
.single-post #commentform textarea {
	border-radius: 10px;
	border: 1px solid #ddd;
	padding: .7rem .9rem;
	width: 100%;
}
.single-post #commentform .form-submit input {
	background: var(--ge-forest);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: .75rem 1.6rem;
	font-weight: 700;
	cursor: pointer;
}
.single-post #commentform .form-submit input:hover { background: var(--ge-forest-light); }
.single-post .comment-body {
	background: #fff;
	border: 1px solid #eef2ec;
	border-radius: 14px;
	padding: 1.2rem 1.4rem;
	margin-bottom: 1rem;
}
.single-post .comment-author img { border-radius: 50%; }
.single-post .comment-reply-link { color: var(--ge-forest); font-weight: 700; }

@media (max-width: 640px) {
	.single-post .post-thumbnail.kadence-thumbnail-position-behind .post-thumbnail-inner img { max-height: 280px; }
	.single-post .entry-content { font-size: 1rem; }
}

@media (prefers-color-scheme: dark) {
	.single-post .entry-author { background: #16301f; }
	.single-post .comment-body,
	.single-post .post-navigation .nav-links > div { background: #16301f; border-color: #1f3d28; }
	.single-post .entry-content blockquote { background: #16301f; color: #eaf3ea; }
	.single-post .entry-content table tr:nth-child(even) td { background: #0d2016; }
}
